|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectchoco.Solution
public class Solution
A class storing a state of the problem
| Field Summary | |
|---|---|
protected int[] |
intVarValues
data storage for values of search variables |
protected static java.util.logging.Logger |
logger
|
protected int |
objectiveValue
|
protected AbstractProblem |
problem
the problem owning the solution |
protected RealInterval[] |
realVarValues
|
protected int[][] |
setVarValues
|
| Constructor Summary | |
|---|---|
Solution(AbstractProblem pb)
Constructor |
|
| Method Summary | |
|---|---|
RealInterval |
getRealValue(int varIndex)
|
int[] |
getSetValue(int varIndex)
|
int |
getValue(int varIndex)
Accessor to the value of a variable in a solution |
void |
recordIntObjective(int intObjectiveValue)
|
void |
recordIntValue(int intVarIndex,
int intVarValue)
|
void |
recordRealValue(int realVarIndex,
RealInterval realVarValue)
|
void |
recordSetValue(int setVarIndex,
int[] setVarValue)
|
void |
restore()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final java.util.logging.Logger logger
protected AbstractProblem problem
protected int[] intVarValues
protected RealInterval[] realVarValues
protected int[][] setVarValues
protected int objectiveValue
| Constructor Detail |
|---|
public Solution(AbstractProblem pb)
pb - the problem owning the solution| Method Detail |
|---|
public void recordIntValue(int intVarIndex,
int intVarValue)
public void recordSetValue(int setVarIndex,
int[] setVarValue)
public void recordRealValue(int realVarIndex,
RealInterval realVarValue)
public void recordIntObjective(int intObjectiveValue)
public void restore()
public int getValue(int varIndex)
varIndex - the index of the variable among all variables of the problem
public int[] getSetValue(int varIndex)
public RealInterval getRealValue(int varIndex)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||