Maximum function in Gurobi API C++

  c++, constraints, gurobi

I need to add the following constraint to my model written in C++ to call Gurobi

max{x_1-x_2, 0} >= 1

I have found addGenConstrMax, but this adds the maximum constraints directly, and in my case I need the maximum to be greater than 1.

Source: Windows Questions C++

LEAVE A COMMENT