GRBModel::getObjective()

Retrieve a quadratic model objective.

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

GRBQuadExpr getObjective ( )

    Return value:

    The model objective.