Skip to contents

LinearizationOpPoint(sol, t, op) uses the values of the differential unknowns and parameters of the ODE solution sol at time t as the operating point of linearize(); entries of op override them and may be expressions, evaluated from the solution. With a vector t, linearize() returns one linearization per time point. Initial conditions of the system are ignored.

Usage

LinearizationOpPoint(sol, t, op = list())

Arguments

sol

An ODE solution.

t

A time or vector of times.

op

Further operating point values.

Value

An object of class LinearizationOpPoint.

Examples

t <- t_nounits; D <- D_nounits
x <- Variable("x", t); u <- Variable("u", t, input = TRUE)
sys <- System(list(D(x) ~ -x^3 + u), t, name = "s")
prob <- ODEProblem(mtkcompile(sys, inputs = list(u)), list(x ~ 1, u ~ 0), c(0, 1))
sol <- solve(prob)
lin <- linearize(sys, list(u), list(x), op = LinearizationOpPoint(sol, 1))
lin$A
#>           [,1]
#> [1,] -1.000006