GRBdiscardmultiobjenvs

void GRBdiscardmultiobjenvs ( GRBmodel *model )

Discard all multi-objective environments associated with the model, thus restoring multi objective optimization to its default behavior.

Please refer to the discussion of Multiple Objectives for information on how to specify multiple objective functions and control the tradeoff between them.

Arguments:

model: The model in which all multi objective environments will be discarded.

Example usage:

  GRBenv *env0 = GRBgetmultiobjenv(model,0);
  GRBenv *env1 = GRBgetmultiobjenv(model,1);

  GRBsetintparam(env0, "Method", 2);
  GRBsetintparam(env1, "Method", 1);

  GRBoptimize(model);

  GRBdiscardmultiobjenvs(model);

Try Gurobi for Free

Choose the evaluation license that fits you best, and start working with our Expert Team for technical guidance and support.

Evaluation License
Get a free, full-featured license of the Gurobi Optimizer to experience the performance, support, benchmarking and tuning services we provide as part of our product offering.
Academic License
Gurobi supports the teaching and use of optimization within academic institutions. We offer free, full-featured copies of Gurobi for use in class, and for research.
Cloud Trial

Request free trial hours, so you can see how quickly and easily a model can be solved on the cloud.

Search