Thanks for your help.<br><br><div><span class="gmail_quote">2007/11/7, Tim Hultberg &lt;<a href="mailto:Tim.Hultberg@eumetsat.int">Tim.Hultberg@eumetsat.int</a>&gt;:</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&lt;2&gt; ac(A,C);<br><br>forall( ab(a,b)*bc(b,c),&nbsp;&nbsp;ac.insert(a,c));<br><br>&quot;MP_binary_variable Xac(ac);&quot;<br><br>Cheers, Tim<br><br><br>&gt;&gt;&gt; &quot;Martin Grados Marquina&quot; &lt;
<a href="mailto:themartininf@gmail.com">themartininf@gmail.com</a>&gt; 07/11/2007 05:26 &gt;&gt;&gt;<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&lt;2&gt; ab(A,B), bc(B,C);<br><br>then insert elements:<br><br>ab.insert(12,780);&nbsp;&nbsp; ab.insert(30,780);&nbsp;&nbsp;&nbsp;&nbsp;ab.insert(41,782);&nbsp;&nbsp;&nbsp;&nbsp;. . .<br>bc.insert(780,170);&nbsp;&nbsp;&nbsp;&nbsp;bc.insert
(780,140);&nbsp;&nbsp;&nbsp;&nbsp;bc.insert(782,154);&nbsp;&nbsp;&nbsp;&nbsp;. . .<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&lt;2&gt; ac(A,C);<br>and the insert :<br>ac.insert(12,170); ac.insert(30,140);&nbsp;&nbsp;ac.inset(41,154);&nbsp;&nbsp;&nbsp;&nbsp;...<br>So that I can use<br>&quot;MP_binary_variable Xac(A,C);&quot;
<br><br>please request my answer.<br><br>Very Thanks<br><br></blockquote></div><br>