[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-glpk] Index i = -M, 0 ~~~(Decrementing) how to implement in t
From: |
Noli.Sicad |
Subject: |
Re: [Help-glpk] Index i = -M, 0 ~~~(Decrementing) how to implement in this MathProg |
Date: |
Tue, 19 Oct 2004 13:56:10 +1000 |
Sorry it k not j
Subject to Area:
Summation (subscript j) in Xij + Win = Ai, i= -M,0
Do syntax like this, works?
sum (i in -M, j in J)
Noli
-----Original Message-----
From: address@hidden
[mailto:address@hidden On Behalf Of
Sicad, Noli (CMIT, Highett)
Sent: Tuesday, 19 October 2004 1:48 PM
To: address@hidden
Subject: [Help-glpk] Index i = -M,0 ~~~(Decrementing) how to implement
in this MathProg
I have a problem, i.e. constraint that requires index i decrementing
from -M to O, instead of usual incrementing by 1. How do AMPL/MathProg
decrement? How do we implement this in MathProg?
~~~~~
It goes this way (This is not a ampl/mathprog syntax)
Subject to Area:
Summation (subscript k) in Xij + Win = Ai, i= -M,0
Where: Ai = number of hectares present in period 1 that were regenerated
in period i, i= -M, 0 (hectares in each age-class).
~~~~~~
Thanks in advance.
Regards, Noli
_______________________________________________
Help-glpk mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/help-glpk