DifferentiableStateSpaceModels
Documentation for DifferentiableStateSpaceModels.
DifferentiableStateSpaceModels.generate_perturbation
DifferentiableStateSpaceModels.@include_example_module
DifferentiableStateSpaceModels.generate_perturbation
— MethodSolve a model, optionally reusing a cache (which is assumed threadsafe)
generate_perturbation(m, p; p_f, cache, settings)
Details
Returns the solution
DifferentiableStateSpaceModels.@include_example_module
— MacroReturn model from a stored module, creating as necessary . If the module is
- already included, it just returns the
Module
- saved to disk but not already included, it does
include
- not saved to disk, it saves it, includes it
The specification of a model_generator
has a sepcification like H, mod_vals = model_generator()
where H
is an MTK expression the mod_vals
can be splatted into the FirstOrderPerturbationModel
or SecondOrderPerturbationModel
constructor.
The name of the stored module
is the name of model_generator
function and the order.
Examples
julia> m = @include_example_module(Examples.rbc_observables_benchmark) # stores or loads `.function_cache/rbc_observables_1.jl`
julia> m = @include_example_module(Examples.rbc_observables_benchmark, 2) # second order, loads `.function_cache/rbc_observables_2.jl`