Skip to content

Environment Configuration

Hou Shengren edited this page Mar 26, 2026 · 1 revision

Environment Configuration

make_env_config

The main environment entrypoint is:

make_env_config(
    node=34,
    algorithm="Laurent",
    train=True,
    battery_list=None,
    year=2020,
    month=1,
    day=1,
    state_pattern="default",
    vm_pu=1.0,
    s_base=1000,
    time_series_data_path=None,
    topology_mode="fixed",
    topology_scenario=None,
    topology_pool=None,
    return_graph=False,
)

Topology Fields

  • topology_mode="fixed"
    • default behavior
    • fixed topology per reset
  • topology_mode="scenario_pool"
    • sample one topology scenario at each reset()
  • topology_scenario
    • choose one fixed named scenario such as TP2
  • topology_pool
    • list of scenario ids to sample from
  • return_graph
    • enables graph/topology export convenience for downstream use

Current Feeder Support

  • 34-bus
    • packaged topology scenarios
    • packaged time-series data available
  • 69-bus
    • packaged topology scenarios
    • environment rollout currently requires a user-provided time-series CSV

Backward Compatibility

If topology fields are omitted, RL-ADN keeps the previous fixed-topology behavior.

Clone this wiki locally