Use 4-digit years

This commit is contained in:
2021-06-01 13:08:07 -05:00
parent fc8995eff1
commit ecb13dba7c
24 changed files with 71 additions and 83 deletions

View File

@@ -5,7 +5,7 @@
function _add_ramp_eqs!(
model::JuMP.Model,
g::Unit,
formulation::ArrCon00,
formulation::ArrCon2000,
)::Nothing
# TODO: Move upper case constants to model[:instance]
RESERVES_WHEN_START_UP = true

View File

@@ -9,4 +9,4 @@ Formulation described in:
to an electricity spot market. IEEE Transactions on power systems, 15(3),
1098-1104.
"""
struct ArrCon00 <: RampingFormulation end
struct ArrCon2000 <: RampingFormulation end

View File

@@ -5,7 +5,7 @@
function _add_production_piecewise_linear_eqs!(
model::JuMP.Model,
g::Unit,
formulation::CarArr06,
formulation::CarArr2006,
)::Nothing
eq_prod_above_def = _init(model, :eq_prod_above_def)
eq_segprod_limit = _init(model, :eq_segprod_limit)

View File

@@ -9,4 +9,4 @@ Formulation described in:
mixed-integer linear formulation for the thermal unit commitment problem.
IEEE Transactions on power systems, 21(3), 1371-1378.
"""
struct CarArr06 <: PiecewiseLinearCostsFormulation end
struct CarArr2006 <: PiecewiseLinearCostsFormulation end

View File

@@ -5,7 +5,7 @@
function _add_ramp_eqs!(
model::JuMP.Model,
g::Unit,
formulation::DamKucRajAta16,
formulation::DamKucRajAta2016,
)::Nothing
# TODO: Move upper case constants to model[:instance]
RESERVES_WHEN_START_UP = true

View File

@@ -8,4 +8,4 @@ Formulation described in:
Damcı-Kurt, P., Küçükyavuz, S., Rajan, D., & Atamtürk, A. (2016). A polyhedral
study of production ramping. Mathematical Programming, 158(1), 175-205.
"""
struct DamKucRajAta16 <: RampingFormulation end
struct DamKucRajAta2016 <: RampingFormulation end

View File

@@ -5,7 +5,7 @@
function _add_production_piecewise_linear_eqs!(
model::JuMP.Model,
g::Unit,
formulation::Gar62,
formulation::Gar1962,
)::Nothing
eq_prod_above_def = _init(model, :eq_prod_above_def)
eq_segprod_limit = _init(model, :eq_segprod_limit)

View File

@@ -10,4 +10,4 @@ Formulation described in:
of Electrical Engineers. Part III: Power Apparatus and Systems, 81(3), 730-734.
"""
struct Gar62 <: PiecewiseLinearCostsFormulation end
struct Gar1962 <: PiecewiseLinearCostsFormulation end

View File

@@ -5,7 +5,7 @@
function _add_production_piecewise_linear_eqs!(
model::JuMP.Model,
g::Unit,
formulation::KnuOstWat18,
formulation::KnuOstWat2018,
)::Nothing
eq_prod_above_def = _init(model, :eq_prod_above_def)
eq_segprod_limit_a = _init(model, :eq_segprod_limit_a)

View File

@@ -9,4 +9,4 @@ Formulation described in:
generators in unit commitment. IEEE Transactions on Power Systems, 33(4),
4496-4507.
"""
struct KnuOstWat18 <: PiecewiseLinearCostsFormulation end
struct KnuOstWat2018 <: PiecewiseLinearCostsFormulation end

View File

@@ -5,7 +5,7 @@
function _add_ramp_eqs!(
model::JuMP.Model,
g::Unit,
formulation::MorLatRam13,
formulation::MorLatRam2013,
)::Nothing
# TODO: Move upper case constants to model[:instance]
RESERVES_WHEN_START_UP = true

View File

@@ -9,4 +9,4 @@ Formulation described in:
MILP formulation for the thermal unit commitment problem. IEEE Transactions
on Power Systems, 28(4), 4897-4908.
"""
struct MorLatRam13 <: RampingFormulation end
struct MorLatRam2013 <: RampingFormulation end

View File

@@ -1,7 +1,7 @@
function _add_ramp_eqs!(
model::JuMP.Model,
g::Unit,
formulation::PanGua16,
formulation::PanGua2016,
)::Nothing
# TODO: Move upper case constants to model[:instance]
RESERVES_WHEN_SHUT_DOWN = true

View File

@@ -8,4 +8,4 @@ Formulation described in:
Pan, K., & Guan, Y. (2016). Strong formulations for multistage stochastic
self-scheduling unit commitment. Operations Research, 64(6), 1482-1498.
"""
struct PanGua16 <: RampingFormulation end
struct PanGua2016 <: RampingFormulation end

View File

@@ -12,8 +12,8 @@ struct Formulation
transmission::TransmissionFormulation
function Formulation(;
pwl_costs::PiecewiseLinearCostsFormulation = Gar62(),
ramping::RampingFormulation = MorLatRam13(),
pwl_costs::PiecewiseLinearCostsFormulation = Gar1962(),
ramping::RampingFormulation = MorLatRam2013(),
transmission::TransmissionFormulation = ShiftFactorsFormulation(),
)
return new(pwl_costs, ramping, transmission)