Class MinDelta
- java.lang.Object
-
- org.chocosolver.solver.search.strategy.selectors.variables.MinDelta
-
- All Implemented Interfaces:
VariableEvaluator<SetVar>,VariableSelector<SetVar>
public class MinDelta extends Object implements VariableSelector<SetVar>, VariableEvaluator<SetVar>
Selects the variables minimising envelopeSize-kernelSize (quite similar to minDomain, or first-fail)- Since:
- 6/10/13
- Author:
- Jean-Guillaume Fages
-
-
Constructor Summary
Constructors Constructor Description MinDelta()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doubleevaluate(SetVar variable)Evaluates the heuristic that is minimized in order to find the best variableSetVargetVariable(SetVar[] variables)Provides access to the current selected variable amongvariables.
-
-
-
Method Detail
-
getVariable
public SetVar getVariable(SetVar[] variables)
Description copied from interface:VariableSelectorProvides access to the current selected variable amongvariables. If there is no variable left, returnnull.- Specified by:
getVariablein interfaceVariableSelector<SetVar>- Returns:
- the current selected variable if any,
nullotherwise.
-
evaluate
public double evaluate(SetVar variable)
Description copied from interface:VariableEvaluatorEvaluates the heuristic that is minimized in order to find the best variable- Specified by:
evaluatein interfaceVariableEvaluator<SetVar>- Parameters:
variable- array of variable- Returns:
- the result of the evaluation, to minimize
-
-