I'm solving a problem using an objective such as
model.add(IloMinimize(env, cost_C ));
Based on the optimal value, I take a copy from the model, modify it by adding some constraints and changing the objective. when I try to solve the new model, I receive an error " IloCplex can not handle multiple objectives". The following shows the procedure:
IloModel model3(env); cplex.extract(model3); model3.add(model); . . . model3.add(IloMinimize(env, cost_W + cost_Wo)); . . cplex.solve();
Any help of why I got the error message.