[Cmpl] Cmpl : Regarding jcmpl integration with parameters

Chitta Khatua chitta.khatua at tcs.com
Thu Jan 21 08:17:03 EST 2016


Hi Mike,

I was trying to run the below model without specifying parameters and set 
inside java program , getting the below error ...Could you please help?

parameters:
        products := 1..3;
        machines := 1..2;
        price[products] := (500, 600, 450);
        costs[products] := (425, 520, 400);
 
        #machine hours required per unit
        a[machines,products] := ((8, 15, 12), (15, 10, 8));
 
        #upper bounds of the machines
        b[machines] := (1000, 1000);
 
        #profit contribution per unit
        { j in products: c[j]:=price[j]­costs[j]; }
 
        #upper bound of the products
        xMax[products] := (250, 240, 250 );
variables:
        x[products]: integer; 
objectives:
        profit: c[]T * x[] ­>max;
constraints:
        res: a[,] * x[] <= b[];
        0<=x[]<=xMax[];



ERROR:
Cmpl finished with errors
error in file D:/output/noesisPmml/transportation1.cmpl at line 12 : 
syntax error, unexpected end of file, expecting ';'


Thanks For your early response.


Regards
Chitta




From:   "Steglich, Mike" <steglich at th-wildau.de>
To:     "Chitta Khatua" <chitta.khatua at tcs.com>, <cmpl at list.coin-or.org>
Date:   01/21/2016 06:41 PM
Subject:        AW: [Cmpl] Cmpl : Regarding jcmpl integration with 
parameters



Hello Chitta,
 
You can run a jCmpl programme w/o specifying parameters and sets within 
the Java code. Just specify a CMPL object (e.g. model) and then run it 
with model.solve();
 
Thanks,
 
Mike
 
Von: Cmpl [mailto:cmpl-bounces at coin-or.org] Im Auftrag von Chitta Khatua
Gesendet: Donnerstag, 21. Januar 2016 13:47
An: cmpl at list.coin-or.org
Betreff: [Cmpl] Cmpl : Regarding jcmpl integration with parameters
 
Hello 

I was trying to use jcmpl to execute CMPL models. 
I found the parameter object need to be prepared inside the Java program 
and set to cmpl object before calling solve(). 

I need the parameter with values need to be inside .cmpl file and not to 
write code to prepare parameter inside java class. 
Only to call solve() upon cmpl object to execute. 

1. I do not want the code inside the selected box below, need to keep 
those inside .cmpl file. 




Could you suggest any solution here ? 


Thanks 
Chitta 






From:        cmpl-request at coin-or.org 
To:        chitta.khatua at tcs.com 
Date:        01/21/2016 06:06 PM 
Subject:        Welcome to the "Cmpl" mailing list 
Sent by:        "Cmpl" <cmpl-bounces at coin-or.org> 




Welcome to the Cmpl at list.coin-or.org mailing list!

To post to this list, send your message to:

 cmpl at list.coin-or.org

General information about the mailing list is at:

 http://list.coin-or.org/mailman/listinfo/cmpl

If you ever want to unsubscribe or change your options (eg, switch to
or from digest mode, change your password, etc.), visit your
subscription page at:

 http://list.coin-or.org/mailman/options/cmpl/chitta.khatua%40tcs.com

You can also make such adjustments via email by sending a message to:

 Cmpl-request at list.coin-or.org

with the word `help' in the subject or body (don't include the
quotes), and you will get back a message with instructions.

You must know your password to change your options (including changing
the password, itself) or to unsubscribe without confirmation.  It is:

 tcs1234

Normally, Mailman will remind you of your list.coin-or.org mailing
list passwords once every month, although you can disable this if you
prefer.  This reminder will also include instructions on how to
unsubscribe or change your account options.  There is also a button on
your options page that will email your current password to you.
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/cmpl/attachments/20160121/e4f45c28/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 20975 bytes
Desc: not available
URL: <http://list.coin-or.org/pipermail/cmpl/attachments/20160121/e4f45c28/attachment-0001.gif>


More information about the Cmpl mailing list