Skip to content

Commit

Permalink
cvxpy version of the control working
Browse files Browse the repository at this point in the history
Signed-off-by: Edoardo De Din <ededin@eonerc.rwth-aachen.de>
  • Loading branch information
edoardo-dedin committed Jun 22, 2022
1 parent 28fcaf3 commit e07a399
Show file tree
Hide file tree
Showing 21 changed files with 237 additions and 761 deletions.
5 changes: 2 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
__pycache__/
covee/
covee_env/
*.egg-info/
.vscode/
*.pyc
Expand All @@ -18,9 +18,8 @@ csv_files/*.csv
csv_files/results/
csv_files/plots/
powerflow/powerflow
pv_centralized/covee
venv_ext
covee
covee_env
*.csv
*.eps
*.png
Expand Down
489 changes: 0 additions & 489 deletions Control_MPC_main.py

This file was deleted.

82 changes: 0 additions & 82 deletions Flex_sim.py

This file was deleted.

6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ SHELL := /bin/bash

init:
python3 ./setup/createEnv.py -y
source covee/bin/activate -y && \
source covee_env/bin/activate -y && \
pip install --upgrade pip && \
pip install -r ./setup/requirements.txt
clean:
sudo rm -R -f covee
sudo rm -R -f covee_env
rm -R -f __pycache__
rm -R -f covee.egg-info
rm -R -f covee_env.egg-info
19 changes: 0 additions & 19 deletions PF_conf_inputs.py

This file was deleted.

32 changes: 32 additions & 0 deletions conf.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"EXT_PORT_COVEE" : 7071, "__comment__": "Only for the communication",
"EXT_PORT_POWERFLOW" : 7070, "__comment__": "Only for the communication",
"EXT_MQTT" : "no", "__comment__": "Only for the communication",

"CONTROL_MODULE" : "Quadratic_Control_Centralized_CVXPY", "__comment__": "in control_strategies_folder",
"CASE_MODULE" : "case30",

"CONTROL_DATA" : {
"VMAX" : 1.05,
"VMIN" : 0.95,
"control_variables" : {"DG":["reactive_power"], "ESS":[]},
"active_nodes": [3,4,6,8,9,11,12,13,17,18,19,20,21,22,25,26,29], "__comment__": "number of active DGs",
"active_ESS": [3,4,6,8,9,10,17,18,19,20,21,22,25,26,29], "__comment__": "number of active ESSs",

"v_ref" : 0.0, "__comment__": "only for the version with CVXPY" ,
"M" : 1e1, "__comment__": "value for the relaxation of the constraints, only for the version with CVXPY" ,
"Weights_CVXPY" : {"DG":{"reactive_power":1.0, "active_power":1.0}, "ESS":{"active_power":1.0}}
},

"POWERFLOW_DATA" : {
"PROFILE" : {"variable" : {"GEN_PROFILE": "PV_profile.csv", "LOAD_PROFILE": "Load_profile.csv"} ,
"fix" : {"GEN_PROFILE": 1.0, "LOAD_PROFILE": 0.2, "ITERATIONS": 50} },
"TYPE_PROFILE" : "variable", "__comment__": "with fix, the powerflow considers fixed generation and load profiles"

},

"STATE_ESTIMATION": "no", "__comment__": "with yes, the control algorithm considers the full set of voltage nodes, as if the state estimation would be integrated / Not implemented yet" ,

"SAVE_PATH" : "csv_files/results",
"PLOT_PATH": "csv_files/plots"
}
Loading

0 comments on commit e07a399

Please sign in to comment.