project_dis_restoration.train_IL_BC_tieline¶
Module Contents¶
Classes¶
dict() -> new empty dictionary |
|
Intelligent agent to interact with the restoration environment |
Functions¶
|
Method to return a custom logger with the given name and level |
|
BC algorithm |
Attributes¶
- project_dis_restoration.train_IL_BC_tieline.ENV_NAME_1 = RestorationDisEnv-v0¶
- project_dis_restoration.train_IL_BC_tieline.ENV_NAME_2 = RestorationDisVarConEnv-v0¶
- project_dis_restoration.train_IL_BC_tieline.WARM_START_OFF = 10000¶
- project_dis_restoration.train_IL_BC_tieline.NUM_TOTAL_EPISODES = 10000¶
- project_dis_restoration.train_IL_BC_tieline.MAX_DISTURBANCE = 5¶
- project_dis_restoration.train_IL_BC_tieline.MIN_DISTURBANCE = 5¶
- class project_dis_restoration.train_IL_BC_tieline.DictList¶
Bases:
dictdict() -> 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_IL_BC_tieline.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_IL_BC_tieline.Agent(env, output_path, log_level=logging.DEBUG)¶
Intelligent agent to interact with the restoration environment
- get_expert_policy(self, env, s0)¶
get the expert policy by solving the full-period restoration problem
- 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
- policy(self, s)¶
- run_train(self, env, s0, l0=None)¶
- run_test(self, env, s0, learned_model=None)¶
- project_dis_restoration.train_IL_BC_tieline.main_behavior_cloning(output_path)¶
BC algorithm
- project_dis_restoration.train_IL_BC_tieline.output_path¶