Documentation

Model.discardMultiobjEnvs()


Model.discardMultiobjEnvs()

discardMultiobjEnvs ( )

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.

Use getMultiobjEnv to create a multi-objective environment.

Example usage:

  env0 = model.getMultiobjEnv(0)
  env1 = model.getMultiobjEnv(1)

  env0.setParam('Method', 2)
  env1.setParam('Method', 1)

  model.optimize()

  model.discardMultiobjEnvs()