From 3920001f6640b09377fc16ed5cc173de8aa54962 Mon Sep 17 00:00:00 2001 From: Bo Tang Date: Sat, 21 Dec 2024 18:01:04 -0500 Subject: [PATCH] Update --- .../06 Real World Energy Scheduling.ipynb | 527 ++++++++++-------- 1 file changed, 301 insertions(+), 226 deletions(-) diff --git a/notebooks/06 Real World Energy Scheduling.ipynb b/notebooks/06 Real World Energy Scheduling.ipynb index dc2a9dc2..559c10f8 100644 --- a/notebooks/06 Real World Energy Scheduling.ipynb +++ b/notebooks/06 Real World Energy Scheduling.ipynb @@ -20,13 +20,13 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 1, "metadata": { "colab": { "base_uri": "https://localhost:8080/" }, "id": "oRLpKE66DzMz", - "outputId": "de1d0fa0-c026-4b3f-9fa8-69b564ee057e" + "outputId": "da5a8506-e04f-4949-9c18-37ab395ad89d" }, "outputs": [ { @@ -34,104 +34,86 @@ "name": "stdout", "text": [ "Cloning into 'simbench'...\n", - "remote: Enumerating objects: 1085, done.\u001b[K\n", - "remote: Counting objects: 100% (191/191), done.\u001b[K\n", - "remote: Compressing objects: 100% (74/74), done.\u001b[K\n", - "remote: Total 1085 (delta 114), reused 176 (delta 109), pack-reused 894\u001b[K\n", - "Receiving objects: 100% (1085/1085), 67.24 MiB | 6.43 MiB/s, done.\n", - "Resolving deltas: 100% (679/679), done.\n", - "Updating files: 100% (164/164), done.\n", + "remote: Enumerating objects: 1094, done.\u001b[K\n", + "remote: Counting objects: 100% (200/200), done.\u001b[K\n", + "remote: Compressing objects: 100% (79/79), done.\u001b[K\n", + "remote: Total 1094 (delta 119), reused 184 (delta 113), pack-reused 894 (from 1)\u001b[K\n", + "Receiving objects: 100% (1094/1094), 67.27 MiB | 6.20 MiB/s, done.\n", + "Resolving deltas: 100% (684/684), done.\n", + "Updating files: 100% (165/165), done.\n", "Collecting aiopvpc\n", - " Downloading aiopvpc-4.3.1-py3-none-any.whl (14 kB)\n", - "Requirement already satisfied: aiohttp>=3.7.4.post0 in /usr/local/lib/python3.10/dist-packages (from aiopvpc) (3.9.5)\n", + " Downloading aiopvpc-4.3.1-py3-none-any.whl.metadata (2.3 kB)\n", + "Requirement already satisfied: aiohttp>=3.7.4.post0 in /usr/local/lib/python3.10/dist-packages (from aiopvpc) (3.11.10)\n", "Requirement already satisfied: async_timeout>=3.0.1 in /usr/local/lib/python3.10/dist-packages (from aiopvpc) (4.0.3)\n", - "Requirement already satisfied: aiosignal>=1.1.2 in /usr/local/lib/python3.10/dist-packages (from aiohttp>=3.7.4.post0->aiopvpc) (1.3.1)\n", - "Requirement already satisfied: attrs>=17.3.0 in /usr/local/lib/python3.10/dist-packages (from aiohttp>=3.7.4.post0->aiopvpc) (23.2.0)\n", - "Requirement already satisfied: frozenlist>=1.1.1 in /usr/local/lib/python3.10/dist-packages (from aiohttp>=3.7.4.post0->aiopvpc) (1.4.1)\n", - "Requirement already satisfied: multidict<7.0,>=4.5 in /usr/local/lib/python3.10/dist-packages (from aiohttp>=3.7.4.post0->aiopvpc) (6.0.5)\n", - "Requirement already satisfied: yarl<2.0,>=1.0 in /usr/local/lib/python3.10/dist-packages (from aiohttp>=3.7.4.post0->aiopvpc) (1.9.4)\n", - "Requirement already satisfied: idna>=2.0 in /usr/local/lib/python3.10/dist-packages (from yarl<2.0,>=1.0->aiohttp>=3.7.4.post0->aiopvpc) (3.7)\n", + "Requirement already satisfied: aiohappyeyeballs>=2.3.0 in /usr/local/lib/python3.10/dist-packages (from aiohttp>=3.7.4.post0->aiopvpc) (2.4.4)\n", + "Requirement already satisfied: aiosignal>=1.1.2 in /usr/local/lib/python3.10/dist-packages (from aiohttp>=3.7.4.post0->aiopvpc) (1.3.2)\n", + "Requirement already satisfied: attrs>=17.3.0 in /usr/local/lib/python3.10/dist-packages (from aiohttp>=3.7.4.post0->aiopvpc) (24.3.0)\n", + "Requirement already satisfied: frozenlist>=1.1.1 in /usr/local/lib/python3.10/dist-packages (from aiohttp>=3.7.4.post0->aiopvpc) (1.5.0)\n", + "Requirement already satisfied: multidict<7.0,>=4.5 in /usr/local/lib/python3.10/dist-packages (from aiohttp>=3.7.4.post0->aiopvpc) (6.1.0)\n", + "Requirement already satisfied: propcache>=0.2.0 in /usr/local/lib/python3.10/dist-packages (from aiohttp>=3.7.4.post0->aiopvpc) (0.2.1)\n", + "Requirement already satisfied: yarl<2.0,>=1.17.0 in /usr/local/lib/python3.10/dist-packages (from aiohttp>=3.7.4.post0->aiopvpc) (1.18.3)\n", + "Requirement already satisfied: typing-extensions>=4.1.0 in /usr/local/lib/python3.10/dist-packages (from multidict<7.0,>=4.5->aiohttp>=3.7.4.post0->aiopvpc) (4.12.2)\n", + "Requirement already satisfied: idna>=2.0 in /usr/local/lib/python3.10/dist-packages (from yarl<2.0,>=1.17.0->aiohttp>=3.7.4.post0->aiopvpc) (3.10)\n", + "Downloading aiopvpc-4.3.1-py3-none-any.whl (14 kB)\n", "Installing collected packages: aiopvpc\n", "Successfully installed aiopvpc-4.3.1\n", "Collecting meteostat\n", - " Downloading meteostat-1.6.8-py3-none-any.whl (31 kB)\n", - "Requirement already satisfied: pandas>=1.1 in /usr/local/lib/python3.10/dist-packages (from meteostat) (2.0.3)\n", - "Requirement already satisfied: pytz in /usr/local/lib/python3.10/dist-packages (from meteostat) (2023.4)\n", - "Requirement already satisfied: numpy in /usr/local/lib/python3.10/dist-packages (from meteostat) (1.25.2)\n", + " Downloading meteostat-1.6.8-py3-none-any.whl.metadata (4.6 kB)\n", + "Requirement already satisfied: pandas>=1.1 in /usr/local/lib/python3.10/dist-packages (from meteostat) (2.2.2)\n", + "Requirement already satisfied: pytz in /usr/local/lib/python3.10/dist-packages (from meteostat) (2024.2)\n", + "Requirement already satisfied: numpy in /usr/local/lib/python3.10/dist-packages (from meteostat) (1.26.4)\n", "Requirement already satisfied: python-dateutil>=2.8.2 in /usr/local/lib/python3.10/dist-packages (from pandas>=1.1->meteostat) (2.8.2)\n", - "Requirement already satisfied: tzdata>=2022.1 in /usr/local/lib/python3.10/dist-packages (from pandas>=1.1->meteostat) (2024.1)\n", - "Requirement already satisfied: six>=1.5 in /usr/local/lib/python3.10/dist-packages (from python-dateutil>=2.8.2->pandas>=1.1->meteostat) (1.16.0)\n", + "Requirement already satisfied: tzdata>=2022.7 in /usr/local/lib/python3.10/dist-packages (from pandas>=1.1->meteostat) (2024.2)\n", + "Requirement already satisfied: six>=1.5 in /usr/local/lib/python3.10/dist-packages (from python-dateutil>=2.8.2->pandas>=1.1->meteostat) (1.17.0)\n", + "Downloading meteostat-1.6.8-py3-none-any.whl (31 kB)\n", "Installing collected packages: meteostat\n", "Successfully installed meteostat-1.6.8\n", "Collecting pyepo\n", - " Downloading pyepo-0.3.9-py3-none-any.whl (44 kB)\n", - "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m44.3/44.3 kB\u001b[0m \u001b[31m1.5 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", - "\u001b[?25hRequirement already satisfied: numpy in /usr/local/lib/python3.10/dist-packages (from pyepo) (1.25.2)\n", - "Requirement already satisfied: scipy in /usr/local/lib/python3.10/dist-packages (from pyepo) (1.11.4)\n", + " Downloading pyepo-0.4.0-py3-none-any.whl.metadata (1.2 kB)\n", + "Requirement already satisfied: numpy in /usr/local/lib/python3.10/dist-packages (from pyepo) (1.26.4)\n", + "Requirement already satisfied: scipy in /usr/local/lib/python3.10/dist-packages (from pyepo) (1.13.1)\n", "Collecting pathos (from pyepo)\n", - " Downloading pathos-0.3.2-py3-none-any.whl (82 kB)\n", - "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m82.1/82.1 kB\u001b[0m \u001b[31m6.3 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", - "\u001b[?25hRequirement already satisfied: tqdm in /usr/local/lib/python3.10/dist-packages (from pyepo) (4.66.4)\n", - "Collecting Pyomo>=6.1.2 (from pyepo)\n", - " Downloading Pyomo-6.7.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.8 MB)\n", - "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m12.8/12.8 MB\u001b[0m \u001b[31m49.6 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", - "\u001b[?25hCollecting gurobipy>=9.1.2 (from pyepo)\n", - " Downloading gurobipy-11.0.2-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (13.4 MB)\n", - "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m13.4/13.4 MB\u001b[0m \u001b[31m26.1 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", - "\u001b[?25hRequirement already satisfied: scikit-learn in /usr/local/lib/python3.10/dist-packages (from pyepo) (1.2.2)\n", - "Requirement already satisfied: torch>=1.13.1 in /usr/local/lib/python3.10/dist-packages (from pyepo) (2.3.0+cu121)\n", - "Collecting ply (from Pyomo>=6.1.2->pyepo)\n", - " Downloading ply-3.11-py2.py3-none-any.whl (49 kB)\n", - "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m49.6/49.6 kB\u001b[0m \u001b[31m4.9 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", - "\u001b[?25hRequirement already satisfied: filelock in /usr/local/lib/python3.10/dist-packages (from torch>=1.13.1->pyepo) (3.15.1)\n", + " Downloading pathos-0.3.3-py3-none-any.whl.metadata (11 kB)\n", + "Requirement already satisfied: tqdm in /usr/local/lib/python3.10/dist-packages (from pyepo) (4.67.1)\n", + "Requirement already satisfied: Pyomo>=6.1.2 in /usr/local/lib/python3.10/dist-packages (from pyepo) (6.8.2)\n", + "Collecting gurobipy>=9.1.2 (from pyepo)\n", + " Downloading gurobipy-12.0.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.metadata (15 kB)\n", + "Requirement already satisfied: scikit_learn in /usr/local/lib/python3.10/dist-packages (from pyepo) (1.6.0)\n", + "Requirement already satisfied: torch>=1.13.1 in /usr/local/lib/python3.10/dist-packages (from pyepo) (2.5.1+cu121)\n", + "Requirement already satisfied: ply in /usr/local/lib/python3.10/dist-packages (from Pyomo>=6.1.2->pyepo) (3.11)\n", + "Requirement already satisfied: filelock in /usr/local/lib/python3.10/dist-packages (from torch>=1.13.1->pyepo) (3.16.1)\n", "Requirement already satisfied: typing-extensions>=4.8.0 in /usr/local/lib/python3.10/dist-packages (from torch>=1.13.1->pyepo) (4.12.2)\n", - "Requirement already satisfied: sympy in /usr/local/lib/python3.10/dist-packages (from torch>=1.13.1->pyepo) (1.12.1)\n", - "Requirement already satisfied: networkx in /usr/local/lib/python3.10/dist-packages (from torch>=1.13.1->pyepo) (3.3)\n", + "Requirement already satisfied: networkx in /usr/local/lib/python3.10/dist-packages (from torch>=1.13.1->pyepo) (3.4.2)\n", "Requirement already satisfied: jinja2 in /usr/local/lib/python3.10/dist-packages (from torch>=1.13.1->pyepo) (3.1.4)\n", - "Requirement already satisfied: fsspec in /usr/local/lib/python3.10/dist-packages (from torch>=1.13.1->pyepo) (2023.6.0)\n", - "Collecting nvidia-cuda-nvrtc-cu12==12.1.105 (from torch>=1.13.1->pyepo)\n", - " Using cached nvidia_cuda_nvrtc_cu12-12.1.105-py3-none-manylinux1_x86_64.whl (23.7 MB)\n", - "Collecting nvidia-cuda-runtime-cu12==12.1.105 (from torch>=1.13.1->pyepo)\n", - " Using cached nvidia_cuda_runtime_cu12-12.1.105-py3-none-manylinux1_x86_64.whl (823 kB)\n", - "Collecting nvidia-cuda-cupti-cu12==12.1.105 (from torch>=1.13.1->pyepo)\n", - " Using cached nvidia_cuda_cupti_cu12-12.1.105-py3-none-manylinux1_x86_64.whl (14.1 MB)\n", - "Collecting nvidia-cudnn-cu12==8.9.2.26 (from torch>=1.13.1->pyepo)\n", - " Using cached nvidia_cudnn_cu12-8.9.2.26-py3-none-manylinux1_x86_64.whl (731.7 MB)\n", - "Collecting nvidia-cublas-cu12==12.1.3.1 (from torch>=1.13.1->pyepo)\n", - " Using cached nvidia_cublas_cu12-12.1.3.1-py3-none-manylinux1_x86_64.whl (410.6 MB)\n", - "Collecting nvidia-cufft-cu12==11.0.2.54 (from torch>=1.13.1->pyepo)\n", - " Using cached nvidia_cufft_cu12-11.0.2.54-py3-none-manylinux1_x86_64.whl (121.6 MB)\n", - "Collecting nvidia-curand-cu12==10.3.2.106 (from torch>=1.13.1->pyepo)\n", - " Using cached nvidia_curand_cu12-10.3.2.106-py3-none-manylinux1_x86_64.whl (56.5 MB)\n", - "Collecting nvidia-cusolver-cu12==11.4.5.107 (from torch>=1.13.1->pyepo)\n", - " Using cached nvidia_cusolver_cu12-11.4.5.107-py3-none-manylinux1_x86_64.whl (124.2 MB)\n", - "Collecting nvidia-cusparse-cu12==12.1.0.106 (from torch>=1.13.1->pyepo)\n", - " Using cached nvidia_cusparse_cu12-12.1.0.106-py3-none-manylinux1_x86_64.whl (196.0 MB)\n", - "Collecting nvidia-nccl-cu12==2.20.5 (from torch>=1.13.1->pyepo)\n", - " Using cached nvidia_nccl_cu12-2.20.5-py3-none-manylinux2014_x86_64.whl (176.2 MB)\n", - "Collecting nvidia-nvtx-cu12==12.1.105 (from torch>=1.13.1->pyepo)\n", - " Using cached nvidia_nvtx_cu12-12.1.105-py3-none-manylinux1_x86_64.whl (99 kB)\n", - "Requirement already satisfied: triton==2.3.0 in /usr/local/lib/python3.10/dist-packages (from torch>=1.13.1->pyepo) (2.3.0)\n", - "Collecting nvidia-nvjitlink-cu12 (from nvidia-cusolver-cu12==11.4.5.107->torch>=1.13.1->pyepo)\n", - " Downloading nvidia_nvjitlink_cu12-12.5.40-py3-none-manylinux2014_x86_64.whl (21.3 MB)\n", - "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m21.3/21.3 MB\u001b[0m \u001b[31m56.6 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", - "\u001b[?25hCollecting ppft>=1.7.6.8 (from pathos->pyepo)\n", - " Downloading ppft-1.7.6.8-py3-none-any.whl (56 kB)\n", - "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m56.8/56.8 kB\u001b[0m \u001b[31m7.9 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", - "\u001b[?25hCollecting dill>=0.3.8 (from pathos->pyepo)\n", - " Downloading dill-0.3.8-py3-none-any.whl (116 kB)\n", - "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m116.3/116.3 kB\u001b[0m \u001b[31m13.2 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", - "\u001b[?25hCollecting pox>=0.3.4 (from pathos->pyepo)\n", - " Downloading pox-0.3.4-py3-none-any.whl (29 kB)\n", - "Collecting multiprocess>=0.70.16 (from pathos->pyepo)\n", - " Downloading multiprocess-0.70.16-py310-none-any.whl (134 kB)\n", - "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m134.8/134.8 kB\u001b[0m \u001b[31m16.7 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", - "\u001b[?25hRequirement already satisfied: joblib>=1.1.1 in /usr/local/lib/python3.10/dist-packages (from scikit-learn->pyepo) (1.4.2)\n", - "Requirement already satisfied: threadpoolctl>=2.0.0 in /usr/local/lib/python3.10/dist-packages (from scikit-learn->pyepo) (3.5.0)\n", - "Requirement already satisfied: MarkupSafe>=2.0 in /usr/local/lib/python3.10/dist-packages (from jinja2->torch>=1.13.1->pyepo) (2.1.5)\n", - "Requirement already satisfied: mpmath<1.4.0,>=1.1.0 in /usr/local/lib/python3.10/dist-packages (from sympy->torch>=1.13.1->pyepo) (1.3.0)\n", - "Installing collected packages: ply, gurobipy, Pyomo, ppft, pox, nvidia-nvtx-cu12, nvidia-nvjitlink-cu12, nvidia-nccl-cu12, nvidia-curand-cu12, nvidia-cufft-cu12, nvidia-cuda-runtime-cu12, nvidia-cuda-nvrtc-cu12, nvidia-cuda-cupti-cu12, nvidia-cublas-cu12, dill, nvidia-cusparse-cu12, nvidia-cudnn-cu12, multiprocess, pathos, nvidia-cusolver-cu12, pyepo\n", - "Successfully installed Pyomo-6.7.3 dill-0.3.8 gurobipy-11.0.2 multiprocess-0.70.16 nvidia-cublas-cu12-12.1.3.1 nvidia-cuda-cupti-cu12-12.1.105 nvidia-cuda-nvrtc-cu12-12.1.105 nvidia-cuda-runtime-cu12-12.1.105 nvidia-cudnn-cu12-8.9.2.26 nvidia-cufft-cu12-11.0.2.54 nvidia-curand-cu12-10.3.2.106 nvidia-cusolver-cu12-11.4.5.107 nvidia-cusparse-cu12-12.1.0.106 nvidia-nccl-cu12-2.20.5 nvidia-nvjitlink-cu12-12.5.40 nvidia-nvtx-cu12-12.1.105 pathos-0.3.2 ply-3.11 pox-0.3.4 ppft-1.7.6.8 pyepo-0.3.9\n" + "Requirement already satisfied: fsspec in /usr/local/lib/python3.10/dist-packages (from torch>=1.13.1->pyepo) (2024.10.0)\n", + "Requirement already satisfied: sympy==1.13.1 in /usr/local/lib/python3.10/dist-packages (from torch>=1.13.1->pyepo) (1.13.1)\n", + "Requirement already satisfied: mpmath<1.4,>=1.1.0 in /usr/local/lib/python3.10/dist-packages (from sympy==1.13.1->torch>=1.13.1->pyepo) (1.3.0)\n", + "Collecting ppft>=1.7.6.9 (from pathos->pyepo)\n", + " Downloading ppft-1.7.6.9-py3-none-any.whl.metadata (12 kB)\n", + "Collecting dill>=0.3.9 (from pathos->pyepo)\n", + " Downloading dill-0.3.9-py3-none-any.whl.metadata (10 kB)\n", + "Collecting pox>=0.3.5 (from pathos->pyepo)\n", + " Downloading pox-0.3.5-py3-none-any.whl.metadata (8.0 kB)\n", + "Collecting multiprocess>=0.70.17 (from pathos->pyepo)\n", + " Downloading multiprocess-0.70.17-py310-none-any.whl.metadata (7.2 kB)\n", + "Requirement already satisfied: joblib>=1.2.0 in /usr/local/lib/python3.10/dist-packages (from scikit_learn->pyepo) (1.4.2)\n", + "Requirement already satisfied: threadpoolctl>=3.1.0 in /usr/local/lib/python3.10/dist-packages (from scikit_learn->pyepo) (3.5.0)\n", + "Requirement already satisfied: MarkupSafe>=2.0 in /usr/local/lib/python3.10/dist-packages (from jinja2->torch>=1.13.1->pyepo) (3.0.2)\n", + "Downloading pyepo-0.4.0-py3-none-any.whl (45 kB)\n", + "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m45.1/45.1 kB\u001b[0m \u001b[31m1.7 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", + "\u001b[?25hDownloading gurobipy-12.0.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (14.4 MB)\n", + "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m14.4/14.4 MB\u001b[0m \u001b[31m82.2 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", + "\u001b[?25hDownloading pathos-0.3.3-py3-none-any.whl (82 kB)\n", + "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m82.1/82.1 kB\u001b[0m \u001b[31m6.0 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", + "\u001b[?25hDownloading dill-0.3.9-py3-none-any.whl (119 kB)\n", + "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m119.4/119.4 kB\u001b[0m \u001b[31m9.1 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", + "\u001b[?25hDownloading multiprocess-0.70.17-py310-none-any.whl (134 kB)\n", + "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m134.8/134.8 kB\u001b[0m \u001b[31m9.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", + "\u001b[?25hDownloading pox-0.3.5-py3-none-any.whl (29 kB)\n", + "Downloading ppft-1.7.6.9-py3-none-any.whl (56 kB)\n", + "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m56.8/56.8 kB\u001b[0m \u001b[31m4.1 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", + "\u001b[?25hInstalling collected packages: gurobipy, ppft, pox, dill, multiprocess, pathos, pyepo\n", + "Successfully installed dill-0.3.9 gurobipy-12.0.0 multiprocess-0.70.17 pathos-0.3.3 pox-0.3.5 ppft-1.7.6.9 pyepo-0.4.0\n" ] } ], @@ -152,7 +134,7 @@ "Remove the problematic hook from Google Colab." ], "metadata": { - "id": "1qsxPyUW4o6a" + "id": "onclJXGfIfT1" } }, { @@ -162,9 +144,9 @@ "sys.meta_path = [hook for hook in sys.meta_path if not any(keyword in str(hook) for keyword in [\"google.colab\"])]" ], "metadata": { - "id": "okg81kC64pDk" + "id": "SakeyVfAIfeU" }, - "execution_count": null, + "execution_count": 2, "outputs": [] }, { @@ -187,7 +169,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 3, "metadata": { "id": "Jb4e0o5yRDUX" }, @@ -203,6 +185,18 @@ "torch.cuda.manual_seed(42)" ] }, + { + "cell_type": "code", + "source": [ + "import warnings\n", + "warnings.filterwarnings(\"ignore\", category=FutureWarning)" + ], + "metadata": { + "id": "_MW9varyFHBi" + }, + "execution_count": 4, + "outputs": [] + }, { "cell_type": "markdown", "metadata": { @@ -232,14 +226,14 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 5, "metadata": { "colab": { "base_uri": "https://localhost:8080/", "height": 377 }, "id": "Z_fj6yN_PHFG", - "outputId": "19341c80-5b64-4800-dce3-022d49c81b4c" + "outputId": "048f0d0c-7c94-446b-c7a6-bb6a04127294" }, "outputs": [ { @@ -285,7 +279,7 @@ ], "text/html": [ "\n", - "
\n", + "
\n", "
\n", "