help-glpk
[Top][All Lists]
Advanced

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

Re: [Help-glpk] Some suggestions to GLPK/L


From: Luis E. Castro
Subject: Re: [Help-glpk] Some suggestions to GLPK/L
Date: Wed, 24 Jul 2002 15:52:52 -0600

Hello.

> >1. numerical set, like mentioned in a previous email.
> >It would be convienient if we can simply declare 
> >         set S = (1..10000);
> >How inconvienient if I have to explictly list 10000
> >items in the set.
> 
> I agree :+) However all items (i.e. elements of a set) should have
> unique names, so integers can't be used (otherwise from the context
> 'a[#123]' it is unclear which set the item '123' belongs to). The main
> issue is the syntax. The context 'set S = (ABC1..ABC1000)' is more or
> less clear. But what about 'set S = (ABC1D..ABC1000D)'? May be better to
> write something like 'set S = (address@hidden@D, i=1..1000)' ?

But you already have the type of i. 
When you say:
    parameter winter[months];
in the expression winter[i], i is member of the set months.


Luis E. Castro





reply via email to

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