<div dir="ltr"><div>Hi Mike,</div><div><br></div><div>thank you very much for the quick reply and the helpful information!</div><div><br></div><div>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:</div><div><br></div><div>

<p style="margin:0px;text-indent:0px;white-space:pre-wrap"><i>CMPL model generation - finished</i></p><i>
</i><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><i></i></p><i>
</i><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><i>Solver - running</i></p><i>
</i><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><i></i></p><i></i><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><i><br></i></p><i>
</i><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><i>Welcome to IBM(R) ILOG(R) CPLEX(R) Interactive Optimizer 20.1.0.0</i></p><i>
</i><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><i></i></p><i>
</i><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><i>  with Simplex, Mixed Integer & Barrier Optimizers</i></p><i>
</i><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><i></i></p><i>
</i><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><i>5725-A06 5725-A29 5724-Y48 5724-Y49 5724-Y54 5724-Y55 5655-Y21</i></p><i></i><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><i>Copyright IBM Corp. 1988, 2020.  All Rights Reserved.</i></p><i>
</i><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><i></i></p><i>
</i><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><i></i></p><i>
</i><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><i><br></i></p><i>
</i><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><i>Type 'help' for a list of available commands.</i></p><i>
</i><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><i></i></p><i>
</i><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><i>Type 'help' followed by a command name for more</i></p><i>
</i><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><i></i></p><i>
</i><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><i>information on commands.</i></p><i>
</i><i>
</i><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><i></i></p><i>
</i><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><i><br></i></p><i>
</i><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><i>CPLEX> Cannot interpret file type.</i></p><i>
</i><i>
</i><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><i></i></p><i>
</i><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><i><br></i></p><i>
</i><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><i>File type options:</i></p><i>
</i><i>
</i><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><i></i></p><i>
</i><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><i><br></i></p><i>
</i><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><i>ann          Model Annotations</i></p><i>
</i><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><i></i></p><i>
</i><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><i>bas          INSERT format basis file</i></p><i></i><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><i>flt          Solution pool filters</i></p><i></i><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><i>lp           LP format problem file</i></p><i></i><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><i>min          DIMACS min-cost network-flow format file</i></p><i></i><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><i>mps          MPS format problem file</i></p><i></i><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><i>mst          MIP start file</i></p><i></i><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><i>net          CPLEX network-flow format file</i></p><i></i><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><i>ord          Integer priority order file</i></p><i></i><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><i>prm          Non-default parameter file</i></p><i></i><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><i>sav          Binary matrix and basis file</i></p><i></i><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><i>sol          Solution file</i></p><i></i><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><i>vmc          Virtual Machine Configuration</i></p><i>
</i><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><i></i></p><i>
</i><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><i><br></i></p><i>
</i><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><i><br></i></p><i>
</i><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><i>File type: No problem exists.</i></p><i>
</i><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><i><br></i></p><i>
</i><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><i>No file read.</i></p>
<p style="margin:0px;text-indent:0px;white-space:pre-wrap"><br></p><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><br></p><p style="margin:0px;text-indent:0px;white-space:pre-wrap">I already reinstalled Cplex, but the output is the same.</p><p style="margin:0px;text-indent:0px;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.</p><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><br></p><p style="margin:0px;text-indent:0px;white-space:pre-wrap">With kind regards,</p><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><br></p><p style="margin:0px;text-indent:0px;white-space:pre-wrap">Hendrik<br></p><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><br></p><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><br></p></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Am Mi., 24. März 2021 um 12:23 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_1435702675842418861WordSection1"><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">Thank you for being interested in CMPL.<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">In Cmpl 1.12 is actually a bug regarding Gurobi. Please copy the files you can download from </span><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><span lang="en-DE">  in Cmpl/bin to exchange the existing files.  <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">For Cplex and Scip you need to edit Cmpl/bin/cmpl.opt. The following works on my system:<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">CbcPath =<u></u><u></u></span></p><p class="MsoNormal"><span lang="en-DE">GlpkPath =  <u></u><u></u></span></p><p class="MsoNormal"><span lang="en-DE">ScipFileName = scip.exe<u></u><u></u></span></p><p class="MsoNormal"><span lang="en-DE">CplexFileName = \Program Files\IBM\ILOG\CPLEX_Studio1210\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 have copied the scip files into Cmpl/bin (scip.exe, libscip.dll, tbb.dll). Therefore, the Scip entry is only -> scip.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">With the Gurobi patch and the entries in cmpl.opt, your problem ran without problems on my system.<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">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.<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">Please let me know, whether my hints work for you.<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><u></u> <u></u></span></p><p class="MsoNormal"><span><u></u> <u></u></span></p><p class="MsoNormal"><span><u></u> <u></u></span></p><p class="MsoNormal"><span><u></u> <u></u></span></p><p class="MsoNormal"><span><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> 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,<u></u><u></u></span></p></div><div><p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></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.<u></u><u></u></span></p></div><div><p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></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. <u></u><u></u></span></p></div><div><p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></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><u></u><u></u></span></p></div><div><p style="margin:0cm;white-space:pre-wrap"><span lang="EN-GB"><u></u> <u></u></span></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<u></u><u></u></span></p></div><div><p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></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"<u></u><u></u></span></p></div><div><p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></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.<u></u><u></u></span></p></div><div><p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p></div><div><p class="MsoNormal"><span lang="EN-GB">With kind regards,<u></u><u></u></span></p></div><div><p class="MsoNormal"><span lang="EN-GB">Hendrik<u></u><u></u></span></p></div><div><p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p></div><div><p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p></div><div><p class="MsoNormal"><span lang="EN-GB">In the following are the error messages:<u></u><u></u></span></p></div><div><p class="MsoNormal"><b><span lang="EN-GB">Gurobi:</span></b><span lang="EN-GB">  <u></u><u></u></span></p><p style="margin:0cm"><i><span lang="EN-GB">write model instance ...</span></i><span lang="EN-GB"><u></u><u></u></span></p><p style="margin:0cm;white-space:pre-wrap"><i><span lang="EN-GB">CMPL model generation - finished</span></i><span lang="EN-GB"><u></u><u></u></span></p><p style="margin:0cm;white-space:pre-wrap"><i><span lang="EN-GB">Solver - running</span></i><span lang="EN-GB"><u></u><u></u></span></p><p style="margin:0cm;white-space:pre-wrap"><span lang="EN-GB"><u></u> <u></u></span></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><span lang="EN-GB"><u></u><u></u></span></p><p style="margin:0cm;white-space:pre-wrap"><span lang="EN-GB"><u></u> <u></u></span></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><span lang="EN-GB"><u></u><u></u></span></p><p style="margin:0cm;white-space:pre-wrap"><span lang="EN-GB"><u></u> <u></u></span></p><p style="margin:0cm;white-space:pre-wrap"><b><span lang="EN-GB">CPLEX:</span></b><span lang="EN-GB"><u></u><u></u></span></p><p style="margin:0cm;white-space:pre-wrap"><i><span lang="EN-GB">write model instance ...</span></i><span lang="EN-GB"><u></u><u></u></span></p><p style="margin:0cm;white-space:pre-wrap"><i><span lang="EN-GB">CMPL model generation - finished</span></i><span lang="EN-GB"><u></u><u></u></span></p><p style="margin:0cm;white-space:pre-wrap"><span lang="EN-GB"><u></u> <u></u></span></p><p style="margin:0cm;white-space:pre-wrap"><i><span lang="EN-GB">Solver - runningShell</span></i><span lang="EN-GB"><u></u><u></u></span></p><p style="margin:0cm;white-space:pre-wrap"><span lang="EN-GB"><u></u> <u></u></span></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><span lang="EN-GB"><u></u><u></u></span></p><p style="margin:0cm;white-space:pre-wrap"><span lang="EN-GB"><u></u> <u></u></span></p><p style="margin:0cm;white-space:pre-wrap"><i><span lang="EN-GB">with Simplex, Mixed Integer & Barrier Optimizers</span></i><span lang="EN-GB"><u></u><u></u></span></p><p style="margin:0cm;white-space:pre-wrap"><span lang="EN-GB"><u></u> <u></u></span></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><span lang="EN-GB"><u></u><u></u></span></p><p style="margin:0cm;white-space:pre-wrap"><span lang="EN-GB"><u></u> <u></u></span></p><p style="margin:0cm;white-space:pre-wrap"><i><span lang="EN-GB">Copyright IBM Corp. 1988, 2019. All Rights Reserved.</span></i><span lang="EN-GB"><u></u><u></u></span></p><p style="margin:0cm;white-space:pre-wrap"><span lang="EN-GB"><u></u> <u></u></span></p><p style="margin:0cm;white-space:pre-wrap"><span lang="EN-GB"><u></u> <u></u></span></p><p style="margin:0cm;white-space:pre-wrap"><i><span lang="EN-GB">Type 'help' for a list of available commands.</span></i><span lang="EN-GB"><u></u><u></u></span></p><p style="margin:0cm;white-space:pre-wrap"><span lang="EN-GB"><u></u> <u></u></span></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><span lang="EN-GB"><u></u><u></u></span></p><p style="margin:0cm;white-space:pre-wrap"><span lang="EN-GB"><u></u> <u></u></span></p><p style="margin:0cm;white-space:pre-wrap"><i><span lang="EN-GB">information on commands.</span></i><span lang="EN-GB"><u></u><u></u></span></p><p style="margin:0cm;white-space:pre-wrap"><span lang="EN-GB"><u></u> <u></u></span></p><p style="margin:0cm;white-space:pre-wrap"><i><span lang="EN-GB">CPLEX> Cannot interpret file type.</span></i><span lang="EN-GB"><u></u><u></u></span></p><p style="margin:0cm;white-space:pre-wrap"><span lang="EN-GB"><u></u> <u></u></span></p><p style="margin:0cm;white-space:pre-wrap"><span lang="EN-GB"><u></u> <u></u></span></p><p style="margin:0cm;white-space:pre-wrap"><i><span lang="EN-GB">File type options:</span></i><span lang="EN-GB"><u></u><u></u></span></p><p style="margin:0cm;white-space:pre-wrap"><i><span lang="EN-GB">mps MPS format problem file (...)</span></i><span lang="EN-GB"><u></u><u></u></span></p><p class="MsoNormal"><i><span lang="EN-GB"><br><br></span></i><span lang="EN-GB"><u></u><u></u></span></p><p style="margin:0cm"><i><span lang="EN-GB">File type: No problem exists.</span></i><span lang="EN-GB"><u></u><u></u></span></p><p style="margin:0cm;white-space:pre-wrap"><span lang="EN-GB"><u></u> <u></u></span></p><p style="margin:0cm;white-space:pre-wrap"><i><span lang="EN-GB">No file read.</span></i><span lang="EN-GB"><u></u><u></u></span></p><p style="margin:0cm;white-space:pre-wrap"><span lang="EN-GB"><u></u> <u></u></span></p><p style="margin:0cm;white-space:pre-wrap"><b><span lang="EN-GB">SCIP/GLPK:</span></b><span lang="EN-GB"><u></u><u></u></span></p><p style="margin:0cm;white-space:pre-wrap"><i><span lang="EN-GB">write model instance ...</span></i><span lang="EN-GB"><u></u><u></u></span></p><p style="margin:0cm;white-space:pre-wrap"><i><span lang="EN-GB">CMPL model generation - finished</span></i><span lang="EN-GB"><u></u><u></u></span></p><p style="margin:0cm;white-space:pre-wrap"><span lang="EN-GB"><u></u> <u></u></span></p><p style="margin:0cm;white-space:pre-wrap"><i><span lang="EN-GB">Solver - running</span></i><span lang="EN-GB"><u></u><u></u></span></p><p style="margin:0cm;white-space:pre-wrap"><span lang="EN-GB"><u></u> <u></u></span></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><span lang="EN-GB"><u></u><u></u></span></p><p style="margin-right:0cm;margin-bottom:12pt;margin-left:0cm;white-space:pre-wrap"><span lang="EN-GB"><u></u> <u></u></span></p><p style="margin:0cm;white-space:pre-wrap"><span lang="EN-GB"><u></u> <u></u></span></p></div></div></div></div></blockquote></div>