|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Criterion<V extends Variable<V,T>,T extends Value<V,T>>
Criterion.
An optimization objective can be split into several (optimization) criteria
and modeled as a weighted sum of these. This makes the implementation of a particular problem
more versatile as it allows for an easier modification of the optimization objective.
Method Summary | |
---|---|
void |
bestRestored()
Notification that the current solution has been restored from the best. |
void |
bestSaved()
Notification that the current solution has been saved to the best. |
double |
getBest()
Best value (value of the criterion in the best solution) |
double[] |
getBounds()
Bounds (minimum and maximum) estimate for the value |
double[] |
getBounds(Collection<V> variables)
Value bounds (minimum and maximum) of the criterion on a part of the problem |
String |
getName()
Criterion name |
double |
getValue()
Current value of the criterion (optimization objective) |
double |
getValue(Collection<V> variables)
Value of a part of the problem (given by the collection of variables) |
double |
getValue(T value,
Set<T> conflicts)
Value of a proposed assignment (including hard conflicts) |
double |
getWeight()
Weight of the criterion |
double |
getWeightedBest()
Weighted best value of the objective (value in the best solution). |
double |
getWeightedValue()
Weighted value of the objectives |
double |
getWeightedValue(Collection<V> variables)
Weighted value of a part of the problem (given by the collection of variables) |
double |
getWeightedValue(T value,
Set<T> conflicts)
Weighted value of a proposed assignment (including hard conflicts) |
void |
inc(double value)
Outside update of the criterion (usefull when the criterion is driven by a set of constraints). |
Methods inherited from interface net.sf.cpsolver.ifs.model.ModelListener |
---|
afterAssigned, afterUnassigned, beforeAssigned, beforeUnassigned, constraintAdded, constraintRemoved, init, variableAdded, variableRemoved |
Methods inherited from interface net.sf.cpsolver.ifs.model.InfoProvider |
---|
getInfo, getInfo |
Method Detail |
---|
double getValue()
double getWeightedValue()
double[] getBounds()
double getWeightedBest()
double getBest()
double getWeight()
double getWeightedValue(T value, Set<T> conflicts)
double getValue(T value, Set<T> conflicts)
double getWeightedValue(Collection<V> variables)
double getValue(Collection<V> variables)
double[] getBounds(Collection<V> variables)
String getName()
void inc(double value)
void bestSaved()
void bestRestored()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |