[Cmpl] Problem when sets contain numeric values as strings and 'long line name' situation
Maria Giatsoglou
maria.giatsoglou at gmail.com
Mon May 23 05:36:56 EDT 2016
Hi Mike,
I have encountered the following situation with CMPL:
In my model I am importing the following parameters set from a cdat file
%M set[3] <
"7" "2" "10"
"1" "12" "7"
>
Then, I use this set in the following expression
flag := 0;
it {[i,j,k] in M, i != "off", j != "off", k != "off":
flag:= 1; break;
}
By doing this I get the following error: "Implicit type conversion from
string to integer is not possible".
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
%M set[3] <
"7" "2" "10"
"1" "12" "7"
>
or
%M set[3] <
7 2 10
1 12 7
>
makes no difference.
Is there a way to circumvent this issue?
Additionally, when I try to solve my model I get the following error
message:
"Line name 'fm[3835],[1],[2]' is too long"
Can I somehow change the maximum line name length in CMPL?
Thanks!
My warmest regards,
Maria Giatsoglou
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/cmpl/attachments/20160523/c074f5e3/attachment.html>
More information about the Cmpl
mailing list