Skip to content

Commit 9803b16

Browse files
add comment about resolving and plotting in callback
1 parent d394b79 commit 9803b16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/src/getting_started/fit_simulation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ function callback(state, l)
322322
end
323323
```
324324

325-
With this callback function, every step of the optimization will display both the loss value and a plot of how the solution compares to the training data.
325+
With this callback function, every step of the optimization will display both the loss value and a plot of how the solution compares to the training data. Since we want to track the fit visually we plot the simulation at each iteration and compare it to the data. This is expensive since it requires an extra `solve` call and a plotting step for each iteration.
326326

327327
Now, just like [the first optimization tutorial](@ref first_opt),
328328
we set up our `OptimizationFunction` and `OptimizationProblem`,

0 commit comments

Comments
 (0)