project_dis_restoration.train_RL_tieline__A2C_stablebaselines

Module Contents

Classes

DictList

dict() -> new empty dictionary

Agent

Functions

logger_obj(logger_name, level=logging.DEBUG, verbose=0)

Method to return a custom logger with the given name and level

main_A2C(output_path)

Attributes

ENV_NAME_1

ENV_NAME_2

WARM_START_OFF

NUM_TOTAL_EPISODES

ALPHA

GAMMA

LEARNING_RATE

MEMORY_SIZE

BATCH_SIZE

EXPLORATION_MAX

EXPLORATION_MIN

EXPLORATION_DECAY

MAX_DISTURBANCE

MIN_DISTURBANCE

output_path

project_dis_restoration.train_RL_tieline__A2C_stablebaselines.ENV_NAME_1 = RestorationDisEnv-v0
project_dis_restoration.train_RL_tieline__A2C_stablebaselines.ENV_NAME_2 = RestorationDisEnv-v1
project_dis_restoration.train_RL_tieline__A2C_stablebaselines.WARM_START_OFF = 200
project_dis_restoration.train_RL_tieline__A2C_stablebaselines.NUM_TOTAL_EPISODES = 200
project_dis_restoration.train_RL_tieline__A2C_stablebaselines.ALPHA = 0.1
project_dis_restoration.train_RL_tieline__A2C_stablebaselines.GAMMA = 0.95
project_dis_restoration.train_RL_tieline__A2C_stablebaselines.LEARNING_RATE = 0.0001
project_dis_restoration.train_RL_tieline__A2C_stablebaselines.MEMORY_SIZE = 1000000
project_dis_restoration.train_RL_tieline__A2C_stablebaselines.BATCH_SIZE = 50
project_dis_restoration.train_RL_tieline__A2C_stablebaselines.EXPLORATION_MAX = 1.0
project_dis_restoration.train_RL_tieline__A2C_stablebaselines.EXPLORATION_MIN = 0.01
project_dis_restoration.train_RL_tieline__A2C_stablebaselines.EXPLORATION_DECAY = 1
project_dis_restoration.train_RL_tieline__A2C_stablebaselines.MAX_DISTURBANCE = 2
project_dis_restoration.train_RL_tieline__A2C_stablebaselines.MIN_DISTURBANCE = 2
class project_dis_restoration.train_RL_tieline__A2C_stablebaselines.DictList

Bases: dict

dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object’s

(key, value) pairs

dict(iterable) -> new dictionary initialized as if via:

d = {} for k, v in iterable:

d[k] = v

dict(**kwargs) -> new dictionary initialized with the name=value pairs

in the keyword argument list. For example: dict(one=1, two=2)

__setitem__(self, key, value)

Set self[key] to value.

project_dis_restoration.train_RL_tieline__A2C_stablebaselines.logger_obj(logger_name, level=logging.DEBUG, verbose=0)

Method to return a custom logger with the given name and level

class project_dis_restoration.train_RL_tieline__A2C_stablebaselines.Agent(env, output_path, log_level=logging.DEBUG)
load_profile(self, env, load_status)
convert_action(self, s1_tieline, s0_tieline)
Parameters
  • s1_tieline – current tieline status

  • s0_tieline – previsou tieline status

Returns

integer action from 0 to 5

run_test(self, env, s0, learned_model=None)
project_dis_restoration.train_RL_tieline__A2C_stablebaselines.main_A2C(output_path)
project_dis_restoration.train_RL_tieline__A2C_stablebaselines.output_path