You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

725 lines
321 KiB

3 months ago
  1. {
  2. "cells": [
  3. {
  4. "cell_type": "markdown",
  5. "metadata": {},
  6. "source": [
  7. "## Example usage of Tempestpy"
  8. ]
  9. },
  10. {
  11. "cell_type": "code",
  12. "execution_count": 1,
  13. "metadata": {
  14. "vscode": {
  15. "languageId": "plaintext"
  16. }
  17. },
  18. "outputs": [
  19. {
  20. "name": "stdout",
  21. "output_type": "stream",
  22. "text": [
  23. "pygame 2.6.0 (SDL 2.28.4, Python 3.10.12)\n",
  24. "Hello from the pygame community. https://www.pygame.org/contribute.html\n"
  25. ]
  26. },
  27. {
  28. "name": "stderr",
  29. "output_type": "stream",
  30. "text": [
  31. "2024-09-23 08:47:31.782344: E external/local_xla/xla/stream_executor/cuda/cuda_fft.cc:485] Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered\n",
  32. "2024-09-23 08:47:31.796255: E external/local_xla/xla/stream_executor/cuda/cuda_dnn.cc:8454] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered\n",
  33. "2024-09-23 08:47:31.800423: E external/local_xla/xla/stream_executor/cuda/cuda_blas.cc:1452] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered\n",
  34. "2024-09-23 08:47:31.810763: I tensorflow/core/platform/cpu_feature_guard.cc:210] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.\n",
  35. "To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.\n",
  36. "2024-09-23 08:47:32.657828: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT\n",
  37. "error: XDG_RUNTIME_DIR not set in the environment.\n"
  38. ]
  39. }
  40. ],
  41. "source": [
  42. "from sb3_contrib import MaskablePPO\n",
  43. "from sb3_contrib.common.wrappers import ActionMasker\n",
  44. "from stable_baselines3.common.logger import Logger, CSVOutputFormat, TensorBoardOutputFormat, HumanOutputFormat\n",
  45. "\n",
  46. "import gymnasium as gym\n",
  47. "\n",
  48. "from minigrid.core.actions import Actions\n",
  49. "from minigrid.core.constants import TILE_PIXELS\n",
  50. "from minigrid.wrappers import RGBImgObsWrapper, ImgObsWrapper\n",
  51. "\n",
  52. "import tempfile, datetime, shutil\n",
  53. "\n",
  54. "import time\n",
  55. "import os\n",
  56. "\n",
  57. "from utils import MiniGridShieldHandler, create_log_dir, ShieldingConfig, MiniWrapper, expname, shield_needed, shielded_evaluation, create_shield_overlay_image\n",
  58. "from sb3utils import MiniGridSbShieldingWrapper, parse_sb3_arguments, ImageRecorderCallback, InfoCallback\n",
  59. "\n",
  60. "import os, sys\n",
  61. "from copy import deepcopy\n",
  62. "\n",
  63. "from PIL import Image"
  64. ]
  65. },
  66. {
  67. "cell_type": "code",
  68. "execution_count": null,
  69. "metadata": {
  70. "vscode": {
  71. "languageId": "plaintext"
  72. }
  73. },
  74. "outputs": [
  75. {
  76. "name": "stdout",
  77. "output_type": "stream",
  78. "text": [
  79. "Starting the training\n"
  80. ]
  81. },
  82. {
  83. "data": {
  84. "image/jpeg": "/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL/wAARCAGgAgADASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwDDooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigDzLVNU1CPV71Ev7pUWdwqrMwAG48Dmqn9r6n/ANBG7/7/ALf40av/AMhq/wD+viT/ANCNU6ALn9r6n/0Ebv8A7/t/jR/a+p/9BG7/AO/7f41TooA19U1TUI9XvUS/ulRZ3CqszAAbjwOaqf2vqf8A0Ebv/v8At/jRq/8AyGr/AP6+JP8A0I1ToAuf2vqf/QRu/wDv+3+NH9r6n/0Ebv8A7/t/jVOigD6XorA1GwuJ9Ukn0nWjBfoi+ZayMJImXtuTqufUVTltPEWpox1a/g0mxQfvBZv88gHU7z90f5NfnscPGST50vvv93X5fgfdSryTa5W/ut9/T5/idXRXKRWniLTEU6TfwatYuP3YvH+eMHod4+8P8irmnWFxBqkc+ra0Z790by7WNhHEq99qdWx6miWHjFN86f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uZ/ATj
  86. "text/plain": [
  87. "<PIL.Image.Image image mode=RGB size=512x416>"
  88. ]
  89. },
  90. "metadata": {},
  91. "output_type": "display_data"
  92. },
  93. {
  94. "name": "stdout",
  95. "output_type": "stream",
  96. "text": [
  97. "\n",
  98. "\n",
  99. "Computing new shield\n",
  100. "LOG: Starting with explicit model creation...\n",
  101. "Elapsed time is 0.08271026611328125 seconds.\n",
  102. "LOG: Starting with model checking...\n",
  103. "Elapsed time is 0.0008902549743652344 seconds.\n",
  104. "LOG: Starting to translate shield...\n",
  105. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 445\n",
  106. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 446\n",
  107. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 447\n",
  108. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 448\n",
  109. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 449\n",
  110. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 450\n",
  111. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 451\n",
  112. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 452\n",
  113. "Elapsed time is 0.026116371154785156 seconds.\n"
  114. ]
  115. },
  116. {
  117. "data": {
  118. "image/png": "iVBORw0KGgoAAAANSUhEUgAAAgAAAAGgCAYAAADcjN+JAABcOklEQVR4Ae29Pa8lR3rneVgiOBBAjYQmUCgCZHFl0BHH0Th9m946Ox498RPc+QBNevwAxDrsXmcXC/Rda72WV5DRM7uGrOYdZ3qBEdeRoWE1F10ooRs92wQGQ0jLjd/J+9SJjBOZJyNOZkZE5j+APJkZGU88Ef943iLy5bx2e3v7/UFJCAgBISAEhIAQ2BUCj3bVW3VWCAgBISAEhIAQOCKgAECCIASEgBAQAkJghwgoANjhoKvLQkAICAEhIAQUAEgGhIAQEAJCQAjsEAEFADscdHVZCAgBISAEhIACAMmAEBACQkAICIEdIqA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KASgOANQYfOV8rAIBXLAi4FABAN1saCgJGAoDZeFOR+MfhFP5xXObOlfxNR3QJmYzgPxQArGX/9x4AVPka4FqDP10b5ilZvF9LKHUKNOKfgtb8ZYX//Jim1NgK/ku1c2K9xe1kypg2Xra6AGDrg1+8fxOVcDG5Fv/FoJ1UsfCfBNNihWrHf+n2Xai/uH1cbODrrLiqAGAvg1+8nxeUcHFRFf/FIR5lIPxH4Vn8Yq34r9WuAT7F7eLiA18fg2oCgL0NfvH+DijhaiIq/qtBHWUk/KOwrJZZG/5rtyfgV9werjbwdTGq4kNAn3/k/lNyp+lnv4g8GbNTLNRtISAE9oUADwGWtP+fPXtWHPCS/X+9eO9dA27v7g6lIsA13wIIsb4n450wV+dCQAgIgf0gUNL+u9fADnfO/5RI2P/Hjx+XYP2KZzW3AI7O8FWztn+wt/5uf0T
  119. "text/plain": [
  120. "<PIL.Image.Image image mode=RGBA size=512x416>"
  121. ]
  122. },
  123. "metadata": {},
  124. "output_type": "display_data"
  125. },
  126. {
  127. "name": "stdout",
  128. "output_type": "stream",
  129. "text": [
  130. "The shield for shield_value = 0.9\n",
  131. "\n",
  132. "\n",
  133. "Computing new shield\n",
  134. "LOG: Starting with explicit model creation...\n",
  135. "Elapsed time is 0.08337211608886719 seconds.\n",
  136. "LOG: Starting with model checking...\n",
  137. "Elapsed time is 0.0007877349853515625 seconds.\n",
  138. "LOG: Starting to translate shield...\n",
  139. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 54\n",
  140. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 55\n",
  141. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 56\n",
  142. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 57\n",
  143. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 58\n",
  144. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 59\n",
  145. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 60\n",
  146. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 61\n",
  147. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 62\n",
  148. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 315\n",
  149. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 316\n",
  150. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 317\n",
  151. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 318\n",
  152. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 319\n",
  153. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 320\n",
  154. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 321\n",
  155. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 322\n",
  156. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 323\n",
  157. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 444\n",
  158. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 445\n",
  159. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 446\n",
  160. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 447\n",
  161. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 448\n",
  162. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 449\n",
  163. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 450\n",
  164. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 451\n",
  165. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 452\n",
  166. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 453\n",
  167. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 458\n",
  168. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 459\n",
  169. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 460\n",
  170. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 461\n",
  171. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 462\n",
  172. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 463\n",
  173. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 464\n",
  174. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 465\n",
  175. "Elapsed time is 0.02267932891845703 seconds.\n"
  176. ]
  177. },
  178. {
  179. "data": {
  180. "image/png": "iVBORw0KGgoAAAANSUhEUgAAAgAAAAGgCAYAAADcjN+JAABf10lEQVR4Ae29Pa8lR5rnd1hT4GIAzs6ABGovgWJRY9AZjtPj8JCQI2flldfUF7j7Acjy+AEIOSTlSBDQV5Y8tqzCGL0rGWM17zjiAtOU08C2WM0FL2pAokdNYLHEzlLxO3meOpFxMs/JiJOZEZH5j4u4mRkZTzwZ/3jeIvLlvHR9ff3TRkkICAEhIASEgBBYFQL3VtVbdVYICAEhIASEgBDYIaAAQIIgBISAEBACQmCFCCgAWOGgq8tCQAgIASEgBBQASAaEgBAQAkJACKwQAQUAKxx0dVkICAEhIASEgAIAyYAQEAJCQAgIgRUioABghYOuLgsBISAEhIAQUAAgGRACQkAICAEhsEIEFACscNDVZSEgBISAEBACCgAkA0JACAgBISAEVoiAAoAVDrq6LASEgBAQAkJAAYBkQAgIASEgBITAChFQALDCQVeXhYAQEAJCQAgoAJAMCAEhIASEgBBYIQIKAFY46OqyEBACQkAICAEFAJIBISAEhIAQEAIrREABwAoHXV0WAkJACAgBIaAAQDIgBISAEBACQmCFCCgAWOGgq8tCQAgIASEgBBQASAaEgBAQAkJACKwQAQUAKxx0dVkICAEhIASEgAIAyYAQEAJCQAgIgRUioABghYOuLgsBISAEhIAQUAAgGRACQkAICAEhsEIEFACscNDVZSEgBISAEBACCgAkA0JACAgBISAEVoiAAoAVDrq6LASEgBAQAkJAAYBkQAgIASEgBITAChFQAL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gBBYDwI57b97DWxz4/xPjoT9f/DgQQ7WL3gWcwtg5wxfXNbyd9b
  181. "text/plain": [
  182. "<PIL.Image.Image image mode=RGBA size=512x416>"
  183. ]
  184. },
  185. "metadata": {},
  186. "output_type": "display_data"
  187. },
  188. {
  189. "name": "stdout",
  190. "output_type": "stream",
  191. "text": [
  192. "The shield for shield_value = 0.99\n",
  193. "\n",
  194. "\n",
  195. "Computing new shield\n",
  196. "LOG: Starting with explicit model creation...\n",
  197. "Elapsed time is 0.08304810523986816 seconds.\n",
  198. "LOG: Starting with model checking...\n",
  199. "Elapsed time is 0.0007925033569335938 seconds.\n",
  200. "LOG: Starting to translate shield...\n",
  201. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 54\n",
  202. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 55\n",
  203. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 56\n",
  204. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 57\n",
  205. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 58\n",
  206. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 59\n",
  207. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 60\n",
  208. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 61\n",
  209. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 62\n",
  210. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 67\n",
  211. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 68\n",
  212. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 69\n",
  213. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 70\n",
  214. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 71\n",
  215. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 72\n",
  216. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 73\n",
  217. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 74\n",
  218. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 315\n",
  219. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 316\n",
  220. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 317\n",
  221. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 318\n",
  222. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 319\n",
  223. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 320\n",
  224. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 321\n",
  225. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 322\n",
  226. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 323\n",
  227. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 329\n",
  228. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 330\n",
  229. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 331\n",
  230. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 332\n",
  231. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 333\n",
  232. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 334\n",
  233. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 335\n",
  234. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 336\n",
  235. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 444\n",
  236. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 445\n",
  237. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 446\n",
  238. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 447\n",
  239. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 448\n",
  240. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 449\n",
  241. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 450\n",
  242. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 451\n",
  243. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 452\n",
  244. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 453\n",
  245. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 457\n",
  246. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 458\n",
  247. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 459\n",
  248. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 460\n",
  249. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 461\n",
  250. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 462\n",
  251. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 463\n",
  252. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 464\n",
  253. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 465\n",
  254. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 466\n",
  255. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 471\n",
  256. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 472\n",
  257. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 473\n",
  258. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 474\n",
  259. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 475\n",
  260. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 476\n",
  261. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 477\n",
  262. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 478\n",
  263. "Elapsed time is 0.022092103958129883 seconds.\n"
  264. ]
  265. },
  266. {
  267. "data": {
  268. "image/png":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NNPoR8SgcA7Vv2HMkDUgdAT/gM8c9/LA8EipHXK373gTT7YT20A0fgLXEOcEWn/L2GX5nK4lYi/0NHgPhT/ha9/nTxS+xzBD6YUP8McQCm1P90AAp3AKacfMj91A4AeKgRxrFLrgOg532G2DX8WlZj1xFAPnYR/vP/9WznaSXElgOg2eR/6AgQ/+NvAlD+2rdGdB1Vsf60s1asjsC/e9ZmTiH/pxyAqfU/HYCCHYCpJx+iPYcDAD59TkCfA4A6IDXEP39j4DfppQ4U8SfyecDOcwSXTXP+H48DoAXJ3zgCxJ/y5377QNeIG1e3/twBaFr0wtTr/5gDMIf+pwNQqAMwx+RDzudyAMDL5wSccgBQLxn1OQFHHIBkvNEQ+fvhJP5+XFLnUv6GIzqFTHrw73MA5tL/a3cAinwNcK7JH74a0pTMPq4pFnUINOQfglb6ssQ/PaYhLdaC/1T9HNhudj0ZMqeVly3OAVj65Gcf38BFOJlck/9k0A5qmPgPgmmyQqXjP3X/TrSfXT9ONvFlNlyUA7CWyc8+zhOLcHJRJf/JIT7KgPgfhWfyk6XiP1e/evhk14uTT3x5DIpxANY2+dnH27MIZxNR8p8Nai8j4u+FZbbM0vCfuz8Ov+z6cLaJL4tRER8Cev+u/KfkSukXv/I8GbNSLDhsIkAE1oUAHgLMqf/fe/AgO+A5x38z++ilAxeXl5tcHuCcbwG4WO+QccvNZZoIEAEisB4Ecup/eQ1scyn2JwdB/5+dneVgfc2zmFsAjTG87tbyD9Y23uXPKEdIBIhALAJr04eljLcYBwC
  269. "text/plain": [
  270. "<PIL.Image.Image image mode=RGBA size=512x416>"
  271. ]
  272. },
  273. "metadata": {},
  274. "output_type": "display_data"
  275. },
  276. {
  277. "name": "stdout",
  278. "output_type": "stream",
  279. "text": [
  280. "The shield for shield_value = 0.999\n",
  281. "\n",
  282. "\n",
  283. "Computing new shield\n",
  284. "LOG: Starting with explicit model creation...\n",
  285. "Elapsed time is 0.08694028854370117 seconds.\n",
  286. "LOG: Starting with model checking...\n",
  287. "Elapsed time is 0.0007922649383544922 seconds.\n",
  288. "LOG: Starting to translate shield...\n",
  289. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 54\n",
  290. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 55\n",
  291. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 56\n",
  292. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 57\n",
  293. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 58\n",
  294. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 59\n",
  295. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 60\n",
  296. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 61\n",
  297. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 62\n",
  298. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 67\n",
  299. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 68\n",
  300. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 69\n",
  301. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 70\n",
  302. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 71\n",
  303. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 72\n",
  304. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 73\n",
  305. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 74\n",
  306. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 80\n",
  307. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 81\n",
  308. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 82\n",
  309. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 83\n",
  310. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 84\n",
  311. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 85\n",
  312. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 86\n",
  313. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 315\n",
  314. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 316\n",
  315. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 317\n",
  316. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 318\n",
  317. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 319\n",
  318. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 320\n",
  319. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 321\n",
  320. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 322\n",
  321. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 323\n",
  322. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 329\n",
  323. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 330\n",
  324. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 331\n",
  325. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 332\n",
  326. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 333\n",
  327. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 334\n",
  328. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 335\n",
  329. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 336\n",
  330. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 343\n",
  331. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 344\n",
  332. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 345\n",
  333. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 346\n",
  334. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 347\n",
  335. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 348\n",
  336. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 349\n",
  337. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 444\n",
  338. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 445\n",
  339. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 446\n",
  340. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 447\n",
  341. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 448\n",
  342. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 449\n",
  343. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 450\n",
  344. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 451\n",
  345. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 452\n",
  346. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 453\n",
  347. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 457\n",
  348. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 458\n",
  349. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 459\n",
  350. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 460\n",
  351. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 461\n",
  352. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 462\n",
  353. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 463\n",
  354. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 464\n",
  355. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 465\n",
  356. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 466\n",
  357. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 470\n",
  358. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 471\n",
  359. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 472\n",
  360. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 473\n",
  361. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 474\n",
  362. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 475\n",
  363. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 476\n",
  364. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 477\n",
  365. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 478\n",
  366. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 479\n",
  367. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 484\n",
  368. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 485\n",
  369. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 486\n",
  370. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 487\n",
  371. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 488\n",
  372. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 489\n",
  373. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 490\n",
  374. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 491\n",
  375. "Elapsed time is 0.021901845932006836 seconds.\n"
  376. ]
  377. },
  378. {
  379. "data": {
  380. "image/png": "iVBORw0KGgoAAAANSUhEUgAAAgAAAAGgCAYAAADcjN+JAABnNklEQVR4Ae29Ta8kN5YenKopyBhA4xmUgNtXQKn0zqI2rd50b5TSzpvxrnZdv+D6B6hqpx8geCPVu7FhYK5X3km7Qi/a876LXqmyN64BuuWNgG5XqQa6qIGEtlWAYWFm5PME89xgMBmZQQYjSEY854KXQQbJQz48POcE4yNfu7i4+HFDIgJEgAgQASJABFaFwI1VjZaDJQJEgAgQASJABBoE6ABQEIgAESACRIAIrBABOgArnHQOmQgQASJABIgAHQDKABEgAkSACBCBFS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63D3SNuHF1688dgKZFL0y9/o85AHPofzoAhToAc0w+5HwuBwC8fE7AKQcA9ZJRnxNwxAFIxhsNkb8fTuLvxyV1LuVvOKJTyKQH/z4HYC79v3YHoMjXAOea/OGrIU3J7OOaYlGHQEP+IWilL0v802Ma0mIt+E/Vz4HtZteTIXNaedniHIClT3728Q1chJPJNflPBu2ghon/IJgmK1Q6/lP370T72fXjZBNfZsNFOQBrmfzs4zyxCCcXVfKfHOKjDIj/UXgmP1kq/nP1q4dPdr04+cSXx6AYB2Btk599vD2LcDYRJf/ZoPYyIv5eWGbLLA3/ufvj8MuuD2eb+LIYFfEhoI/vyW9KrpT+9teeJ2NWigWHTQSIwLoQwEOAOfX/R48fZwc85/hvZh+9dODi8nKTywOc8y0AF+sdMm67uUwTASJABNaDQE79L6+BbS7F/uQg6P+zs7McrK95FnMLoDGG191a/sHaxrv8GeUIiQARiEVgbfq
  381. "text/plain": [
  382. "<PIL.Image.Image image mode=RGBA size=512x416>"
  383. ]
  384. },
  385. "metadata": {},
  386. "output_type": "display_data"
  387. },
  388. {
  389. "name": "stdout",
  390. "output_type": "stream",
  391. "text": [
  392. "The shield for shield_value = 0.9999\n",
  393. "\n",
  394. "\n",
  395. "Computing new shield\n",
  396. "LOG: Starting with explicit model creation...\n",
  397. "Elapsed time is 0.08632326126098633 seconds.\n",
  398. "LOG: Starting with model checking...\n",
  399. "Elapsed time is 0.0008187294006347656 seconds.\n",
  400. "LOG: Starting to translate shield...\n",
  401. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 54\n",
  402. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 55\n",
  403. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 56\n",
  404. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 57\n",
  405. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 58\n",
  406. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 59\n",
  407. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 60\n",
  408. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 61\n",
  409. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 62\n",
  410. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 67\n",
  411. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 68\n",
  412. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 69\n",
  413. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 70\n",
  414. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 71\n",
  415. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 72\n",
  416. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 73\n",
  417. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 74\n",
  418. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 80\n",
  419. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 81\n",
  420. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 82\n",
  421. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 83\n",
  422. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 84\n",
  423. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 85\n",
  424. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 86\n",
  425. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 93\n",
  426. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 94\n",
  427. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 95\n",
  428. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 96\n",
  429. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 97\n",
  430. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 98\n",
  431. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 106\n",
  432. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 107\n",
  433. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 108\n",
  434. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 109\n",
  435. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 110\n",
  436. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 315\n",
  437. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 316\n",
  438. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 317\n",
  439. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 318\n",
  440. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 319\n",
  441. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 320\n",
  442. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 321\n",
  443. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 322\n",
  444. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 323\n",
  445. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 329\n",
  446. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 330\n",
  447. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 331\n",
  448. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 332\n",
  449. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 333\n",
  450. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 334\n",
  451. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 335\n",
  452. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 336\n",
  453. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 343\n",
  454. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 344\n",
  455. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 345\n",
  456. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 346\n",
  457. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 347\n",
  458. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 348\n",
  459. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 349\n",
  460. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 357\n",
  461. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 358\n",
  462. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 359\n",
  463. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 360\n",
  464. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 361\n",
  465. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 362\n",
  466. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 371\n",
  467. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 372\n",
  468. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 373\n",
  469. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 374\n",
  470. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 375\n",
  471. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 444\n",
  472. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 445\n",
  473. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 446\n",
  474. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 447\n",
  475. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 448\n",
  476. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 449\n",
  477. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 450\n",
  478. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 451\n",
  479. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 452\n",
  480. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 453\n",
  481. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 457\n",
  482. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 458\n",
  483. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 459\n",
  484. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 460\n",
  485. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 461\n",
  486. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 462\n",
  487. "Elapsed time is 0.022674560546875 seconds.\n",
  488. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 463\n",
  489. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 464\n",
  490. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 465\n",
  491. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 466\n",
  492. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 470\n",
  493. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 471\n",
  494. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 472\n",
  495. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 473\n",
  496. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 474\n",
  497. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 475\n",
  498. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 476\n",
  499. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 477\n",
  500. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 478\n",
  501. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 479\n",
  502. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 483\n",
  503. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 484\n",
  504. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 485\n",
  505. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 486\n",
  506. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 487\n",
  507. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 488\n",
  508. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 489\n",
  509. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 490\n",
  510. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 491\n",
  511. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 492\n",
  512. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 496\n",
  513. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 497\n",
  514. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 498\n",
  515. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 499\n",
  516. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 500\n",
  517. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 501\n",
  518. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 502\n",
  519. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 503\n",
  520. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 504\n",
  521. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 505\n"
  522. ]
  523. },
  524. {
  525. "data": {
  526. "image/png": "iVBORw0KGgoAAAANSUhEUgAAAgAAAAGgCAYAAADcjN+JAABsYUlEQVR4Ae29T68lt5UneJWVUKMAVVchBTw/AenMrkVuLG/sTV5pN5uaXS4asD7B+wKZ2ukDCLORcjY9GKDerGYn7RJeuN298Ep5vUoDtnojwJ5MyciHLEhwjwQ0Wqiy+vyC97xg8MY/MhhBMuJ3HvgYZJA85I+H55xg/LmvXVxc/LAjEQEiQASIABEgAptC4MamRsvBEgEiQASIABEgAhUCdAAoCESACBABIkAENogAHYANTjqHTASIABEgAkSADgBlgAgQASJABIjABhGgA7DBSeeQiQARIAJEgAjQAaAMEAEiQASIABHYIAJ0ADY46RwyESACRIAIEAE6AJQBIkAEiAARIAIbRIAOwAYnnUMmAkSACBABIkAHgDJABIgAESACRGCDCNAB2OCkc8hEgAgQASJABOgAUAaIABEgAkSACGwQAToAG5x0DpkIEAEiQASIAB0AygARIAJEgAgQgQ0iQAdgg5POIRMBIkAEiAARoANAGSACRIAIEAEisEEE6ABscNI5ZCJABIgAESACdAAoA0SACBABIkAENogAHYANTjqHTASIABEgAkSADgBlgAgQASJABIjABhGgA7DBSeeQiQARIAJEgAjQAaAMEAEiQASIABHYIAJ0ADY46RwyESACRIAIEAE6AJQBIkAEiAARIAIbRIAOwAYnnUMmAkSACBABIkAHgDJABIgAESACRGCDCNAB2OCkc8hEgAgQASJABOgAUAaIABEgAkSACGwQAToAG5x0DpkIEAEiQASIAB0AygARIAJEgAgQgQ0iQAdgg5POIRMBIkAEiAARuJkagg+ePEndhaT8//H1V7vdRcIuXApv8k83AcSf8rfh9fen/+ss3doTzq/+UfRvQjr709nuwwcPkvUguQOAkb96lW4SLi8udheX0MJp6B9vp+FbcU03bDNo8k84+cKa+BN/IAA5SOGEHOUvpf7f/WNaEUjNfdO3APZH9DVOPRmL8qfyXxTuE2bE/wSSRTOIfxPupfFYml9ztFVqk3rfwWGzDoA7+W7awWldydSLj/zTyhPxJ/5tCCwlF0vxaRvjMW9T+r4Hh006AF2T35Xfg195p1IvPvJPKzPEn/j3ITC3fMzdft/Yjuc2oedH4IAim3MAhiZ/6PxIXPMslnrxkX9auSD+xH8MAnPJyVztjhnTscyq9bsHDlp0Uw7A2MkfW05BLCJOvfjIP62YEH/i74NAbHmJ3Z7PWI5lV6nXA3Cwq2zGAfCdfN/yNqjZHad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/9eynaeVEFsOgGaT/6kjQPz73wSg/NVvjeg6KmL9aWetWB2B//BdnTmH/A85AHPrfzoAGTsAc08+RHsJBwB8upyALgcAdUBqiH/x9shv0ksdKOJP5fOAjecILqvm2v+1OABakPyNI0D8KX/utw90jbhxcevPHYCmRS/Mvf77HIAl9D8dgEwdgCUmH3K+lAMAXm1OwJADgHrRqMsJ6HEAovFGQ+TfDifxb8cldi7lbzyic8hkC/5dDsBS+n/rDkCWrwEuNfnjV0OcksnHNcei9oGG/H3Qil+W+MfH1KfFUvCfq58j202uJ33mtPCy2TkAa5/85OMbuQhnk2vynw3aUQ0T/1EwzVYod/zn7t9A+8n142wTn2fDWTkAW5n85OMcWISziyr5zw5xLwPi3wvP7CdzxX+pfnXwSa4XZ5/4/Bhk4wBsbfKTj7djES4mouS/GNStjIh/KyyLZeaG/9L9cfgl14eLTXxejLL4ENCHD+Q3JTdK//yrlidjNooFh00EiMC2EMBDgCn1/wdPniQHPOX4byYfvXTg4vJyl8oDXPItABfrAzJuu7lMEwEiQAS2g0BK/S+vge0uxf6kIOj/s7OzFKyveWZzC6AyhtfdWv/B1sa7/hnlCIkAEQhFYGv
  527. "text/plain": [
  528. "<PIL.Image.Image image mode=RGBA size=512x416>"
  529. ]
  530. },
  531. "metadata": {},
  532. "output_type": "display_data"
  533. },
  534. {
  535. "name": "stdout",
  536. "output_type": "stream",
  537. "text": [
  538. "The shield for shield_value = 1.0\n",
  539. "Training with shield:\n"
  540. ]
  541. },
  542. {
  543. "data": {
  544. "image/png": "iVBORw0KGgoAAAANSUhEUgAAAgAAAAGgCAYAAADcjN+JAABseklEQVR4Ae29T68dN5YneK0S3CjA1VWQgZfPgFKaWmiTzo1ro2vvZlO90y71Cd4XkLTzBzBmY2s2Mxig3qxmZ++EXGRnzyJX1s2VEsh0bwxktmQn9KCCjeyxgUYbVek5v+A9CgZv/CODESQjfueBj0EGyUP+eHjOCcaf+8bFxcWPOxIRIAJEgAgQASKwKQSubWq0HCwRIAJEgAgQ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IDXEv3h35DfppQ4U8WfyecDGcwSXVXPt/1ocAC1I/sYRIP6UP/fbB7pG3Li49ecOQNOiF+Ze/30OwBL6nw5Apg7AEpMPOV/KAQCvNidgyAFAvWjU5QT0OADReKMh8m+Hk/i34xI7l/I3HtE5ZLIF/y4HYCn9v3UHIMvXAJea/PGrIU7J5OOaY1H7QEP+PmjFL0v842Pq02Ip+M/Vz5HtJteTPnNaeNnsHIC1T37y8Y1chLPJNfnPBu2ohon/KJhmK5Q7/nP3b6D95PpxtonPs+GsHICtTH7ycQ4swtlFlfxnh7iXAfHvhWf2k7niv1S/Ovgk14uzT3x+DLJxALY2+cnH27EIFxNR8l8M6lZGxL8VlsUyc8N/6f44/JLrw8UmPi9GWXwI6KN78puSG6V/+VXLkzEbxYLDJgJEYFsI4CHAlPr/wydPkgOecvzXk49eOnBxeblL5QEu+RaAi/UBGTfdXKaJABEgAttBIKX+l9fAdpdif1IQ9P/Z2VkK1q95ZnMLoDKGr7u1/oOtjXf9M8oREgEiEIrA1vR
  545. "text/plain": [
  546. "<PIL.Image.Image image mode=RGBA size=512x416>"
  547. ]
  548. },
  549. "metadata": {},
  550. "output_type": "display_data"
  551. },
  552. {
  553. "name": "stdout",
  554. "output_type": "stream",
  555. "text": [
  556. "Using cpu device\n",
  557. "Wrapping the env with a `Monitor` wrapper\n",
  558. "Wrapping the env in a DummyVecEnv.\n",
  559. "Wrapping the env in a VecTransposeImage.\n",
  560. "-----------------------------------\n",
  561. "| info/ | |\n",
  562. "| no_shield_action | 0 |\n",
  563. "| sum_opened_door | 0 |\n",
  564. "| sum_picked_up | 0 |\n",
  565. "| sum_ran_into_lava | 2 |\n",
  566. "| sum_reached_goal | 4 |\n",
  567. "| rollout/ | |\n",
  568. "| ep_len_mean | 147 |\n",
  569. "| ep_rew_mean | -1.32 |\n",
  570. "| time/ | |\n",
  571. "| fps | 122 |\n",
  572. "| iterations | 1 |\n",
  573. "| time_elapsed | 16 |\n",
  574. "| total_timesteps | 2048 |\n",
  575. "-----------------------------------\n",
  576. "-----------------------------------------\n",
  577. "| info/ | |\n",
  578. "| no_shield_action | 0 |\n",
  579. "| sum_opened_door | 0 |\n",
  580. "| sum_picked_up | 0 |\n",
  581. "| sum_ran_into_lava | 3 |\n",
  582. "| sum_reached_goal | 7 |\n",
  583. "| rollout/ | |\n",
  584. "| ep_len_mean | 155 |\n",
  585. "| ep_rew_mean | -1.4 |\n",
  586. "| time/ | |\n",
  587. "| fps | 64 |\n",
  588. "| iterations | 2 |\n",
  589. "| time_elapsed | 63 |\n",
  590. "| total_timesteps | 4096 |\n",
  591. "| train/ | |\n",
  592. "| approx_kl | 0.004596745 |\n",
  593. "| clip_fraction | 0.0505 |\n",
  594. "| clip_range | 0.2 |\n",
  595. "| entropy_loss | -0.965 |\n",
  596. "| explained_variance | 0.00267 |\n",
  597. "| learning_rate | 0.0003 |\n",
  598. "| loss | 0.00807 |\n",
  599. "| n_updates | 10 |\n",
  600. "| policy_gradient_loss | -0.00159 |\n",
  601. "| value_loss | 0.153 |\n",
  602. "-----------------------------------------\n",
  603. "-----------------------------------------\n",
  604. "| info/ | |\n",
  605. "| no_shield_action | 0 |\n",
  606. "| sum_opened_door | 0 |\n",
  607. "| sum_picked_up | 0 |\n",
  608. "| sum_ran_into_lava | 3 |\n",
  609. "| sum_reached_goal | 12 |\n",
  610. "| rollout/ | |\n",
  611. "| ep_len_mean | 157 |\n",
  612. "| ep_rew_mean | -1.34 |\n",
  613. "| time/ | |\n",
  614. "| fps | 55 |\n",
  615. "| iterations | 3 |\n",
  616. "| time_elapsed | 110 |\n",
  617. "| total_timesteps | 6144 |\n",
  618. "| train/ | |\n",
  619. "| approx_kl | 0.007139873 |\n",
  620. "| clip_fraction | 0.0514 |\n",
  621. "| clip_range | 0.2 |\n",
  622. "| entropy_loss | -0.989 |\n",
  623. "| explained_variance | 0.652 |\n",
  624. "| learning_rate | 0.0003 |\n",
  625. "| loss | 0.00669 |\n",
  626. "| n_updates | 20 |\n",
  627. "| policy_gradient_loss | -0.00884 |\n",
  628. "| value_loss | 0.0208 |\n",
  629. "-----------------------------------------\n"
  630. ]
  631. }
  632. ],
  633. "source": [
  634. "GRID_TO_PRISM_BINARY=os.getenv(\"M2P_BINARY\")\n",
  635. "\n",
  636. "def mask_fn(env: gym.Env):\n",
  637. " return env.create_action_mask()\n",
  638. "\n",
  639. "def nomask_fn(env: gym.Env):\n",
  640. " return [1.0] * 7\n",
  641. "\n",
  642. "def main():\n",
  643. " env = \"MiniGrid-LavaSlipperyCliff-16x13-Slip10-Time-v0\"\n",
  644. " \n",
  645. " formula = \"Pmax=? [G ! AgentIsOnLava]\"\n",
  646. " value_for_training = 0.99\n",
  647. " shield_comparison = \"absolute\"\n",
  648. " shielding = ShieldingConfig.Training\n",
  649. " \n",
  650. " logger = Logger(\"/tmp\", output_formats=[HumanOutputFormat(sys.stdout)])\n",
  651. " \n",
  652. " env = gym.make(env, render_mode=\"rgb_array\")\n",
  653. " image_env = RGBImgObsWrapper(env, TILE_PIXELS)\n",
  654. " env = RGBImgObsWrapper(env, 8)\n",
  655. " env = ImgObsWrapper(env)\n",
  656. " env = MiniWrapper(env)\n",
  657. "\n",
  658. " \n",
  659. " env.reset()\n",
  660. " Image.fromarray(env.render()).show()\n",
  661. " \n",
  662. " shield_handlers = dict()\n",
  663. " if shield_needed(shielding):\n",
  664. " for value in [0.9, 0.99, 0.999, 0.9999, 1.0]:\n",
  665. " shield_handler = MiniGridShieldHandler(GRID_TO_PRISM_BINARY, \"grid.txt\", \"grid.prism\", formula, shield_value=value, shield_comparison=shield_comparison, nocleanup=False, prism_file=None)\n",
  666. " env = MiniGridSbShieldingWrapper(env, shield_handler=shield_handler, create_shield_at_reset=False)\n",
  667. " create_shield_overlay_image(image_env, shield_handler.create_shield())\n",
  668. " print(f\"The shield for shield_value = {value}\")\n",
  669. "\n",
  670. " shield_handlers[value] = shield_handler\n",
  671. "\n",
  672. "\n",
  673. " if shielding == ShieldingConfig.Training:\n",
  674. " env = MiniGridSbShieldingWrapper(env, shield_handler=shield_handlers[value_for_training], create_shield_at_reset=False)\n",
  675. " env = ActionMasker(env, mask_fn)\n",
  676. " print(\"Training with shield:\")\n",
  677. " create_shield_overlay_image(image_env, shield_handlers[value_for_training].create_shield())\n",
  678. " elif shielding == ShieldingConfig.Disabled:\n",
  679. " env = ActionMasker(env, nomask_fn)\n",
  680. " else:\n",
  681. " assert(False) \n",
  682. " model = MaskablePPO(\"CnnPolicy\", env, verbose=1, device=\"auto\")\n",
  683. " model.set_logger(logger)\n",
  684. " steps = 20_000\n",
  685. "\n",
  686. " #assert(False)\n",
  687. " model.learn(steps,callback=[InfoCallback()])\n",
  688. "\n",
  689. "\n",
  690. "\n",
  691. "if __name__ == '__main__':\n",
  692. " print(\"Starting the training\")\n",
  693. " main()"
  694. ]
  695. },
  696. {
  697. "cell_type": "code",
  698. "execution_count": null,
  699. "metadata": {},
  700. "outputs": [],
  701. "source": []
  702. }
  703. ],
  704. "metadata": {
  705. "kernelspec": {
  706. "display_name": "Python 3 (ipykernel)",
  707. "language": "python",
  708. "name": "python3"
  709. },
  710. "language_info": {
  711. "codemirror_mode": {
  712. "name": "ipython",
  713. "version": 3
  714. },
  715. "file_extension": ".py",
  716. "mimetype": "text/x-python",
  717. "name": "python",
  718. "nbconvert_exporter": "python",
  719. "pygments_lexer": "ipython3",
  720. "version": "3.10.12"
  721. }
  722. },
  723. "nbformat": 4,
  724. "nbformat_minor": 4
  725. }