Skip to content

Commit

Permalink
Merge pull request #443 from jump-dev/fixtest
Browse files Browse the repository at this point in the history
remove slow fragile gate sizing cbf test
  • Loading branch information
chriscoey committed Jan 28, 2023
2 parents 3cddad4 + e3798ad commit bd3f78f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 321 deletions.
2 changes: 1 addition & 1 deletion Project.toml
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
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

2 comments on commit bd3f78f

@chriscoey
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/76576

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.8.1 -m "<description of version>" bd3f78f5a11ccbd521521eef922a079f86c3589b
git push origin v0.8.1

Please sign in to comment.