$ sudo apt-get install libeigen3-dev gnuplot cmake
$ mkdir build
$ cd build
$ cmake ..
$ make
After building, the final binary is located at build/mo-brtdp.
The binary runs all the benchmarks 5 times for SCHVI, SBPCA-DB and SBPCA-PA, outputting the results and statistics in out/.
The code used for evaluation is located in include/evaluation.hpp.
The file format is described in depth here: PRISM Format Description , see Transition ( .tra ) files and Transition Reward ( .trew ) files.
It is also possible to supply more than one dimension of rewards in one file for any transition.
-
Original PRISM format:
- 1 0 2 6 - transition from 1 under action 0 to state 2 has reward 6
-
Additionally supported:
- 1 0 2 6 3 - transition has reward (6, 3)
More details on the parser ( all the things that are checked, etc. ) are given in the source file src/parser.cpp
No CLI for now, but running the solvers on an MDP of your choice can be done as follows.
note that PRISM needs to be installed, see github.
-
Export the explicit transition files, this can be done using PRISM by running the following in the root directory of PRISM
$ prism/bin/prism MODEL_PATH --exporttrans out.tra --exporttransrewards out.trew
-
Locate the ID of the starting state, this can be done by $ prism/bin/prism MODEL_PATH --exportlabels labels.txt , and looking at the index associated with the label "init", which is usually 0
-
Run the solvers on these transition files. An example setup is given in include/eval_example.hpp