[Cmpl] Problem with remote submit

Mike Steglich mike.steglich at berlin.de
Sat Nov 2 15:33:30 EDT 2013


Hi Indrajit,

Server CPU and memory usage would be good features and I put both on our to-do list. But it won't be implemented in release 1.9 because we are in the testing phase for this version. Implementing additional new features would postpone the release date. The major feature of CMPL 1.9 is jCMPL that is the new CMPL Java Api.

 Cheers,

Mike

> Am 02.11.2013 um 19:41 schrieb Indrajit Sen Gupta <indrajitsg at gmail.com>:
> 
> Hi Mike,
>  
> A quick question since you mentioned the new version coming out in November. Will it have an option to check server CPU / Memory usage? I am thinking if CMD window in the host machine can throw up some useful information on the CPU usage whenever a client submits a job.
>  
> Regards,
> Indrajit
> 
> 
>> On Sat, Nov 2, 2013 at 9:17 PM, Indrajit Sen Gupta <indrajitsg at gmail.com> wrote:
>> Thanks Mike, This works just great. I will be looking forward to your next version.
>> 
>> Regards,
>> Indrajit
>> 
>> 
>>> On Sat, Nov 2, 2013 at 6:49 PM, Mike Steglich <mike.steglich at berlin.de> wrote:
>>> Hello Indrajit,
>>> 
>>> CMPL supports two kind of servers: the COIN-OR OSServer (https://projects.coin-or.org/OS/) and our own CMPLServer. 
>>> 
>>> The command line argument -solverUrl describes the URL of a OSServer. You can find in the osUserManual (https://projects.coin-or.org/svn/OS/trunk/OS/doc/osUsersManual.pdf) starting at page 112 a description how to install an OSServer. 
>>> 
>>> 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. 
>>> To solve your problem on CMPLServer you have to create a pyCmpl script (assuming a file name prob01.py) :
>>> 
>>> #!/usr/bin/python 
>>> from pyCmpl import *
>>> 
>>> model = Cmpl("prob01.cmpl")
>>> model.connect("http://192.168.0.103:8008")
>>> model.solve() 
>>> model.solutionReport()
>>> 
>>> and then (after starting the CMPLserver on 192.168.0.103) you can run it by pyCmpl prob01.py (via cmplShell.bat).  
>>>  
>>> 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.
>>> 
>>> 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. 
>>> 
>>> If you need the direct CMPLServer support soon I can send you a beta version.
>>> 
>>> Thanks,
>>> 
>>> Mike 
>>> 
>>> 
>>> 
>>>> Am 02.11.2013 um 11:44 schrieb Indrajit Sen Gupta:
>>>> 
>>>> Hi,
>>>> 
>>>> 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 
>>>> 
>>>> I am trying to submit an optimization problem with the following command: 
>>>> 
>>>> cmpl prob01.compl -solverUrl http://192.168.0.103:8008/
>>>> 
>>>> I get the following output:
>>>> 
>>>> #---------------------------------------------------------------------------------------------------------------------------------------------#
>>>> 
>>>> CMPL model generation - running
>>>> 
>>>> CMPL version: 1.8.0
>>>> Authors: Thomas Schleiff, Mike Steglich
>>>> Distributed under the GPLv3 
>>>> 
>>>> create model instance ...
>>>> write model instance ...
>>>> CMPL model generation - finished
>>>> 
>>>> Solver - running
>>>> 
>>>> Optimization Services Solver
>>>> 
>>>> Main Authors: Horand Gassmann, Jun Ma, and Kipp Martin
>>>> 
>>>> Distributed under the Eclipse Public License
>>>> 
>>>> OS Version: 2.6.0
>>>> 
>>>> Build Date: Jun 13 2013
>>>> 
>>>> Input String =  -config prob01.cFconf 
>>>> 
>>>> call ossslex
>>>> 
>>>> done with call to ossslex
>>>> 
>>>> configFileName = prob01.cFconf
>>>> 
>>>> Call Text Extra
>>>> 
>>>> Done with call Text Extra
>>>> 
>>>> call ossslex
>>>> 
>>>> HERE ARE THE OPTION VALUES:
>>>> 
>>>> Config file = prob01.cFconf
>>>> 
>>>> OSiL file = prob01.osil
>>>> 
>>>> OSrL file = prob01.osrl
>>>> 
>>>> Service Method = solve
>>>> 
>>>> Service Location = http://192.168.0.103:8008/
>>>> 
>>>> 
>>>> Solver failed       
>>>> General status:     
>>>> SolverName          
>>>> Nr. of Solutions:   0
>>>> Solver - failed
>>>> #---------------------------------------------------------------------------------------------------------------------------------------------#
>>>> 
>>>> I am not sure what I am doing wrong and why it is failing. Please help me out here.
>>>> 
>>>> Regards,
>>>> Indrajit
>>>> 
>>>> 
>>>> _______________________________________________
>>>> Cmpl mailing list
>>>> Cmpl at list.coin-or.org
>>>> 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/20131102/ef70858f/attachment.html>


More information about the Cmpl mailing list