Skip to content

Commit

Permalink
Track bug with Julia >= 1.9.2 (#104)
Browse files Browse the repository at this point in the history
* FeasibilityResidual do not handle bound constrained problems
  • Loading branch information
tmigot authored Jul 7, 2023
1 parent 948eb89 commit e289ac3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/feasibility-residual.jl
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function FeasibilityResidual(
name = "$(nlp.meta.name)-feasres",
) where {T, S}
if !equality_constrained(nlp)
if unconstrained(nlp)
if unconstrained(nlp) || bound_constrained(nlp)
throw(ErrorException("Can't handle unconstrained problem"))
elseif nlp isa AbstractNLSModel
return FeasibilityResidual(SlackNLSModel(nlp), name = name)
Expand Down
2 changes: 1 addition & 1 deletion test/allocs_test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ end
),
map(
x -> FeasibilityResidual(eval(Symbol(x))(), name = x * "feas"),
setdiff(problems, ["MGH01"]),
setdiff(problems, ["MGH01", "BNDROSENBROCK"]),
),
)
# jtprod! https://github.com/JuliaSmoothOptimizers/NLPModelsModifiers.jl/issues/77
Expand Down

0 comments on commit e289ac3

Please sign in to comment.