This page describes macros and functions related to linear and quadratic objective functions only, unless otherwise indicated. For nonlinear objective functions, see Nonlinear Modeling.
To update a term in the objective function, see
To query the optimal objective value or best known bound after a solve, see
objective_bound. These two functions apply to nonlinear objectives also. The optimal value of the dual objective can be obtained via