Class MyInputOrder<V extends org.chocosolver.solver.variables.Variable>
java.lang.Object
org.btrplace.scheduler.choco.constraint.mttr.MyInputOrder<V>
- All Implemented Interfaces:
org.chocosolver.solver.search.strategy.selectors.variables.VariableSelector<V>
public class MyInputOrder<V extends org.chocosolver.solver.variables.Variable> extends Object implements org.chocosolver.solver.search.strategy.selectors.variables.VariableSelector<V>
A clone of
InputOrder
It only calls CObjective.postCostConstraints()
before choosing a variable if not null- Author:
- Fabien Hermenier
-
Constructor Summary
Constructors Constructor Description MyInputOrder(org.chocosolver.solver.Solver s)
New heuristic.MyInputOrder(org.chocosolver.solver.Solver s, CObjective o)
New heuristic. -
Method Summary
Modifier and Type Method Description V
getVariable(V[] variables)
-
Constructor Details
-
MyInputOrder
New heuristic.- Parameters:
s
- the solver in useo
- an optional objective to consider
-
MyInputOrder
public MyInputOrder(org.chocosolver.solver.Solver s)New heuristic.- Parameters:
s
- the solver in use
-
-
Method Details
-
getVariable
- Specified by:
getVariable
in interfaceorg.chocosolver.solver.search.strategy.selectors.variables.VariableSelector<V extends org.chocosolver.solver.variables.Variable>
-