[Cmpl] Error connecting to CPLEX

Mike Steglich mike.steglich at th-wildau.de
Sat Nov 22 12:15:29 EST 2014


The entry ScipFileName = ../Thirdparty/scip/scip-3.1.0.win.x86.msvc.opt.spx.ld.exe is fine.  

As mentioned before, please move the required libs (scip-3.1.0.win.x86.msvc.opt.spx.ld.dll and scip-3.1.0.win.x86.msvc.opt.spx.ld.lib)  into Cmpl/Frameworks …  

> Am 22.11.2014 um 18:08 schrieb Indrajit Sen Gupta <indrajitsg at gmail.com>:
> 
> These are the three files that I have in /Thirdparty/SCIP/
>  
> scip-3.1.0.win.x86.msvc.opt.spx.ld.dll
> scip-3.1.0.win.x86.msvc.opt.spx.ld.exe
> scip-3.1.0.win.x86.msvc.opt.spx.ld.lib
>  
> And this is the line in /bin/cmpl.opt
>  
> ScipFileName = ../Thirdparty/SCIP/scip-3.1.0.win.x86.msvc.opt.spx.ld.exe
>  
> Regards,
> Indrajit
>  
>  
> 
> On Sat, Nov 22, 2014 at 10:20 PM, Mike Steglich <mike.steglich at th-wildau.de <mailto:mike.steglich at th-wildau.de>> wrote:
> The following entries are working on my Windows test system:
> 
> CbcPath = ../Thirdparty/CBC/
> GlpkPath =  ../Thirdparty/GLPK/
> ScipFileName = ../Thirdparty/scip/scip.exe
> CplexFileName = 
> 
> 
> It works as expected when I include the CMPL header entry %arg -solver scip in my model.
> 
> Please copy the required DLLs into CMPL/Frameworks or in another folder that is in the search path.
> 
> This should work similar for Cplex.
> 
> Cheers,
> 
> Mike
> 
> 
> 
>> Am 22.11.2014 um 16:41 schrieb Indrajit Sen Gupta <indrajitsg at gmail.com <mailto:indrajitsg at gmail.com>>:
>> 
>> I tried all of the above and some more - but none worked.
>>  
>> I tried putting ../../ before the path to filename. So the full path would look like: ../../AMPL/ampl/cplex.exe
>>  
>> I even copied cplex.exe and cplex1260.dll into a folder under Thirdparty and tried running it with filename path as: ../Thirdparty/CPLEX/cplex.exe
>>  
>> Regards,
>> Indrajit
>>  
>> 
>> On Sat, Nov 22, 2014 at 3:02 PM, Mike Steglich <mike.steglich at th-wildau.de <mailto:mike.steglich at th-wildau.de>> wrote:
>> Hi Indrajit,
>> 
>> It is unfortunately not possible to use drive letters to specify where Cplex is located.  Furthermore please use / instead of \. e.g. /DPF/Ampl/ampl/cplex.exe.
>> 
>> Cheers,
>> 
>> Mike
>> 
>> 
>> 
>> > Am 22.11.2014 um 09:29 schrieb Kamil Figiela <kfigiela at agh.edu.pl <mailto:kfigiela at agh.edu.pl>>:
>> >
>> > Probably it should say:
>> >
>> > CplexFileName = D:\DPF\AMPL\ampl\cplex.exe
>> >
>> > Best,
>> > Kamil
>> >
>> >> Wiadomość napisana przez Indrajit Sen Gupta <indrajitsg at gmail.com <mailto:indrajitsg at gmail.com>> w dniu 22 lis 2014, o godz. 05:56:
>> >>
>> >> Hi Mike,
>> >>
>> >> I have a CPLEX demo version which came with AMPL demo version. I tried to use this solver with the option:
>> >>
>> >> %arg -solver cplex
>> >>
>> >> and with the following line in cmpl.opt file:
>> >>
>> >> CplexFileName = D:\DPF\AMPL\ampl\
>> >>
>> >> This is the path to the folder where cplex.exe is located. When I try to execute a model it says
>> >>
>> >> Error (interfaces): can not connect the solver: Cplex ->
>> >>
>> >> Any idea why this is happening?
>> >>
>> >> Regards,
>> >> Indrajit
>> >>
>> >> _______________________________________________
>> >> Cmpl mailing list
>> >> Cmpl at list.coin-or.org <mailto:Cmpl at list.coin-or.org>
>> >> http://list.coin-or.org/mailman/listinfo/cmpl <http://list.coin-or.org/mailman/listinfo/cmpl>
>> >
>> >
>> > _______________________________________________
>> > Cmpl mailing list
>> > Cmpl at list.coin-or.org <mailto:Cmpl at list.coin-or.org>
>> > http://list.coin-or.org/mailman/listinfo/cmpl <http://list.coin-or.org/mailman/listinfo/cmpl>
>> 
>> _______________________________________________
>> Cmpl mailing list
>> Cmpl at list.coin-or.org <mailto:Cmpl at list.coin-or.org>
>> http://list.coin-or.org/mailman/listinfo/cmpl <http://list.coin-or.org/mailman/listinfo/cmpl>
> 
> _______________________________________________
> Cmpl mailing list
> Cmpl at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/cmpl

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/cmpl/attachments/20141122/59231974/attachment.html>


More information about the Cmpl mailing list