Thanks for your help.<br><br><div><span class="gmail_quote">2007/11/7, Tim Hultberg <<a href="mailto:Tim.Hultberg@eumetsat.int">Tim.Hultberg@eumetsat.int</a>>:</span><blockquote class="gmail_quote" style="margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; margin-left: 0.80ex; border-left-color: #cccccc; border-left-width: 1px; border-left-style: solid; padding-left: 1ex">
Yes, you should do this:<br><br>MP_subset<2> ac(A,C);<br><br>forall( ab(a,b)*bc(b,c), ac.insert(a,c));<br><br>"MP_binary_variable Xac(ac);"<br><br>Cheers, Tim<br><br><br>>>> "Martin Grados Marquina" <
<a href="mailto:themartininf@gmail.com">themartininf@gmail.com</a>> 07/11/2007 05:26 >>><br>Some person could explain me, how work flopc++ with it MP_subset. For<br>example I declare three set:<br><br>MP_set A(numA), B(numB), C(numC);
<br><br>y then i declared the subset<br><br>MP_subset<2> ab(A,B), bc(B,C);<br><br>then insert elements:<br><br>ab.insert(12,780); ab.insert(30,780); ab.insert(41,782); . . .<br>bc.insert(780,170); bc.insert
(780,140); bc.insert(782,154); . . .<br><br>then if i declare the variable binary<br><br>MP_binary_variable Xac(A,C);<br><br>ie, flopcpp link the element of set A to the elements of the set C by means<br>of set B ?? .. It is a error ?
<br><br>Or maybe I have to declare<br><br>MP_subset<2> ac(A,C);<br>and the insert :<br>ac.insert(12,170); ac.insert(30,140); ac.inset(41,154); ...<br>So that I can use<br>"MP_binary_variable Xac(A,C);"
<br><br>please request my answer.<br><br>Very Thanks<br><br></blockquote></div><br>