Hide navigation sidebar
Hide table of contents sidebar
Back to top
Toggle table of contents sidebar

# GRBExpr

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.

    Return value:

      Value of the expression for the current solution.

Help and Feedback

Press `/` or click to search this documentation | Gurobi website | Gurobi community forum
Go to other Gurobi documentation | Gurobi download | Contact support