Skip to content

Getting Started

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

Getting Started

Install

pip install RL-ADN

For development:

pip install -r requirements-dev.txt
pytest -q -m "not powerflow"

First Import

from rl_adn import PowerNetEnv, make_env_config

config = make_env_config()
env = PowerNetEnv(config)
state, info = env.reset(return_info=True)

Minimal Topology Scenario Example

config = make_env_config(node=34, topology_scenario="TP4", return_graph=True)
env = PowerNetEnv(config)
state, info = env.reset(return_info=True)

print(info["feeder_id"])
print(info["topology_scenario"])

Pooled Topology Example

config = make_env_config(
    node=34,
    topology_mode="scenario_pool",
    topology_pool=["TP2", "TP3", "TP4"],
    return_graph=True,
)
env = PowerNetEnv(config)
state, info = env.reset(return_info=True)

Next Pages

Clone this wiki locally