Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when ipopt returns an unknown status #24

Open
tmigot opened this issue Jan 24, 2022 · 0 comments
Open

Error when ipopt returns an unknown status #24

tmigot opened this issue Jan 24, 2022 · 0 comments

Comments

@tmigot
Copy link
Member

tmigot commented Jan 24, 2022

See this problem from the rank_deficient.jl file

using ADNLPModels, CUTEst, NLPModels, NLPModelsIpopt, Test, LinearAlgebra
#This package
using FletcherPenaltyNLPSolver
using Pkg; Pkg.update()
@testset "Rank-deficient HS61" begin
  nlp = ADNLPModel(
    x -> 4 * x[1]^2 + 2 * x[2]^2 + 2 * x[3]^2 - 33 * x[1] + 16 * x[2] - 24 * x[3],
    zeros(3),
    x -> [3 * x[1] - 2 * x[2]^2 - 7; 4 * x[1] - x[3]^2 - 11],
    zeros(2),
    zeros(2),
  )

stats = fps_solve(
           nlp,
           nlp.meta.x0,
           #σ_0 = 1e3,
           #ρ_0 = 1e3,
           hessian_approx = Val(2), #error with hessian_approx = 1
         )
[ Info:   iter             step      f(x)    ‖c(x)‖      ‖∇L‖         σ         ρ         δ             stat         η       ‖λ‖  
[ Info:      0             Init       NaN   1.1e+01   3.3e+01   1.0e+00   1.0e+00   0.0e+00          Initial   0.0e+00  1.4e-309
[ Info:      0            Optml  -4.8e+00   3.9e+00   1.1e+01   1.0e+00   1.0e+00   0.0e+00       SubOptimal   0.0e+00   5.7e+00
[ Info:      1                D  -4.8e+00   3.9e+00       NaN   2.0e+00   2.0e+00   0.0e+00       SubOptimal   0.0e+00   5.7e+00
┌ Warning: Error in StoppingInterface statuses: return status is unknown
└ @ FletcherPenaltyNLPSolver ~/.julia/dev/FletcherPenaltyNLPSolver/src/StoppingInterfacemod.jl:142
stats.solver_specific = Dict{Symbol, Any}(:real_time => 0.026745080947875977, :internal_msg => :Restoration_Failed)
┌ Warning: Exception of unexpected failure: [:Unknown]
└ @ FletcherPenaltyNLPSolver ~/.julia/dev/FletcherPenaltyNLPSolver/src/algo.jl:104
"Execution stats: unknown"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant