I am solving a constraint programming model by CP optimizer. There are two sets of decision variables in the model as follows:
IloIntVarArray W(envvv, 20, 0, 10);
IloIntVarArray S(envvv, 20, 0, 10);
I want to use the following variable ordering in the CP search:
W, S , W, S , W , S , … , W[i-1],S[i-1],W[i],S[i] , ...
How can I implement this variable ordering?
IloSearchPhase accepts only one set of variables and if I use IloSearchPhaseArray cp optimizer decide about one set of variables first (for example W) and then the other set (for example S) which is not what I am looking for.
Thanks in advance for your help