How do I set up Mathematica to use the commercial Gurobi optimizer? Mathematica should be able to use it, as the Method -> "Gurobi" option exists for various optimization functions. I do have an academic license for Gurobi, and the Gurobi shell recognizes it correctly on my machine. However, Mathematica does not:
ConvexOptimization[x + 2 y, {x^2 + y^2 <= 1}, {x, y}, Method -> "Gurobi"]
ConvexOptimization::opmlicwf: The method Gurobi cannot be used since a valid
license could not be found. See get a license for Gurobi.
The Mathematica workflow, to which the error message points, does not really help.
(Windows 10, 64bits, Mathematica 13.3, Gurobi 11.0, installed automatically to C:\\gurobi1100.)
gurobi.licfile is already on my$Path. $\endgroup$ConexOptimizationwith Gurobi in the past, but it was on an old laptop and I did not save the notebook. $$ $$ I cannot say this with 100% certainty, but if I remember correctly you need to use GurobiLink to interface between Mathematica and Gurobi software $\endgroup$