You still need to make sure that the objective function does not error when it goes negative, see Using DiffEq isoutofdomain to enforce positivity - #2 by ChrisRackauckas.
mauro3
5
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| DomainError while solving ODE | 10 | 635 | November 23, 2022 | |
| Differential equation with decimal exponent causing error | 9 | 992 | April 29, 2021 | |
| DifferentialEquations.jl inputting out of domain value | 1 | 1105 | October 29, 2021 | |
| Something is making Julia think I am using imaginary numbers? | 12 | 2878 | November 9, 2018 | |
| ERROR: DomainError, Complex numbers? | 5 | 478 | January 17, 2024 |