I am trying to call CPLEX (a mathimatical optimizer) from .NET Visual Studio 2013 on win 7. I have installed optimization.framework. I have added
in the code. I try to run the example at:
I commented out
It can be built. But, I got error:
I change the DLL to cplex.dll but the same error. In
when I typed ctrl+space , I can see that it includes many solvers, including CPLEX. Why i got this error. thanks |
Your procedure is correct, but the example "LPex1.cs" in provided link (http://www-01.ibm.com/support/docview.wss?uid=swg21400073&aid=1) is not. The correct example is here. There's no such thing as "cplex100.dll". An implementable DLL file for running CPLEX projects should comply with the FORMAT "CPLEX$.dll" in which the dollar sign stands for your CPLEX version. For example, "CPLEX1260.dll". |
You need to locate @fbahr, I have never installed CPLEX100.dll in my machine. When I added "using Optimization.Solver.Cplex;", I thought that the CPLEX100.dll has been embedded in the visual studio. Now, I think I was wrong. I need to install CPLEX100.dll myself. visual studio only provides an interface for CPLEX100.dll, right ?
(01 Apr '15, 08:31)
usa
You need to know where your dll is. Then you need to add it to your references. "Using" only applies to references added to your project.
(01 Apr '15, 09:00)
JF Meier
|