Skip to content

DeltaRandomRedispatchAgent and ML #259

Answered by BDonnot
PhPv asked this question in Q&A
Nov 6, 2021 · 3 comments · 11 replies
Discussion options

You must be logged in to vote

Hello,

The good news is, it is possible with l2rpn-baselines, and rather easy to do:

import shutil
import numpy as np
from l2rpn_baselines.DuelQSimple import train
from l2rpn_baselines.utils import NNParam, TrainingParam
from grid2op import make

def filter_action_fun(grid2op_act):
    # filter out all non redispatching actions
    if np.any(grid2op_act.set_bus != 0):
        return False
    if np.any(grid2op_act.change_bus):
        return False
    if np.any(grid2op_act.curtail != -1.):
        return False
    if np.any(grid2op_act.storage_p != 0):
        return False
    if np.any(grid2op_act.line_set_status != 0):
        return False
    if np.any(grid2op_act.line_change_status):
…

Replies: 3 comments 11 replies

Comment options

You must be logged in to vote
4 replies
@PhPv
Comment options

@BDonnot
Comment options

@PhPv
Comment options

@PhPv
Comment options

Comment options

You must be logged in to vote
1 reply
@BDonnot
Comment options

Comment options

You must be logged in to vote
6 replies
@BDonnot
Comment options

@PhPv
Comment options

@PhPv
Comment options

@BDonnot
Comment options

@PhPv
Comment options

Answer selected by BDonnot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants