Skip to content

Commit e289ac3

Browse files
authored
Track bug with Julia >= 1.9.2 (#104)
* FeasibilityResidual do not handle bound constrained problems
1 parent 948eb89 commit e289ac3

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/feasibility-residual.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function FeasibilityResidual(
4848
name = "$(nlp.meta.name)-feasres",
4949
) where {T, S}
5050
if !equality_constrained(nlp)
51-
if unconstrained(nlp)
51+
if unconstrained(nlp) || bound_constrained(nlp)
5252
throw(ErrorException("Can't handle unconstrained problem"))
5353
elseif nlp isa AbstractNLSModel
5454
return FeasibilityResidual(SlackNLSModel(nlp), name = name)

test/allocs_test.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ end
4949
),
5050
map(
5151
x -> FeasibilityResidual(eval(Symbol(x))(), name = x * "feas"),
52-
setdiff(problems, ["MGH01"]),
52+
setdiff(problems, ["MGH01", "BNDROSENBROCK"]),
5353
),
5454
)
5555
# jtprod! https://github.com/JuliaSmoothOptimizers/NLPModelsModifiers.jl/issues/77

0 commit comments

Comments
 (0)