User Functions Reference

These are the primary functions that control model import and execution.

pysd.read_vensim(mdl_file)[source]

Construct a model from Vensim .mdl file.

Parameters:mdl_file (<string>) – The relative path filename for a raw Vensim .mdl file
Returns:model – Elements from the python model are loaded into the PySD class and ready to run
Return type:a PySD class object

Examples

>>> model = read_vensim('../tests/test-models/samples/teacup/teacup.mdl')
pysd.load(py_model_file)[source]

Load a python-converted model file.

Parameters:py_model_file (<string>) –
Filename of a model which has already been converted into a
python format.

Examples

>>> model = load('../tests/test-models/samples/teacup/teacup.py')