Please enable JavaScript to view this site.

Vensim Help

C/C++int VEFCC vensim_continue_simulation(int num_iter) ; 

int VEFCC VensimCContinueSimulation(int context,int num_iter) ; 

Javapublic static native int continue_simulation( int numIntervals );

public static native int CContinueSimulation(int context, int numIntervals );

VBPrivate Declare Function vensim_continue_simulation Lib "vendll32.dll" (ByVal number_time_step As Long) As Long
Pascalfunction vensim_continue_simulation(num_iter: Integer) : Integer ;  stdcall ; external 'vendll32.dll' ;

Use vensim_continue_simulation as many times as necessary between vensim_start_simulation and vensim_finish_simulation to complete the simulation for all times.

Arguments

num_inter        The number of TIME_STEP iterations that should be executed during the continuation.  This can be chosen so that the execution time of the command is small enough to permit frequent feedback to the user.

Returns

1 - to indicate that there is still more to do.

0 - to indicate that there is nothing more to do.  In this case vensim_finish_simulation should be called.

-1 - to indicate that a floating point error occurred during the simulation.  In this case vensim_finish_simulation should be called.

Notes

This function does nothing if vensim_start_simulation has not been called.  In this situation it will return 0.

If you have not turned off the work in progress display window with vensim_be_quiet(1) then it is very important to call vensim_set_parent_window before using vensim_continue_simulation. Otherwise the rapid display and hiding of the work in progress window can cause system performance problems.

See Also

vensim_start_simulation, vensim_finish_simulation