<div dir="ltr"><div><div class="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><span style="font-size:12.8px">Hi Mike, </span><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I have encountered the following situation with CMPL:</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">In my model I am importing the following parameters set from a cdat file </div><div style="font-size:12.8px"><div><br></div><div>%M set[3] < </div><div>"7" "2" "10"</div><div>"1" "12" "7" </div><div>></div><div><br></div><div>Then, I use this set in the following expression </div><div><br></div><div>flag := 0;<br></div><div><p style="margin:0px">it {[i,j,k] in M, i != "off", j != "off", k != "off":</p><p style="margin:0px">         flag:= 1; break;</p><p style="margin:0px">}</p></div><div><br></div><div>By doing this I get the following error: "Implicit type conversion from string to integer is not possible".</div><div>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> </div><div>%M set[3] < </div><div>"7" "2" "10"</div><div>"1" "12" "7" </div><div>></div><div><br></div><div>or </div><div><br></div><div><div>%M set[3] < </div><div>7 2 10</div><div>1 12 7 </div><div>></div></div><div><br></div><div>makes no difference.</div><div><br></div><div>Is there a way to circumvent this issue?</div><div><br></div><div><br></div><div>Additionally, when I try to solve my model I get the following error message:</div><div>"Line name 'fm[3835],[1],[2]' is too long"<br></div><div>Can I somehow change the maximum line name length in CMPL?</div><div><br></div><div>Thanks!</div><div><br></div><div>My warmest regards,</div><div>Maria Giatsoglou </div></div><font size="2"><span style="font-family:monospace,monospace"></span></font></div></div></div></div></div>
</div>