-
Notifications
You must be signed in to change notification settings - Fork 1
Validating MDPSolver
Anders Reenberg Andersen edited this page Apr 16, 2025
·
6 revisions
This section briefly describes how to test and ensure that MDPSolver produces the expected results.
Start by ensuring that MDPSolver has been correctly downloaded and installed (see the section on how to install MDPSolver), e.g. by running pip show mdpsolver in the terminal followed by import mdpsolver in Python.
Now follow these steps to ensure that MDPSolver correctly computes the policy and value vector for a given MDP problem:
- Install NumPy with
pip install numpy. - Clone the MDPSolver repository (
git clone https://github.com/areenberg/mdpsolver.git). - Navigate to
Python/tests. - To validate the
pipinstallation of MDPSolver, runpython test1_pip.pyandpython test2_pip.py. - If MDPSolver runs correctly, you will see the messages
Test 1 succesfully reproduced output!andTest 2 succesfully reproduced output!. If MDPSolver does not run correctly, the program will abort followed by an indication of the model that failed to reproduce the results (e.g.Model 2a failed!).