diff --git a/src/types.jl b/src/types.jl index c993c79..2fadd65 100644 --- a/src/types.jl +++ b/src/types.jl @@ -65,11 +65,10 @@ function NLPModels.hess_op(rnlp::AbstractRegularizedNLPModel, x::AbstractVector) return hess_op(rnlp.model, x) end -function NLPModels.hess(rnlp::AbstractRegularizedNLPModel, x::AbstractVector; obj_weight=1.0) - return hess(rnlp.model, x; obj_weight=obj_weight) +function NLPModels.hess(rnlp::AbstractRegularizedNLPModel, x::AbstractVector; obj_weight = 1.0) + return hess(rnlp.model, x; obj_weight = obj_weight) end - # Forward meta getters so they grab info from the smooth model for field ∈ fieldnames(NLPModels.NLPModelMeta) meth = Symbol("get_", field) diff --git a/test/runtests.jl b/test/runtests.jl index 9137b9f..26f6d60 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -1,5 +1,12 @@ using LinearAlgebra, Test -using ADNLPModels, DifferentialEquations, LinearOperators, ManualNLPModels, MLDatasets, NLPModels, NLPModelsModifiers, QuadraticModels +using ADNLPModels, + DifferentialEquations, + LinearOperators, + ManualNLPModels, + MLDatasets, + NLPModels, + NLPModelsModifiers, + QuadraticModels using RegularizedProblems function test_well_defined(model, nls_model, sol)