File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -85,10 +85,11 @@ const LinearConstraints = Tuple{AbstractMatrix{<:Real},AbstractVector{<:Real}}
85
85
86
86
# Default settings.
87
87
default_npt (x:: AbstractVector{<:Real} ) = 2 * length (x) + 1
88
- default_maxfun (x:: AbstractVector{<:Real} ) = 100 * length (x)
88
+ const default_maxfun_dim_relative = 500
89
+ default_maxfun (x:: AbstractVector{<:Real} ) = default_maxfun_dim_relative * length (x)
89
90
const default_scale = nothing
90
91
const default_rhobeg = 1.0
91
- const default_rhoend_relative = 1e-4
92
+ const default_rhoend_relative = 1e-6
92
93
default_rhoend (rhobeg:: Real ) = default_rhoend_relative* rhobeg
93
94
94
95
# The high level wrappers. First the methods, then their documentation.
@@ -138,7 +139,7 @@ Allowed keywords are (`n = length(x)` is the number of variables):
138
139
algorithm is stopped as soon as `f(x) ≤ ftarget` and the status
139
140
`PRIMA.FTARGET_ACHIEVED` is returned.
140
141
141
- - `maxfun` (default `100n `) is the maximum number of function evaluations
142
+ - `maxfun` (default `$default_maxfun_dim_relative *n `) is the maximum number of function evaluations
142
143
allowed for the algorithm. If the number of calls to `f(x)` exceeds this
143
144
value, the algorithm is stopped and the status `PRIMA.MAXFUN_REACHED` is
144
145
returned.
You can’t perform that action at this time.
0 commit comments