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
This function defines a maximization objective in a model.

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.