mirror of
https://github.com/ANL-CEEESA/UnitCommitment.jl.git
synced 2025-12-08 01:08:50 -06:00
Make papers into modules, instead of structs; add StartupCostsFormulation
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
function _add_production_piecewise_linear_eqs!(
|
||||
model::JuMP.Model,
|
||||
g::Unit,
|
||||
formulation::CarArr2006,
|
||||
formulation::CarArr2006.PwlCosts,
|
||||
)::Nothing
|
||||
eq_prod_above_def = _init(model, :eq_prod_above_def)
|
||||
eq_segprod_limit = _init(model, :eq_segprod_limit)
|
||||
|
||||
@@ -9,4 +9,10 @@ Formulation described in:
|
||||
mixed-integer linear formulation for the thermal unit commitment problem.
|
||||
IEEE Transactions on power systems, 21(3), 1371-1378.
|
||||
"""
|
||||
struct CarArr2006 <: PiecewiseLinearCostsFormulation end
|
||||
module CarArr2006
|
||||
|
||||
import ..PiecewiseLinearCostsFormulation
|
||||
|
||||
struct PwlCosts <: PiecewiseLinearCostsFormulation end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user