Skip to content

Commit

Permalink
bug fix solar thermal
Browse files Browse the repository at this point in the history
  • Loading branch information
JetonH committed Nov 30, 2020
1 parent 22c3964 commit f9c13bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/modules/common/CM/CM_TUWdispatch/simpel_dispatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def must_run_jt_rule(m,j,t):
#% The solar gains depend on the installed capacity and the solar radiation
#% 1000 represent the radiation at wich the solar plant has maximal power
def solar_restriction_jt_rule(m,j,t):
rule = m.x_th_jt[j,t] <= m.Cap_j[j]*m.radiation_t[t]/max(val["radiation_t"])
rule = m.x_th_jt[j,t] <= m.Cap_j[j]*m.radiation_t[t]/max(val["radiation_t"].values())
return rule
m.solar_restriction_jt = pe.Constraint(m.j_st,m.t,rule=solar_restriction_jt_rule)

Expand Down

0 comments on commit f9c13bc

Please sign in to comment.