|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectchoco.kernel.solver.Solution
public class Solution
A class storing a state of the model
Field Summary | |
---|---|
protected int[] |
intVarValues
data storage for values of search variables |
protected MeasuresBean |
measures
|
static int |
NULL
|
protected int |
objectiveIntValue
|
protected double |
objectiveRealValue
|
protected RealInterval[] |
realVarValues
|
protected int[][] |
setVarValues
|
protected Solver |
solver
the solver owning the solution |
Constructor Summary | |
---|---|
Solution(Solver solver)
Constructor |
Method Summary | |
---|---|
int |
getIntValue(int varIndex)
Accessor to the value of a variable in a solution |
IMeasures |
getMeasures()
|
int |
getObjectiveValue()
|
RealInterval |
getRealValue(int varIndex)
|
int[] |
getSetValue(int varIndex)
|
Solver |
getSolver()
|
void |
recordIntObjective(int objectiveIntValue)
|
void |
recordIntValue(int intVarIndex,
int intVarValue)
|
void |
recordIntValues()
|
void |
recordRealObjective(double objectiveRealValue)
|
void |
recordRealValue(int realVarIndex,
RealInterval realVarValue)
|
void |
recordRealValues()
|
void |
recordSearchMeasures(ISearchMeasures measures)
|
void |
recordSetValue(int setVarIndex,
int[] setVarValue)
|
void |
recordSetValues()
|
void |
recordSolutionCount(int solutionCount)
|
void |
setSolver(Solver s)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int NULL
protected Solver solver
protected int[] intVarValues
protected RealInterval[] realVarValues
protected int[][] setVarValues
protected int objectiveIntValue
protected double objectiveRealValue
protected final MeasuresBean measures
Constructor Detail |
---|
public Solution(Solver solver)
solver
- the model owning the solutionMethod Detail |
---|
public void setSolver(Solver s)
public Solver getSolver()
public final IMeasures getMeasures()
public final int getObjectiveValue()
public final void recordSolutionCount(int solutionCount)
public final void recordIntValues()
public final void recordSetValues()
public final void recordRealValues()
public final void recordIntValue(int intVarIndex, int intVarValue)
public final void recordSetValue(int setVarIndex, int[] setVarValue)
public final void recordRealValue(int realVarIndex, RealInterval realVarValue)
public final void recordIntObjective(int objectiveIntValue)
public final void recordRealObjective(double objectiveRealValue)
public final void recordSearchMeasures(ISearchMeasures measures)
public final int getIntValue(int varIndex)
varIndex
- the index of the variable among all variables of the model
public final int[] getSetValue(int varIndex)
public final RealInterval getRealValue(int varIndex)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |