GRBModel.GetObjective()


GRBModel.GetObjective()

Retrieve the model objective.

Note that the constant and linear portions of the objective can also be retrieved using the ObjCon and Obj attributes.

GRBExpr GetObjective ( )

    Return value:

    The model objective.