Originally posted by: PhilippeLaborie
On which class are you calling setMin ?
If you are calling it on a concert model variables (e.g. IloIntVar::setMin(20)), it will change the domain of the variable *in the model*, not in the engine.
If you are calling it during the searcj on an engine variable (e.g. IlcIntVar::setMin(20)), then it will change it in a reversive way in the engine: any search node below the current one will see the new domain but the new domain restriction will be removed if you backtrack above the current node. This is typically used for taking decisions in the search tree or during constraint propagation.
You get the engine variable (e.g. IlcIntVar) from a concert model variable (e.g. IloIntVar) by calling the adequate function on IloCP (e.g. IloCP::getIntVar(IloIntVar)).
Philippe
#CPOptimizer#DecisionOptimization