Skip to content

Commit

Permalink
Use LapackCPU in MINLPTest
Browse files Browse the repository at this point in the history
  • Loading branch information
sshin23 committed Sep 14, 2021
1 parent 597bccb commit e08f278
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/minlp_test.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
const OPTIMIZER = ()->MadNLP.Optimizer(print_level=MadNLP.ERROR)
const OPTIMIZER = ()->MadNLP.Optimizer(
linear_solver=MadNLPLapackCPU,
print_level=MadNLP.ERROR
)

@testset "MINLPTests" begin
###
Expand All @@ -10,8 +13,6 @@ const OPTIMIZER = ()->MadNLP.Optimizer(print_level=MadNLP.ERROR)
exclude = [
"005_011", # Uses the function `\`
"006_010", # User-defined function without Hessian (autodiff only provides 1st order)
"004_010", # Umfpack not passing the test; might be converging to a different solution?
"004_011", # Umfpack not passing the test; might be converging to a different solution?
],
objective_tol = 1e-5,
primal_tol = 1e-5,
Expand All @@ -26,3 +27,4 @@ const OPTIMIZER = ()->MadNLP.Optimizer(print_level=MadNLP.ERROR)
OPTIMIZER,
)
end

0 comments on commit e08f278

Please sign in to comment.