[Cmpl] Problem when sets contain numeric values as strings and 'long line name' situation
Mike Steglich
mike.steglich at th-wildau.de
Mon May 23 15:31:23 EDT 2016
Hello Maria,
can you send your model directly to me?
Thanks,
Mike
> Am 23.05.2016 um 11:36 schrieb Maria Giatsoglou <maria.giatsoglou at gmail.com>:
>
> 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
> _______________________________________________
> Cmpl mailing list
> Cmpl at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/cmpl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/cmpl/attachments/20160523/a20091c6/attachment.html>
More information about the Cmpl
mailing list