Build error on version update in C#
AnsweredHi, when I update Gurobi 9.1.0.0 to Gurobi 9.5.2.0 I get a build error
I have added the code below,
Model solveModel = new Model(this.model, new string[0]);
var result = solveModel.Solve();
if (result == 0)
{
solution = solveModel.Solution;
}
It works on 9.1 and gets the error on the line,
Model solveModel = new Model(this.model, new string[0]);
the error is,
Error CS0012 The type 'GRBModel' is defined in an assembly that is not referenced. You must add a reference to assembly 'Gurobi91.NET, Version=9.1.0.0
-
Official comment
This post is more than three years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum, or try Gurobot, our chatbot interface offering instant, expert-level support. -
Hi Vijesh,
I think you may have to update your system environment variables.
See the bottom of Software Installation Guide.
Cheers,
David0
Post is closed for comments.
Comments
2 comments