addObjective()

This method adds an objective, specified by a JSON object containing paramId, type, and value, to the formulation.

This page discusses:

Arguments

  • paramId: String identifying the parameter for which the objective will be defined .
  • type: Type of objective to be added. Valid types are MAXIMIZE, MINIMIZE, AVOID, and TARGET.
  • value: Value of the objective. Valid only for objectives of types TARGET and AVOID, for which the value parameter must be supplied.

Return Value

Returns a dictionary-like object describing the newly created objective.

paramId is the id attribute on the parameter objects used by methods in the Parameter API.