I have noticed that both RAMP and STEP are executed when TIME + TIME STEP/2 > start time and TIME +TIME STEP/2 > step time, respectively.
This could produce a bug when the start time (or step time) is not a multiple of the time step. For example, the function
Code: Select all
RAMP(1, 0.45, 10)
produces the output
Code: Select all
0 1 2 3
-0.45 0.55 1.55 2.55
Code: Select all
slope*(TIME- start time)
Code: Select all
0 1 2 3
0 0.55 1.55 2.55
Code: Select all
STEP(1, 0.45)
Code: Select all
0 1 2 3
1 1 1 1
Code: Select all
0 1 2 3
0 1 1 1
I am using Vensim DSS 9.2.4 x64 in Windows.
Find the model attached. Thank you