This repository contains a toolbox for Distribution Optimal Power Flow (D-OPF) algorithms developed by Dr. Anamika Dubey's research group (https://eecs.wsu.edu/~adubey/index.html).
The following is the recommended structure for extracting data from OpenDSS file:
D-OPF
├── D-Net
│ └── network_model.py
│ └── OpenDSS_CDF.py
│ └── Printed JSON files
├── IEEE-123-Bus
│ └── DSS files
│ └── Printed TXT files
├── LICENSE
└── README.md
The following procedure will give the JSON/TXT files required to model OPF for a distribution network.
- Clone the D-OPF repository
C:\....\> git clone https://github.com/shpoudel/D-OPF C:\....\> cd D-OPF C:\....\D-OPF>
- Run the network_model.py
C:\....\D-OPF> cd D-Net C:\....\D-OPF\D-Net> C:\....\D-OPF\D-Net> python network_model.py file_type Note: file_type can be 'JSON' or 'TXT' OR C:\....\D-OPF\D-Net> python OpenDSS_CDF.py
- Inside the D-Net folder, you will have the required JSON files and inside the IEEE-123-Bus folder, you will have the required TXT files including the CDF format one.