[FlopCpp] example doesn't run
Tim Hultberg
Tim.Hultberg at eumetsat.int
Mon Jul 27 10:39:43 EDT 2009
Thanks.
A proper use of "Any" can be found in multiProduct.cpp in the example directory.
(I don’t maintain the "User Documentation" - corrections can be edited directly into the wiki)
Cheers, Tim
From: flopcpp-bounces at list.coin-or.org [mailto:flopcpp-bounces at list.coin-or.org] On Behalf Of Michael Chen
Sent: Tuesday, July 14, 2009 4:44 PM
To: flopcpp at list.coin-or.org
Subject: [FlopCpp] example doesn't run
The example from https://projects.coin-or.org/FlopC++/wiki/FlopcSets, doesn't compile.
enum {Opladen, Suelz, numS};
enum {hier, jetzt, nachher, numD};
MP_set S(numS);
MP_set D(numD);
MP_subset<2> Bink(S,D);
Bink.insert(S, D.Any); <===== line 42
FlopC.cpp:42: error: invalid conversion from ‘flopc::MP_index& (*)()’ to ‘int’
FlopC.cpp:42: error: initializing argument 1 of ‘flopc::MP_index_exp::MP_index_exp(int)’
The interpretation of the example from the same webpage is also confusing: "As all members of S and no members of D are used, membership in set Bink is only given to the combinations (0,0) and (1,0) representing (Opladen, hier) and (Suelz, hier). "
First of all members of S are {0,1,2}, not just {0,1}; secondly, if no members of D is used, then the set Bink can not be populated at all.
--
Best regards,
Michael Chen
Google Voice Phone.: 847-448-0647
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.coin-or.org/pipermail/flopcpp/attachments/20090727/7bda7e3d/attachment.html
More information about the FlopCpp
mailing list