OPL CPLEX – Using Multiobjective Optimization with Distinct KPIs

can you rewrite your kpis into

dexpr float kpis[i in 1..4] = (i==1)?a:((i==2)?b:((i==3)?c:d));

?

dvar int a;
dvar int b;
dvar int c;
dvar int d;

dexpr float kpis[i in 1..4] = (i==1)?a:((i==2)?b:((i==3)?c:d));

float weights[i in 1..4] = 1; 
int priorities[1..4] = [1,2,3,3]; 
float abstol[i in 1..4] = 0.001; 
float reltol[i in 1..4] = 0.001; 

minimize staticLexFull(kpis,weights,priorities,abstol,reltol);;
subject to
{
  
}

works fine

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top