From e32f32ca9b1dd7d876906ef0e040f158c186daa5 Mon Sep 17 00:00:00 2001 From: Torkel Date: Thu, 2 Nov 2023 13:06:04 -0400 Subject: [PATCH] ups --- .../catalyst_applications/optimization_ode_param_fitting.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/catalyst_applications/optimization_ode_param_fitting.md b/docs/src/catalyst_applications/optimization_ode_param_fitting.md index f3665cdabc..0afd342b52 100644 --- a/docs/src/catalyst_applications/optimization_ode_param_fitting.md +++ b/docs/src/catalyst_applications/optimization_ode_param_fitting.md @@ -106,7 +106,7 @@ nothing # hide We can now fit our model to data and plot the results: ```@example diffeq_param_estim_1 optprob_S_P = OptimizationProblem(loss_function_S_P, [1.0,1.0, 1.0]) -optsol_S_P = solve(optprob_S_P, CMAEvolutionStrategyOpt()) +optsol_S_P = solve(optprob_S_P, NelderMead()) oprob_fitted_S_P = remake(oprob; p=optsol_S_P.u) fitted_sol_S_P = solve(oprob_fitted_S_P, Tsit5()) plot!(fitted_sol_S_P; idxs=[:S, :P], label="Fitted solution", linestyle=:dash, lw=6, color=[:lightblue :pink]) @@ -163,6 +163,6 @@ Say that we had measured our model for several different initial conditions, and ## Optimisation solver options Optimization.jl supports various [optimisation solver options](https://docs.sciml.ai/Optimization/stable/API/solve/) that can be supplied to the `solve` command. For example, to set a maximum number of seconds (after which the optimisation process is terminated), you can use the `maxtime` argument: ```@example diffeq_param_estim_1 -optsol_fixed_kD = solve(optprob, CMAEvolutionStrategyOpt(); maxtime=100) +optsol_fixed_kD = solve(optprob, NelderMead(); maxtime=100) nothing # hide ``` \ No newline at end of file