Skip to content

Commit

Permalink
Remove weights
Browse files Browse the repository at this point in the history
  • Loading branch information
cfe316 committed Oct 3, 2023
1 parent 5b6435b commit 73b962a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/model/resources/maintenance.jl
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ function maintenance_constraints!(EP::Model,

T = 1:inputs["T"] # Number of time steps (hours)
hours_per_subperiod = inputs["hours_per_subperiod"]
weights = inputs["omega"]

y = r_id
down_name = maintenance_down_name(resource_name, suffix)
Expand Down Expand Up @@ -136,7 +135,7 @@ function maintenance_constraints!(EP::Model,
@constraint(EP, [t in T], vMDOWN[t] == sum(vMSHUT[controlling_hours(t)]))

# Plant frequire maintenance every (certain number of) year(s)
@constraint(EP, sum(vMSHUT[t]*weights[t] for t in maintenance_begin_hours) >=
@constraint(EP, sum(vMSHUT[t] for t in maintenance_begin_hours) >=
ecap[y] / cap / maint_freq_years)

return down, shut
Expand Down

0 comments on commit 73b962a

Please sign in to comment.