|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.cpsolver.ifs.model.Model net.sf.cpsolver.ifs.multi.MultiModel
public class MultiModel
Multi-variable model.
Model containing MultiVariable
variables.
Such variables are excluded from the solver process, however,
they can be included in constraints. Such model can allow us to build a solution
on top of another solution (e.g., committed classes in the course timetabling).
Constant variable has to implement interface ConstantVariable
,
returning ConstantVariable.isConstant()
true.
Field Summary |
---|
Fields inherited from class net.sf.cpsolver.ifs.model.Model |
---|
iAssignedVariables, iPerturbVariables, iUnassignedVariables, sDoubleFormat, sPercentageFormat, sTimeFormat |
Constructor Summary | |
---|---|
MultiModel()
|
Method Summary | |
---|---|
void |
addVariable(Variable variable)
Adds a variable to the model |
Hashtable |
conflictConstraints(Value value)
The list of constraints which are in a conflict with the given value if it is assigned to its variable. |
Set |
conflictValues(Value value)
Returns the set of confliction variables with this value, if it is assigned to its variable |
MultiVariable |
getMultiVariable(Variable variable)
Returns a MultiVariable for the given "normal" variable. |
void |
removeVariable(Variable variable)
Removes a variable from the model |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MultiModel()
Method Detail |
---|
public void addVariable(Variable variable)
Model
addVariable
in class Model
public void removeVariable(Variable variable)
Model
removeVariable
in class Model
public MultiVariable getMultiVariable(Variable variable)
MultiVariable
for the given "normal" variable.
public Set conflictValues(Value value)
Model
conflictValues
in class Model
public Hashtable conflictConstraints(Value value)
Model
Constraint.computeConflicts(Value, Set)
.
conflictConstraints
in class Model
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |