mirror of
https://github.com/ANL-CEEESA/UnitCommitment.jl.git
synced 2025-12-06 16:28:51 -06:00
Added minimum power to profiled generator
This commit is contained in:
@@ -314,6 +314,7 @@ function _from_json(json; repair = true)::UnitCommitmentScenario
|
||||
pu = ProfiledUnit(
|
||||
unit_name,
|
||||
bus,
|
||||
timeseries(scalar(dict["Minimum power (MW)"], default = 0.0)),
|
||||
timeseries(dict["Maximum power (MW)"]),
|
||||
timeseries(dict["Cost (\$/MW)"]),
|
||||
)
|
||||
|
||||
@@ -77,6 +77,7 @@ end
|
||||
mutable struct ProfiledUnit
|
||||
name::String
|
||||
bus::Bus
|
||||
min_power::Vector{Float64}
|
||||
capacity::Vector{Float64}
|
||||
cost::Vector{Float64}
|
||||
end
|
||||
|
||||
@@ -12,7 +12,7 @@ function _add_profiled_unit!(
|
||||
for t in 1:model[:instance].time
|
||||
# Decision variable
|
||||
punits[sc.name, pu.name, t] =
|
||||
@variable(model, lower_bound = 0, upper_bound = pu.capacity[t])
|
||||
@variable(model, lower_bound = pu.min_power[t], upper_bound = pu.capacity[t])
|
||||
|
||||
# Objective function terms
|
||||
add_to_expression!(
|
||||
|
||||
Reference in New Issue
Block a user