Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove slow fragile gate sizing cbf test #443

Merged
merged 1 commit into from
Jan 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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