Skip to content

Commit

Permalink
remove slow fragile gate sizing cbf test
Browse files Browse the repository at this point in the history
  • Loading branch information
chriscoey committed Jan 28, 2023
1 parent 3cddad4 commit e3798ad
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 321 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name = "Pajarito"
uuid = "2f354839-79df-5901-9f0a-cdb2aac6fe30"
repo = "https://github.com/jump-dev/Pajarito.jl.git"
authors = ["Chris Coey <coey.chris@gmail.com>"]
version = "0.8.0"
version = "0.8.1"

[deps]
JuMP = "4076af6c-e467-56ae-b986-b466b2749572"
Expand Down
308 changes: 0 additions & 308 deletions test/CBF/exp_gatesizing.cbf

This file was deleted.

13 changes: 1 addition & 12 deletions test/CBF_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,10 @@ function run_cbf_tests(use_iter::Bool, oa_solver, conic_solver)
MOI.set(model, MOI.RawOptimizerAttribute("time_limit"), 60)
MOI.set(model, MOI.RawOptimizerAttribute("iteration_limit"), 100)

insts = ["sssd_strong_15_4", "exp_gatesizing", "exp_ising", "sdp_cardls"]
insts = ["sssd_strong_15_4", "exp_ising", "sdp_cardls"]
folder = joinpath(@__DIR__, "CBF")

@testset "$inst" for inst in insts
if !use_iter && inst == "exp_gatesizing"
continue # TODO failing
end
println(inst)
file = joinpath(folder, string(inst, ".cbf"))
run_cbf(model, file)
Expand All @@ -68,14 +65,6 @@ function sssd_strong_15_4(model)
return
end

function exp_gatesizing(model)
TOL = 1e-4
@test MOI.get(model, MOI.TerminationStatus()) == MOI.OPTIMAL
@test isapprox(MOI.get(model, MOI.ObjectiveValue()), 8.33333, atol = TOL)
@test isapprox(MOI.get(model, MOI.ObjectiveBound()), 8.33333, atol = TOL)
return
end

function exp_ising(model)
TOL = 1e-4
@test MOI.get(model, MOI.TerminationStatus()) == MOI.OPTIMAL
Expand Down

0 comments on commit e3798ad

Please sign in to comment.