Originally posted by: SystemAdmin
Hi,
Here's my problem : I have two MILP that I compute one after the other.
The second one uses the same data as the first one and some result from the first optimization.
In order to be able add cuts an to use heuristics easily, I computed my problem in C++,
But to be able to change fastely the model, I computed it in OPL.
So, I import the .mod and .data with the associated functions, but IloOplModel does non have an add() method, so I canot add the constraints that use first optimization data.
And I don't want to have to write an .dat file and then add it as a second Source for the problem because I think this is stupid to write a file to open it right away. Thus, I don't know if that is possible...
Is there a way to convert an IloOplModel into a IloModel once it has been initialized with its .mod and .dat files ?
Thanks for your time,
Adrian
#DecisionOptimization#OPLusingCPLEXOptimizer