0

I have an OPL CP model in IBM ILOG CPLEX. It is possible only to set CP search phases with decision variable, variable chooser and value chooser.

Somehow like that :

execute {
var f = cp.factory;

var phase1 = f.searchPhase(slot, 
          f.selectSmallest(f.varIndex(slot)), 
          f.selectLargest(f.explicitValueEval(values, valueEval, 0)));

cp.setSearchPhases(phase1);}

Is there any option to set search phases with decision variable, value chooser but without variable chooser?

1 Answer 1

0

execute { var f = cp.factory;

var phase1 = f.searchPhase(slot, f.selectRandomVar(), f.selectLargest(f.explicitValueEval(values, valueEval, 0)));

cp.setSearchPhases(phase1);

}

regards

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.