Home > Back-end >  While performing multiobjective optimization, cplex status = -1. why?
While performing multiobjective optimization, cplex status = -1. why?

Time:12-04

I have entered three objectives in my problem. The problem shown is as follows:

Description    Resource    Path    Location    Type Exception from IBM ILOG CPLEX: 19118; 15 Unknown OPL Problem Marker CPLEX status = -1

Description    Resource    Path    Location    Type IBM ILOG CPLEX Exception: MultipleObjException: IloCplex cannot handle multiple objectives. Unknown OPL Problem Marker 19118;15 My objective functions are;

minimize 0.5*(sum(i in tavail)0.5*((pt[i]-pl[i])));

maximize 0.25*(sum (i in tavail)(sum (j in number)(c[i]*pevdis[i][j])));

minimize 0.25* (sum (i in tavail)(sum (j in number)(c[i]*pevch[i][j])));

CodePudding user response:

In a model you can have 0 or 1 (Maximize or Minimize)

But you can write

minimize 0.5*(sum(i in tavail)0.5*((pt[i]-pl[i])))

- 0.25*(sum (i in tavail)(sum (j in number)(c[i]*pevdis[i][j])))

 0.25* (sum (i in tavail)(sum (j in number)(c[i]*pevch[i][j])));

or if you want to rely on lexicographic multiobjective

minimize staticLex(0.5*(sum(i in tavail)0.5*((pt[i]-pl[i]))),

-0.25*(sum (i in tavail)(sum (j in number)(c[i]*pevdis[i][j])),

 0.25* (sum (i in tavail)(sum (j in number)(c[i]*pevch[i][j]))));

PS:

You ask many questions so let me share some entry points for learning more about cplex

  • Related