<br>Problem solved. I found the reason. It was due to my mistake on creating the subsets Incoming&lt;V,A&gt; and Outgoing&lt;V,A&gt;.<br><br><div class="gmail_quote">On Wed, Sep 22, 2010 at 7:00 PM,  <span dir="ltr">&lt;<a href="mailto:flopcpp-request@list.coin-or.org">flopcpp-request@list.coin-or.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Send FlopCpp mailing list submissions to<br>
        <a href="mailto:flopcpp@list.coin-or.org">flopcpp@list.coin-or.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="http://list.coin-or.org/mailman/listinfo/flopcpp" target="_blank">http://list.coin-or.org/mailman/listinfo/flopcpp</a><br>
or, via email, send a message with subject or body &#39;help&#39; to<br>
        <a href="mailto:flopcpp-request@list.coin-or.org">flopcpp-request@list.coin-or.org</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:flopcpp-owner@list.coin-or.org">flopcpp-owner@list.coin-or.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than &quot;Re: Contents of FlopCpp digest...&quot;<br>
<br>
<br>
Today&#39;s Topics:<br>
<br>
   1. using subsets in constraints and in summations (Arman Boyac?)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Wed, 22 Sep 2010 18:29:57 +0300<br>
From: Arman Boyac? &lt;<a href="mailto:armanboyaci@gmail.com">armanboyaci@gmail.com</a>&gt;<br>
Subject: [FlopCpp] using subsets in constraints and in summations<br>
To: <a href="mailto:flopcpp@list.coin-or.org">flopcpp@list.coin-or.org</a><br>
Message-ID:<br>
        &lt;<a href="mailto:AANLkTikGGyxBZmWL4SObjZDbTg9daiwT__3gbdMKtzzc@mail.gmail.com">AANLkTikGGyxBZmWL4SObjZDbTg9daiwT__3gbdMKtzzc@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
<br>
Hi,<br>
<br>
In the following code we try to take a subset of constraints using *MP_subset<br>
( in the example: N)<br>
*I think the hard part is that in the same time we take a subset of data (in<br>
the example: Incoming and Outgoing)*<br>
*<br>
<br>
&gt; MP_set V(100);<br>
&gt; MP_set A(50);<br>
&gt;<br>
&gt; MP_data D(V);<br>
&gt;<br>
&gt; MP_subset&lt;2&gt; Incoming(V,A);<br>
&gt; MP_subset&lt;2&gt; Outgoing(V,A);<br>
&gt;<br>
&gt; MP_subset&lt;1&gt; N(V);<br>
&gt;<br>
&gt; MP_variable Flow(A);<br>
&gt;<br>
&gt; MP_index v;<br>
&gt;<br>
&gt;<br>
&gt; Conservation(N(v))=-1*sum(Incoming(N(v),A),Flow(A))+sum(Outgoing(N(v),A),Flow(A))==D(v);<br>
&gt;<br>
//<br>
&gt; Conservation(N(V))=-1*sum(Incoming(V,A),Flow(A))+sum(Outgoing(V,A),Flow(A))==D(V);<br>
&gt;<br>
//Conservation(N(v))=-1*sum(Incoming(v,A),Flow(A))+sum(Outgoing(v,A),Flow(A))==D(v);<br>
&gt;<br>
<br>
<br>
We tried several things:<br>
(1) It does not work at all.<br>
(2) The domain of the summation is not correct (not restricted)<br>
(3) Same thing as in (2)<br>
<br>
I hope that the problem is clear :)<br>
<br>
Thanks in advance.<br>
<br>
-Arman<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <a href="http://list.coin-or.org/pipermail/flopcpp/attachments/20100922/9f261188/attachment-0001.html" target="_blank">http://list.coin-or.org/pipermail/flopcpp/attachments/20100922/9f261188/attachment-0001.html</a><br>

<br>
------------------------------<br>
<br>
_______________________________________________<br>
FlopCpp mailing list<br>
<a href="mailto:FlopCpp@list.coin-or.org">FlopCpp@list.coin-or.org</a><br>
<a href="http://list.coin-or.org/mailman/listinfo/flopcpp" target="_blank">http://list.coin-or.org/mailman/listinfo/flopcpp</a><br>
<br>
<br>
End of FlopCpp Digest, Vol 44, Issue 5<br>
**************************************<br>
</blockquote></div><br>