<font size=2 face="sans-serif">Hi Mike,</font>
<br>
<br><font size=2 face="sans-serif">I was trying to run the below model
without specifying parameters and set inside java program , getting the
below error ...Could you please help?</font>
<br>
<br><font size=2 face="sans-serif">parameters:</font>
<br><font size=2 face="sans-serif">        products
:= 1..3;</font>
<br><font size=2 face="sans-serif">        machines
:= 1..2;</font>
<br><font size=2 face="sans-serif">        price[products]
:= (500, 600, 450);</font>
<br><font size=2 face="sans-serif">        costs[products]
:= (425, 520, 400);</font>
<br><font size=2 face="sans-serif">        </font>
<br><font size=2 face="sans-serif">        #machine
hours required per unit</font>
<br><font size=2 face="sans-serif">        a[machines,products]
:= ((8, 15, 12), (15, 10, 8));</font>
<br><font size=2 face="sans-serif">        </font>
<br><font size=2 face="sans-serif">        #upper
bounds of the machines</font>
<br><font size=2 face="sans-serif">        b[machines]
:= (1000, 1000);</font>
<br><font size=2 face="sans-serif">        </font>
<br><font size=2 face="sans-serif">        #profit
contribution per unit</font>
<br><font size=2 face="sans-serif">        {
j in products: c[j]:=price[j]­costs[j]; }</font>
<br><font size=2 face="sans-serif">        </font>
<br><font size=2 face="sans-serif">        #upper
bound of the products</font>
<br><font size=2 face="sans-serif">        xMax[products]
:= (250, 240, 250 );</font>
<br><font size=2 face="sans-serif">variables:</font>
<br><font size=2 face="sans-serif">        x[products]:
integer; </font>
<br><font size=2 face="sans-serif">objectives:</font>
<br><font size=2 face="sans-serif">        profit:
c[]T * x[] ­>max;</font>
<br><font size=2 face="sans-serif">constraints:</font>
<br><font size=2 face="sans-serif">        res:
a[,] * x[] <= b[];</font>
<br><font size=2 face="sans-serif">        0<=x[]<=xMax[];</font>
<br>
<br>
<br>
<br><font size=2 face="sans-serif">ERROR:</font>
<br><font size=2 color=#ff6088 face="sans-serif"><b>Cmpl finished with
errors</b></font>
<br><font size=2 color=#ff6088 face="sans-serif"><b>error in file D:/output/noesisPmml/transportation1.cmpl
at line 12 : syntax error, unexpected end of file, expecting ';'</b></font>
<br>
<br>
<br><font size=2 face="sans-serif">Thanks For your early response.</font>
<br>
<br>
<br><font size=2 face="sans-serif">Regards</font>
<br><font size=2 face="sans-serif">Chitta<br>
</font>
<br>
<br>
<br>
<br><font size=1 color=#5f5f5f face="sans-serif">From:      
 </font><font size=1 face="sans-serif">"Steglich, Mike"
<steglich@th-wildau.de></font>
<br><font size=1 color=#5f5f5f face="sans-serif">To:      
 </font><font size=1 face="sans-serif">"Chitta Khatua"
<chitta.khatua@tcs.com>, <cmpl@list.coin-or.org></font>
<br><font size=1 color=#5f5f5f face="sans-serif">Date:      
 </font><font size=1 face="sans-serif">01/21/2016 06:41 PM</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Subject:    
   </font><font size=1 face="sans-serif">AW: [Cmpl] Cmpl
