Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,10 @@ Supported packages include:
| [Bonmin](https://github.com/coin-or/Bonmin) | `Bonmin_jll.jl` | `Bomin_jll.amplexe` |
| [Couenne](https://github.com/coin-or/Couenne) | `Couenne_jll.jl` | `Couenne_jll.amplexe` |
| [Ipopt](https://github.com/coin-or/Ipopt) | `Ipopt_jll.jl` | `Ipopt_jll.amplexe` |
| [KNITRO](https://github.com/jump-dev/KNITRO.jl)| `KNITRO.jl` | `KNITRO.amplexe` |
| [KNITRO](https://github.com/jump-dev/KNITRO_jll.jl)| `KNITRO_jll.jl` | `KNITRO_jll.knitroampl` |
| [SHOT](https://github.com/coin-or/SHOT) | `SHOT_jll.jl` | `SHOT_jll.amplexe` |
| [Uno](https://github.com/cvanaret/Uno) | `Uno_jll.jl` | `Uno_jll.amplexe` |

**Bonmin and Couenne do not work on Apple M-series computers. For compatibility,
install Julia via Rosetta.**

## MathOptInterface API

The AmplNLWriter optimizer supports the following constraints and attributes.
Expand Down
6 changes: 3 additions & 3 deletions test/MINLPTests/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
Uno_jll = "396d5378-14f1-5ab1-981d-48acd51740ed"

[compat]
Bonmin_jll = "100.800.901"
Bonmin_jll = "100.800.902"
Couenne_jll = "0.500.802"
Ipopt_jll = "300.1400.1900"
JuMP = "1"
MathOptInterface = "1.33"
MINLPTests = "0.6"
MathOptInterface = "1.33"
SHOT_jll = "100.100.0"
Uno_jll = "1"
Uno_jll = "2"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

We fixed so many bugs before that I highly suggest 2.3.0.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This is with Uno@2.3.0

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Yes, I just want to be sure that the tests here are always using Uno >= 2.3.0 in the future.

julia = "1.10"
70 changes: 6 additions & 64 deletions test/MINLPTests/run_minlptests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,12 @@ const CONFIG = Dict{String,Any}(
"amplexe" => Uno_jll.amplexe,
"options" => ["logger=SILENT"],
Comment thread
odow marked this conversation as resolved.
Outdated
"nlp_exclude" => [
# See https://github.com/cvanaret/Uno/issues/39
"005_010",
# See https://github.com/cvanaret/Uno/issues/38
"007_010",
"003_014", # Local solution
"004_010", # Local solution
"004_011", # Local solution
"005_010", # See https://github.com/cvanaret/Uno/issues/39
"007_010", # See https://github.com/cvanaret/Uno/issues/38
"008_010", # Local solution
],
),
)
Expand Down Expand Up @@ -160,63 +162,3 @@ const CONFIG = Dict{String,Any}(
end
end
end

function test_uno_runtests()
optimizer = MOI.instantiate(
() -> AmplNLWriter.Optimizer(Uno_jll.amplexe, ["logger=SILENT"]);
with_cache_type = Float64,
with_bridge_type = Float64,
)
MOI.Test.runtests(
optimizer,
MOI.Test.Config(
atol = 1e-4,
rtol = 1e-4,
optimal_status = MOI.LOCALLY_SOLVED,
infeasible_status = MOI.LOCALLY_INFEASIBLE,
exclude = Any[
MOI.VariableBasisStatus,
MOI.ConstraintBasisStatus,
MOI.ObjectiveBound,
],
);
exclude = [
# OTHER_LIMIT instead of LOCALLY_SOLVED
r"^test_conic_linear_VectorOfVariables_2$",
r"^test_nonlinear_expression_hs109$",
r"^test_quadratic_constraint_GreaterThan$",
r"^test_quadratic_constraint_LessThan$",
r"^test_solve_VariableIndex_ConstraintDual_MAX_SENSE$",
r"^test_solve_VariableIndex_ConstraintDual_MIN_SENSE$",
# OTHER_ERROR instead of LOCALLY_SOLVED
r"^test_linear_integration$",
r"^test_linear_transform$",
# OTHER_LIMIT instead of DUAL_INFEASIBLE
r"^test_solve_TerminationStatus_DUAL_INFEASIBLE$",
# OTHER_LIMIT instead of LOCALLY_INFEASIBLE
r"^test_conic_NormInfinityCone_INFEASIBLE$",
r"^test_conic_NormOneCone_INFEASIBLE$",
r"^test_conic_linear_INFEASIBLE$",
r"^test_conic_linear_INFEASIBLE_2$",
r"^test_linear_INFEASIBLE$",
r"^test_linear_INFEASIBLE_2$",
r"^test_solve_DualStatus_INFEASIBILITY_CERTIFICATE_",
# Uno does not support integrality
"Indicator",
r"[Ii]nteger",
"Semicontinuous",
"Semiinteger",
"SOS1",
"SOS2",
"ZeroOne",
r"^test_cpsat_",
# Existing MOI issues
r"^test_attribute_SolverVersion$",
r"^test_nonlinear_invalid$",
r"^test_basic_VectorNonlinearFunction_",
],
)
return
end

test_uno_runtests()
Loading