Hello,
I have been using CP Optimizer for the past few months and I master the basics. Now I would like to get further and use search phases in order to get solutions faster. I have only one small group of variables that I want to fix early in the process, with no priority relation between them.
My problem is that I have tried a few different ways and each of them leads to errors. I am using the Java API and I have not found many examples for this API on the internet. I think that I do not manipulate IloIntVarArray and IloSearchPhase objects properly…
Here is a simplified version of how I proceed :
IloIntVarArray keyVarArray = new ilog.concert.cppimpl.IloIntVarArray();
for(IloIntVar var : [my key variables]) {
keyVarArray.add(var);
}
cp.setSearchPhases((IloSearchPhase) keyVarArray);
This does not lead to any compiling error but then when I run the code I get the following error at .add(var)
Error : java.lang.RuntimeException: internal error (Please notify IBM)
I have tried to add a : keyVarArray .getSize(); right after the initialization of keyVarArray and it leads to the same error...
Would you please help me find what I am doing wrong.
Thank's a lot !
PS : I do not use environment, if this is my main problem let me know…
------------------------------
Louis Marot
------------------------------
#DecisionOptimization