Originally posted by: ncg777
Hi!
I'm porting rather old C++ code from using ILOG Solver to using CP Optimizer. I figured that I need to use the CP Optimizer Extensions API to do that. But it gets a little bit complicated.
Somewhere in the code, there are calls to IloBestGenerate, but it seems this function does not exist anymore. The closest replacement I found was IlcBestGenerate, but it takes an IlcIntVarArray as input and what I got is an IloIntVarArray. I tried to change the type of my array from an IloIntVarArray to an IlcIntVarArray, but it has a cascading effect that forces me to change the types of other variables from the Ilo... types to the Ilc... types, until I hit a dead end where an IloIntExpr needs to be converted to an Ilc... type. I tried IlcIntExp, but the code uses an overload of += that IlcIntExp does not seem to have.
Can I and if so how can I convert an IloIntVarArray to an IlcIntVarArray? I think that it would solve the problem right away.
I'm not very experienced with this technology. I still have much to learn. Any help, any clue would be very nice.
#CPOptimizer#DecisionOptimization