The pseudo-code looks something like this:
Code: Select all
for i in 1:step:100
#Here is where the user is given control before the simulation of a given time step is carried out
vensim_start_simulation(0, 2, 1)
vensim_continue_simulation(step)
vensim_finish_simulation()
0
10
20
30
40
50
60
70
80
90
In my program it appears as though the step value is being ignored as I get the following (the .vpm is set for a time step of 1 minute):
0
1
2
3
4
5
6
7
8
9
Can anyone tell me what seems to be the problem here? The program is written in Python. In case it is relevant here is how this result was obtained:
Code: Select all
model = venpy.load("../models/coffee_cup.vpm")
model.cmd("SIMULATE>RUNNAME|Test")
model.cmd("MENU>GAME|O")
for _ in range(0, 100, 10):
print(model['Time'])
model.dll.vensim_start_simulation(0, 2, 1)
model.dll.vensim_continue_simulation(10)
model.dll.vensim_finish_simulation()