我想在Win 7錯誤在Win 7調用從C#(4.0)VS .NET 2013 cplex.dll
我已經安裝了優化,從.NET VS 2013調用CPLEX(一mathimatical優化)的。框架。
我已經在代碼中添加
using Optimization.Solver.Cplex;
。
我嘗試在運行示例:
http://www-01.ibm.com/support/docview.wss?uid=swg21400073&aid=1
我註釋掉
//using ILOG.Concert;
//using ILOG.CPLEX;
它可以建成。但是,我得到了錯誤:
Unable to load DLL 'cplex100.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
我將DLL更改爲cplex.dll但出現同樣的錯誤。 在
using Optimization.Solver
當我鍵入Ctrl +空格鍵,我可以看到,它包含了許多求解器,包括CPLEX。
爲什麼我得到這個錯誤。
感謝
我從來沒有在我的機器上安裝CPLEX100.dll。當我添加「使用Optimization.Solver.Cplex;」時,我認爲CPLEX100.dll已被嵌入到Visual Studio中。現在,我認爲我錯了。我需要自己安裝CPLEX100.dll。 visual studio只爲CPLEX100.dll提供一個界面,對嗎? – user3601704 2015-04-01 12:32:16