public class Solution extends Object implements javax.constraints.Solution
| Constructor and Description |
|---|
Solution(javax.constraints.Solver solver,
int solutionNumber) |
| Modifier and Type | Method and Description |
|---|---|
int |
getAt(String name)
A synonym for getValue(name).
|
int |
getMax(String name) |
int |
getMin(String name) |
int |
getNumberOfVarReals()
Returns the number of decision integer variables in the solution
|
int |
getNumberOfVars()
Returns the number of decision integer variables in the solution
|
int |
getNumberOfVarSets() |
javax.constraints.Problem |
getProblem() |
int |
getSolutionNumber() |
javax.constraints.Solver |
getSolver() |
int |
getValue(String name) |
double |
getValueReal(String name) |
Set<Integer> |
getValueSet(String name) |
String |
getValueString(String name) |
boolean |
isBound() |
boolean |
isBound(String name) |
void |
log() |
void |
log(int varPerLinePar)
Logs the solution in the information log.
|
void |
logVarReals()
Logs real variables of the solution in the information log
|
void |
logVars()
Logs integer variables of the solution in the information log
|
void |
save() |
void |
setSolutionNumber(int number) |
void |
setValue(String name,
int value) |
void |
setValueReal(String name,
double value) |
String |
toString() |
public javax.constraints.Solver getSolver()
getSolver in interface javax.constraints.Solutionpublic javax.constraints.Problem getProblem()
getProblem in interface javax.constraints.Solutionpublic int getSolutionNumber()
getSolutionNumber in interface javax.constraints.Solutionpublic void setSolutionNumber(int number)
setSolutionNumber in interface javax.constraints.Solutionpublic int getNumberOfVars()
getNumberOfVars in interface javax.constraints.Solutionpublic int getNumberOfVarReals()
getNumberOfVarReals in interface javax.constraints.Solutionpublic int getNumberOfVarSets()
getNumberOfVarSets in interface javax.constraints.Solutionpublic int getValue(String name)
getValue in interface javax.constraints.Solutionpublic void setValue(String name, int value)
public int getAt(String name)
getAt in interface javax.constraints.Solutionname - a name of the variablepublic double getValueReal(String name)
getValueReal in interface javax.constraints.Solutionpublic void setValueReal(String name, double value)
public Set<Integer> getValueSet(String name)
getValueSet in interface javax.constraints.Solutionpublic int getMin(String name)
getMin in interface javax.constraints.Solutionpublic int getMax(String name)
getMax in interface javax.constraints.Solutionpublic boolean isBound(String name)
isBound in interface javax.constraints.Solutionpublic boolean isBound()
isBound in interface javax.constraints.Solutionpublic void log()
log in interface javax.constraints.Solutionpublic void log(int varPerLinePar)
log in interface javax.constraints.Solutionpublic void logVars()
public void logVarReals()
public void save()
save in interface javax.constraints.SolutionCopyright © 2024. All rights reserved.