: Regarding jcmpl integration with parameters</font>
<br>
<hr noshade>
<br>
<br>
<br><font size=2 color=#004080 face="Calibri">Hello Chitta,</font>
<br><font size=2 color=#004080 face="Calibri"> </font>
<br><font size=2 color=#004080 face="Calibri">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();</font>
<br><font size=2 color=#004080 face="Calibri"> </font>
<br><font size=2 color=#004080 face="Calibri">Thanks,</font>
<br><font size=2 color=#004080 face="Calibri"> </font>
<br><font size=2 color=#004080 face="Calibri">Mike</font>
<br><a name=_MailEndCompose></a><font size=2 color=#004080 face="Calibri"> </font>
<br><font size=2 face="Calibri"><b>Von:</b> Cmpl [</font><a href="mailto:cmpl-bounces@coin-or.org"><font size=2 face="Calibri">mailto:cmpl-bounces@coin-or.org</font></a><font size=2 face="Calibri">]
<b>Im Auftrag von </b>Chitta Khatua<b><br>
Gesendet:</b> Donnerstag, 21. Januar 2016 13:47<b><br>
An:</b> cmpl@list.coin-or.org<b><br>
Betreff:</b> [Cmpl] Cmpl : Regarding jcmpl integration with parameters</font>
<br><font size=3 face="Times New Roman"> </font>
<br><font size=2 face="Arial">Hello</font><font size=3 face="Times New Roman">
<br>
</font><font size=2 face="Arial"><br>
I was trying to use jcmpl to execute CMPL models.</font><font size=3 face="Times New Roman">
</font><font size=2 face="Arial"><br>
I found the parameter object need to be prepared inside the Java program
and set to cmpl object before calling solve().</font><font size=3 face="Times New Roman">
<br>
</font><font size=2 face="Arial"><br>
I need the parameter with values need to be inside .cmpl file and not to
write code to prepare parameter inside java class.</font><font size=3 face="Times New Roman">
</font><font size=2 face="Arial"><br>
Only to call solve() upon cmpl object to execute.</font><font size=3 face="Times New Roman">
<br>
</font><font size=2 face="Arial"><br>
1. I do not want the code inside the selected box below, need to keep those
inside .cmpl file.</font><font size=3 face="Times New Roman"> <br>
<br>
<br>
</font><img src=cid:_1_0B3EC62C0B3EBF700048ED6E65257F41 style="border:0px solid;"><font size=3 face="Times New Roman"><br>
</font><font size=2 face="Arial"><br>
Could you suggest any solution here ?</font><font size=3 face="Times New Roman">
<br>
<br>
</font><font size=2 face="Arial"><br>
Thanks</font><font size=3 face="Times New Roman"> </font><font size=2 face="Arial"><br>
Chitta</font><font size=3 face="Times New Roman"> <br>
</font><font size=2 face="Arial"><br>
</font><font size=3 face="Times New Roman"><br>
<br>
<br>
<br>
</font><font size=1 color=#5f5f5f face="Arial"><br>
From:        </font><a href="mailto:cmpl-request@coin-or.org"><font size=1 color=blue face="Arial"><u>cmpl-request@coin-or.org</u></font></a><font size=3 face="Times New Roman">
</font><font size=1 color=#5f5f5f face="Arial"><br>
To:        </font><a href=mailto:chitta.khatua@tcs.com><font size=1 color=blue face="Arial"><u>chitta.khatua@tcs.com</u></font></a><font size=3 face="Times New Roman">
</font><font size=1 color=#5f5f5f face="Arial"><br>
Date:        </font><font size=1 face="Arial">01/21/2016
06:06 PM</font><font size=3 face="Times New Roman"> </font><font size=1 color=#5f5f5f face="Arial"><br>
Subject:        </font><font size=1 face="Arial">Welcome
to the "Cmpl" mailing list</font><font size=3 face="Times New Roman">
</font><font size=1 color=#5f5f5f face="Arial"><br>
Sent by:        </font><font size=1 face="Arial">"Cmpl"
<</font><a href="mailto:cmpl-bounces@coin-or.org"><font size=1 color=blue face="Arial"><u>cmpl-bounces@coin-or.org</u></font></a><font size=1 face="Arial">></font><font size=3 face="Times New Roman">
</font>
<div align=center>
<hr noshade></div>
<br><font size=3 face="Times New Roman"><br>
<br>
</font><font size=2 face="Courier New"><br>
Welcome to the </font><a href="mailto:Cmpl@list.coin-or.org"><font size=2 color=blue face="Courier New"><u>Cmpl@list.coin-or.org</u></font></a><font size=2 face="Courier New">
mailing list!<br>
<br>
To post to this list, send your message to:<br>
<br>
 </font><a href="mailto:cmpl@list.coin-or.org"><font size=2 color=blue face="Courier New"><u>cmpl@list.coin-or.org</u></font></a><font size=2 face="Courier New"><br>
<br>
General information about the mailing list is at:<br>
<br>
 </font><a href="http://list.coin-or.org/mailman/listinfo/cmpl"><font size=2 color=blue face="Courier New"><u>http://list.coin-or.org/mailman/listinfo/cmpl</u></font></a><font size=2 face="Courier New"><br>
<br>
If you ever want to unsubscribe or change your options (eg, switch to<br>
or from digest mode, change your password, etc.), visit your<br>
subscription page at:<br>
<br>
 </font><a href="http://list.coin-or.org/mailman/options/cmpl/chitta.khatua%40tcs.com"><font size=2 color=blue face="Courier New"><u>http://list.coin-or.org/mailman/options/cmpl/chitta.khatua%40tcs.com</u></font></a><font size=2 face="Courier New"><br>
<br>
You can also make such adjustments via email by sending a message to:<br>
<br>
 </font><a href="mailto:Cmpl-request@list.coin-or.org"><font size=2 color=blue face="Courier New"><u>Cmpl-request@list.coin-or.org</u></font></a><font size=2 face="Courier New"><br>
<br>
with the word `help' in the subject or body (don't include the<br>
quotes), and you will get back a message with instructions.<br>
<br>
You must know your password to change your options (including changing<br>
the password, itself) or to unsubscribe without confirmation.  It
is:<br>
<br>
 tcs1234<br>
<br>
Normally, Mailman will remind you of your list.coin-or.org mailing<br>
list passwords once every month, although you can disable this if you<br>
prefer.  This reminder will also include instructions on how to<br>
unsubscribe or change your account options.  There is also a button
on<br>
your options page that will email your current password to you.</font>
<p><font size=3 face="Times New Roman">=====-----=====-----=====<br>
Notice: The information contained in this e-mail<br>
message and/or attachments to it may contain <br>
confidential or privileged information. If you are <br>
not the intended recipient, any dissemination, use, <br>
review, distribution, printing or copying of the <br>
information contained in this e-mail message <br>
and/or attachments to it are strictly prohibited. If <br>
you have received this communication in error, <br>
please notify us by reply e-mail or telephone and <br>
immediately and permanently delete the message <br>
and any attachments. Thank you</font>
<p>