You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
UnitCommitment.jl/test/model/formulations_test.jl

21 lines
974 B

# UnitCommitment.jl: Optimization Package for Security-Constrained Unit Commitment
# Copyright (C) 2020, UChicago Argonne, LLC. All rights reserved.
# Released under the modified BSD license. See COPYING.md for more details.
using UnitCommitment
function _test(formulation::UnitCommitment.Formulation)::Nothing
instance = UnitCommitment.read_benchmark("matpower/case118/2017-02-01")
UnitCommitment._build_model(instance, formulation) # should not crash
return
end
@testset "formulations" begin
_test(UnitCommitment.Formulation(ramping = UnitCommitment.ArrCon00()))
_test(UnitCommitment.Formulation(ramping = UnitCommitment.DamKucRajAta16()))
_test(UnitCommitment.Formulation(ramping = UnitCommitment.MorLatRam13()))
_test(UnitCommitment.Formulation(ramping = UnitCommitment.PanGua16()))
_test(UnitCommitment.Formulation(pwl_costs = UnitCommitment.Gar62()))
_test(UnitCommitment.Formulation(pwl_costs = UnitCommitment.CarArr06()))
end