C++ API - GRBExpr#

class GRBExpr#

Abstract base class for the GRBLinExpr and GRBQuadExpr classes. Expressions are used to build objectives and constraints. They are temporary objects that typically have short lifespans.

double getValue()#

Compute the value of an expression for the current solution.

Returns:

Value of the expression for the current solution.