Skip to content

Commit

Permalink
Refactor: default_maxfun_dim_relative -> default_maxfun_relative
Browse files Browse the repository at this point in the history
  • Loading branch information
emmt committed Apr 5, 2024
1 parent fc2fed9 commit 618255d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/PRIMA.jl
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ const LinearConstraints = Tuple{AbstractMatrix{<:Real},AbstractVector{<:Real}}

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

0 comments on commit 618255d

Please sign in to comment.