[FlopCpp] this very importa to me ... please help me

Martin Grados Marquina themartininf at gmail.com
Sat Nov 10 11:34:55 EST 2007


i have one question ... please help me this is very importan, if i have the
next source

MP_set A(numA), B(numB), C(numC);
MP_subset<2> ab(A,B), bc(B,C), ac(A,C);

ab.insert(12,780); ab.insert(30,780); ab.insert(41,782); . . .
bc.insert(780,170); bc.insert(780,140); bc.insert(782,154); . . .
forall( ab(a,b)*bc(b,c), ac.insert(a,c));

MP_subset<1> AA(A), CC(C);
forall( ac(a,c), CC.insert(c));
forall( ac(a,c), AA.insert(a));
MP_binary_variable Xac(ac), Yc(CC);

My questio is, if would do this :

MP_constraint P(AA);
P(AA(a)) =sum(CC(c), Xac(ac(a,c))) <= 917*Yc(CC(c));

or maybe
MP_constraint P(A);
P(A(a))=sum(C(c), Xac(ac(a,c))) <= 917*Yc(C(c))

Very Thank.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.coin-or.org/pipermail/flopcpp/attachments/20071110/83740bb7/attachment-0001.html


More information about the FlopCpp mailing list