The source code and dockerfile for the GSW2024 AI Lab.
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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

719 lines
324 KiB

2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 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-24 13:00:24.842265: 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-24 13:00:24.857294: 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-24 13:00:24.861712: 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-24 13:00:24.871856: 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-24 13:00:25.712381: 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": 3,
  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/wAARCAHgAeADASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwDDooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKAOzorA1GwuJ9Ukn0nWjBfoi+ZayMJImXtuTqufUVTltPEWpox1a/g0mxQfvBZv88gHU7z90f5NfnscPGST50vvv93X5fgfdSryTa5W/ut9/T5/idXRXKRWniLTEU6TfwatYuP3YvH+eMHod4+8P8irmnWFxBqkc+ra0Z790by7WNhHEq99qdWx6miWHjFN86f33+7p8/wAQjXk2lytfdb7+vy/A36KwNRsLifVJJ9J1owX6IvmWsjCSJl7bk6rn1FU5bTxFqaMdWv4NJsUH7wWb/PIB1O8/dH+TRHDxkk+dL77/AHdfl+ASryTa5W/ut9/T5/idXRXKRW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KhaNkX/aqQ5ukJ6qlj/hPmdgS+FgavPHE0kjzC/gqdu2v2qfQJixptIK2LQ6rXb1o+ex0RJq9sST7de385BRctQoT/vOg4JPnw1EIzIfAAQTad14yUaK5bmWdLK5L8OE/Twk+eT4chcAcCDSK4ri8H06v3eZgJulPbwVyZCI9fF05kSs5tAn
  86. "text/plain": [
  87. "<PIL.Image.Image image mode=RGB size=480x480>"
  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.053414344787597656 seconds.\n",
  102. "LOG: Starting with model checking...\n",
  103. "Elapsed time is 0.0018138885498046875 seconds.\n",
  104. "LOG: Starting to translate shield...\n",
  105. "Elapsed time is 0.08892679214477539 seconds.\n",
  106. "\n",
  107. "\n",
  108. "Computing new shield\n",
  109. "LOG: Starting with explicit model creation...\n",
  110. "Elapsed time is 0.04616570472717285 seconds.\n",
  111. "LOG: Starting with model checking...\n",
  112. "Elapsed time is 0.0017552375793457031 seconds.\n",
  113. "LOG: Starting to translate shield...\n",
  114. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1211\n",
  115. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1222\n",
  116. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1233\n",
  117. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1244\n",
  118. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1255\n",
  119. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1266\n",
  120. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1277\n",
  121. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1288\n",
  122. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1299\n",
  123. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1344\n",
  124. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1355\n",
  125. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1366\n",
  126. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1377\n",
  127. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1388\n",
  128. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1399\n",
  129. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1410\n",
  130. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1421\n",
  131. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1432\n",
  132. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1460\n",
  133. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1471\n",
  134. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1482\n",
  135. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1493\n",
  136. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1504\n",
  137. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1515\n",
  138. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1526\n",
  139. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1537\n",
  140. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1604\n",
  141. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1615\n",
  142. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1626\n",
  143. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1637\n",
  144. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1648\n",
  145. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1659\n",
  146. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1670\n",
  147. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1681\n",
  148. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 4689\n",
  149. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 4711\n",
  150. "Elapsed time is 0.0928337574005127 seconds.\n",
  151. "\n",
  152. "\n",
  153. "Computing new shield\n",
  154. "LOG: Starting with explicit model creation...\n",
  155. "Elapsed time is 0.04615354537963867 seconds.\n",
  156. "LOG: Starting with model checking...\n",
  157. "Elapsed time is 0.0014677047729492188 seconds.\n",
  158. "LOG: Starting to translate shield...\n",
  159. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1211\n",
  160. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1222\n",
  161. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1233\n",
  162. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1244\n",
  163. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1255\n",
  164. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1266\n",
  165. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1277\n",
  166. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1288\n",
  167. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1299\n",
  168. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1344\n",
  169. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1355\n",
  170. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1366\n",
  171. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1377\n",
  172. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1388\n",
  173. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1399\n",
  174. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1410\n",
  175. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1421\n",
  176. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1432\n",
  177. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1460\n",
  178. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1471\n",
  179. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1482\n",
  180. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1493\n",
  181. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1504\n",
  182. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1515\n",
  183. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1526\n",
  184. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1537\n",
  185. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1604\n",
  186. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1615\n",
  187. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1626\n",
  188. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1637\n",
  189. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1648\n",
  190. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1659\n",
  191. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1670\n",
  192. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1681\n",
  193. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 4689\n",
  194. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 4711\n",
  195. "Elapsed time is 0.08211565017700195 seconds.\n",
  196. "\n",
  197. "\n",
  198. "Computing new shield\n",
  199. "LOG: Starting with explicit model creation...\n",
  200. "Elapsed time is 0.045874834060668945 seconds.\n",
  201. "LOG: Starting with model checking...\n",
  202. "Elapsed time is 0.0018587112426757812 seconds.\n",
  203. "LOG: Starting to translate shield...\n",
  204. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1210\n",
  205. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1211\n",
  206. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1221\n",
  207. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1222\n",
  208. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1232\n",
  209. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1233\n",
  210. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1243\n",
  211. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1244\n",
  212. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1254\n",
  213. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1255\n",
  214. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1265\n",
  215. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1266\n",
  216. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1276\n",
  217. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1277\n",
  218. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1287\n",
  219. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1288\n",
  220. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1298\n",
  221. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1299\n",
  222. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1332\n",
  223. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1343\n",
  224. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1344\n",
  225. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1354\n",
  226. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1355\n",
  227. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1365\n",
  228. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1366\n",
  229. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1376\n",
  230. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1377\n",
  231. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1387\n",
  232. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1388\n",
  233. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1398\n",
  234. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1399\n",
  235. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1409\n",
  236. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1410\n",
  237. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1420\n",
  238. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1421\n",
  239. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1432\n",
  240. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1460\n",
  241. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1461\n",
  242. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1471\n",
  243. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1472\n",
  244. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1482\n",
  245. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1483\n",
  246. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1493\n",
  247. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1494\n",
  248. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1504\n",
  249. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1505\n",
  250. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1515\n",
  251. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1516\n",
  252. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1526\n",
  253. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1527\n",
  254. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1537\n",
  255. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1538\n",
  256. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1604\n",
  257. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1615\n",
  258. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1616\n",
  259. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1626\n",
  260. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1627\n",
  261. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1637\n",
  262. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1638\n",
  263. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1648\n",
  264. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1649\n",
  265. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1659\n",
  266. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1660\n",
  267. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1670\n",
  268. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1671\n",
  269. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1681\n",
  270. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1682\n",
  271. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1693\n",
  272. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 4689\n",
  273. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 4695\n",
  274. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 4711\n",
  275. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 4718\n",
  276. "Elapsed time is 0.0849301815032959 seconds.\n",
  277. "\n",
  278. "\n",
  279. "Computing new shield\n",
  280. "LOG: Starting with explicit model creation...\n",
  281. "Elapsed time is 0.04583621025085449 seconds.\n",
  282. "LOG: Starting with model checking...\n",
  283. "Elapsed time is 0.0014719963073730469 seconds.\n",
  284. "LOG: Starting to translate shield...\n",
  285. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1205\n",
  286. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1206\n",
  287. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1207\n",
  288. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1208\n",
  289. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1209\n",
  290. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1210\n",
  291. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1211\n",
  292. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1216\n",
  293. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1217\n",
  294. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1218\n",
  295. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1219\n",
  296. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1220\n",
  297. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1221\n",
  298. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1222\n",
  299. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1227\n",
  300. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1228\n",
  301. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1229\n",
  302. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1230\n",
  303. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1231\n",
  304. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1232\n",
  305. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1233\n",
  306. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1238\n",
  307. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1239\n",
  308. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1240\n",
  309. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1241\n",
  310. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1242\n",
  311. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1243\n",
  312. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1244\n",
  313. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1249\n",
  314. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1250\n",
  315. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1251\n",
  316. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1252\n",
  317. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1253\n",
  318. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1254\n",
  319. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1255\n",
  320. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1261\n",
  321. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1262\n",
  322. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1263\n",
  323. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1264\n",
  324. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1265\n",
  325. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1266\n",
  326. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1273\n",
  327. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1274\n",
  328. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1275\n",
  329. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1276\n",
  330. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1277\n",
  331. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1285\n",
  332. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1286\n",
  333. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1287\n",
  334. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1288\n",
  335. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1297\n",
  336. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1298\n",
  337. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1299\n",
  338. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1316\n",
  339. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1317\n",
  340. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1318\n",
  341. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1319\n",
  342. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1320\n",
  343. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1327\n",
  344. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1328\n",
  345. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1329\n",
  346. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1330\n",
  347. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1331\n",
  348. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1332\n",
  349. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1338\n",
  350. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1339\n",
  351. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1340\n",
  352. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1341\n",
  353. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1342\n",
  354. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1343\n",
  355. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1344\n",
  356. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1349\n",
  357. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1350\n",
  358. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1351\n",
  359. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1352\n",
  360. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1353\n",
  361. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1354\n",
  362. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1355\n",
  363. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1360\n",
  364. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1361\n",
  365. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1362\n",
  366. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1363\n",
  367. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1364\n",
  368. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1365\n",
  369. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1366\n",
  370. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1372\n",
  371. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1373\n",
  372. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1374\n",
  373. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1375\n",
  374. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1376\n",
  375. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1377\n",
  376. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1384\n",
  377. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1385\n",
  378. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1386\n",
  379. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1387\n",
  380. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1388\n",
  381. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1396\n",
  382. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1397\n",
  383. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1398\n",
  384. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1399\n",
  385. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1408\n",
  386. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1409\n",
  387. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1410\n",
  388. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1420\n",
  389. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1421\n",
  390. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1432\n",
  391. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1460\n",
  392. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1461\n",
  393. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1462\n",
  394. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1463\n",
  395. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1464\n",
  396. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1471\n",
  397. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1472\n",
  398. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1473\n",
  399. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1474\n",
  400. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1475\n",
  401. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1476\n",
  402. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1482\n",
  403. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1483\n",
  404. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1484\n",
  405. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1485\n",
  406. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1486\n",
  407. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1487\n",
  408. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1488\n",
  409. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1493\n",
  410. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1494\n",
  411. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1495\n",
  412. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1496\n",
  413. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1497\n",
  414. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1498\n",
  415. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1499\n",
  416. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1504\n",
  417. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1505\n",
  418. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1506\n",
  419. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1507\n",
  420. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1508\n",
  421. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1509\n",
  422. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1510\n",
  423. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1515\n",
  424. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1516\n",
  425. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1517\n",
  426. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1518\n",
  427. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1519\n",
  428. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1520\n",
  429. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1521\n",
  430. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1526\n",
  431. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1527\n",
  432. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1528\n",
  433. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1529\n",
  434. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1530\n",
  435. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1531\n",
  436. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1532\n",
  437. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1537\n",
  438. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1538\n",
  439. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1539\n",
  440. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1540\n",
  441. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1541\n",
  442. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1542\n",
  443. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1543\n",
  444. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1604\n",
  445. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1615\n",
  446. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1616\n",
  447. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1626\n",
  448. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1627\n",
  449. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1628\n",
  450. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1637\n",
  451. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1638\n",
  452. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1639\n",
  453. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1640\n",
  454. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1648\n",
  455. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1649\n",
  456. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1650\n",
  457. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1651\n",
  458. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1652\n",
  459. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1659\n",
  460. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1660\n",
  461. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1661\n",
  462. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1662\n",
  463. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1663\n",
  464. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1664\n",
  465. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1670\n",
  466. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1671\n",
  467. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1672\n",
  468. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1673\n",
  469. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1674\n",
  470. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1675\n",
  471. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1676\n",
  472. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1681\n",
  473. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1682\n",
  474. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1683\n",
  475. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1684\n",
  476. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1685\n",
  477. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1686\n",
  478. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1687\n",
  479. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1693\n",
  480. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1694\n",
  481. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1695\n",
  482. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1696\n",
  483. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1697\n",
  484. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1698\n",
  485. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1705\n",
  486. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1706\n",
  487. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1707\n",
  488. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1708\n",
  489. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1709\n",
  490. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1717\n",
  491. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1718\n",
  492. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1719\n",
  493. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1720\n",
  494. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1729\n",
  495. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1730\n",
  496. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 1731\n",
  497. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 4689\n",
  498. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 4695\n",
  499. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 4711\n",
  500. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 4718\n",
  501. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 4725\n",
  502. "Elapsed time is 0.08353805541992188 seconds.\n"
  503. ]
  504. },
  505. {
  506. "data": {
  507. "image/png": "iVBORw0KGgoAAAANSUhEUgAAAeAAAAHgCAYAAAB91L6VAABXMElEQVR4Ae29z47cRvamTf/ckGHAahsWINiABM00oE1rVt/mk3wD7pVmZV9BzepbWZ5VX4B3li5A5Rto7bySr0Da9WKg3nhhyBIgQ4YNtS1g0AUb/uJN1qmKPBVMklGZjGDyCSCL/+KcQz6M4FtBRpBvHBwc/NGQIAABCEAAAhCYlMB/TRqNYBCAAAQgAAEIrAggwBQECEAAAhCAQAECCHAB6ISEAAQgAAEIIMCUAQhAAAIQgEABAghwAeiEhAAEIAABCCDA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AHex5LGMUEAAhCAwAmBGsVXO4cAn5wiZiAAAQhAYN8I1Cq+4lyNAOurJ/qKypik/Dk2iuWTPn/2+j9+7eZl5c+xUSyfiJ/HEv6+JG1eFq8ay9/mvWYrBPII1Cy+OqJqxgF//k34hOC/mqbvm5/aaYnunZD/8XMtjbfRB+b/8Wlra3+fBlH++f82zTsXmubau2H6lm05O9VFTPlfH7Xbxtq8/3bTXL+07pf48F9y+VuvDSxB4PwEahdfHWE1AvzZrfDtz19aUf3oq7SoeuG98uf2JEmIh9pI4BXLpw/fCS2D31tRffJjWoi98F54s/UiIR5qI7FWLJ+ID/8llz9fH1iGwHkIzEF8dXzVCLA+9v3oYL11a6J6Jwjm3UenLV4Jr0RU65W07d7x9i6bvpa1Wrw3Lre3Qa11a6IqcXzx+rTFK+H9IKz78GIb/8WvTfPD8fYum75WMvHhv+Ty19Yk/kLg/ATmIr460moE2LCnhPjTB+1WL7xmIyE2kTYhNps+4TUfNk0J4bc/t1u98JqNhFi/WIjNpk9
  508. "text/plain": [
  509. "<PIL.Image.Image image mode=RGBA size=480x480>"
  510. ]
  511. },
  512. "metadata": {},
  513. "output_type": "display_data"
  514. },
  515. {
  516. "name": "stdout",
  517. "output_type": "stream",
  518. "text": [
  519. "The shield for shield_value = 0.0\n"
  520. ]
  521. },
  522. {
  523. "data": {
  524. "image/png": "iVBORw0KGgoAAAANSUhEUgAAAeAAAAHgCAYAAAB91L6VAABfz0lEQVR4Ae29vY7dRvbuTR8PZAiwxoYFCDYgQecESkZv9CZH8g14Ip3IvoKdnUjyG80FOHN3dhK3b8DKHElXIGUTHGgSB4YsATLasKGxBfwxDRt+69ns1b326uLX2mRVkXwK2M2vWmuRD6vq10UWybc2m82fFRMVoAJUgApQASqQVIH/ljQag1EBKkAFqAAVoAJbBQhgFgQqQAWoABWgAhkUIIAziM6QVIAKUAEqQAUIYJYBKkAFqAAVoAIZFCCAM4jOkFSAClABKkAFCGCWASpABagAFaACGRQggDOIzpBUgApQASpABQhglgE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+CaVu6hgpcAXohDARRUN7gwVoAJTK0D4Tq1wuf5Lgi9UIoDLLSvcMypABUZWgPAdWdAZuSsNvpCOAJ5RAeKuUgEq4FeA8PVrN3fLEuELTQnguZcs7j8VoAKdChC+nRItNkOp8IXgxQAYXz3BV1SGJOT32CCWTfj82Zv/2LXty8jvsUEsmxjfpyX1tyWpfRl6lVj+2vd6v62E7376zdm6ZPhC12KeA/78cfiE4L+qquubn9hpQPdByP/0JZaG2+AD8998VtvK3+cByr/8V1W9e6mqbr4Xpu/IlotTNGLI/+ak3jbU5oPLVXXr6q5fxqf+ay5/u7VhvCXCdzwt5+apdPhCz2IAfP9u+PbnrzVUP/46DlUL3ut/rYsEQNzXBoBHLJs+ejf0DP6oofrspziILXgvvV17AYj72gDWiGUT41P/NZc/Wx/GWCZ8x1Bxnj7mAF8oWwyA8bHvJ5vd3q1A9UE
  525. "text/plain": [
  526. "<PIL.Image.Image image mode=RGBA size=480x480>"
  527. ]
  528. },
  529. "metadata": {},
  530. "output_type": "display_data"
  531. },
  532. {
  533. "name": "stdout",
  534. "output_type": "stream",
  535. "text": [
  536. "The shield for shield_value = 0.9\n"
  537. ]
  538. },
  539. {
  540. "data": {
  541. "image/png": "iVBORw0KGgoAAAANSUhEUgAAAeAAAAHgCAYAAAB91L6VAABfi0lEQVR4Ae29v47dRvbvSx8PZAiwxoYFCDYgQecESkY3usmR/AKaSCeSn2BnN5J8o3kAZ25lJ3H7BazMkfQCV8omONAkDgxZAmS0YUNjC/hhGjZ867vZq3vt1cV/a5OsIutbwG7+q7UW68sqfrrIIvnOZrP5s2KiAlSAClABKkAFZlXgv80ajcGoABWgAlSAClCBrQIEMCsCFaACVIAKUIEEChDACURnSCpABagAFaACBDDrABWgAlSAClCBBAoQwAlEZ0gqQAWoABWgAgQw6wAVoAJUgApQgQQKEMAJRGdIKkAFqAAVoAIEMOsAFaACVIAKUIEEChDACURnSCpABagAFaACBDDrABWgAlSAClCBBAoQwAlEZ0gqQAWoABWgAgQw6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7tlm6ZI3yhKQG89JrF/acCVKBTAcK3U6LVZsgVvhA8GwDjqyf4isqQhPweG8SyCZ8/e/sfu7Z9Gfk9NohlE+P7tKT+tia1L0OvHOtf+17vt5Xw3U+/JVvnDF/oms1zwJ8/CZ8Q/FdVdX3zEzsN6D4I+Z+9wtJwG3xg/pvPalv5+yJA+Zf/qqr3L1TV9Q/C9D3Zcn6Kkxjyvz2utw21+ehiVd24vOuX8al/yfVvtzWMt0T4jqfl0jzlDl/omQ2A798O3/78tYbqp1/HoWrBe/WvdZUAiPvaAPCIZdMn74eewR81VJ//FAexBe+Fd2svAHFfG8AasWxifOpfcv2z7WGMZcJ3DBWX6WMJ8IWy2QAYH/t+utnt3QpUHwR
  542. "text/plain": [
  543. "<PIL.Image.Image image mode=RGBA size=480x480>"
  544. ]
  545. },
  546. "metadata": {},
  547. "output_type": "display_data"
  548. },
  549. {
  550. "name": "stdout",
  551. "output_type": "stream",
  552. "text": [
  553. "The shield for shield_value = 0.99\n"
  554. ]
  555. },
  556. {
  557. "data": {
  558. "image/png": "iVBORw0KGgoAAAANSUhEUgAAAeAAAAHgCAYAAAB91L6VAABnk0lEQVR4Ae29zY4cNxYlHP7ckGHAahsWULABCRoZ0Kb1rWYzJb+Ae6UBPsB+gtx9K8uz8gN4Z2k3m65+gdZOK/kJpF0vBuqNgTFkCZBRhg21LWDQBRsenoy6VcxbjB8ySV5mxiGQFREM3nvIw59TjGBEvLFarf7oGMgAGSADZIAMkIGqDPw/VdEIRgbIABkgA2SADKwZoACzIZABMkAGyAAZMGCAAmxAOiHJABkgA2SADFCA2QbIABkgA2SADBgwQAE2IJ2QZIAMkAEyQAYowGwDZIAMkAEyQAYMGKAAG5BOSDJABsgAGSADFGC2ATJABsgAGSADBgxQgA1IJyQZIANkgAyQAQow2wAZIANkgAyQAQMGKMAGpBOSDJABMkAGyAAFmG2ADJABMkAGyIABAxRgA9IJSQbIABkgA2SAAsw2QAbIABkgA2TAgAEKsAHphCQDZIAMkAEyQAF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B8XdKCDJCBHWMgRnylaK0O2pI/bucx0HI9NiPA+OoJvqISE5A+xQZYOuDzZ6//o2PHj5E+xQZYOhA/jUvyr1vS+DH4arH9jed6u7Mp4iuILQ/ekkduhxlovf6aeQ74i2/cJwT/1XVT3/wE1RDduy79kxc98bE2+MD8Pz7brLRnTpR//j9d986lrrv+rtu+tXneP8IghvSvT/rYWJv33+66m1d8j70/4pP/2LaEVhRr02L72+wN+Y62EV/JBQbxHH7EH7d1GGhdfMFCMwL8+W337c9felH9+O9hIdbCe/XPfUVCiOfaQKyBpcOH77iZwe+9qD7
  559. "text/plain": [
  560. "<PIL.Image.Image image mode=RGBA size=480x480>"
  561. ]
  562. },
  563. "metadata": {},
  564. "output_type": "display_data"
  565. },
  566. {
  567. "name": "stdout",
  568. "output_type": "stream",
  569. "text": [
  570. "The shield for shield_value = 0.999\n"
  571. ]
  572. },
  573. {
  574. "data": {
  575. "image/png": "iVBORw0KGgoAAAANSUhEUgAAAeAAAAHgCAYAAAB91L6VAABjnUlEQVR4Ae29QY8cN7YlHB4bMhqQ2kYLEGygNBo9QJvWt5qNS8a3d680K/UvqN23svyt3g/wzqXd21j+A+1dr+RfoNp5MZA3A9iQLaCMMmzo2QIGI7Th4cnIW8m8SWZE3IzgZWYcAlmMYPDeEzxB8hQjGME3Tk5O/mgYyAAZIANkgAyQgaIM/JeiaAQjA2SADJABMkAGFgxQgFkRyAAZIANkgAw4MEABdiCdkGSADJABMkAGKMCsA2SADJABMkAGHBigADuQTkgyQAbIABkgAxRg1gEyQAbIABkgAw4MUIAdSCckGSADZIAMkAEKMOsAGSADZIAMkAEHBijADqQTkgyQATJABsgABZh1gAyQATJABsiAAwMUYAfSCUkGyAAZIANkgALMOkAGyAAZIANkwIEBCrAD6YQkA2SADJABMkABZh0gA2SADJABMuDAAAXYgXRCkgEyQAbIABmgALMOkAEyQAbIABlwYIAC7EA6IckAGSADZIAMUIBZB8gAGSADZIAMODBAAXYgnZBkgAyQATJABijArANkgAyQATJABh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53aOhXQsN/J8Rvrx+P99CJIf+r123qUJu//Klp7lyPPbb+iE/+h9Yl1KKhNjXWv/XWsL73ftjF71X4nYffL+HXN+wivoKBTnwMP+JvaEx8G//grfZQjQB/fC+s/flrK6offpEWYi28R39u6YUQ97WBWANLh/fDv9ivf29F9dlP6U5NC++VN1svEOK+NugsgaUD8cn/nOufbg+pfTQbPCPG/70/h9+Py+0QJcOYokkRtIlg8sIYEof
  576. "text/plain": [
  577. "<PIL.Image.Image image mode=RGBA size=480x480>"
  578. ]
  579. },
  580. "metadata": {},
  581. "output_type": "display_data"
  582. },
  583. {
  584. "name": "stdout",
  585. "output_type": "stream",
  586. "text": [
  587. "The shield for shield_value = 1.0\n",
  588. "Training with shield:\n"
  589. ]
  590. },
  591. {
  592. "data": {
  593. "image/png": "iVBORw0KGgoAAAANSUhEUgAAAeAAAAHgCAYAAAB91L6VAABXOElEQVR4Ae29z44dRfaunfxoGSHhBmHJAsmWz2nJk/YZfZPP5gbokc8IrqDO6BthzqgvgBn2Bbi4gfaMkbkCe9aDI/eEATK2ZGQEcoOloy6B+OLdWasq9qrInZlRe2dE7nxC2pV/11oZT0bkW5EZkfnGwcHBHw0JAhCAAAQgAIFJCfzXpNEIBgEIQAACEIDAigACTEGAAAQgAAEIFCCAABeATkgIQAACEIAAAkwZgAAEIAABCBQggAAXgE5ICEAAAhCAAAJMGYAABCAAAQgUIIAAF4BOSAhAAAIQgAACTBmAAAQgAAEIFCCAABeATkgIQAACEIAAAkwZgAAEIAABCBQggAAXgE5ICEAAAhCAAAJMGYAABCAAAQgUIIAAF4BOSAhAAAIQgAACTBmAAAQgAAEIFCCAABeATkgIQAACEIAAAkwZgAAEIAABCBQggAAXgE5ICEAAAhCAAAJMGYAABCAAAQgUIIAAF4BOSAhAAAIQgAACTBmAAAQgAAEIFCCAABeATkgIQAACEIAAAkwZgAAEIAABCBQggAAXgE5ICEAAAhCAAAJMGYAABCAAAQgUIIAAF4BOSAhAAAIQgAACTBmAAAQgAAEI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b1xub4Na69ZEVeL44vVpi1fC+0FY9+HFNv6LX5vmh+PtXTZ9rWTiw3/J5a+tSfyFwPkJzEV8ldNqBNiwp4T40wftVi+8ZiMhNpE2ITabPuE1HzZNCeG3P7dbvfCajYRYv1iIzaZ
  594. "text/plain": [
  595. "<PIL.Image.Image image mode=RGBA size=480x480>"
  596. ]
  597. },
  598. "metadata": {},
  599. "output_type": "display_data"
  600. },
  601. {
  602. "name": "stdout",
  603. "output_type": "stream",
  604. "text": [
  605. "Using cpu device\n",
  606. "Wrapping the env with a `Monitor` wrapper\n",
  607. "Wrapping the env in a DummyVecEnv.\n",
  608. "Wrapping the env in a VecTransposeImage.\n"
  609. ]
  610. },
  611. {
  612. "ename": "AssertionError",
  613. "evalue": "",
  614. "output_type": "error",
  615. "traceback": [
  616. "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
  617. "\u001b[0;31mAssertionError\u001b[0m Traceback (most recent call last)",
  618. "Cell \u001b[0;32mIn[3], line 63\u001b[0m\n\u001b[1;32m 61\u001b[0m \u001b[38;5;28;01mif\u001b[39;00m \u001b[38;5;18m__name__\u001b[39m \u001b[38;5;241m==\u001b[39m \u001b[38;5;124m'\u001b[39m\u001b[38;5;124m__main__\u001b[39m\u001b[38;5;124m'\u001b[39m:\n\u001b[1;32m 62\u001b[0m \u001b[38;5;28mprint\u001b[39m(\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mStarting the training\u001b[39m\u001b[38;5;124m\"\u001b[39m)\n\u001b[0;32m---> 63\u001b[0m \u001b[43mmain\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\n",
  619. "Cell \u001b[0;32mIn[3], line 56\u001b[0m, in \u001b[0;36mmain\u001b[0;34m()\u001b[0m\n\u001b[1;32m 53\u001b[0m model\u001b[38;5;241m.\u001b[39mset_logger(logger)\n\u001b[1;32m 54\u001b[0m steps \u001b[38;5;241m=\u001b[39m \u001b[38;5;241m20_000\u001b[39m\n\u001b[0;32m---> 56\u001b[0m \u001b[38;5;28;01massert\u001b[39;00m(\u001b[38;5;28;01mFalse\u001b[39;00m)\n\u001b[1;32m 57\u001b[0m model\u001b[38;5;241m.\u001b[39mlearn(steps,callback\u001b[38;5;241m=\u001b[39m[InfoCallback()])\n",
  620. "\u001b[0;31mAssertionError\u001b[0m: "
  621. ]
  622. }
  623. ],
  624. "source": [
  625. "GRID_TO_PRISM_BINARY=os.getenv(\"M2P_BINARY\")\n",
  626. "\n",
  627. "def mask_fn(env: gym.Env):\n",
  628. " return env.create_action_mask()\n",
  629. "\n",
  630. "def nomask_fn(env: gym.Env):\n",
  631. " return [1.0] * 7\n",
  632. "\n",
  633. "def main():\n",
  634. " env = \"MiniGrid-LavaFaultyS15-1-v0\"\n",
  635. " \n",
  636. " formula = \"Pmax=? [G ! AgentIsOnLava]\"\n",
  637. " value_for_training = 0.0\n",
  638. " shield_comparison = \"absolute\"\n",
  639. " shielding = ShieldingConfig.Training\n",
  640. " \n",
  641. " logger = Logger(\"/tmp\", output_formats=[HumanOutputFormat(sys.stdout)])\n",
  642. " \n",
  643. " env = gym.make(env, render_mode=\"rgb_array\")\n",
  644. " image_env = RGBImgObsWrapper(env, TILE_PIXELS)\n",
  645. " env = RGBImgObsWrapper(env, 8)\n",
  646. " env = ImgObsWrapper(env)\n",
  647. " env = MiniWrapper(env)\n",
  648. "\n",
  649. " \n",
  650. " env.reset()\n",
  651. " Image.fromarray(env.render()).show()\n",
  652. "\n",
  653. " shield_values = [0.0, 0.9, 0.99, 0.999, 1.0]\n",
  654. " shield_handlers = dict()\n",
  655. " if shield_needed(shielding):\n",
  656. " for value in shield_values: \n",
  657. " 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",
  658. " env = MiniGridSbShieldingWrapper(env, shield_handler=shield_handler, create_shield_at_reset=False)\n",
  659. " shield_handlers[value] = shield_handler\n",
  660. "\n",
  661. " if shield_needed(shielding):\n",
  662. " for value in shield_values: \n",
  663. " create_shield_overlay_image(image_env, shield_handlers[value].create_shield())\n",
  664. " print(f\"The shield for shield_value = {value}\")\n",
  665. "\n",
  666. "\n",
  667. " if shielding == ShieldingConfig.Training:\n",
  668. " env = MiniGridSbShieldingWrapper(env, shield_handler=shield_handlers[value_for_training], create_shield_at_reset=False)\n",
  669. " env = ActionMasker(env, mask_fn)\n",
  670. " print(\"Training with shield:\")\n",
  671. " create_shield_overlay_image(image_env, shield_handlers[value_for_training].create_shield())\n",
  672. " elif shielding == ShieldingConfig.Disabled:\n",
  673. " env = ActionMasker(env, nomask_fn)\n",
  674. " else:\n",
  675. " assert(False) \n",
  676. " model = MaskablePPO(\"CnnPolicy\", env, verbose=1, device=\"auto\")\n",
  677. " model.set_logger(logger)\n",
  678. " steps = 20_000\n",
  679. "\n",
  680. " assert(False)\n",
  681. " model.learn(steps,callback=[InfoCallback()])\n",
  682. "\n",
  683. "\n",
  684. "\n",
  685. "if __name__ == '__main__':\n",
  686. " print(\"Starting the training\")\n",
  687. " main()"
  688. ]
  689. },
  690. {
  691. "cell_type": "code",
  692. "execution_count": null,
  693. "metadata": {},
  694. "outputs": [],
  695. "source": []
  696. }
  697. ],
  698. "metadata": {
  699. "kernelspec": {
  700. "display_name": "Python 3 (ipykernel)",
  701. "language": "python",
  702. "name": "python3"
  703. },
  704. "language_info": {
  705. "codemirror_mode": {
  706. "name": "ipython",
  707. "version": 3
  708. },
  709. "file_extension": ".py",
  710. "mimetype": "text/x-python",
  711. "name": "python",
  712. "nbconvert_exporter": "python",
  713. "pygments_lexer": "ipython3",
  714. "version": "3.10.12"
  715. }
  716. },
  717. "nbformat": 4,
  718. "nbformat_minor": 4
  719. }