Ipopt.jl
Ipopt.jl copied to clipboard
Tests failing on M1
I have a new toy
(jump-tests) pkg> test Ipopt
Testing Ipopt
Status `/private/var/folders/tz/_3rffzvd1hs3rrxssmntjnpw0000gn/T/jl_m7d9vf/Project.toml`
[b6b21f68] Ipopt v1.0.2
[b8f27783] MathOptInterface v1.2.0
[9cc047cb] Ipopt_jll v300.1400.400+0
[8dfed614] Test `@stdlib/Test`
Status `/private/var/folders/tz/_3rffzvd1hs3rrxssmntjnpw0000gn/T/jl_m7d9vf/Manifest.toml`
[6e4b80f9] BenchmarkTools v1.3.1
[523fee87] CodecBzip2 v0.7.2
[944b1d66] CodecZlib v0.7.0
[b6b21f68] Ipopt v1.0.2
[692b3bcd] JLLWrappers v1.4.1
[682c06a0] JSON v0.21.3
[b8f27783] MathOptInterface v1.2.0
[d8a4904e] MutableArithmetics v1.0.0
[bac558e1] OrderedCollections v1.4.1
[69de0a69] Parsers v2.3.1
[21216c6a] Preferences v1.3.0
[3bb67fe8] TranscodingStreams v0.9.6
[ae81ac8f] ASL_jll v0.1.3+0
[6e34b625] Bzip2_jll v1.0.8+0
[9cc047cb] Ipopt_jll v300.1400.400+0
[d00139f3] METIS_jll v5.1.1+0
[d7ed1dd3] MUMPS_seq_jll v5.4.1+0
[656ef2d0] OpenBLAS32_jll v0.3.17+0
[0dad84c5] ArgTools `@stdlib/ArgTools`
[56f22d72] Artifacts `@stdlib/Artifacts`
[2a0f44e3] Base64 `@stdlib/Base64`
[ade2ca70] Dates `@stdlib/Dates`
[f43a241f] Downloads `@stdlib/Downloads`
[b77e0a4c] InteractiveUtils `@stdlib/InteractiveUtils`
[b27032c2] LibCURL `@stdlib/LibCURL`
[76f85450] LibGit2 `@stdlib/LibGit2`
[8f399da3] Libdl `@stdlib/Libdl`
[37e2e46d] LinearAlgebra `@stdlib/LinearAlgebra`
[56ddb016] Logging `@stdlib/Logging`
[d6f4376e] Markdown `@stdlib/Markdown`
[a63ad114] Mmap `@stdlib/Mmap`
[ca575930] NetworkOptions `@stdlib/NetworkOptions`
[44cfe95a] Pkg `@stdlib/Pkg`
[de0858da] Printf `@stdlib/Printf`
[9abbd945] Profile `@stdlib/Profile`
[3fa0cd96] REPL `@stdlib/REPL`
[9a3f8284] Random `@stdlib/Random`
[ea8e919c] SHA `@stdlib/SHA`
[9e88b42a] Serialization `@stdlib/Serialization`
[6462fe0b] Sockets `@stdlib/Sockets`
[2f01184e] SparseArrays `@stdlib/SparseArrays`
[10745b16] Statistics `@stdlib/Statistics`
[fa267f1f] TOML `@stdlib/TOML`
[a4e569a6] Tar `@stdlib/Tar`
[8dfed614] Test `@stdlib/Test`
[cf7118a7] UUIDs `@stdlib/UUIDs`
[4ec0a83e] Unicode `@stdlib/Unicode`
[e66e0078] CompilerSupportLibraries_jll `@stdlib/CompilerSupportLibraries_jll`
[deac9b47] LibCURL_jll `@stdlib/LibCURL_jll`
[29816b5a] LibSSH2_jll `@stdlib/LibSSH2_jll`
[c8ffd9c3] MbedTLS_jll `@stdlib/MbedTLS_jll`
[14a3606d] MozillaCACerts_jll `@stdlib/MozillaCACerts_jll`
[4536629a] OpenBLAS_jll `@stdlib/OpenBLAS_jll`
[83775a58] Zlib_jll `@stdlib/Zlib_jll`
[8e850b90] libblastrampoline_jll `@stdlib/libblastrampoline_jll`
[8e850ede] nghttp2_jll `@stdlib/nghttp2_jll`
[3f19e933] p7zip_jll `@stdlib/p7zip_jll`
Testing Running tests...
******************************************************************************
This program contains Ipopt, a library for large-scale nonlinear optimization.
Ipopt is released as open source code under the Eclipse Public License (EPL).
For more information visit https://github.com/coin-or/Ipopt
******************************************************************************
This is Ipopt version 3.14.4, running with linear solver MUMPS 5.4.1.
Number of nonzeros in equality constraint Jacobian...: 4
Number of nonzeros in inequality constraint Jacobian.: 4
Number of nonzeros in Lagrangian Hessian.............: 10
Total number of variables............................: 4
variables with only lower bounds: 0
variables with lower and upper bounds: 4
variables with only upper bounds: 0
Total number of equality constraints.................: 1
Total number of inequality constraints...............: 1
inequality constraints with only lower bounds: 1
inequality constraints with lower and upper bounds: 0
inequality constraints with only upper bounds: 0
iter objective inf_pr inf_du lg(mu) ||d|| lg(rg) alpha_du alpha_pr ls
0 1.6109693e+01 1.12e+01 5.28e-01 -1.0 0.00e+00 - 0.00e+00 0.00e+00 0
1 1.6982239e+01 7.30e-01 1.02e+01 -1.0 6.11e-01 - 7.19e-02 1.00e+00f 1
2 1.7318411e+01 3.60e-02 5.05e-01 -1.0 1.61e-01 - 1.00e+00 1.00e+00h 1
3 1.6849424e+01 2.78e-01 6.68e-02 -1.7 2.85e-01 - 7.94e-01 1.00e+00h 1
4 1.7051199e+01 4.71e-03 2.78e-03 -1.7 6.06e-02 - 1.00e+00 1.00e+00h 1
5 1.7011979e+01 7.19e-03 8.50e-03 -3.8 3.66e-02 - 9.45e-01 9.98e-01h 1
6 1.7014271e+01 1.74e-05 9.78e-06 -3.8 3.33e-03 - 1.00e+00 1.00e+00h 1
7 1.7014021e+01 1.23e-07 1.82e-07 -5.7 2.69e-04 - 1.00e+00 1.00e+00h 1
8 1.7014017e+01 1.77e-11 2.52e-11 -8.6 3.32e-06 - 1.00e+00 1.00e+00h 1
Number of Iterations....: 8
(scaled) (unscaled)
Objective...............: 1.7014017145179160e+01 1.7014017145179160e+01
Dual infeasibility......: 2.5166488776625211e-11 2.5166488776625211e-11
Constraint violation....: 1.7713830402499298e-11 1.7713830402499298e-11
Variable bound violation: 7.6764621326219640e-09 7.6764621326219640e-09
Complementarity.........: 2.5277100427932871e-09 2.5277100427932871e-09
Overall NLP error.......: 2.5277100427932871e-09 2.5277100427932871e-09
Number of objective function evaluations = 9
Number of objective gradient evaluations = 9
Number of equality constraint evaluations = 9
Number of inequality constraint evaluations = 9
Number of equality constraint Jacobian evaluations = 9
Number of inequality constraint Jacobian evaluations = 9
Number of Lagrangian Hessian evaluations = 8
Total seconds in IPOPT = 0.034
EXIT: Optimal Solution Found.
This is Ipopt version 3.14.4, running with linear solver MUMPS 5.4.1.
Number of nonzeros in equality constraint Jacobian...: 4
Number of nonzeros in inequality constraint Jacobian.: 4
Number of nonzeros in Lagrangian Hessian.............: 10
Total number of variables............................: 4
variables with only lower bounds: 0
variables with lower and upper bounds: 4
variables with only upper bounds: 0
Total number of equality constraints.................: 1
Total number of inequality constraints...............: 1
inequality constraints with only lower bounds: 1
inequality constraints with lower and upper bounds: 0
inequality constraints with only upper bounds: 0
iter objective inf_pr inf_du lg(mu) ||d|| lg(rg) alpha_du alpha_pr ls
0 1.7159878e+01 2.01e-02 5.20e-01 -1.0 0.00e+00 - 0.00e+00 0.00e+00 0
1 1.7146308e+01 2.06e-02 1.47e-01 -1.0 1.15e-01 - 9.86e-01 1.00e+00f 1
Number of Iterations....: 1
(scaled) (unscaled)
Objective...............: 1.7146307787804179e+01 1.7146307787804179e+01
Dual infeasibility......: 1.4659378128595613e-01 1.4659378128595613e-01
Constraint violation....: 2.0600446810355777e-02 2.0600446810355777e-02
Variable bound violation: 0.0000000000000000e+00 0.0000000000000000e+00
Complementarity.........: 2.2602930210765021e-01 2.2602930210765021e-01
Overall NLP error.......: 2.2602930210765021e-01 2.2602930210765021e-01
Number of objective function evaluations = 2
Number of objective gradient evaluations = 2
Number of equality constraint evaluations = 2
Number of inequality constraint evaluations = 2
Number of equality constraint Jacobian evaluations = 2
Number of inequality constraint Jacobian evaluations = 2
Number of Lagrangian Hessian evaluations = 1
Total seconds in IPOPT = 0.002
EXIT: Stopping optimization at current point as requested by user.
String option
Setting: "badoption" is not a valid setting for Option: hessian_approximation. Check the option documentation.
### hessian_approximation (String) ###
Category: Hessian Approximation
Description: Indicates what Hessian information is to be used.
Valid Settings:
exact (Use second derivatives provided by the NLP.)
limited-memory (Perform a limited-memory quasi-Newton approximation)
Default: "exact"
Int option
Setting: "-1" is not a valid setting for Option: file_print_level. Check the option documentation.
### file_print_level (Integer) ###
Category: Output
Description: Verbosity level for output file.
0 <= (5) <= 12
Float option
Setting: "-1" is not a valid setting for Option: derivative_test_tol. Check the option documentation.
### derivative_test_tol (Real Number) ###
Category: Derivative Checker
Description: Threshold for indicating wrong derivative.
0 < (0.0001) <= +inf
Test Summary: | Pass Total
C | 11 11
test_linear_transform: Test Failed at /Users/oscardowson/.julia/packages/MathOptInterface/ajp5T/src/Test/test_linear.jl:2116
Expression: MOI.get(model, MOI.TerminationStatus()) == config.optimal_status
Evaluated: MathOptInterface.NORM_LIMIT == MathOptInterface.LOCALLY_SOLVED
Stacktrace:
[1] macro expansion
@ /Applications/Julia-1.7.app/Contents/Resources/julia/share/julia/stdlib/v1.7/Test/src/Test.jl:445 [inlined]
[2] test_linear_transform(model::MathOptInterface.Utilities.CachingOptimizer{MathOptInterface.Bridges.LazyBridgeOptimizer{Ipopt.Optimizer}, MathOptInterface.Utilities.UniversalFallback{MathOptInterface.Utilities.Model{Float64}}}, config::MathOptInterface.Test.Config{Float64})
@ MathOptInterface.Test ~/.julia/packages/MathOptInterface/ajp5T/src/Test/test_linear.jl:2116
test_linear_transform: Test Failed at /Users/oscardowson/.julia/packages/MathOptInterface/ajp5T/src/Test/test_linear.jl:2117
Expression: MOI.get(model, MOI.PrimalStatus()) == MOI.FEASIBLE_POINT
Evaluated: MathOptInterface.UNKNOWN_RESULT_STATUS == MathOptInterface.FEASIBLE_POINT
Stacktrace:
[1] macro expansion
@ /Applications/Julia-1.7.app/Contents/Resources/julia/share/julia/stdlib/v1.7/Test/src/Test.jl:445 [inlined]
[2] test_linear_transform(model::MathOptInterface.Utilities.CachingOptimizer{MathOptInterface.Bridges.LazyBridgeOptimizer{Ipopt.Optimizer}, MathOptInterface.Utilities.UniversalFallback{MathOptInterface.Utilities.Model{Float64}}}, config::MathOptInterface.Test.Config{Float64})
@ MathOptInterface.Test ~/.julia/packages/MathOptInterface/ajp5T/src/Test/test_linear.jl:2117
test_linear_transform: Test Failed at /Users/oscardowson/.julia/packages/MathOptInterface/ajp5T/src/Test/test_linear.jl:2118
Expression: ≈(MOI.get(model, MOI.ObjectiveValue()), T(2), atol = atol, rtol = rtol)
Evaluated: 0.0 ≈ 2.0 (atol=0.0001, rtol=0.0001)
Stacktrace:
[1] macro expansion
@ /Applications/Julia-1.7.app/Contents/Resources/julia/share/julia/stdlib/v1.7/Test/src/Test.jl:445 [inlined]
[2] test_linear_transform(model::MathOptInterface.Utilities.CachingOptimizer{MathOptInterface.Bridges.LazyBridgeOptimizer{Ipopt.Optimizer}, MathOptInterface.Utilities.UniversalFallback{MathOptInterface.Utilities.Model{Float64}}}, config::MathOptInterface.Test.Config{Float64})
@ MathOptInterface.Test ~/.julia/packages/MathOptInterface/ajp5T/src/Test/test_linear.jl:2118
test_linear_transform: Test Failed at /Users/oscardowson/.julia/packages/MathOptInterface/ajp5T/src/Test/test_linear.jl:2130
Expression: MOI.get(model, MOI.TerminationStatus()) == config.optimal_status
Evaluated: MathOptInterface.NORM_LIMIT == MathOptInterface.LOCALLY_SOLVED
Stacktrace:
[1] macro expansion
@ /Applications/Julia-1.7.app/Contents/Resources/julia/share/julia/stdlib/v1.7/Test/src/Test.jl:445 [inlined]
[2] test_linear_transform(model::MathOptInterface.Utilities.CachingOptimizer{MathOptInterface.Bridges.LazyBridgeOptimizer{Ipopt.Optimizer}, MathOptInterface.Utilities.UniversalFallback{MathOptInterface.Utilities.Model{Float64}}}, config::MathOptInterface.Test.Config{Float64})
@ MathOptInterface.Test ~/.julia/packages/MathOptInterface/ajp5T/src/Test/test_linear.jl:2130
test_linear_transform: Test Failed at /Users/oscardowson/.julia/packages/MathOptInterface/ajp5T/src/Test/test_linear.jl:2131
Expression: MOI.get(model, MOI.PrimalStatus()) == MOI.FEASIBLE_POINT
Evaluated: MathOptInterface.UNKNOWN_RESULT_STATUS == MathOptInterface.FEASIBLE_POINT
Stacktrace:
[1] macro expansion
@ /Applications/Julia-1.7.app/Contents/Resources/julia/share/julia/stdlib/v1.7/Test/src/Test.jl:445 [inlined]
[2] test_linear_transform(model::MathOptInterface.Utilities.CachingOptimizer{MathOptInterface.Bridges.LazyBridgeOptimizer{Ipopt.Optimizer}, MathOptInterface.Utilities.UniversalFallback{MathOptInterface.Utilities.Model{Float64}}}, config::MathOptInterface.Test.Config{Float64})
@ MathOptInterface.Test ~/.julia/packages/MathOptInterface/ajp5T/src/Test/test_linear.jl:2131
test_linear_transform: Test Failed at /Users/oscardowson/.julia/packages/MathOptInterface/ajp5T/src/Test/test_linear.jl:2132
Expression: ≈(MOI.get(model, MOI.ObjectiveValue()), T(1), atol = atol, rtol = rtol)
Evaluated: 0.0 ≈ 1.0 (atol=0.0001, rtol=0.0001)
Stacktrace:
[1] macro expansion
@ /Applications/Julia-1.7.app/Contents/Resources/julia/share/julia/stdlib/v1.7/Test/src/Test.jl:445 [inlined]
[2] test_linear_transform(model::MathOptInterface.Utilities.CachingOptimizer{MathOptInterface.Bridges.LazyBridgeOptimizer{Ipopt.Optimizer}, MathOptInterface.Utilities.UniversalFallback{MathOptInterface.Utilities.Model{Float64}}}, config::MathOptInterface.Test.Config{Float64})
@ MathOptInterface.Test ~/.julia/packages/MathOptInterface/ajp5T/src/Test/test_linear.jl:2132
This is Ipopt version 3.14.4, running with linear solver MUMPS 5.4.1.
Number of nonzeros in equality constraint Jacobian...: 0
Number of nonzeros in inequality constraint Jacobian.: 1
Number of nonzeros in Lagrangian Hessian.............: 0
The Jacobian for the inequality constraints contains an invalid number
Number of Iterations....: 0
Number of objective function evaluations = 0
Number of objective gradient evaluations = 0
Number of equality constraint evaluations = 0
Number of inequality constraint evaluations = 1
Number of equality constraint Jacobian evaluations = 0
Number of inequality constraint Jacobian evaluations = 1
Number of Lagrangian Hessian evaluations = 0
Total seconds in IPOPT = 0.007
EXIT: Invalid number in NLP function or derivative detected.
This is Ipopt version 3.14.4, running with linear solver MUMPS 5.4.1.
Number of nonzeros in equality constraint Jacobian...: 0
Number of nonzeros in inequality constraint Jacobian.: 0
Number of nonzeros in Lagrangian Hessian.............: 0
Total number of variables............................: 1
variables with only lower bounds: 0
variables with lower and upper bounds: 0
variables with only upper bounds: 0
Total number of equality constraints.................: 0
Total number of inequality constraints...............: 0
inequality constraints with only lower bounds: 0
inequality constraints with lower and upper bounds: 0
inequality constraints with only upper bounds: 0
iter objective inf_pr inf_du lg(mu) ||d|| lg(rg) alpha_du alpha_pr ls
0 0.0000000e+00 0.00e+00 0.00e+00 -1.0 0.00e+00 - 0.00e+00 0.00e+00 0
Number of Iterations....: 0
(scaled) (unscaled)
Objective...............: 0.0000000000000000e+00 0.0000000000000000e+00
Dual infeasibility......: 0.0000000000000000e+00 0.0000000000000000e+00
Constraint violation....: 0.0000000000000000e+00 0.0000000000000000e+00
Variable bound violation: 0.0000000000000000e+00 0.0000000000000000e+00
Complementarity.........: 0.0000000000000000e+00 0.0000000000000000e+00
Overall NLP error.......: 0.0000000000000000e+00 0.0000000000000000e+00
Number of objective function evaluations = 1
Number of objective gradient evaluations = 1
Number of equality constraint evaluations = 0
Number of inequality constraint evaluations = 0
Number of equality constraint Jacobian evaluations = 0
Number of inequality constraint Jacobian evaluations = 0
Number of Lagrangian Hessian evaluations = 0
Total seconds in IPOPT = 0.000
EXIT: Optimal Solution Found.
Test Summary: | Pass Fail Total
MathOptInterface | 2056 6 2062
test_ConstraintDualStart | 15 15
test_MOI_Test | 2023 6 2029
test_add_constrained_variables_vector | 6 6
test_attribute_NumberThreads | No tests
test_attribute_RawStatusString | 1 1
test_attribute_Silent | 4 4
test_attribute_SolveTimeSec | 2 2
test_attribute_SolverName | 1 1
test_attribute_SolverVersion | 1 1
test_attribute_TimeLimitSec | 4 4
test_attribute_after_empty | 4 4
test_basic_ScalarAffineFunction_EqualTo | 23 23
test_basic_ScalarAffineFunction_GreaterThan | 23 23
test_basic_ScalarAffineFunction_Interval | 23 23
test_basic_ScalarAffineFunction_LessThan | 23 23
test_basic_ScalarAffineFunction_Semicontinuous | No tests
test_basic_ScalarAffineFunction_Semiinteger | No tests
test_basic_ScalarAffineFunction_ZeroOne | No tests
test_basic_ScalarQuadraticFunction_EqualTo | 23 23
test_basic_ScalarQuadraticFunction_GreaterThan | 23 23
test_basic_ScalarQuadraticFunction_Interval | 23 23
test_basic_ScalarQuadraticFunction_LessThan | 23 23
test_basic_ScalarQuadraticFunction_Semicontinuous | No tests
test_basic_ScalarQuadraticFunction_Semiinteger | No tests
test_basic_ScalarQuadraticFunction_ZeroOne | No tests
test_basic_VariableIndex_EqualTo | 18 18
test_basic_VariableIndex_GreaterThan | 18 18
test_basic_VariableIndex_Interval | 18 18
test_basic_VariableIndex_LessThan | 18 18
test_basic_VariableIndex_Semicontinuous | No tests
test_basic_VariableIndex_Semiinteger | No tests
test_basic_VariableIndex_ZeroOne | No tests
test_basic_VectorAffineFunction_Complements | No tests
test_basic_VectorAffineFunction_DualExponentialCone | No tests
test_basic_VectorAffineFunction_DualPowerCone | No tests
test_basic_VectorAffineFunction_ExponentialCone | No tests
test_basic_VectorAffineFunction_GeometricMeanCone | No tests
test_basic_VectorAffineFunction_Indicator_GreaterThan | No tests
test_basic_VectorAffineFunction_Indicator_LessThan | No tests
test_basic_VectorAffineFunction_LogDetConeSquare | No tests
test_basic_VectorAffineFunction_LogDetConeTriangle | No tests
test_basic_VectorAffineFunction_Nonnegatives | 23 23
test_basic_VectorAffineFunction_Nonpositives | 23 23
test_basic_VectorAffineFunction_NormInfinityCone | 23 23
test_basic_VectorAffineFunction_NormNuclearCone | No tests
test_basic_VectorAffineFunction_NormOneCone | 23 23
test_basic_VectorAffineFunction_NormSpectralCone | No tests
test_basic_VectorAffineFunction_PositiveSemidefiniteConeSquare | No tests
test_basic_VectorAffineFunction_PositiveSemidefiniteConeTriangle | No tests
test_basic_VectorAffineFunction_PowerCone | No tests
test_basic_VectorAffineFunction_RelativeEntropyCone | No tests
test_basic_VectorAffineFunction_RootDetConeSquare | No tests
test_basic_VectorAffineFunction_RootDetConeTriangle | No tests
test_basic_VectorAffineFunction_RotatedSecondOrderCone | No tests
test_basic_VectorAffineFunction_SOS1 | No tests
test_basic_VectorAffineFunction_SOS2 | No tests
test_basic_VectorAffineFunction_SecondOrderCone | No tests
test_basic_VectorAffineFunction_Zeros | 23 23
test_basic_VectorOfVariables_Complements | No tests
test_basic_VectorOfVariables_DualExponentialCone | No tests
test_basic_VectorOfVariables_DualPowerCone | No tests
test_basic_VectorOfVariables_ExponentialCone | No tests
test_basic_VectorOfVariables_GeometricMeanCone | No tests
test_basic_VectorOfVariables_LogDetConeSquare | No tests
test_basic_VectorOfVariables_LogDetConeTriangle | No tests
test_basic_VectorOfVariables_Nonnegatives | 20 20
test_basic_VectorOfVariables_Nonpositives | 20 20
test_basic_VectorOfVariables_NormInfinityCone | 20 20
test_basic_VectorOfVariables_NormNuclearCone | No tests
test_basic_VectorOfVariables_NormOneCone | 20 20
test_basic_VectorOfVariables_NormSpectralCone | No tests
test_basic_VectorOfVariables_PositiveSemidefiniteConeSquare | No tests
test_basic_VectorOfVariables_PositiveSemidefiniteConeTriangle | No tests
test_basic_VectorOfVariables_PowerCone | No tests
test_basic_VectorOfVariables_RelativeEntropyCone | No tests
test_basic_VectorOfVariables_RootDetConeSquare | No tests
test_basic_VectorOfVariables_RootDetConeTriangle | No tests
test_basic_VectorOfVariables_RotatedSecondOrderCone | No tests
test_basic_VectorOfVariables_SOS1 | No tests
test_basic_VectorOfVariables_SOS2 | No tests
test_basic_VectorOfVariables_SecondOrderCone | No tests
test_basic_VectorOfVariables_Zeros | 20 20
test_basic_VectorQuadraticFunction_Complements | No tests
test_basic_VectorQuadraticFunction_DualExponentialCone | No tests
test_basic_VectorQuadraticFunction_DualPowerCone | No tests
test_basic_VectorQuadraticFunction_ExponentialCone | No tests
test_basic_VectorQuadraticFunction_GeometricMeanCone | No tests
test_basic_VectorQuadraticFunction_LogDetConeSquare | No tests
test_basic_VectorQuadraticFunction_LogDetConeTriangle | No tests
test_basic_VectorQuadraticFunction_Nonnegatives | 23 23
test_basic_VectorQuadraticFunction_Nonpositives | 23 23
test_basic_VectorQuadraticFunction_NormInfinityCone | 23 23
test_basic_VectorQuadraticFunction_NormNuclearCone | No tests
test_basic_VectorQuadraticFunction_NormOneCone | 23 23
test_basic_VectorQuadraticFunction_NormSpectralCone | No tests
test_basic_VectorQuadraticFunction_PositiveSemidefiniteConeSquare | No tests
test_basic_VectorQuadraticFunction_PositiveSemidefiniteConeTriangle | No tests
test_basic_VectorQuadraticFunction_PowerCone | No tests
test_basic_VectorQuadraticFunction_RelativeEntropyCone | No tests
test_basic_VectorQuadraticFunction_RootDetConeSquare | No tests
test_basic_VectorQuadraticFunction_RootDetConeTriangle | No tests
test_basic_VectorQuadraticFunction_RotatedSecondOrderCone | No tests
test_basic_VectorQuadraticFunction_SOS1 | No tests
test_basic_VectorQuadraticFunction_SOS2 | No tests
test_basic_VectorQuadraticFunction_SecondOrderCone | No tests
test_basic_VectorQuadraticFunction_Zeros | 23 23
test_conic_DualExponentialCone_VectorAffineFunction | No tests
test_conic_DualExponentialCone_VectorOfVariables | No tests
test_conic_DualPowerCone_VectorAffineFunction | No tests
test_conic_DualPowerCone_VectorOfVariables | No tests
test_conic_Exponential_VectorAffineFunction | No tests
test_conic_Exponential_VectorOfVariables | No tests
test_conic_Exponential_hard | No tests
test_conic_Exponential_hard_2 | No tests
test_conic_GeometricMeanCone_VectorAffineFunction | No tests
test_conic_GeometricMeanCone_VectorAffineFunction_2 | No tests
test_conic_GeometricMeanCone_VectorAffineFunction_3 | No tests
test_conic_GeometricMeanCone_VectorOfVariables | No tests
test_conic_GeometricMeanCone_VectorOfVariables_2 | No tests
test_conic_GeometricMeanCone_VectorOfVariables_3 | No tests
test_conic_LogDetConeSquare | No tests
test_conic_LogDetConeSquare_VectorAffineFunction | No tests
test_conic_LogDetConeSquare_VectorOfVariables | No tests
test_conic_LogDetConeTriangle | No tests
test_conic_LogDetConeTriangle_VectorAffineFunction | No tests
test_conic_LogDetConeTriangle_VectorOfVariables | No tests
test_conic_NormInfinityCone_3 | 17 17
test_conic_NormInfinityCone_VectorAffineFunction | 19 19
test_conic_NormInfinityCone_VectorOfVariables | 19 19
test_conic_NormNuclearCone | No tests
test_conic_NormNuclearCone_2 | No tests
test_conic_NormOneCone | 16 16
test_conic_NormOneCone_VectorAffineFunction | 19 19
test_conic_NormOneCone_VectorOfVariables | 19 19
test_conic_NormSpectralCone | No tests
test_conic_NormSpectralCone_2 | No tests
test_conic_PositiveSemidefiniteConeSquare_3 | No tests
test_conic_PositiveSemidefiniteConeSquare_VectorAffineFunction | No tests
test_conic_PositiveSemidefiniteConeSquare_VectorAffineFunction_2 | No tests
test_conic_PositiveSemidefiniteConeSquare_VectorOfVariables | No tests
test_conic_PositiveSemidefiniteConeSquare_VectorOfVariables_2 | No tests
test_conic_PositiveSemidefiniteConeTriangle | No tests
test_conic_PositiveSemidefiniteConeTriangle_3 | No tests
test_conic_PositiveSemidefiniteConeTriangle_VectorAffineFunction | No tests
test_conic_PositiveSemidefiniteConeTriangle_VectorAffineFunction_2 | No tests
test_conic_PositiveSemidefiniteConeTriangle_VectorOfVariables | No tests
test_conic_PositiveSemidefiniteConeTriangle_VectorOfVariables_2 | No tests
test_conic_PowerCone_VectorAffineFunction | No tests
test_conic_PowerCone_VectorOfVariables | No tests
test_conic_RelativeEntropyCone | No tests
test_conic_RootDetConeSquare | No tests
test_conic_RootDetConeSquare_VectorAffineFunction | No tests
test_conic_RootDetConeSquare_VectorOfVariables | No tests
test_conic_RootDetConeTriangle | No tests
test_conic_RootDetConeTriangle_VectorAffineFunction | No tests
test_conic_RootDetConeTriangle_VectorOfVariables | No tests
test_conic_RotatedSecondOrderCone_VectorAffineFunction | No tests
test_conic_RotatedSecondOrderCone_VectorOfVariables | No tests
test_conic_RotatedSecondOrderCone_out_of_order | No tests
test_conic_SecondOrderCone_Nonnegatives | No tests
test_conic_SecondOrderCone_Nonpositives | No tests
test_conic_SecondOrderCone_VectorAffineFunction | No tests
test_conic_SecondOrderCone_VectorOfVariables | No tests
test_conic_SecondOrderCone_negative_initial_bound | No tests
test_conic_SecondOrderCone_negative_post_bound | No tests
test_conic_SecondOrderCone_negative_post_bound_2 | No tests
test_conic_SecondOrderCone_negative_post_bound_3 | No tests
test_conic_SecondOrderCone_no_initial_bound | No tests
test_conic_SecondOrderCone_nonnegative_initial_bound | No tests
test_conic_SecondOrderCone_nonnegative_post_bound | No tests
test_conic_SecondOrderCone_out_of_order | No tests
test_conic_empty_matrix | No tests
test_conic_linear_VectorAffineFunction | 16 16
test_conic_linear_VectorAffineFunction_2 | 23 23
test_conic_linear_VectorOfVariables | 16 16
test_constraint_ConstraintDualStart | 3 3
test_constraint_ConstraintPrimalStart | No tests
test_constraint_Indicator_ACTIVATE_ON_ONE | No tests
test_constraint_Indicator_ACTIVATE_ON_ZERO | No tests
test_constraint_Indicator_ConstraintName | No tests
test_constraint_PrimalStart_DualStart_SecondOrderCone | No tests
test_constraint_ScalarAffineFunction_EqualTo | 8 8
test_constraint_ScalarAffineFunction_GreaterThan | 8 8
test_constraint_ScalarAffineFunction_Interval | 8 8
test_constraint_ScalarAffineFunction_LessThan | 8 8
test_constraint_ScalarAffineFunction_duplicate | 8 8
test_constraint_VectorAffineFunction_duplicate | 8 8
test_constraint_ZeroOne_bounds | No tests
test_constraint_ZeroOne_bounds_2 | No tests
test_constraint_ZeroOne_bounds_3 | No tests
test_constraint_get_ConstraintIndex | 7 7
test_constraint_qcp_duplicate_diagonal | 7 7
test_constraint_qcp_duplicate_off_diagonal | 7 7
test_infeasible_MAX_SENSE | No tests
test_infeasible_MAX_SENSE_offset | No tests
test_infeasible_MIN_SENSE | No tests
test_infeasible_MIN_SENSE_offset | No tests
test_infeasible_affine_MAX_SENSE | No tests
test_infeasible_affine_MAX_SENSE_offset | No tests
test_infeasible_affine_MIN_SENSE | No tests
test_infeasible_affine_MIN_SENSE_offset | No tests
test_linear_FEASIBILITY_SENSE | 12 12
test_linear_Indicator_ON_ONE | 1 1
test_linear_Indicator_ON_ZERO | No tests
test_linear_Indicator_constant_term | No tests
test_linear_Indicator_integration | No tests
test_linear_Interval_inactive | 12 12
test_linear_LessThan_and_GreaterThan | 16 16
test_linear_SOS1_integration | No tests
test_linear_SOS2_integration | No tests
test_linear_Semicontinuous_integration | No tests
test_linear_Semiinteger_integration | No tests
test_linear_VariablePrimalStart_partial | 5 5
test_linear_VectorAffineFunction | 16 16
test_linear_add_constraints | 8 8
test_linear_inactive_bounds | 20 20
test_linear_integer_integration | No tests
test_linear_integer_knapsack | No tests
test_linear_integer_solve_twice | No tests
test_linear_integration | 105 105
test_linear_integration_2 | 17 17
test_linear_integration_Interval | 29 29
test_linear_integration_delete_variables | 31 31
test_linear_integration_modification | 22 22
test_linear_modify_GreaterThan_and_LessThan_constraints | 28 28
test_linear_transform | 4 6 10
test_model_ListOfConstraintAttributesSet | 2 2
test_model_ModelFilter_AbstractConstraintAttribute | No tests
test_model_ModelFilter_AbstractModelAttribute | 1 1
test_model_ModelFilter_AbstractVariableAttribute | 2 2
test_model_ModelFilter_ListOfConstraintIndices | 10 10
test_model_ModelFilter_ListOfConstraintTypesPresent | 3 3
test_model_Name | 7 7
test_model_Name_VariableName_ConstraintName | 73 73
test_model_ScalarAffineFunction_ConstraintName | 5 5
test_model_VariableIndex_ConstraintName | 1 1
test_model_VariableName | 6 6
test_model_VariablePrimalStart | 3 3
test_model_default_DualStatus | 1 1
test_model_default_ObjectiveSense | 1 1
test_model_default_PrimalStatus | 1 1
test_model_default_TerminationStatus | 1 1
test_model_delete | 64 64
test_model_duplicate_ScalarAffineFunction_ConstraintName | 6 6
test_model_duplicate_VariableName | 6 6
test_model_empty | 3 3
test_model_is_valid | 9 9
test_model_ordered_indices | 12 12
test_model_supports_constraint_ScalarAffineFunction_EqualTo | 1 1
test_model_supports_constraint_VariableIndex_EqualTo | 2 2
test_model_supports_constraint_VectorOfVariables_Nonnegatives | 2 2
test_modification_affine_deletion_edge_cases | 24 24
test_modification_coef_scalar_objective | 8 8
test_modification_coef_scalaraffine_lessthan | 16 16
test_modification_const_scalar_objective | 8 8
test_modification_const_vectoraffine_nonpos | 14 14
test_modification_const_vectoraffine_zeros | 14 14
test_modification_delete_variable_with_single_variable_obj | 8 8
test_modification_delete_variables_in_a_batch | 8 8
test_modification_func_scalaraffine_lessthan | 15 15
test_modification_func_vectoraffine_nonneg | 15 15
test_modification_incorrect | 2 2
test_modification_incorrect_VariableIndex | 3 3
test_modification_multirow_vectoraffine_nonpos | 12 12
test_modification_set_function_single_variable | 1 1
test_modification_set_scalaraffine_lessthan | 17 17
test_modification_set_singlevariable_lessthan | 17 17
test_modification_transform_singlevariable_lessthan | 18 18
test_nonlinear_Feasibility_internal | 9 9
test_nonlinear_HS071_internal | 11 11
test_nonlinear_InvalidEvaluator_internal | 3 3
test_nonlinear_hs071 | 14 14
test_nonlinear_hs071_NLPBlockDual | 2 2
test_nonlinear_hs071_hessian_vector_product | 14 14
test_nonlinear_hs071_no_hessian | 14 14
test_nonlinear_invalid | 1 1
test_nonlinear_mixed_complementarity | No tests
test_nonlinear_objective | 6 6
test_nonlinear_objective_and_moi_objective_test | 6 6
test_nonlinear_qp_complementarity_constraint | No tests
test_nonlinear_without_objective | 6 6
test_objective_FEASIBILITY_SENSE_clears_objective | 2 2
test_objective_ObjectiveFunction_VariableIndex | 10 10
test_objective_ObjectiveFunction_blank | 2 2
test_objective_ObjectiveFunction_constant | 8 8
test_objective_ObjectiveFunction_duplicate_terms | 9 9
test_objective_ObjectiveSense_FEASIBILITY_SENSE | 1 1
test_objective_ObjectiveSense_MAX_SENSE | 1 1
test_objective_ObjectiveSense_MIN_SENSE | 1 1
test_objective_get_ObjectiveFunction_ScalarAffineFunction | 5 5
test_objective_qp_ObjectiveFunction_edge_cases | 21 21
test_objective_qp_ObjectiveFunction_zero_ofdiag | 7 7
test_objective_set_via_modify | 2 2
test_quadratic_Integer_SecondOrderCone | No tests
test_quadratic_SecondOrderCone_basic | 18 18
test_quadratic_constraint_GreaterThan | 17 17
test_quadratic_constraint_LessThan | 17 17
test_quadratic_constraint_basic | 12 12
test_quadratic_constraint_integration | 15 15
test_quadratic_constraint_minimize | 13 13
test_quadratic_duplicate_terms | 24 24
test_quadratic_integration | 15 15
test_quadratic_nonconvex_constraint_basic | 15 15
test_quadratic_nonconvex_constraint_integration | 15 15
test_quadratic_nonhomogeneous | 23 23
test_solve_ObjectiveBound_MAX_SENSE_IP | No tests
test_solve_ObjectiveBound_MAX_SENSE_LP | No tests
test_solve_ObjectiveBound_MIN_SENSE_IP | No tests
test_solve_ObjectiveBound_MIN_SENSE_LP | No tests
test_solve_SOS2_add_and_delete | No tests
test_solve_VariableIndex_ConstraintDual_MAX_SENSE | 4 4
test_solve_VariableIndex_ConstraintDual_MIN_SENSE | 4 4
test_solve_conflict_EqualTo | No tests
test_solve_conflict_NOT_IN_CONFLICT | No tests
test_solve_conflict_affine_affine | No tests
test_solve_conflict_bound_bound | No tests
test_solve_conflict_feasible | No tests
test_solve_conflict_invalid_interval | No tests
test_solve_conflict_two_affine | No tests
test_solve_conflict_zeroone | No tests
test_solve_conflict_zeroone_2 | No tests
test_solve_optimize_twice | No tests
test_solve_result_index | 13 13
test_unbounded_MAX_SENSE | No tests
test_unbounded_MAX_SENSE_offset | No tests
test_unbounded_MIN_SENSE | No tests
test_unbounded_MIN_SENSE_offset | No tests
test_variable_VariableName | 4 4
test_variable_add_variable | 3 3
test_variable_add_variables | 2 2
test_variable_delete | 3 3
test_variable_delete_Nonnegatives | 13 13
test_variable_delete_Nonnegatives_row | 12 12
test_variable_delete_SecondOrderCone | No tests
test_variable_delete_variables | 9 9
test_variable_get_VariableIndex | 2 2
test_variable_solve_Integer_with_lower_bound | No tests
test_variable_solve_Integer_with_upper_bound | No tests
test_variable_solve_ZeroOne_with_0_upper_bound | No tests
test_variable_solve_ZeroOne_with_upper_bound | No tests
test_variable_solve_with_lowerbound | 10 10
test_variable_solve_with_upperbound | 12 12
test_callback | 5 5
test_callback_2 | 5 5
test_check_derivatives_for_naninf | 1 1
test_empty_optimize | 5 5
test_solve_time | 2 2
ERROR: LoadError: Some tests did not pass: 2056 passed, 6 failed, 0 errored, 0 broken.
in expression starting at /Users/oscardowson/.julia/packages/Ipopt/M2QE8/test/runtests.jl:18
ERROR: Package Ipopt errored during testing
julia> versioninfo()
Julia Version 1.7.2
Commit bf53498635 (2022-02-06 15:21 UTC)
Platform Info:
OS: macOS (arm64-apple-darwin21.2.0)
CPU: Apple M1
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-12.0.1 (ORCJIT, cyclone)
I am using Ipopt.jl on an Intel Mac and an M1 Mac. On the Intel mac, it seems to run well and gives correct answers. On the M1 Mac, it fails on almost any problem if I provide an objective function. If I don't provide an objective function, it often converges to an answer that it claims is feasible, but in fact is not feasible. It even provides claimed results for infeasible problems.
Sure, this is still pretty expected. Julia 1.8 has a number of fixes for M1, but until it is Tier 1 support, I would stick with Rosetta.
This is still a problem on Julia v1.8.0-rc4. It's very weird that the only test failing is test_linear_transform
. Taking a deeper look.
It's a very surprising failure
import Ipopt
const MOI = Ipopt.MOI
model = Ipopt.Optimizer()
x = MOI.add_variables(model, 2)
f = 1.0 * x[1] + x[2]
MOI.add_constraint(model, f, MOI.GreaterThan(1.0))
MOI.add_constraint(model, f, MOI.GreaterThan(2.0))
MOI.optimize!(model)
Causes "Iterates diverging; problem might be unbounded."
I think I've seen this before when it was a problem with the linear solver, so perhaps we need to recompile something for arm64.
So this isn't a bug in JuMP, MOI, or Ipopt.jl:
julia> import Ipopt
julia> function eval_jac_g(
x::Vector{Float64},
rows::Vector{Int32},
cols::Vector{Int32},
values::Union{Nothing,Vector{Float64}},
)
if values === nothing
rows .= Cint[1, 1, 2, 2]
cols .= Cint[1, 2, 1, 2]
else
values .= 1.0
end
return
end
eval_jac_g (generic function with 1 method)
julia> prob = Ipopt.CreateIpoptProblem(
2, # n,
[-Inf, -Inf], # x_L,
[Inf, Inf], # x_U,
2, # m,
[1.0, 2.0], # g_L,
[Inf, Inf], # g_U,
4, # jac_nnz
0, # hess_nnz
x -> (@show x; 0.0), # eval_f,
(x, g) -> g .= sum(x), # eval_g,
(x, f) -> f .= 0.0, # eval_grad_f,
eval_jac_g,
(args...) -> nothing,
)
Ipopt.IpoptProblem(Ptr{Nothing} @0x0000600000ad9d60, 2, 2, [0.0, 0.0], [0.0, 0.0], [0.0, 0.0], [0.0, 0.0], [0.0, 0.0], 0.0, 0, var"#29#33"(), var"#30#34"(), var"#31#35"(), eval_jac_g, var"#32#36"(), nothing)
julia> solvestat = Ipopt.IpoptSolve(prob)
This is Ipopt version 3.14.4, running with linear solver MUMPS 5.4.1.
Number of nonzeros in equality constraint Jacobian...: 0
Number of nonzeros in inequality constraint Jacobian.: 4
Number of nonzeros in Lagrangian Hessian.............: 0
Total number of variables............................: 2
variables with only lower bounds: 0
variables with lower and upper bounds: 0
variables with only upper bounds: 0
Total number of equality constraints.................: 0
Total number of inequality constraints...............: 2
inequality constraints with only lower bounds: 2
inequality constraints with lower and upper bounds: 0
inequality constraints with only upper bounds: 0
x = [0.0, 0.0]
iter objective inf_pr inf_du lg(mu) ||d|| lg(rg) alpha_du alpha_pr ls
0 0.0000000e+00 2.00e+00 8.00e-01 -1.0 0.00e+00 - 0.00e+00 0.00e+00 0
x = [2.1514652196596696e16, -2.1514652196596696e16]
x = [2.146695020754051e16, -2.1466950207540508e16]
1 0.0000000e+00 0.00e+00 7.77e+01 -1.0 6.79e+16 - 1.26e-02 1.00e+00H 1
x = [-9.838773878490083e16, 9.838773878490083e16]
2 0.0000000e+00 2.00e+00 7.55e+01 -1.0 3.71e+18 - 1.00e+00 3.23e-02h 1
x = [-2.1753363483318115e17, 2.1753363483318115e17]
3 0.0000000e+00 2.00e+00 2.03e+01 -1.0 1.19e+17 - 1.75e-02 1.00e+00f 1
x = [4.5482731309156593e18, -4.5482731309156593e18]
4 0.0000000e+00 2.00e+00 1.48e-01 -1.0 4.77e+18 - 2.39e-02 1.00e+00f 1
x = [4.5482731309156593e18, -4.5482731309156593e18]
5 0.0000000e+00 2.00e+00 8.97e-03 -1.0 7.78e+01 -4.0 9.48e-01 9.90e-01h 1
x = [9.714266271001124e17, -9.714266271001124e17]
6 0.0000000e+00 2.00e+00 2.22e-02 -1.0 3.58e+18 - 2.21e-01 1.00e+00f 1
x = [1.6052419083288366e18, -1.6052419083288366e18]
7 0.0000000e+00 2.00e+00 2.95e-02 -1.0 1.99e+21 - 2.83e-03 1.03e-03H 1
x = [1.5759736551168525e18, -1.5759736551168525e18]
x = [1.5759736551168525e18, -1.5759736551168525e18]
8 0.0000000e+00 2.00e+00 5.68e-02 -1.0 8.14e+23 - 3.60e-08 3.60e-08s 2
x = [1.5762798306945925e18, -1.5762798306945925e18]
9 0.0000000e+00 2.00e+00 8.82e-03 -1.0 1.80e+23 - 1.70e-09 1.70e-09s 2
x = [1.575639052479189e18, -1.575639052479189e18]
x = [1.5762798306945925e18, -1.5762798306945925e18]
iter objective inf_pr inf_du lg(mu) ||d|| lg(rg) alpha_du alpha_pr ls
10r 0.0000000e+00 2.00e+00 9.99e+02 1.9 0.00e+00 - 0.00e+00 0.00e+00R 1
x = [7.140058076664749e18, -7.140058076664749e18]
11r 0.0000000e+00 2.00e+00 9.99e+02 1.9 1.16e+33 - 1.90e-19 4.80e-15f 1
x = [7.140058076664749e18, -7.140058076664749e18]
12r 0.0000000e+00 2.00e+00 2.46e+01 1.2 1.12e+05 -4.0 1.00e+00 1.01e-03f 1
x = [-7.011560649578256e19, 7.011560649578256e19]
x = [2.3012851415973693e18, -2.3012851415973693e18]
13r 0.0000000e+00 2.00e+00 1.24e+01 1.2 7.84e+19 - 9.91e-01 1.29e-01F 1
x = [1.6811622238017935e18, -1.6811622238017935e18]
x = [2.160101186749205e18, -2.160101186749205e18]
x = [2.2554975123356754e18, -2.2554975123356754e18]
14 0.0000000e+00 2.00e+00 4.14e+02 -1.0 6.82e+18 - 9.91e-01 1.83e-02H 1
x = [6.978721897256225e20, -6.978721897256225e20]
15 0.0000000e+00 2.00e+00 1.04e+08 -1.0 6.96e+20 - 4.01e-06 1.00e+00f 1
Number of Iterations....: 15
(scaled) (unscaled)
Objective...............: 0.0000000000000000e+00 0.0000000000000000e+00
Dual infeasibility......: 1.0398109543940106e+08 1.0398109543940106e+08
Constraint violation....: 1.9999999799999999e+00 1.9999999799999999e+00
Variable bound violation: 0.0000000000000000e+00 0.0000000000000000e+00
Complementarity.........: 4.4198996463443757e+04 4.4198996463443757e+04
Overall NLP error.......: 4.4198996463443757e+04 1.0398109543940106e+08
Number of objective function evaluations = 22
Number of objective gradient evaluations = 14
Number of equality constraint evaluations = 0
Number of inequality constraint evaluations = 23
Number of equality constraint Jacobian evaluations = 0
Number of inequality constraint Jacobian evaluations = 17
Number of Lagrangian Hessian evaluations = 15
Total seconds in IPOPT = 0.083
EXIT: Iterates diverging; problem might be unbounded.
4