mirror of
https://github.com/ANL-CEEESA/UnitCommitment.jl.git
synced 2025-12-06 08:18:51 -06:00
Remove some redundant comments
This commit is contained in:
@@ -37,7 +37,7 @@ mutable struct Unit
|
|||||||
initial_status::Union{Int,Nothing}
|
initial_status::Union{Int,Nothing}
|
||||||
initial_power::Union{Float64,Nothing}
|
initial_power::Union{Float64,Nothing}
|
||||||
provides_spinning_reserves::Vector{Bool}
|
provides_spinning_reserves::Vector{Bool}
|
||||||
provides_flexiramp_reserves::Vector{Bool} # binary variable indicating whether the unit provides flexiramp
|
provides_flexiramp_reserves::Vector{Bool}
|
||||||
startup_categories::Vector{StartupCategory}
|
startup_categories::Vector{StartupCategory}
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -55,8 +55,8 @@ end
|
|||||||
|
|
||||||
mutable struct Reserves
|
mutable struct Reserves
|
||||||
spinning::Vector{Float64}
|
spinning::Vector{Float64}
|
||||||
upflexiramp::Vector{Float64} # up-flexiramp reserve requirements
|
upflexiramp::Vector{Float64}
|
||||||
dwflexiramp::Vector{Float64} # down-flexiramp reserve requirements
|
dwflexiramp::Vector{Float64}
|
||||||
end
|
end
|
||||||
|
|
||||||
mutable struct Contingency
|
mutable struct Contingency
|
||||||
@@ -84,7 +84,7 @@ Base.@kwdef mutable struct UnitCommitmentInstance
|
|||||||
price_sensitive_loads::Vector{PriceSensitiveLoad}
|
price_sensitive_loads::Vector{PriceSensitiveLoad}
|
||||||
reserves::Reserves
|
reserves::Reserves
|
||||||
shortfall_penalty::Vector{Float64}
|
shortfall_penalty::Vector{Float64}
|
||||||
flexiramp_shortfall_penalty::Vector{Float64} # penalty price for flexiramp shortfall
|
flexiramp_shortfall_penalty::Vector{Float64}
|
||||||
time::Int
|
time::Int
|
||||||
units_by_name::Dict{AbstractString,Unit}
|
units_by_name::Dict{AbstractString,Unit}
|
||||||
units::Vector{Unit}
|
units::Vector{Unit}
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
function _add_system_wide_eqs!(model::JuMP.Model)::Nothing
|
function _add_system_wide_eqs!(model::JuMP.Model)::Nothing
|
||||||
_add_net_injection_eqs!(model)
|
_add_net_injection_eqs!(model)
|
||||||
_add_reserve_eqs!(model)
|
_add_reserve_eqs!(model)
|
||||||
_add_flexiramp_eqs!(model) # Add system-wide flexiramp requirements
|
_add_flexiramp_eqs!(model)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ function _add_unit!(model::JuMP.Model, g::Unit, formulation::Formulation)
|
|||||||
# Variables
|
# Variables
|
||||||
_add_production_vars!(model, g, formulation.prod_vars)
|
_add_production_vars!(model, g, formulation.prod_vars)
|
||||||
_add_reserve_vars!(model, g)
|
_add_reserve_vars!(model, g)
|
||||||
_add_flexiramp_vars!(model, g) # Add variables for flexiramp
|
_add_flexiramp_vars!(model, g)
|
||||||
_add_startup_shutdown_vars!(model, g)
|
_add_startup_shutdown_vars!(model, g)
|
||||||
_add_status_vars!(model, g, formulation.status_vars)
|
_add_status_vars!(model, g, formulation.status_vars)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user