Ramp function

Use this forum to post Vensim related questions.
Post Reply
nadia
Member
Posts: 28
Joined: Sun Oct 31, 2010 4:02 pm

Ramp function

Post by nadia »

Hi everybody,

How to use the ramp function?in my sd model, actual data shows that per capita consumption of rice shows a declining trend at 1percent over the year. Therefore, how im going to put in this scenario in my model? is it possible for me to use the ramp function?By the way Im using vensim.Thank you in advance.


Regards,
Nadia
Administrator
Super Administrator
Posts: 4847
Joined: Wed Mar 05, 2003 3:10 am

Re: Ramp function

Post by Administrator »

The help system explains how to use it.

http://www.vensim.com/documentation/ind ... ?22670.htm

Use something like
percentage decrease = RAMP ( -0.1 , INITIAL TIME, FINAL TIME )
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391

Units are important!
http://www.bbc.co.uk/news/magazine-27509559
tomfid
Administrator
Posts: 4000
Joined: Wed May 24, 2006 4:54 am

Re: Ramp function

Post by tomfid »

A linear ramp, as in the RAMP function, is not necessarily what you want. If the 1%/yr change is compounding, you can use a stock to represent that:

rice demand = INTEG( rice dem changing , init rice demand) ~ kg/person/yr
rice dem changing = rice demand*rice dem change rate ~ (kg/person/yr)/yr
rice dem change rate = -0.01 ~ fraction/yr

If the rate of change is constant, you can use the exponential solution to this directly,

rice demand = init rice demand*EXP( rice dem change rate*(Time-INITIAL TIME))

Tom
Post Reply