mirror of
https://github.com/ANL-CEEESA/UnitCommitment.jl.git
synced 2025-12-06 08:18:51 -06:00
Add test for reserve shortfall penalty
This commit is contained in:
Binary file not shown.
@@ -20,8 +20,14 @@ if ENABLE_LARGE_TESTS
|
|||||||
end
|
end
|
||||||
|
|
||||||
function _small_test(formulation::Formulation)::Nothing
|
function _small_test(formulation::Formulation)::Nothing
|
||||||
instance = UnitCommitment.read_benchmark("matpower/case118/2017-02-01")
|
instances = ["matpower/case118/2017-02-01", "test/case14"]
|
||||||
UnitCommitment.build_model(instance = instance, formulation = formulation) # should not crash
|
for instance in instances
|
||||||
|
# Should not crash
|
||||||
|
UnitCommitment.build_model(
|
||||||
|
instance = UnitCommitment.read_benchmark(instance),
|
||||||
|
formulation = formulation,
|
||||||
|
)
|
||||||
|
end
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user