User Functions Reference¶
These are the primary functions that control model import and execution.
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
>>> model = read_vensim('../tests/test-models/samples/teacup/teacup.mdl')
Load a python-converted model file.
Parameters: py_model_file (<string>) –
- Filename of a model which has already been converted into a
- python format.
>>> model = load('../tests/test-models/samples/teacup/teacup.py')