Run an example in C #, but I get an Exception.
AnsweredHellow
I am trying to run an example in C #, but I get an Exception.

I already included the * .dll from the gurobi folder.

At this link is my source code:
thanks for your help
JC
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 why not try our AI Gurobot?. -
Hi JC,
the exception "Bad Image XYZ" in C# typically refers to the 32-bit/64-bit build. By default, Visual Studio builds using "Any CPU", i.e. it tries to build for both 32-bit and 64-bit machines. However, Gurobi is built for 64-bit systems (as it is a computationally heavy task), so I suggest you try to create a new Configuration using x64. You can check e.g. this stackoverflow post.
Best
Richard
0
Post is closed for comments.
Comments
2 comments