<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Maria,<div class=""><br class=""></div><div class="">Sorry … there actually a simple bug. If in a CmplData file an entry enclosed in double quotes only contains numbers or looks like a float then it is interpreted as an integer or a real number. I will change it as soon as possible. </div><div class=""><br class=""></div><div class="">The maximum length of a line name is 100.  Only for the export to a MPS file it is restricted to nine characters. Could you send your jCmpl programme (directly to me)?</div><div class=""><br class=""></div><div class="">Thanks,</div><div class=""><br class=""></div><div class="">Mike</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">Am 24.05.2016 um 17:45 schrieb Maria Giatsoglou <<a href="mailto:maria.giatsoglou@gmail.com" class="">maria.giatsoglou@gmail.com</a>>:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hi Mike, <div class=""><br class=""></div><div class="">Please find attached the model I use and the cdat file. </div><div class="">I noticed that the first error ("<span style="font-size:12.8px" class="">Implicit type conversion from string to integer is not possible"</span>) occurs both when using the Coliop environment and the Cmpl Java API. </div><div class="">If I change the numeric ids into string ones e.g. by appending a letter before each id in the 'items' set, then the model can be solved without problems in Coliop. </div><div class="">By using jCmpl, however, I get the <span style="font-size:12.8px" class="">"Line name 'fm[1220],[1],[2]' is too long" error.</span></div><div class="gmail_extra">The attached cdat file is the one produced by jCmpl, which is the main way I use Cmpl (I use Coliop only for testing).</div><div class="gmail_extra"><br class=""></div><div class="gmail_extra">I am looking forward for your response.</div><div class="gmail_extra"><br class=""></div><div class="gmail_extra">Thank you once more for your help!</div><div class="gmail_extra"><br class=""></div><div class="gmail_extra">Maria<div class="gmail_quote"><br class=""></div><div class="gmail_quote">On Mon, May 23, 2016 at 10:31 PM, Mike Steglich <span dir="ltr" class=""><<a href="mailto:mike.steglich@th-wildau.de" target="_blank" class="">mike.steglich@th-wildau.de</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="auto" class=""><div class=""></div><div class="">Hello Maria,</div><div class=""><br class=""></div><div class="">can you send your model directly to me?</div><div class=""><br class=""></div><div class="">Thanks,</div><div class=""><br class=""></div><div class="">Mike</div><div class=""><div class="h5"><div class=""><br class="">Am 23.05.2016 um 11:36 schrieb Maria Giatsoglou <<a href="mailto:maria.giatsoglou@gmail.com" target="_blank" class="">maria.giatsoglou@gmail.com</a>>:<br class=""><br class=""></div><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class=""><div class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><span style="font-size:12.8px" class="">Hi Mike, </span><div style="font-size:12.8px" class=""><br class=""></div><div style="font-size:12.8px" class="">I have encountered the following situation with CMPL:</div><div style="font-size:12.8px" class=""><br class=""></div><div style="font-size:12.8px" class="">In my model I am importing the following parameters set from a cdat file </div><div style="font-size:12.8px" class=""><div class=""><br class=""></div><div class="">%M set[3] < </div><div class="">"7" "2" "10"</div><div class="">"1" "12" "7" </div><div class="">></div><div class=""><br class=""></div><div class="">Then, I use this set in the following expression </div><div class=""><br class=""></div><div class="">flag := 0;<br class=""></div><div class=""><div style="margin: 0px;" class="">it {[i,j,k] in M, i != "off", j != "off", k != "off":</div><div style="margin: 0px;" class="">         flag:= 1; break;</div><div style="margin: 0px;" class="">}</div></div><div class=""><br class=""></div><div class="">By doing this I get the following error: "Implicit type conversion from string to integer is not possible".</div><div class="">I thought that by using double quotes, the values of set M would be interpreted and treated as strings in CMPL (as was my intention), but I found out that using </div><div class=""> </div><div class="">%M set[3] < </div><div class="">"7" "2" "10"</div><div class="">"1" "12" "7" </div><div class="">></div><div class=""><br class=""></div><div class="">or </div><div class=""><br class=""></div><div class=""><div class="">%M set[3] < </div><div class="">7 2 10</div><div class="">1 12 7 </div><div class="">></div></div><div class=""><br class=""></div><div class="">makes no difference.</div><div class=""><br class=""></div><div class="">Is there a way to circumvent this issue?</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Additionally, when I try to solve my model I get the following error message:</div><div class="">"Line name 'fm[3835],[1],[2]' is too long"<br class=""></div><div class="">Can I somehow change the maximum line name length in CMPL?</div><div class=""><br class=""></div><div class="">Thanks!</div><div class=""><br class=""></div><div class="">My warmest regards,</div><div class="">Maria Giatsoglou </div></div><font size="2" class=""><span style="font-family:monospace,monospace" class=""></span></font></div></div></div></div></div>
</div>
</div></blockquote></div></div><blockquote type="cite" class=""><div class=""><span class="">_______________________________________________</span><br class=""><span class="">Cmpl mailing list</span><br class=""><span class=""><a href="mailto:Cmpl@list.coin-or.org" target="_blank" class="">Cmpl@list.coin-or.org</a></span><br class=""><span class=""><a href="http://list.coin-or.org/mailman/listinfo/cmpl" target="_blank" class="">http://list.coin-or.org/mailman/listinfo/cmpl</a></span></div></blockquote></div></blockquote></div><br class=""></div></div>
<span id="cid:C69DCC9E-7D9C-4FBD-BDCD-33FC4E33E0D3"><TestModel.cdat></span><span id="cid:33A743B3-ACBB-41BB-8F16-DA3641CEEDD9"><TestModel.cmpl></span></div></blockquote></div><br class=""></div></body></html>