{ "cells": [ { "cell_type": "markdown", "id": "79b5e68a", "metadata": {}, "source": [ "# Simulator\n", "If we have a transition system, it might be nice to run a simulation. In this case, we have an MDP that models a hungry lion. Depending on the state it is in, it needs to decide whether it wants to 'rawr' or 'hunt' in order to prevent reaching the state 'dead'." ] }, { "cell_type": "code", "execution_count": 1, "id": "bcc8069b", "metadata": { "execution": { "iopub.execute_input": "2026-07-01T08:29:46.482296Z", "iopub.status.busy": "2026-07-01T08:29:46.481992Z", "iopub.status.idle": "2026-07-01T08:29:47.142480Z", "shell.execute_reply": "2026-07-01T08:29:47.141847Z" } }, "outputs": [ { "data": { "text/html": [ "\n", "\n", "\n", "
\n", "