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')