min_ ( variables )
Used to set a decision variable equal to the minimum of a list of decision variables (or constants). You can pass the arguments as a Python list or as a comma-separated list.
m.addConstr(z == min_(x, y, 3)) m.addConstr(z == min_([x, y, 3]))
Returns a GenExpr object.