Skip to content

Latest commit

 

History

History
63 lines (43 loc) · 1.72 KB

README.md

File metadata and controls

63 lines (43 loc) · 1.72 KB

ProbReach Simulator

The ProbReach simulator performs simulation of the provided .pdrh model and produces a .json file as output.

Required packages

How to build

git clone https://github.com/dreal/probreach.git probreach
cd probreach
mkdir -p build/release
cd build/release
cmake ../../
make simulator

Usage

simulator <options> <file.pdrh/file.drh>

options:

-h - displays help message
-v - displays the tool version
-l - minimum depth of every simulation path (default = 0)
-u - maximum depth of every simulation path (default = 0)
-p - maximum number of simulation paths (default = 1)
-n - number of points used in IVP solving (default = 1)
-o - full path to the output file (default = output.json)
-v - prints out the current version of ProbReach

Visualisation

The visulisation of the produced .json file is performed via a python script visualise.py located in probreach/src/python directory. This script requires pandas package.

Usage

python visualise.py <var 1> <var 2> ... <var n> <path/to/output/file.json>

If no variables are specified in the command line, then all variables are visualised.

Usage example

./simulator -u 300 -n 10 -o output.json ~/probreach/model/insulin-infusion/discrete-pid.pdrh
python ~/probreach/src/python/visualise.py Q1 u C output.json 

The commands above produce the following output:

traj1 traj2