Skip to main content
FRAMES NO FRAMES

IloMaximize

public IloObjective IloMaximize(const IloEnv env, IloNum constant=0.0, const char * name=0)
public IloObjective IloMaximize(const IloEnv env, const IloNumExprArg expr, const char * name=0)
Definition file: ilconcert/ilolinear.h
Defines a maximization objective.

This function defines a maximization objective in a model. In other words, it simply offers a convenient way to create an instance of IloObjective with its sense defined as Maximize. However, an instance of IloObjective created by IloMaximize may not necessarily maintain its sense throughout the lifetime of the instance. The optional argument name is set to 0 by default.

You may define more than one objective in a model. However, algorithms conventionally take into account only one objective at a time.


IloMaximize

public IloObjective IloMaximize(const IloEnv env, const IloMultiCriterionExpr expr, const char * name=0)
Definition file: ilconcert/ilolinear.h
Defines a maximization multi-criterion objective.

This function defines a maximization multi-criterion objective in a model. In other words, it simply offers a convenient way to create an instance of IloObjective with its sense defined as Maximize. However, an instance of IloObjective created by IloMaximize may not necessarily maintain its sense throughout the lifetime of the instance. The optional argument name is set to 0 by default.