Module org.chocosolver
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 double
evaluate(SetVar variable)
Evaluates the heuristic that is minimized in order to find the best variableSetVar
getVariable(SetVar[] variables)
Provides access to the current selected variable amongvariables
.
-
-
-
Method Detail
-
getVariable
public SetVar getVariable(SetVar[] variables)
Description copied from interface:VariableSelector
Provides access to the current selected variable amongvariables
. If there is no variable left, returnnull
.- Specified by:
getVariable
in interfaceVariableSelector<SetVar>
- Returns:
- the current selected variable if any,
null
otherwise.
-
evaluate
public double evaluate(SetVar variable)
Description copied from interface:VariableEvaluator
Evaluates the heuristic that is minimized in order to find the best variable- Specified by:
evaluate
in interfaceVariableEvaluator<SetVar>
- Parameters:
variable
- array of variable- Returns:
- the result of the evaluation, to minimize
-
-