Originally posted by: Philippe_Refalo
This is rather easy to do in CP Optimizer. If you are in C++, you need to specify a search phase when solving the problem. For instance
cp.solve(IloSearchPhase(env, xArray))
tells CP Optimizer to start instantiating variables in array xArray, the other variables will be instantiated afterwards if necessary.
This is the most basic use of search phases. You can specify several and define the way variables and values will be instantiated. Look at the chapter "Ordering variables and values" in the reference manual to see the possibilities.
Philippe
#CPOptimizer#DecisionOptimization