Skip to content

Commit f5128c4

Browse files
authored
Update simple-model.jl
1 parent fa4527c commit f5128c4

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

test/nls/simple-model.jl

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,6 @@ function NLPModels.objcons!(nls::SimpleNLSModel, x::AbstractVector, Fx::Abstract
5252
return f, Fx
5353
end
5454

55-
function NLPModels.objcons!(nls::SimpleNLSModel, x::AbstractVector, Fx::AbstractVector, res::AbstractVector; recompute::Bool=true)
56-
@lencheck nls.meta.ncon Fx
57-
NLPModels.cons_nln!(nls, x, Fx)
58-
if recompute
59-
res .= [1 - x[1]; 10 * (x[2] - x[1]^2)]
60-
end
61-
f = 0.5 * sum(abs2, res)
62-
return f, Fx
63-
end
64-
6555
function NLPModels.jprod(nls::SimpleNLSModel, x::AbstractVector, v::AbstractVector)
6656
Jv = similar(v, nls.meta.ncon)
6757
NLPModels.jprod!(nls, x, v, Jv)

0 commit comments

Comments
 (0)