The sub-package cmepy.fsp contains CmePy’s implementation of the Finite State Projection (FSP) algorithm. This sub-package contains the following modules:
Some scripts containing examples of using CmePy’s FSP implementation to solve the burr08 model are included in the examples directory.
The example scripts are named:
These scripts all use a common function to plot output, which is defined by the file:
- fsp_example_util.py
To run the scripts, simply execute them using the Python interpreter. For example:
python fsp_example_1_simple_expansion.py
Each script will display two plots via matplotlib when complete. The first plot shows the solution of the CME at a number of times. The second plot shows the domain used by the FSP solver for these times.
Note
If these example scripts are unable to locate CmePy, check that CmePy is correctly installed.