diff --git a/src/nls.jl b/src/nls.jl index df5a6a08..3d829597 100644 --- a/src/nls.jl +++ b/src/nls.jl @@ -23,7 +23,7 @@ ADNLSModel( adbackend::ADModelBackend, F, c, -) where {T, S} = ADNLSModel(meta, nls_meta, counters, adbackend, F, Int[], Int[], T[], c) +) where {T, S} = ADNLSModel(meta, nls_meta, counters, adbackend, F, Int[], Int[], similar(meta.x0, 0), c) ADNLPModels.show_header(io::IO, nls::ADNLSModel) = println( io,