[Cmpl] Empty sets in CMPL data files

Steglich, Mike mike.steglich at th-wildau.de
Fri Aug 7 07:39:23 EDT 2015


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:  <mailto:christopher.gross at unikat.uni-augsburg.de> Christopher Gross
 Gesendet:  ‎07.‎08.‎2015 12:54
 An:  <mailto:cmpl at list.coin-or.org> 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/49b7e0a6/attachment.html>


More information about the Cmpl mailing list