<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hello&nbsp;Indrajit,<div><br></div><div>CMPL supports two kind of servers: the COIN-OR OSServer (<a href="https://projects.coin-or.org/OS/">https://projects.coin-or.org/OS/</a>) and our own&nbsp;CMPLServer.&nbsp;</div><div><br></div><div>The command line argument -solverUrl describes the URL of a OSServer. You can find in the osUserManual (<a href="https://projects.coin-or.org/svn/OS/trunk/OS/doc/osUsersManual.pdf">https://projects.coin-or.org/svn/OS/trunk/OS/doc/osUsersManual.pdf</a>) starting at page 112 a description how to install an OSServer.&nbsp;</div><div><br></div><div>If you want to use the CMPLServer (a bit easier to install and to start as the OSServer) you have to use pyCmpl, because in CMPL 1.8&nbsp;only pyCmpl contains a client for the CMPLServer.&nbsp;</div><div>To solve your problem on&nbsp;CMPLServer you have to create a pyCmpl script (assuming a file name&nbsp;prob01.py)&nbsp;:</div><div><br></div><div><font class="Apple-style-span" face="Courier">#!/usr/bin/python&nbsp;<br>from pyCmpl import *<br><br>model = Cmpl("prob01.cmpl")</font></div><div><font class="Apple-style-span" face="Courier">model.connect("<a href="http://192.168.0.103:8008/">http://192.168.0.103:8008</a>")<br>model.solve()&nbsp;<br>model.solutionReport()</font></div><div><br></div><div>and then (after starting the CMPLserver on 192.168.0.103) you can run it by pyCmpl&nbsp;prob01.py (via cmplShell.bat).&nbsp;&nbsp;</div><div>&nbsp;</div><div>Alternatively you can start the interactive pyCmpl shell by starting &nbsp;pyCmpl.bat&nbsp;(via cmplShell.bat). In this interactive shell you can use the pyCmpl statements as before (excluding the first two lines) to solve your problem remotely and to catch the solution.</div><div><br></div><div>The next CMPL version 1.9 that we will release in November contains a direct CMPLServer support for the CMPL command line tool with a new command line argument -cmplUrl. I'm testing the package and writing the manual at the moment.&nbsp;</div><div><br></div><div>If you need the direct CMPLServer support soon I can send you a beta version.</div><div><br></div><div>Thanks,</div><div><br></div><div>Mike&nbsp;</div><div><br></div><div><br></div><div><br><div><div>Am 02.11.2013 um 11:44 schrieb Indrajit Sen Gupta:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr"><div><div><div><div><div>Hi,<br></div><br></div>I am new to CMPL so please bear with me. This is the problem I am currently facing. I have two machines over LAN, one running Windows 8 and the other running Windows 7. I have started cmpl server on the Windows 8 machine with the "cmplServer -start" command from the command line (after running cmplShell.bat). Then from the Windows 7 machine <br>
<br>I am trying to submit an optimization problem with the following command: <br><br>cmpl prob01.compl -solverUrl <a href="http://192.168.0.103:8008/">http://192.168.0.103:8008/</a><br><br></div>I get the following output:<br>
<br>#---------------------------------------------------------------------------------------------------------------------------------------------#<br><br>CMPL model generation - running<br><br>CMPL version: 1.8.0<br>Authors: Thomas Schleiff, Mike Steglich<br>
Distributed under the GPLv3 <br><br>create model instance ...<br>write model instance ...<br>CMPL model generation - finished<br><br>Solver - running<br><br>Optimization Services Solver<br><br>Main Authors: Horand Gassmann, Jun Ma, and Kipp Martin<br>
<br>Distributed under the Eclipse Public License<br><br>OS Version: 2.6.0<br><br>Build Date: Jun 13 2013<br><br>Input String =&nbsp; -config prob01.cFconf <br><br>call ossslex<br><br>done with call to ossslex<br><br>configFileName = prob01.cFconf<br>
<br>Call Text Extra<br><br>Done with call Text Extra<br><br>call ossslex<br><br>HERE ARE THE OPTION VALUES:<br><br>Config file = prob01.cFconf<br><br>OSiL file = prob01.osil<br><br>OSrL file = prob01.osrl<br><br>Service Method = solve<br>
<br>Service Location = <a href="http://192.168.0.103:8008/">http://192.168.0.103:8008/</a><br><br><br>Solver failed&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>General status:&nbsp;&nbsp;&nbsp;&nbsp; <br>SolverName&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>Nr. of Solutions:&nbsp;&nbsp; 0<br>Solver - failed<br>#---------------------------------------------------------------------------------------------------------------------------------------------#<br>
<br></div>I am not sure what I am doing wrong and why it is failing. Please help me out here.<br><br></div>Regards,<br>Indrajit<br><br><div><div><div><br></div></div></div></div>
_______________________________________________<br>Cmpl mailing list<br><a href="mailto:Cmpl@list.coin-or.org">Cmpl@list.coin-or.org</a><br><a href="http://list.coin-or.org/mailman/listinfo/cmpl">http://list.coin-or.org/mailman/listinfo/cmpl</a></blockquote></div><br></div></div></div><br></body></html>