genconstrnl (deprecated)#

Function constraints (such as addGenConstrExp) and General Nonlinear constraints (addGenConstrNL) are deprecated in Gurobi 14. You should update your code to use nonlinear constraints instead. Refer to the nonlinear constraints example.

The original example can be found in the Gurobi 13.0 documentation.