[FlopCpp] please request my answer
Tim Hultberg
Tim.Hultberg at eumetsat.int
Wed Nov 7 09:00:01 EST 2007
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
More information about the FlopCpp
mailing list