[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-glpk] how to use prod?

From: Shan Gao
Subject: Re: [Help-glpk] how to use prod?
Date: Tue, 20 Mar 2007 12:06:24 -0400

yes. it is. so, is that the reason?

I try to solve Min Bandwidth problem.

min B
s.t. B>= Tu-Tv, (u,v) in E.
      sum{u in V} Tu = n(n+1)/2
      sum{u in S} Tu = |S|(|S|+1)/2, S contained by V, S is not empty.

I don't know how to handle S, a subset of V.

can anybody help?

On 3/20/07, Michael Hennebry < address@hidden> wrote:
On Tue, 20 Mar 2007, Shan Gao wrote:

> I am trying to use prod to calculate the production of numbers stored in an
> array x.
> I wrote: prod {i in 1..5} x[i];    // same format with sum
> but I was told  "integrand following prod{...} has invalid type".

By any chance, is x an array of variables?

Mike   address@hidden
"Finally, mount the partition, not the virgin."  --  Charles Curley

reply via email to

[Prev in Thread] Current Thread [Next in Thread]