mirror of
https://github.com/ANL-CEEESA/UnitCommitment.jl.git
synced 2025-12-06 16:28:51 -06:00
Make tests completely silent; remove set_gap warnings on Cbc
This commit is contained in:
@@ -72,26 +72,19 @@ 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()))
|
||||
_small_test(
|
||||
Formulation(ramping = WanHob2016.Ramping()),
|
||||
|
||||
@@ -6,12 +6,11 @@ using Test
|
||||
using UnitCommitment
|
||||
|
||||
push!(Base.LOAD_PATH, @__DIR__)
|
||||
UnitCommitment._setup_logger()
|
||||
UnitCommitment._setup_logger(level = Base.CoreLogging.Error)
|
||||
|
||||
const ENABLE_LARGE_TESTS = ("UCJL_LARGE_TESTS" in keys(ENV))
|
||||
|
||||
@testset "UnitCommitment" begin
|
||||
@show "running runtests.jl"
|
||||
include("usage.jl")
|
||||
@testset "import" begin
|
||||
include("import/egret_test.jl")
|
||||
@@ -28,7 +27,6 @@ const ENABLE_LARGE_TESTS = ("UCJL_LARGE_TESTS" in keys(ENV))
|
||||
include("solution/methods/XavQiuWanThi19/sensitivity_test.jl")
|
||||
end
|
||||
@testset "transform" begin
|
||||
@show "beginning transform"
|
||||
include("transform/initcond_test.jl")
|
||||
include("transform/slice_test.jl")
|
||||
@testset "randomize" begin
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
using UnitCommitment, LinearAlgebra, Cbc, JuMP, JSON, GZip
|
||||
|
||||
@testset "slice" begin
|
||||
@show "beginning slice"
|
||||
instance = UnitCommitment.read_benchmark("test/case14")
|
||||
modified = UnitCommitment.slice(instance, 1:2)
|
||||
|
||||
@@ -36,8 +35,6 @@ using UnitCommitment, LinearAlgebra, Cbc, JuMP, JSON, GZip
|
||||
@test length(ps.demand) == 2
|
||||
@test length(ps.revenue) == 2
|
||||
end
|
||||
@show "beginning building model under slice"
|
||||
@show instance.reserves
|
||||
# Should be able to build model without errors
|
||||
optimizer = optimizer_with_attributes(Cbc.Optimizer, "logLevel" => 0)
|
||||
model = UnitCommitment.build_model(
|
||||
|
||||
Reference in New Issue
Block a user