[FlopCpp] please request my answer

Martin Grados Marquina themartininf at gmail.com
Wed Nov 7 11:37:50 EST 2007


Thanks for your help.

2007/11/7, Tim Hultberg <Tim.Hultberg at eumetsat.int>:
>
> Yes, you should do this:
>
> MP_subset<2> ac(A,C);
>
> forall( ab(a,b)*bc(b,c),  ac.insert(a,c));
>
> "MP_binary_variable Xac(ac);"
>
> Cheers, Tim
>
>
> >>> "Martin Grados Marquina" <themartininf at gmail.com> 07/11/2007 05:26 >>>
> Some person could explain me, how work flopc++ with it MP_subset. For
> example I declare three set:
>
> MP_set A(numA), B(numB), C(numC);
>
> y then i declared the subset
>
> MP_subset<2> ab(A,B), bc(B,C);
>
> then insert elements:
>
> ab.insert(12,780);   ab.insert(30,780);    ab.insert(41,782);    . . .
> bc.insert(780,170);    bc.insert(780,140);    bc.insert(782,154);    . . .
>
> then if i declare the variable binary
>
> MP_binary_variable Xac(A,C);
>
> ie, flopcpp link the element of set A to the elements of the set C by
> means
> of set B ?? .. It is a error ?
>
> Or maybe I have to declare
>
> MP_subset<2> ac(A,C);
> and the insert :
> ac.insert(12,170); ac.insert(30,140);  ac.inset(41,154);    ...
> So that I can use
> "MP_binary_variable Xac(A,C);"
>
> please request my answer.
>
> Very Thanks
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.coin-or.org/pipermail/flopcpp/attachments/20071107/140a192e/attachment.html


More information about the FlopCpp mailing list