Documentation

abs_()


abs_()

abs_ ( variable )

Used to set a decision variable equal to the absolute value of another decision variable.

Example usage:

  m.addConstr(y == abs_(x))

Return value:

Returns a GenExpr object.