[Cmpl] Empty sets in CMPL data files
Steglich, Mike
mike.steglich at th-wildau.de
Fri Aug 7 11:13:24 EDT 2015
Hi Christopher,
There will be a new release in autumn. I think I can implement empty sets and put it into this release.
Thanks,
Mike Von: <mailto:christopher.gross at unikat.uni-augsburg.de> Christopher Gross
Gesendet: 07.08.2015 14:34
An: <mailto:mike.steglich at th-wildau.de> Steglich, Mike ; <mailto:cmpl at list.coin-or.org> cmpl at list.coin-or.org
Betreff: Re: AW: [Cmpl] Empty sets in CMPL data files
Hi Mike,
thanks for the quick reply.
After having a look at the source code in the mean time I came to the
same conclusion.
However, it would be really nice to have as I am currently using a
static CMPL file and auto-generate a CMPL data file. The advantage is
that I do not have to parse my CMPL file and find the parameters section
but can rather just re-generate the CMPL data file from scratch each
time I want to solve with new data.
I suppose I will switch from CMPL data files to using include directives
as that should give me the flexibility I need.
However, I would be happy if you could consider empty sets in CMPL data
files as a new feature.
Thanks and best regards,
Christopher
On 2015-08-07 13:39, Steglich, Mike wrote:
> Hi Christopher,
>
> It is not possible to define empty sets in a CmplData file. You can
> specify an empty set only in Cmpl in a parameter section.
>
> Cheers,
> Mike
> ------------------------------------------------------------------------
> Von: Christopher Gross <mailto:christopher.gross at unikat.uni-augsburg.de>
> Gesendet: 07.08.2015 12:54
> An: cmpl at list.coin-or.org <mailto:cmpl at list.coin-or.org>
> Betreff: [Cmpl] Empty sets in CMPL data files
>
>
> Hello,
>
> I am using CMPL with CMPL data files. In these data files I declare some
> sets.
>
> Depending on the input to my model some of these sets might be empty.
> Unfortunately, declaring an empty set with
>
> %mysetname set <>
>
> throws an error:
>
> fatal error: file myinput.cdat line 14: Wrong set or parameter: no data
> element defined
>
> I have experimented with the syntax a bit but so far have been unable to
> come up with something that works to produce an empty set. The CMPL
> manual also wasn't helpful here as empty sets in data files are not
> mentioned at all.
>
> Is there any way to define an empty set in a CMPL data file?
>
> Thanks in advance and best regards,
>
> Christopher
> --
> Christopher Gross, M.Sc.
>
> Lehrstuhl für Health Care Operations/Health Information Management
>
> Universitäres Zentrum für Gesundheitswissenschaften am Klinikum Augsburg
> (UNIKA-T), Neusässer Straße 47, 86156 Augsburg;
>
> Wirtschaftswissenschaftliche Fakultät, Universität Augsburg,
> Universitätsstraße 16, 86159 Augsburg
>
>
> Tel.: +49 821 598-6454
>
> E-Mail: christopher.gross at unikat.uni-augsburg.de
> Web: http://www.wiwi.uni-augsburg.de/bwl/brunner/
> _______________________________________________
> 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/20150807/da618a4a/attachment.html>
More information about the Cmpl
mailing list