operator –


operator -

Create a new expression by subtracting one Gurobi object from another.

GRBLinExpr operator - ( GRBLinExpr expr1,
    GRBLinExpr expr2 )

Arguments:

expr1: First linear expression argument.

expr2: Second linear expression argument.

Return value:

A linear expression that is equal to the first expression minus the second.

GRBQuadExpr operator - ( GRBQuadExpr expr1,
    GRBQuadExpr expr2 )

Arguments:

expr1: First quadratic expression argument.

expr2: Second quadratic expression argument.

Return value:

A quadratic expression that is equal to the first expression minus the second.