Skip to main content

Type Alias: ObjectiveValue

ObjectiveValue: undefined | number | null | (number | null)[]

Objective value of the solution. Model can specify an objective to Model.minimize or Model.maximize. When a solution is found, the value of the objective is stored in this object.

If the model did not specify an objective then ObjectiveValue is undefined. Objective value is absent (see optional IntExpr) is translated into JavaScript null.

In case of multi-objective optimization (not implemented), this object contains an array of individual objective values.

See