diff --git a/src/PRIMA.jl b/src/PRIMA.jl index 1ee1eba..491a7c2 100644 --- a/src/PRIMA.jl +++ b/src/PRIMA.jl @@ -86,7 +86,7 @@ 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) +default_maxfun(x::AbstractVector{<:Real}) = default_maxfun_dim_relative*length(x) const default_scale = nothing const default_rhobeg = 1.0 const default_rhoend_relative = 1e-6 @@ -139,7 +139,7 @@ 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 +- `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.