Hi @leonie25, welcome to the forum ![]()
Gurobi’s support for nonlinear constraints is a very recent feature. You need to install Gurobi v12.
You can check which version of Gurobi you are running with
import Gurobi
Gurobi._GUROBI_VERSION
We should be able to automatically install Gurobi v12, so do:
import Pkg
Pkg.update()
then restart Julia.
If that doesn’t work, please run
import Pkg
Pkg.status()
and let me know what the output is.