abs_()


abs_()

abs_ ( argvar )

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

Arguments:

argvar (Var): The variable whose absolute value will be taken.

Example usage:

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

Return value:

Returns a GenExpr object.