In the Java API for CPLEX (presumably similar in other APIs), it is possible to create an objective and add it to a model in one function call, using overloads of IloCplexModeler.addMinimize() and .addMaximize() that take an IloNumExpr argument. Doing the same with multiple objectives requires chaining function calls (e.g. staticLex() -> minimize() -> addMinimize()). This could (should?) be simplified.
|Who would benefit from this IDEA?||Anyone programming multiobjective models in CPLEX using a relevant API.|
How should it work?
Add overloads of addMinimize() and addMaximize() that accept IloCplexMultiCriterionExpr in lieu of IloNumExpr.
|Priority Justification||There is currently a straightforward, if mildly tedious, workaround, once you realize the "obvious" way (addMinimize(staticLex(...))) does not work.|
|Customer Name||Paul Rubin|
NOTICE TO EU RESIDENTS: per EU Data Protection Policy, if you wish to remove your personal information from the IBM ideas portal, please login to the ideas portal using your previously registered information then change your email to "email@example.com" and first name to "anonymous" and last name to "anonymous". This will ensure that IBM will not send any emails to you about all idea submissions