You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Internally `HetaSimulator` uses `NLopt` library. One can choose the optimization algorithm as well as additional options.
258
+
Internally,`HetaSimulator` uses the `Optimization.jl` interface, which supports various optimization packages. By default, `HetaSimulator` includes the NLopt library, allowing you to choose an NLopt-based optimization algorithm without installing additional packages. To access more optimizers, you can add any optimization package supported by `Optimization.jl` and use the preferred optimizer algorithm in `fit()`.
259
259
260
260
Read more about NLopt algorithms choice: <https://nlopt.readthedocs.io/en/latest/NLopt_Algorithms/>
261
261
262
262
```julia
263
263
res_optim = fit(
264
264
p,
265
265
params_df,
266
-
fit_alg =:LN_SBPLX,
266
+
fit_alg =NLopt.LN_SBPLX(),
267
267
ftol_abs =1e-5,
268
268
ftol_rel =0,
269
-
maxeval=10^6
269
+
maxiters=10^6
270
270
)
271
271
optim(res_optim)
272
272
```
273
273
274
274
There are several optimization related arguments, which are available for a user.
275
275
To learn more read about [`fit`](@ref) method in API documentation.
276
276
277
-
-`fit_alg` : fitting algorithm. Default is `:LN_NELDERMEAD`
278
-
-`ftol_abs` : absolute tolerance on function value. Default is `0.0`
279
-
-`ftol_rel` : relative tolerance on function value. Default is `1e-4`
280
-
-`xtol_rel` : relative tolerance on optimization parameters. Default is `0.0`
281
-
-`xtol_rel` : absolute tolerance on optimization parameters. Default is `0.0`
282
-
-`maxeval` : maximum number of function evaluations. Default is `1e4`
277
+
-`fit_alg` : fitting algorithm. Default is `NLopt.LN_NELDERMEAD()`
278
+
-`ftol_abs` : absolute tolerance on objective value. Default is `0.0`
279
+
-`ftol_rel` : relative tolerance on objective value. Default is `1e-4`
280
+
-`maxiters` : maximum number of objective evaluations. Default is `1e4`
283
281
-`maxtime` : maximum optimization time (in seconds). Default is `0`
0 commit comments