Maximum function in Gurobi API C++

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.



from Recent Questions - Stack Overflow https://ift.tt/3lgeX1A
https://ift.tt/eA8V8J

Comments

Popular posts from this blog

Today Walkin 14th-Sept

Spring Elasticsearch Operations

Hibernate Search - Elasticsearch with JSON manipulation