Originally posted by: BDoppelganger
hello, everybody.
I'm using CP optimizer C++ API to optimize an problem(version 12.1). The optimum is to minimize the biggest one in a multi-dimension array. For example, minimizing the max(A
][). Here is my code:
IloExpr b(env);
for(int s=0;s<dimension1;s++)
{for(int y=0;y<dimension2;y++)
{model.add(b>=A[s][y]);}
model.add(IloMinimize(env,b));
But the model can't get the right solution. I can make sure that the rest of the code is correct. Can anybody help me find out where the problem is or give me a doable way to solve this. Thanks a lot.
#CPLEXOptimizers#DecisionOptimization