Open ValentinKaisermayer opened 4 years ago
The same is true if one uses a PeriodicCallback
. In this case sol.t
might not be equal to loss.t
.
I missed this email. That is a good point: it should check the bounds and throw an error before proceeding.
Consider the following example: https://diffeq.sciml.ai/stable/analysis/parameter_estimation/#Optimization-Based-ODE-Inference-Examples If one makes an
L2Loss
there is nothing that stops one from doing:however, this will result in a crash of Julia. since in https://github.com/SciML/DiffEqParamEstim.jl/blob/fc541edd2f6659a7af8a94bda7fc4f382886e973/src/cost_functions.jl#L54 the correct dimension of
data
is assumed.