Skip to content

Commit 5ae0f75

Browse files
TorkelEisaacsas
andcommitted
Update docs/src/inverse_problems/optimization_ode_param_fitting.md
Co-authored-by: Sam Isaacson <[email protected]>
1 parent 66b1c1c commit 5ae0f75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/src/inverse_problems/optimization_ode_param_fitting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ plot!(fitted_sol_S_P; idxs=[:S, :P], label="Fitted solution", linestyle=:dash, l
114114
```
115115

116116
## Setting parameter constraints and boundaries
117-
Sometimes, it is desired to set boundaries on parameter values. Indeed, this can speed up the optimisation process (by preventing searching through unfeasible parts of parameter space) or be a prerequisite of some optimisation methods. This can be done by passing the `lb` (lower bounds) and `up` (upper bounds) arguments to `OptimizationProblem`. These are vectors (of the same length as the number of parameters), with each argument corresponding to the boundary value of the parameter with the same index (as used in the `parameters(rn)` vector). If we wish to constrain each parameter to the interval *(0.1, 10.0)* this can be done through:
117+
Sometimes, it is desired to set boundaries on parameter values. Indeed, this can speed up the optimisation process (by preventing searching through unfeasible parts of parameter space), and can also be a requirement for some optimisation methods. This can be done by passing the `lb` (lower bounds) and `up` (upper bounds) arguments to `OptimizationProblem`. These are vectors (of the same length as the number of parameters), with each argument corresponding to the boundary value of the parameter with the same index (as used in the `parameters(rn)` vector). If we wish to constrain each parameter to the interval $(0.1, 10.0)$ this can be done through:
118118
```@example diffeq_param_estim_1
119119
optprob = OptimizationProblem(loss_function, [1.0, 1.0, 1.0]; lb = [0.1, 0.1, 0.1], ub = [10.0, 10.0, 10.0])
120120
nothing # hide

0 commit comments

Comments
 (0)