Skip to content

Commit

Permalink
Update version of MINLPTests (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
odow authored Sep 15, 2023
1 parent b58f5f0 commit 4e1edda
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/MINLPTests/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ Bonmin_jll = "100.800.801"
Couenne_jll = "0.500.801"
Ipopt_jll = "=300.1400.400"
JuMP = "1"
MINLPTests = "0.5"
MINLPTests = "0.6"
SHOT_jll = "100.100.0"
julia = "1.6"
27 changes: 27 additions & 0 deletions test/MINLPTests/run_minlptests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,15 @@ CONFIG["Ipopt"] = Dict(
primal_tol = config["tol"],
dual_tol = config["dual_tol"],
)
MINLPTests.test_nlp_expr(
OPTIMIZER,
exclude = config["nlp_exclude"],
termination_target = TERMINATION_TARGET,
primal_target = PRIMAL_TARGET,
objective_tol = config["tol"],
primal_tol = config["tol"],
dual_tol = config["dual_tol"],
)
end
@testset "NLP-CVX" begin
MINLPTests.test_nlp_cvx(
Expand All @@ -121,6 +130,15 @@ CONFIG["Ipopt"] = Dict(
primal_tol = config["tol"],
dual_tol = config["dual_tol"],
)
MINLPTests.test_nlp_cvx_expr(
OPTIMIZER,
exclude = config["nlpcvx_exclude"],
termination_target = TERMINATION_TARGET,
primal_target = PRIMAL_TARGET,
objective_tol = config["tol"],
primal_tol = config["tol"],
dual_tol = config["dual_tol"],
)
end
if name != "Ipopt"
@testset "NLP-MI" begin
Expand All @@ -133,6 +151,15 @@ CONFIG["Ipopt"] = Dict(
primal_tol = config["tol"],
dual_tol = config["dual_tol"],
)
MINLPTests.test_nlp_mi_expr(
OPTIMIZER,
exclude = config["nlpmi_exclude"],
termination_target = TERMINATION_TARGET,
primal_target = PRIMAL_TARGET,
objective_tol = config["tol"],
primal_tol = config["tol"],
dual_tol = config["dual_tol"],
)
end
end
end

0 comments on commit 4e1edda

Please sign in to comment.