From 6111c1dce08dc255a9e8023b2302d30f07a85d37 Mon Sep 17 00:00:00 2001 From: Thomas Wutzler Date: Mon, 6 Oct 2025 11:03:21 +0200 Subject: [PATCH] Update FAQ.md link to Basic Example on Optimization --- docs/src/basics/FAQ.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/src/basics/FAQ.md b/docs/src/basics/FAQ.md index 3f09ab8b13..2511c00675 100644 --- a/docs/src/basics/FAQ.md +++ b/docs/src/basics/FAQ.md @@ -192,6 +192,8 @@ p, replace, alias = SciMLStructures.canonicalize(Tunable(), prob.p) # changes to the array will be reflected in parameter values ``` +See the [basic example on optimizing](https://docs.sciml.ai/ModelingToolkit/dev/examples/remake/#Optimizing-through-an-ODE-solve-and-re-creating-MTK-Problems) for combining these steps to optimizing parameters and use ForwardDiff.jl as the backend for Automatic Differentiation. + # ERROR: ArgumentError: SymbolicUtils.BasicSymbolic{Real}[xˍt(t)] are missing from the variable map. This error can come up after running `mtkcompile` on a system that generates dummy derivatives (i.e. variables with `ˍt`). For example, here even though all the variables are defined with initial values, the `ODEProblem` generation will throw an error that defaults are missing from the variable map.