[FlopCpp] FlopCpp Digest, Vol 44, Issue 5

Arman Boyacı armanboyaci at gmail.com
Fri Sep 24 04:47:20 EDT 2010


Problem solved. I found the reason. It was due to my mistake on creating the
subsets Incoming<V,A> and Outgoing<V,A>.

On Wed, Sep 22, 2010 at 7:00 PM, <flopcpp-request at list.coin-or.org> wrote:

> Send FlopCpp mailing list submissions to
>        flopcpp at list.coin-or.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        http://list.coin-or.org/mailman/listinfo/flopcpp
> or, via email, send a message with subject or body 'help' to
>        flopcpp-request at list.coin-or.org
>
> You can reach the person managing the list at
>        flopcpp-owner at list.coin-or.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of FlopCpp digest..."
>
>
> Today's Topics:
>
>   1. using subsets in constraints and in summations (Arman Boyac?)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 22 Sep 2010 18:29:57 +0300
> From: Arman Boyac? <armanboyaci at gmail.com>
> Subject: [FlopCpp] using subsets in constraints and in summations
> To: flopcpp at list.coin-or.org
> Message-ID:
>        <AANLkTikGGyxBZmWL4SObjZDbTg9daiwT__3gbdMKtzzc at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi,
>
> In the following code we try to take a subset of constraints using
> *MP_subset
> ( in the example: N)
> *I think the hard part is that in the same time we take a subset of data
> (in
> the example: Incoming and Outgoing)*
> *
>
> > MP_set V(100);
> > MP_set A(50);
> >
> > MP_data D(V);
> >
> > MP_subset<2> Incoming(V,A);
> > MP_subset<2> Outgoing(V,A);
> >
> > MP_subset<1> N(V);
> >
> > MP_variable Flow(A);
> >
> > MP_index v;
> >
> >
> >
> Conservation(N(v))=-1*sum(Incoming(N(v),A),Flow(A))+sum(Outgoing(N(v),A),Flow(A))==D(v);
> >
> //
> >
> Conservation(N(V))=-1*sum(Incoming(V,A),Flow(A))+sum(Outgoing(V,A),Flow(A))==D(V);
> >
>
> //Conservation(N(v))=-1*sum(Incoming(v,A),Flow(A))+sum(Outgoing(v,A),Flow(A))==D(v);
> >
>
>
> We tried several things:
> (1) It does not work at all.
> (2) The domain of the summation is not correct (not restricted)
> (3) Same thing as in (2)
>
> I hope that the problem is clear :)
>
> Thanks in advance.
>
> -Arman
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://list.coin-or.org/pipermail/flopcpp/attachments/20100922/9f261188/attachment-0001.html
>
> ------------------------------
>
> _______________________________________________
> FlopCpp mailing list
> FlopCpp at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/flopcpp
>
>
> End of FlopCpp Digest, Vol 44, Issue 5
> **************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.coin-or.org/pipermail/flopcpp/attachments/20100924/35f91db5/attachment.html 


More information about the FlopCpp mailing list