This is the code repository of the article "An Efficient Optimal Energy Flow Model for Integrated Energy Systems Based on Energy Circuit Modeling in the Frequency Domain", which solves the optimal energy flow (OEF) problem of an integrated energy system by the energy circuit method (ECM).
-
Install Gurobi (a license is required) and Anaconda (not necessary but recommended).
-
Prepare a Python environment:
Clone this repo to your local disk, and open a terminal/cmd in its root directory to enter the following codes.
conda create -n ecm_oef python=3.8 conda activate ecm_oef pip install -r requirements.txt
-
Run the demo codes:
python demo_usage.py --instance_file "instance/small case/IES_E9H12G7-v1.xlsx" --model_type lazy_explicit
-
Do modifications to satisfy your customized needs.
- Code cleaning and commenting.
- A document about the input file structure, script arguments, involved classes and functions, etc.
- Support more functions, e.g. considering N-1 contingency.
Issues and Pull Requests are welcomed : )