Cookie Settings

Try our new documentation site (beta).

Filter Content By
Version
Table of contents
Filter by Language
C API Details
C++ API Details
GRBModel +
Java API Details
GRBModel +
.NET API Details
GRBModel +
Python API Details
Model +
Attributes
Parameters
Parameter Descriptions +


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 trade-off 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);