Originally posted by: Ketov
Dear colleagues,
I am using Concert C++ API and after a decomposition a an optimization problem I have solved several subproblems als cplex instances. I would now like to write a function which will put these solutions into one single IloCplex Instance in order to use the existing readout. I tried to do this through the setVectors functionality in the cplex instances (there without the decomposition)
//Put all IloNumVar Instanzes into ArrayDecisionvariables and values into ArrayValues
/* */
cplex_master.setVectors(ArrayValues, 0, ArrayDecisionvariables, 0, 0, 0);
cplex_master.setParam(IloCplex::TreLim ,0);
cplex_master.setParam(IloCplex::TiLim, 0);
cplex_master.solve();
I do not want to execute the optimization, but without the cplex instance cannot be used for a readout with IloCplex::getValue(). Is there any better way to do this? This approch leads to errors because obviously cplex cannot find the solution.
Thank you very much!
Ketov
#CPLEXOptimizers#DecisionOptimization