Skip to content

Commit 3dfcb0d

Browse files
committed
remove mentions of ProximableFunction
1 parent d188363 commit 3dfcb0d

File tree

6 files changed

+20
-20
lines changed

6 files changed

+20
-20
lines changed

src/Fista_alg.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ end
4141
function FISTA(
4242
f::F,
4343
∇f!::G,
44-
h::ProximableFunction,
44+
h::H,
4545
options::ROSolverOptions,
4646
x0::AbstractVector,
47-
) where {F <: Function, G <: Function}
47+
) where {F <: Function, G <: Function, H}
4848
start_time = time()
4949
elapsed_time = 0.0
5050
ϵ = options.ϵ

src/LMTR_alg.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ where F(x) and J(x) are the residual and its Jacobian at x, respectively, ψ(s;
2020
### Arguments
2121
2222
* `nls::AbstractNLSModel`: a smooth nonlinear least-squares problem
23-
* `h::ProximableFunction`: a regularizer
24-
* `χ::ProximableFunction`: a norm used to define the trust region
23+
* `h`: a regularizer such as those defined in ProximalOperators
24+
* `χ`: a norm used to define the trust region in the form of a regularizer
2525
* `options::ROSolverOptions`: a structure containing algorithmic parameters
2626
2727
### Keyword arguments
@@ -40,14 +40,14 @@ where F(x) and J(x) are the residual and its Jacobian at x, respectively, ψ(s;
4040
"""
4141
function LMTR(
4242
nls::AbstractNLSModel,
43-
h::ProximableFunction,
44-
χ::ProximableFunction,
43+
h::H,
44+
χ::X,
4545
options::ROSolverOptions;
4646
x0::AbstractVector = nls.meta.x0,
4747
subsolver_logger::Logging.AbstractLogger = Logging.NullLogger(),
4848
subsolver = R2,
4949
subsolver_options = ROSolverOptions(),
50-
)
50+
) where {H, X}
5151
start_time = time()
5252
elapsed_time = 0.0
5353
# initialize passed options

src/LM_alg.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ and σ > 0 is a regularization parameter.
2020
### Arguments
2121
2222
* `nls::AbstractNLSModel`: a smooth nonlinear least-squares problem
23-
* `h::ProximableFunction`: a regularizer
23+
* `h`: a regularizer such as those defined in ProximalOperators
2424
* `options::ROSolverOptions`: a structure containing algorithmic parameters
2525
2626
### Keyword arguments
@@ -39,13 +39,13 @@ and σ > 0 is a regularization parameter.
3939
"""
4040
function LM(
4141
nls::AbstractNLSModel,
42-
h::ProximableFunction,
42+
h::H,
4343
options::ROSolverOptions;
4444
x0::AbstractVector = nls.meta.x0,
4545
subsolver_logger::Logging.AbstractLogger = Logging.NullLogger(),
4646
subsolver = R2,
4747
subsolver_options = ROSolverOptions(),
48-
)
48+
) where H
4949
start_time = time()
5050
elapsed_time = 0.0
5151
# initialize passed options

src/PG_alg.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ end
4242
function PG(
4343
f::F,
4444
∇f!::G,
45-
h::ProximableFunction,
45+
h::H,
4646
options::ROSolverOptions,
4747
x0::AbstractVector,
48-
) where {F <: Function, G <: Function}
48+
) where {F <: Function, G <: Function, H}
4949
start_time = time()
5050
elapsed_time = 0.0
5151
ϵ = options.ϵ

src/R2_alg.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ where φ(s ; xₖ) = f(xₖ) + ∇f(xₖ)ᵀs is the Taylor linear approximation
2121
### Arguments
2222
2323
* `nlp::AbstractNLPModel`: a smooth optimization problem
24-
* `h::ProximableFunction`: a regularizer
24+
* `h`: a regularizer such as those defined in ProximalOperators
2525
* `options::ROSolverOptions`: a structure containing algorithmic parameters
2626
* `x0::AbstractVector`: an initial guess (in the second calling form)
2727
@@ -68,10 +68,10 @@ end
6868
function R2(
6969
f::F,
7070
∇f!::G,
71-
h::ProximableFunction,
71+
h::H,
7272
options::ROSolverOptions,
7373
x0::AbstractVector,
74-
) where {F <: Function, G <: Function}
74+
) where {F <: Function, G <: Function, H}
7575
start_time = time()
7676
elapsed_time = 0.0
7777
ϵ = options.ϵ

src/TR_alg.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ method or the quadratic regularization method.
2222
### Arguments
2323
2424
* `nlp::AbstractNLPModel`: a smooth optimization problem
25-
* `h::ProximableFunction`: a regularizer
26-
* `χ::ProximableFunction`: a norm used to define the trust region
25+
* `h`: a regularizer such as those defined in ProximalOperators
26+
* `χ`: a norm used to define the trust region in the form of a regularizer
2727
* `options::ROSolverOptions`: a structure containing algorithmic parameters
2828
2929
The objective, gradient and Hessian of `nlp` will be accessed.
@@ -45,14 +45,14 @@ The Hessian is accessed as an abstract operator and need not be the exact Hessia
4545
"""
4646
function TR(
4747
f::AbstractNLPModel,
48-
h::ProximableFunction,
49-
χ::ProximableFunction,
48+
h::H,
49+
χ::X,
5050
options::ROSolverOptions;
5151
x0::AbstractVector = f.meta.x0,
5252
subsolver_logger::Logging.AbstractLogger = Logging.NullLogger(),
5353
subsolver = R2,
5454
subsolver_options = ROSolverOptions(),
55-
)
55+
) where {H, X}
5656
start_time = time()
5757
elapsed_time = 0.0
5858
# initialize passed options

0 commit comments

Comments
 (0)