Skip to content

Commit

Permalink
Minor revision to PRIMA.jl regarding spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
zaikunzhang authored Feb 22, 2024
1 parent 6d6b8fa commit 2714339
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PRIMA.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 2714339

Please sign in to comment.