Simulator for Causal Block Diagrams

Randy Paredis 6b6a9a0d2d Added DeltaTBlock пре 3 година
doc 6b6a9a0d2d Added DeltaTBlock пре 3 година
examples 4f04f86ce1 Added Sympy Solver -- TODO: update docs пре 3 година
experiments 6f576760b9 C code generation updates wrt latex updates пре 3 година
src 6b6a9a0d2d Added DeltaTBlock пре 3 година
.gitignore e732c41a7c Added more tests + removed duplicate test executions пре 3 година
CBD-startingpoint.zip 36dc8eff63 Bugfixes + plotting extensions + LotkaVolterra example пре 4 година
README.md 9d37358d4b Massive cleanup of repo пре 3 година
coverage.sh e732c41a7c Added more tests + removed duplicate test executions пре 3 година
docs.sh 50acbb065b Bugfixes пре 4 година
requirements.txt bb8df13c2a Changes to docs + P2 compatibility пре 4 година
test.sh ec562b52c7 Swapped src/CBD directory names to allow for setup.py пре 4 година

README.md

CBD Simulator Framework

 Copyright the Modelling, Simulation and Design Lab (MSDL)
           https://msdl.uantwerpen.be/

 Author(s): Marc Provost
            Hans Vangheluwe
            Joachim Denil
            Claudio Gomes
            Randy Paredis
  
 Purpose: simulates CBD models in Python.

 Requires Python version >= 2.7 or >= 3.6

Installation and Updates

The simulator can easily be installed with one of the following commands, from the src directory (one of the following options suffices).

# OPTION 1:
python setup.py install --user

# OPTION 2:
pip install .

# OPTION 3:
python -m pip install .

Note that these commands assume python and pip refer to either Python 2 or Python 3, depending on your system.

Note: Some editors allow you to "mark" a directory as a source root. Use this option in your favorite IDE to use the library in a project without the need for installing it. Alternatively, the src directory could also be added to the PYTHONPATH variable.

To update your version to the newest simulator version, obtain the latest version from the repository and run one of the above commands once more.

Documentation

Take a look at the documentation (in the doc/ folder) for more details on this framework. This includes detailed API descriptions, use cases and examples (both simple and complex).

The HTML-version of the documentation can be built from within the doc/ folder with the make html command.

Quick Launches

The bundled shell scripts allow you to quickly launch some helper programs:

  • coverage.sh: Creates a coverage profile of the tests and stores it in an HTML.
  • docs.sh: Create the documentation in HTML-format.
  • test.sh: Execute the tests for the CBD simulator.