Skip to content

Commit

Permalink
add constraint call
Browse files Browse the repository at this point in the history
  • Loading branch information
jd-lara committed Oct 13, 2024
1 parent 2e4b706 commit 94e0ec3
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/devices_models/devices/thermal_generation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,30 @@ function _get_data_for_range_ic(
return ini_conds
end

function add_constraints!(
container::OptimizationContainer,
::Type{ActivePowerVariableTimeSeriesLimitsConstraint},
U::Type{<:Union{ActivePowerVariable, ActivePowerRangeExpressionUB}},
devices::IS.FlattenIteratorWrapper{V},
model::DeviceModel{V, W},
::NetworkModel{X},
) where {
V <: PSY.ThermalGen,
W <: AbstractThermalUnitCommitment,
X <: PM.AbstractPowerModel,
}
add_parameterized_upper_bound_range_constraints(
container,
ActivePowerVariableTimeSeriesLimitsConstraint,
U,
ActivePowerTimeSeriesParameter,
devices,
model,
X,
)
return
end

"""
This function adds range constraint for the first time period. Constraint (10) from PGLIB formulation
"""
Expand Down

0 comments on commit 94e0ec3

Please sign in to comment.