Skip to content

Commit

Permalink
changed initialization values
Browse files Browse the repository at this point in the history
  • Loading branch information
ValentinRigoni authored Feb 21, 2020
1 parent 7f26724 commit f88284a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Main_packages/OPF_model_creator_v01.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def OPF_model_creator(pd,pyo,math,Time_sim,V_init_pu,House_Dem_data,PV_set,PV_Ge
if 1==1:
# PV Control variables
if 1==1:
model.P_control = pyo.Var(model.PVs, model.time, within=pyo.NonNegativeReals, bounds=(0.0,1.0), initialize=0.999)
model.P_control = pyo.Var(model.PVs, model.time, within=pyo.NonNegativeReals, bounds=(0.0,1.0), initialize=0.001)
model.Thanphi_control = pyo.Var(model.PVs, model.time, bounds=(0.0,math.tan(math.acos(min_Cosphi))), initialize=0.001)

# Voltages - Real and Imaginary part - in V
Expand Down

0 comments on commit f88284a

Please sign in to comment.