<div dir="ltr"><div>Hi Mike,</div><div><br></div><div>there are no specific characters in the path of the programs nor in the path of the file, apart from the directory Lokaler Datenträger (C:). I changed the name of the directory C:, but this didn't help either. I also tried to change from backslash to slash inside the path..</div><div><br></div><div>I am trying to install all of the software on another computer in the Home directory, but as there are now programs in my Home folder at the moment, I don't think this will change anything. <br></div><div><br></div><div>Given the fact that Cplex is running on its own aswell, I am also able to reach my goals without calling Cplex from Coliop. So I think I will use the export to free mps feature to use Cplex.<br></div><div><br></div><div>Thanks,</div><div>Hendrik<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Am Do., 25. März 2021 um 12:41 Uhr schrieb <<a href="mailto:mike.steglich@th-wildau.de">mike.steglich@th-wildau.de</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;" lang="DE"><div class="gmail-m_5203780883228171759WordSection1"><p class="MsoNormal"><span lang="en-DE">Hi Hendrik.<u></u><u></u></span></p><p class="MsoNormal"><span lang="en-DE"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="en-DE">Hmm ... I tried to solve your problem also with Cplex 20.1 using the following entry in cmpl.opt.<u></u><u></u></span></p><p class="MsoNormal"><span lang="en-DE">CplexFileName = \Program Files\IBM\ILOG\CPLEX_Studio201\cplex\bin\x64_win64\cplex.exe<u></u><u></u></span></p><p class="MsoNormal"><span lang="en-DE"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="en-DE">I am able to find a solution.<u></u><u></u></span></p><p class="MsoNormal"><span lang="en-DE"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="en-DE">Are there some specific characters in your path and/or filename. (e.g. the German ö,Ü etc.)? Another issue could be a mapped drive. We have some problems with Cmpl in the computer labs of our university in which the students have a network drive which is mapped to the Home folder. <u></u><u></u></span></p><p class="MsoNormal"><span lang="en-DE"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="en-DE">Thanks,<u></u><u></u></span></p><p class="MsoNormal"><span lang="en-DE"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="en-DE">Mike<u></u><u></u></span></p><p class="MsoNormal"><span lang="en-DE"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p><div style="border-color:rgb(225,225,225) currentcolor currentcolor;border-style:solid none none;border-width:1pt medium medium;padding:3pt 0cm 0cm"><p class="MsoNormal"><b>Von:</b> Hendrik Titgemeyer <<a href="mailto:hendrik2702@gmail.com" target="_blank">hendrik2702@gmail.com</a>> <br><b>Gesendet:</b> 25 March 2021 09:12<br><b>An:</b> <a href="mailto:mike.steglich@th-wildau.de" target="_blank">mike.steglich@th-wildau.de</a><br><b>Cc:</b> <a href="mailto:cmpl@list.coin-or.org" target="_blank">cmpl@list.coin-or.org</a><br><b>Betreff:</b> Re: [Cmpl] Problems with other solvers<u></u><u></u></p></div><p class="MsoNormal"><u></u> <u></u></p><div><div><p class="MsoNormal">Hi Mike,<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">thank you very much for the quick reply and the helpful information!<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Gurobi and the SCIP Solver are now working as well. Only the Cplex Solver has the same output as before, even though the cmpl.opt file for Cplex is just the same as yours. I think Coliop calls Cplex, but Cplex is not able to read the produced file:<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p style="margin:0cm;white-space:pre-wrap"><i>CMPL model generation - finished</i><u></u><u></u></p><p style="margin:0cm;white-space:pre-wrap"><i>Solver - running</i><u></u><u></u></p><p style="margin:0cm;white-space:pre-wrap"><u></u> <u></u></p><p style="margin:0cm;white-space:pre-wrap"><i>Welcome to IBM(R) ILOG(R) CPLEX(R) Interactive Optimizer 20.1.0.0</i><u></u><u></u></p><p style="margin:0cm;white-space:pre-wrap"><i>with Simplex, Mixed Integer & Barrier Optimizers</i><u></u><u></u></p><p style="margin:0cm;white-space:pre-wrap"><i>5725-A06 5725-A29 5724-Y48 5724-Y49 5724-Y54 5724-Y55 5655-Y21</i><u></u><u></u></p><p style="margin:0cm;white-space:pre-wrap"><i>Copyright IBM Corp. 1988, 2020. All Rights Reserved.</i><u></u><u></u></p><p style="margin:0cm;white-space:pre-wrap"><u></u> <u></u></p><p style="margin:0cm;white-space:pre-wrap"><i>Type 'help' for a list of available commands.</i><u></u><u></u></p><p style="margin:0cm;white-space:pre-wrap"><i>Type 'help' followed by a command name for more</i><u></u><u></u></p><p style="margin:0cm;white-space:pre-wrap"><i>information on commands.</i><u></u><u></u></p><p style="margin:0cm;white-space:pre-wrap"><u></u> <u></u></p><p style="margin:0cm;white-space:pre-wrap"><i>CPLEX> Cannot interpret file type.</i><u></u><u></u></p><p style="margin:0cm;white-space:pre-wrap"><u></u> <u></u></p><p style="margin:0cm;white-space:pre-wrap"><i>File type options:</i><u></u><u></u></p><p style="margin:0cm;white-space:pre-wrap"><u></u> <u></u></p><p style="margin:0cm;white-space:pre-wrap"><i>ann Model Annotations</i><u></u><u></u></p><p style="margin:0cm;white-space:pre-wrap"><i>bas INSERT format basis file</i><u></u><u></u></p><p style="margin:0cm;white-space:pre-wrap"><i>flt Solution pool filters</i><u></u><u></u></p><p style="margin:0cm;white-space:pre-wrap"><i>lp LP format problem file</i><u></u><u></u></p><p style="margin:0cm;white-space:pre-wrap"><i>min DIMACS min-cost network-flow format file</i><u></u><u></u></p><p style="margin:0cm;white-space:pre-wrap"><i>mps MPS format problem file</i><u></u><u></u></p><p style="margin:0cm;white-space:pre-wrap"><i>mst MIP start file</i><u></u><u></u></p><p style="margin:0cm;white-space:pre-wrap"><i>net CPLEX network-flow format file</i><u></u><u></u></p><p style="margin:0cm;white-space:pre-wrap"><i>ord Integer priority order file</i><u></u><u></u></p><p style="margin:0cm;white-space:pre-wrap"><i>prm Non-default parameter file</i><u></u><u></u></p><p style="margin:0cm;white-space:pre-wrap"><i>sav Binary matrix and basis file</i><u></u><u></u></p><p style="margin:0cm;white-space:pre-wrap"><i>sol Solution file</i><u></u><u></u></p><p style="margin:0cm;white-space:pre-wrap"><i>vmc Virtual Machine Configuration</i><u></u><u></u></p><p style="margin:0cm;white-space:pre-wrap"><u></u> <u></u></p><p style="margin:0cm;white-space:pre-wrap"><u></u> <u></u></p><p style="margin:0cm;white-space:pre-wrap"><i>File type: No problem exists.</i><u></u><u></u></p><p style="margin:0cm;white-space:pre-wrap"><u></u> <u></u></p><p style="margin:0cm;white-space:pre-wrap"><i>No file read.</i><u></u><u></u></p><p style="margin:0cm;white-space:pre-wrap"><u></u> <u></u></p><p style="margin:0cm;white-space:pre-wrap"><u></u> <u></u></p><p style="margin:0cm;white-space:pre-wrap">I already reinstalled Cplex, but the output is the same.<u></u><u></u></p><p style="margin:0cm;white-space:pre-wrap">As you suggested, I saved the problem file as a free MPS file and I was able to run this in CPLEX. So with this procedure I can use CPLEX as well.<u></u><u></u></p><p style="margin:0cm;white-space:pre-wrap"><u></u> <u></u></p><p style="margin:0cm;white-space:pre-wrap">With kind regards,<u></u><u></u></p><p style="margin:0cm;white-space:pre-wrap"><u></u> <u></u></p><p style="margin:0cm;white-space:pre-wrap">Hendrik<u></u><u></u></p><p style="margin:0cm;white-space:pre-wrap"><u></u> <u></u></p><p style="margin:0cm;white-space:pre-wrap"><u></u> <u></u></p></div></div><p class="MsoNormal"><u></u> <u></u></p><div><div><p class="MsoNormal">Am Mi., 24. März 2021 um 12:23 Uhr schrieb <<a href="mailto:mike.steglich@th-wildau.de" target="_blank">mike.steglich@th-wildau.de</a>>:<u></u><u></u></p></div><blockquote style="border-color:currentcolor currentcolor currentcolor rgb(204,204,204);border-style:none none none solid;border-width:medium medium medium 1pt;padding:0cm 0cm 0cm 6pt;margin-left:4.8pt;margin-right:0cm"><div><div><p class="MsoNormal"><span lang="en-DE">Hi Hendrik,</span><u></u><u></u></p><p class="MsoNormal"><span lang="en-DE"> </span><u></u><u></u></p><p class="MsoNormal"><span lang="en-DE">Thank you for being interested in CMPL.</span><u></u><u></u></p><p class="MsoNormal"><span lang="en-DE"> </span><u></u><u></u></p><p class="MsoNormal"><span lang="en-DE">In Cmpl 1.12 is actually a bug regarding Gurobi. Please copy the files you can download from </span><a href="https://nextcloud.th-wildau.de/nextcloud/index.php/s/Y2S5jWenQAFkT4q" target="_blank"><span lang="EN-GB">https://nextcloud.th-wildau.de/nextcloud/index.php/s/Y2S5jWenQAFkT4q</span></a><span lang="en-DE">  in Cmpl/bin to exchange the existing files.  </span><u></u><u></u></p><p class="MsoNormal"><span lang="en-DE"> </span><u></u><u></u></p><p class="MsoNormal"><span lang="en-DE">For Cplex and Scip you need to edit Cmpl/bin/cmpl.opt. The following works on my system:</span><u></u><u></u></p><p class="MsoNormal"><span lang="en-DE"> </span><u></u><u></u></p><p class="MsoNormal"><span lang="en-DE">CbcPath =</span><u></u><u></u></p><p class="MsoNormal"><span lang="en-DE">GlpkPath =  </span><u></u><u></u></p><p class="MsoNormal"><span lang="en-DE">ScipFileName = scip.exe</span><u></u><u></u></p><p class="MsoNormal"><span lang="en-DE">CplexFileName = \Program Files\IBM\ILOG\CPLEX_Studio1210\cplex\bin\x64_win64\cplex.exe</span><u></u><u></u></p><p class="MsoNormal"><span lang="en-DE"> </span><u></u><u></u></p><p class="MsoNormal"><span lang="en-DE">I have copied the scip files into Cmpl/bin (scip.exe, libscip.dll, tbb.dll). Therefore, the Scip entry is only -> scip.exe.</span><u></u><u></u></p><p class="MsoNormal"><span lang="en-DE"> </span><u></u><u></u></p><p class="MsoNormal"><span lang="en-DE">With the Gurobi patch and the entries in cmpl.opt, your problem ran without problems on my system.</span><u></u><u></u></p><p class="MsoNormal"><span lang="en-DE"> </span><u></u><u></u></p><p class="MsoNormal"><span lang="en-DE">To generate a Free Mps file you need to use the command line argument -fm instead -m. -m is for classical MPS which cannot proceed longer names for columns and rows.</span><u></u><u></u></p><p class="MsoNormal"><span lang="en-DE"> </span><u></u><u></u></p><p class="MsoNormal"><span lang="en-DE">Please let me know, whether my hints work for you.</span><u></u><u></u></p><p class="MsoNormal"><span lang="en-DE"> </span><u></u><u></u></p><p class="MsoNormal"><span lang="en-DE">Thanks,</span><u></u><u></u></p><p class="MsoNormal"><span lang="en-DE"> </span><u></u><u></u></p><p class="MsoNormal"><span lang="en-DE">Mike</span><u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><div style="border-style:solid none none;border-width:1pt medium medium;padding:3pt 0cm 0cm;border-color:currentcolor"><p class="MsoNormal"><b>Von:</b> Cmpl <<a href="mailto:cmpl-bounces@coin-or.org" target="_blank">cmpl-bounces@coin-or.org</a>> <b>Im Auftrag von </b>Hendrik Titgemeyer<br><b>Gesendet:</b> 24 March 2021 09:02<br><b>An:</b> <a href="mailto:cmpl@list.coin-or.org" target="_blank">cmpl@list.coin-or.org</a><br><b>Betreff:</b> [Cmpl] Problems with other solvers<u></u><u></u></p></div><p class="MsoNormal"> <u></u><u></u></p><div><div><p class="MsoNormal"><span lang="EN-GB">Hi,</span><u></u><u></u></p></div><div><p class="MsoNormal"><span lang="EN-GB"> </span><u></u><u></u></p></div><div><p class="MsoNormal"><span lang="EN-GB">I have problems solving a VRPTW with Gurobi, CPLEX, SCIP and GLPK. My goal is to compare these solvers for which reason the CMPL package is perfect. I use the Coliop IDE to create the model and I have already solved the problem with the CBC solver, so it should be feasible.</span><u></u><u></u></p></div><div><p class="MsoNormal"><span lang="EN-GB"> </span><u></u><u></u></p></div><div><p class="MsoNormal"><span lang="EN-GB">When I use Gurobi, the solver can't find the produced mps file and the issue with Cplex is that the solver is called but can't read the produced file. I have an academic license for Gurobi and CPLEX, so that might be a problem, but the other solvers also don't run, even though the path is listed in the file Cmpl/bin/cmpl.opt. </span><u></u><u></u></p></div><div><p class="MsoNormal"><span lang="EN-GB"> </span><u></u><u></u></p></div><div><p class="MsoNormal"><span lang="EN-GB">I've read in the Cmpl Archive that copying the .exe/.dll/.lib files from Gurobi, CPLEX etc. in the Cmpl folder might help, but this is not working as well. I've also read about using the Coliop.bat file, which is not existing in the current 1.12.0 version. Cmpl is installed in <i>Programme (x86)</i>, while the solvers are installed in <i>Programme.</i></span><u></u><u></u></p></div><div><p style="margin:0cm;white-space:pre-wrap"><span lang="EN-GB"> </span><u></u><u></u></p></div><div><p class="MsoNormal"><span lang="EN-GB">A second solution for my problem is to export mps files and solve them manually within Gurobi etc., but the command results in an error, because of the length of a constraint:  cmplShell.bat has the following output</span><u></u><u></u></p></div><div><p class="MsoNormal"><span lang="EN-GB"> </span><u></u><u></u></p></div><div><p class="MsoNormal"><span lang="EN-GB">"Cmpl: cmpl C:/Dokumente/(...)/Coliop/VRPTW_Vorlage.cmpl -m C:/Dokumente Studium/Bachelorarbeit/Coliop/VRPTW_Vorlage.mps<br>fatal error: file C:/Dokumente/(...)/Coliop/VRPTW_Vorlage.cmpl line 81: Line name 'line[100]' is too long"</span><u></u><u></u></p></div><div><p class="MsoNormal"><span lang="EN-GB"> </span><u></u><u></u></p></div><div><p class="MsoNormal"><span lang="EN-GB">I hope you can help me with these problems! I attached my file to the mail.</span><u></u><u></u></p></div><div><p class="MsoNormal"><span lang="EN-GB"> </span><u></u><u></u></p></div><div><p class="MsoNormal"><span lang="EN-GB">With kind regards,</span><u></u><u></u></p></div><div><p class="MsoNormal"><span lang="EN-GB">Hendrik</span><u></u><u></u></p></div><div><p class="MsoNormal"><span lang="EN-GB"> </span><u></u><u></u></p></div><div><p class="MsoNormal"><span lang="EN-GB"> </span><u></u><u></u></p></div><div><p class="MsoNormal"><span lang="EN-GB">In the following are the error messages:</span><u></u><u></u></p></div><div><p class="MsoNormal"><b><span lang="EN-GB">Gurobi:</span></b><span lang="EN-GB">  </span><u></u><u></u></p><p style="margin:0cm"><i><span lang="EN-GB">write model instance ...</span></i><u></u><u></u></p><p style="margin:0cm;white-space:pre-wrap"><i><span lang="EN-GB">CMPL model generation - finished</span></i><u></u><u></u></p><p style="margin:0cm;white-space:pre-wrap"><i><span lang="EN-GB">Solver - running</span></i><u></u><u></u></p><p style="margin:0cm;white-space:pre-wrap"><span lang="EN-GB"> </span><u></u><u></u></p><p style="margin:0cm;white-space:pre-wrap"><i><span lang="EN-GB">"C:/Dokumente/Studium/Bachelorarbeit/Coliop" "0" "C:/Users/Hendrik/AppData/Local/Temp/cmpl.H14308.mps" "C:/Users/Hendrik/AppData/Local/Temp/cmpl.H14308.gsol"</span></i><u></u><u></u></p><p style="margin:0cm;white-space:pre-wrap"><span lang="EN-GB"> </span><u></u><u></u></p><p style="margin:0cm;white-space:pre-wrap"><i>Das System kann den angegebenen Pfad nicht finden.</i><u></u><u></u></p><p style="margin:0cm;white-space:pre-wrap"><i><span lang="EN-GB">Error (interfaces): gurobi failed - exit code </span></i><u></u><u></u></p><p style="margin:0cm;white-space:pre-wrap"><span lang="EN-GB"> </span><u></u><u></u></p><p style="margin:0cm;white-space:pre-wrap"><b><span lang="EN-GB">CPLEX:</span></b><u></u><u></u></p><p style="margin:0cm;white-space:pre-wrap"><i><span lang="EN-GB">write model instance ...</span></i><u></u><u></u></p><p style="margin:0cm;white-space:pre-wrap"><i><span lang="EN-GB">CMPL model generation - finished</span></i><u></u><u></u></p><p style="margin:0cm;white-space:pre-wrap"><span lang="EN-GB"> </span><u></u><u></u></p><p style="margin:0cm;white-space:pre-wrap"><i><span lang="EN-GB">Solver - runningShell</span></i><u></u><u></u></p><p style="margin:0cm;white-space:pre-wrap"><span lang="EN-GB"> </span><u></u><u></u></p><p style="margin:0cm;white-space:pre-wrap"><i><span lang="EN-GB">Welcome to IBM(R) ILOG(R) CPLEX(R) Interactive Optimizer Community Edition 12.10.0.0</span></i><u></u><u></u></p><p style="margin:0cm;white-space:pre-wrap"><span lang="EN-GB"> </span><u></u><u></u></p><p style="margin:0cm;white-space:pre-wrap"><i><span lang="EN-GB">with Simplex, Mixed Integer & Barrier Optimizers</span></i><u></u><u></u></p><p style="margin:0cm;white-space:pre-wrap"><span lang="EN-GB"> </span><u></u><u></u></p><p style="margin:0cm;white-space:pre-wrap"><i><span lang="EN-GB">5725-A06 5725-A29 5724-Y48 5724-Y49 5724-Y54 5724-Y55 5655-Y21</span></i><u></u><u></u></p><p style="margin:0cm;white-space:pre-wrap"><span lang="EN-GB"> </span><u></u><u></u></p><p style="margin:0cm;white-space:pre-wrap"><i><span lang="EN-GB">Copyright IBM Corp. 1988, 2019. All Rights Reserved.</span></i><u></u><u></u></p><p style="margin:0cm;white-space:pre-wrap"><span lang="EN-GB"> </span><u></u><u></u></p><p style="margin:0cm;white-space:pre-wrap"><span lang="EN-GB"> </span><u></u><u></u></p><p style="margin:0cm;white-space:pre-wrap"><i><span lang="EN-GB">Type 'help' for a list of available commands.</span></i><u></u><u></u></p><p style="margin:0cm;white-space:pre-wrap"><span lang="EN-GB"> </span><u></u><u></u></p><p style="margin:0cm;white-space:pre-wrap"><i><span lang="EN-GB">Type 'help' followed by a command name for more</span></i><u></u><u></u></p><p style="margin:0cm;white-space:pre-wrap"><span lang="EN-GB"> </span><u></u><u></u></p><p style="margin:0cm;white-space:pre-wrap"><i><span lang="EN-GB">information on commands.</span></i><u></u><u></u></p><p style="margin:0cm;white-space:pre-wrap"><span lang="EN-GB"> </span><u></u><u></u></p><p style="margin:0cm;white-space:pre-wrap"><i><span lang="EN-GB">CPLEX> Cannot interpret file type.</span></i><u></u><u></u></p><p style="margin:0cm;white-space:pre-wrap"><span lang="EN-GB"> </span><u></u><u></u></p><p style="margin:0cm;white-space:pre-wrap"><span lang="EN-GB"> </span><u></u><u></u></p><p style="margin:0cm;white-space:pre-wrap"><i><span lang="EN-GB">File type options:</span></i><u></u><u></u></p><p style="margin:0cm;white-space:pre-wrap"><i><span lang="EN-GB">mps MPS format problem file (...)</span></i><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:12pt"><u></u> <u></u></p><p style="margin:0cm"><i><span lang="EN-GB">File type: No problem exists.</span></i><u></u><u></u></p><p style="margin:0cm;white-space:pre-wrap"><span lang="EN-GB"> </span><u></u><u></u></p><p style="margin:0cm;white-space:pre-wrap"><i><span lang="EN-GB">No file read.</span></i><u></u><u></u></p><p style="margin:0cm;white-space:pre-wrap"><span lang="EN-GB"> </span><u></u><u></u></p><p style="margin:0cm;white-space:pre-wrap"><b><span lang="EN-GB">SCIP/GLPK:</span></b><u></u><u></u></p><p style="margin:0cm;white-space:pre-wrap"><i><span lang="EN-GB">write model instance ...</span></i><u></u><u></u></p><p style="margin:0cm;white-space:pre-wrap"><i><span lang="EN-GB">CMPL model generation - finished</span></i><u></u><u></u></p><p style="margin:0cm;white-space:pre-wrap"><span lang="EN-GB"> </span><u></u><u></u></p><p style="margin:0cm;white-space:pre-wrap"><i><span lang="EN-GB">Solver - running</span></i><u></u><u></u></p><p style="margin:0cm;white-space:pre-wrap"><span lang="EN-GB"> </span><u></u><u></u></p><p style="margin:0cm;white-space:pre-wrap"><i><span lang="EN-GB">Error (interfaces): can not connect the solver: SCIP ->C:/Programme/SCIPOptSuite 7.0.1/bin/scip.exe</span></i><u></u><u></u></p><p style="margin-bottom:12pt;white-space:pre-wrap"><span lang="EN-GB"> </span><u></u><u></u></p><p style="margin:0cm;white-space:pre-wrap"><span lang="EN-GB"> </span><u></u><u></u></p></div></div></div></div></blockquote></div></div></div></blockquote></div>