{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "# In this notebook you will learn basic information about redispatching capabilities offered by grid2op." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "**Objectives**\n", "\n", "As for now, we presented a type of action available in grid2op: a discrete action space. Redispatching is a kind of continuous action that will be described here.\n", "\n", "This notebook will:\n", "\n", "- present what is redispatching\n", "- show how it can be used in grid2op\n", "- detail the actions related to it\n", "- show an example of a redispatching Agent." ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [], "source": [ "import os\n", "import sys\n", "import grid2op\n", "from grid2op.Agent import DoNothingAgent, Agent\n", "from tqdm.notebook import tqdm\n", "import numpy as np\n", "max_iter = 100 # to make computation much faster we will only consider 50 time steps instead of 287\n", "import pdb" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", "" ], "text/plain": [ "