Skip to content

moves-rwth/stormvogel

Repository files navigation

Stormvogel 🐦: An interactive approach to probabilistic model checking in Python

The state-of-the-art model checking tools that are currently available are optimized to be efficient, but not much effort goes into making them user-friendly. The result of this is that they are quite hard to learn and use. Stormvogel solves this problem by providing easy and user-friendly APIs for creating probabilistic Markov models, and tools to visualize and debug them. It supports seemless conversion to the powerful Storm(py) model checker out of the box.

Features

  • Easy APIs for constructing Markov models in dedicated data structures. Currently, DTMCs, MDPs, CTMCs, POMDPs and Markov Automata are supported. This also includes parametric variants. Interval models are in development.

  • Seamless conversion between stormvogel and stormpy models with some runtime overhead. This allows, e.g., also using formats such as JANI and PRISM that are not supported by stormvogel directly. It is also possible to add support for a different model checker.

  • Visualization of Markov models as an interactive graph. This includes extensive layout options, and displaying model checking results and simulations in an interactive way.

  • Support for gymnasium environments

  • An extensive documentation with clear examples.

Check out the the stormvogel documentation for examples of how to use stormvogel.

Installation

There are different ways to install stormvogel, depending on your needs. If you do not have stormpy installed, we recommend installing with Docker. If you already have stormpy, or are not interested in features that rely on stormpy, then we recommend installing without docker.

Note: We are currently working on making stormpy easy to install with pip, which would make a direct installation preferable on Linux/macOS. This README will be updated when this is working.

Docker (release version, recommended for users)

  1. Install docker. Run:
  2. docker run -it -p 8080:8080 stormvogel/stormvogel
  3. Now a browser window should open that runs jupyter lab with stormvogel and stormpy installed.

Without docker (release version)

Steps 1 and 2 can be difficult, and they only work on Linux and macOS. They are only required if you need the storm/stormpy backend. If this is not the case, consider skipping them. Most features will still work.

  1. Install Storm
  2. Install stormpy
  3. In the same environment where stormpy is installed, run pip install stormvogel
  4. jupyter lab

For development (latest version)

Note that you might have to tweak these steps a bit to get it to work on your particular system, but here is an outline.

  1. Install the poetry package manager
  2. Install Storm
  3. Clone the stormpy repository
  4. Clone the stormvogel repo (or your own fork) in a separate folder
  5. In the stormvogel folder:
    poetry install
    poetry shell # Activate poetry virtual environment
    pip install <path to stormpy>
    pip install . # Install stormvogel
    
    If installing stormpy fails in poetry, you can also try to follow the official stormpy installation instructions, and run poetry shell on top of the virtualenv environment that they describe there.
  6. Install pre-commit hook: pre-commit install

Testing

Notice that part of the tests will fail if stormpy is not installed.

pytest

Authors

Stormvogel was mainly developped at Radboud University by Linus Heck, Pim Leerkes, and Ivo Melse under supervision from Sebastian Junges and Matthias Volk.

License

Stormvogel is licenced under the GPL-3.0 license.