Skip to content

Commit

Permalink
fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
frapac committed Sep 27, 2023
1 parent ab0c018 commit e8434d9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
1 change: 0 additions & 1 deletion .github/workflows/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ jobs:
env:
CUDA_VISIBLE_DEVICES: 1
JULIA_DEPOT_PATH: /scratch/github-actions/julia_depot_argos
JULIA_CUDA_USE_BINARYBUILDER: false
runs-on: self-hosted
strategy:
matrix:
Expand Down
9 changes: 5 additions & 4 deletions test/Algorithms/MadNLP_wrapper.jl
Original file line number Diff line number Diff line change
Expand Up @@ -70,27 +70,28 @@ end
"case30.m",
"case57.m",
]
tol = 1e-6
datafile = joinpath(INSTANCES_DIR, case)
options = Dict{Symbol, Any}(
:dual_initialized=>true,
:tol=>1e-6,
:tol=>tol,
:print_level=>MadNLP.ERROR,
)
@testset "Reduce-then-linearize" begin
nlp = Argos.ReducedSpaceEvaluator(datafile)
ips = _madnlp_default(nlp; options...)
@test ips.status == MadNLP.SOLVE_SUCCEEDED
ipd = _madnlp_dense_kkt(nlp; options...)
_test_results_match(ips, ipd; atol=1e-8)
_test_results_match(ips, ipd; atol=tol)
ipc = _madnlp_condensed_kkt(nlp; options...)
_test_results_match(ips, ipc; atol=1e-8)
_test_results_match(ips, ipc; atol=tol)
end
@testset "Linearize-then-reduce" begin
flp = Argos.FullSpaceEvaluator(datafile)
ips = _madnlp_default(flp; options...)
@test ips.status == MadNLP.SOLVE_SUCCEEDED
ipb = _madnlp_biegler_kkt(flp; options...)
_test_results_match(ips, ipb; atol=1e-8)
_test_results_match(ips, ipb; atol=tol)
@test ipb.kkt.Wref === flp.hess.H
end
end
Expand Down

0 comments on commit e8434d9

Please sign in to comment.