Skip to content

Commit 618255d

Browse files
committed
Refactor: default_maxfun_dim_relative -> default_maxfun_relative
1 parent fc2fed9 commit 618255d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/PRIMA.jl

+6-6
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ const LinearConstraints = Tuple{AbstractMatrix{<:Real},AbstractVector{<:Real}}
8585

8686
# Default settings.
8787
default_npt(x::AbstractVector{<:Real}) = 2*length(x) + 1
88-
const default_maxfun_dim_relative = 500
89-
default_maxfun(x::AbstractVector{<:Real}) = default_maxfun_dim_relative*length(x)
88+
const default_maxfun_relative = 500
89+
default_maxfun(x::AbstractVector{<:Real}) = default_maxfun_relative*length(x)
9090
const default_scale = nothing
9191
const default_rhobeg = 1.0
9292
const default_rhoend_relative = 1e-6
@@ -139,10 +139,10 @@ Allowed keywords are (`n = length(x)` is the number of variables):
139139
algorithm is stopped as soon as `f(x) ≤ ftarget` and the status
140140
`PRIMA.FTARGET_ACHIEVED` is returned.
141141
142-
- `maxfun` (default `$default_maxfun_dim_relative*n`) is the maximum number of function evaluations
143-
allowed for the algorithm. If the number of calls to `f(x)` exceeds this
144-
value, the algorithm is stopped and the status `PRIMA.MAXFUN_REACHED` is
145-
returned.
142+
- `maxfun` (default `$default_maxfun_relative*n`) is the maximum number of
143+
function evaluations allowed for the algorithm. If the number of calls to
144+
`f(x)` exceeds this value, the algorithm is stopped and the status
145+
`PRIMA.MAXFUN_REACHED` is returned.
146146
147147
- `iprint` (default value `PRIMA.MSG_NONE`) sets the level of verbosity of the
148148
algorithm. Possible values are `PRIMA.MSG_EXIT`, `PRIMA.MSG_RHO`, or

0 commit comments

Comments
 (0)