mirror of
https://github.com/ANL-CEEESA/UnitCommitment.jl.git
synced 2025-12-06 08:18:51 -06:00
new formatting
This commit is contained in:
@@ -23,6 +23,7 @@ function _small_test(formulation::Formulation)::Nothing
|
||||
instances = ["matpower/case118/2017-02-01", "test/case14"]
|
||||
for instance in instances
|
||||
# Should not crash
|
||||
@show "$(instance)"
|
||||
UnitCommitment.build_model(
|
||||
instance = UnitCommitment.read_benchmark(instance),
|
||||
formulation = formulation,
|
||||
@@ -58,17 +59,26 @@ function _test(formulation::Formulation)::Nothing
|
||||
end
|
||||
|
||||
@testset "formulations" begin
|
||||
@show "testset formulations"
|
||||
_test(Formulation())
|
||||
@show "ArrCon2000 ramping"
|
||||
_test(Formulation(ramping = ArrCon2000.Ramping()))
|
||||
|
||||
# _test(Formulation(ramping = DamKucRajAta2016.Ramping()))
|
||||
@show "MorLatRam2013 ramping"
|
||||
_test(
|
||||
Formulation(
|
||||
ramping = MorLatRam2013.Ramping(),
|
||||
startup_costs = MorLatRam2013.StartupCosts(),
|
||||
),
|
||||
)
|
||||
@show "PanGua2016 ramping"
|
||||
_test(Formulation(ramping = PanGua2016.Ramping()))
|
||||
@show "Gar1962 PwlCosts"
|
||||
_test(Formulation(pwl_costs = Gar1962.PwlCosts()))
|
||||
@show "CarArr2006 PwlCosts"
|
||||
_test(Formulation(pwl_costs = CarArr2006.PwlCosts()))
|
||||
@show "KnuOstWat2018 PwlCosts"
|
||||
_test(Formulation(pwl_costs = KnuOstWat2018.PwlCosts()))
|
||||
@show "formulations completed"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user