<div dir="ltr"><div><div>Thanks Mike, This works just great. I will be looking forward to your next version.<br><br></div>Regards,<br></div>Indrajit<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Nov 2, 2013 at 6:49 PM, Mike Steglich <span dir="ltr">&lt;<a href="mailto:mike.steglich@berlin.de" target="_blank">mike.steglich@berlin.de</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5"><div style="word-wrap:break-word"><div><div style="word-wrap:break-word">Hello Indrajit,<div>
<br></div><div>CMPL supports two kind of servers: the COIN-OR OSServer (<a href="https://projects.coin-or.org/OS/" target="_blank">https://projects.coin-or.org/OS/</a>) and our own CMPLServer. </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" target="_blank">https://projects.coin-or.org/svn/OS/trunk/OS/doc/osUsersManual.pdf</a>) starting at page 112 a description how to install an OSServer. </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 only pyCmpl contains a client for the CMPLServer. </div><div>To solve your problem on CMPLServer you have to create a pyCmpl script (assuming a file name prob01.py) :</div>
<div><br></div><div><font face="Courier">#!/usr/bin/python <br>from pyCmpl import *<br><br>model = Cmpl(&quot;prob01.cmpl&quot;)</font></div><div><font face="Courier">model.connect(&quot;<a href="http://192.168.0.103:8008/" target="_blank">http://192.168.0.103:8008</a>&quot;)<br>
model.solve() <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 prob01.py (via cmplShell.bat).  </div><div> </div><div>Alternatively you can start the interactive pyCmpl shell by starting  pyCmpl.bat (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&#39;m testing the package and writing the manual at the moment. </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 </div><div><br></div><div><br></div><div><br><div><div>Am 02.11.2013 um 11:44 schrieb Indrajit Sen Gupta:</div>
<br><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 &quot;cmplServer -start&quot; 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/" target="_blank">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 =  -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/" target="_blank">http://192.168.0.103:8008/</a><br><br><br>Solver failed       <br>General status:     <br>SolverName          <br>Nr. of Solutions:   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" target="_blank">Cmpl@list.coin-or.org</a><br><a href="http://list.coin-or.org/mailman/listinfo/cmpl" target="_blank">http://list.coin-or.org/mailman/listinfo/cmpl</a></blockquote>
</div><br></div></div></div><br></div></div></div><br>_______________________________________________<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" target="_blank">http://list.coin-or.org/mailman/listinfo/cmpl</a><br></blockquote></div><br></div>