Skip to content

Commit

Permalink
chore: Limit the number of problems in the longer tests to 5
Browse files Browse the repository at this point in the history
Closes #140
  • Loading branch information
abelsiqueira committed May 20, 2024
1 parent db8a96c commit acf3c50
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ end

@testset "Benchmark on unconstrained problems" begin
ad_problems = [
OptimizationProblems.ADNLPProblems.eval(Meta.parse(problem))() for
problem meta[(5 .<= meta.nvar .<= 10) .& (meta.ncon .== 0) .& (.!meta.has_bounds), :name]
OptimizationProblems.ADNLPProblems.eval(Meta.parse(problem))() for problem
first(meta[(5 .<= meta.nvar .<= 10) .& (meta.ncon .== 0) .& (.!meta.has_bounds), :name], 5)
]
select = JSOSuite.optimizers[
JSOSuite.optimizers.can_solve_nlp .& JSOSuite.optimizers.is_available,
Expand All @@ -138,7 +138,7 @@ end
@test stats.status_reliable && (stats.status == :first_order)
end

@testset "Test solve OptimizationProblems: $name" for name in meta[meta.nvar .< 10, :name]
@testset "Test solve OptimizationProblems: $name" for name in first(meta[meta.nvar .< 10, :name], 5)
name in ["bennett5", "channel", "hs253", "hs73", "misra1c"] && continue
nlp = OptimizationProblems.ADNLPProblems.eval(Meta.parse(name))()
minimize(nlp, verbose = 0)
Expand Down

0 comments on commit acf3c50

Please sign in to comment.