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
-
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
Please sign in to leave a comment.
Comments
1 comment