dynamic growth syntax without max/min solve statement

Problems with syntax of GAMS
Post Reply
m_tanawat
User
User
Posts: 13
Joined: 6 years ago

dynamic growth syntax without max/min solve statement

Post by m_tanawat »

Hi,

I am trying to do future projection of population.
Understand that GAMS modeling standard requires model and solve statement.

I am not sure if in my case I do not want to maximize or minimize anything.
I just want GAMS to calculate future population.
How can I complete below program?

Set t / 1985*1990 /
Parameter pop(t) / 1985 3456 /
growth(t) / 1985 25.3, 1986 27.3, 1987 26.2
1988 27.1, 1989 26.6, 1990 26.6 /

loop(t, pop(t+1) = pop(t) + growth(t) ) ;

Best,
cladelpino
User
User
Posts: 108
Joined: 7 years ago

Re: dynamic growth syntax without max/min solve statement

Post by cladelpino »

(Using GAMS is overkill for this)

Perhaps

Code: Select all

display pop
is what you are missing ?
Post Reply