[FlopCpp] example doesn't run
Michael Chen
vancouver.michael at gmail.com
Tue Jul 14 10:43:47 EDT 2009
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/20090714/ac4b5f61/attachment.html
More information about the FlopCpp
mailing list