From 3aafc2cafdf362d854fd47e91bd9335d60270e75 Mon Sep 17 00:00:00 2001 From: spaette <111918424+spaette@users.noreply.github.com> Date: Sun, 9 Jul 2023 23:47:41 -0500 Subject: [PATCH] typos (#54) --- src/ode_system.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ode_system.jl b/src/ode_system.jl index 4be1a02..418cd1f 100644 --- a/src/ode_system.jl +++ b/src/ode_system.jl @@ -250,7 +250,7 @@ end """ build_quadratic_cost_matrix(linear_sys, ssys::ODESystem, costs::Vector{Pair}) -For a system that has been linearized, assemble a quadratic cost matrix (for LQR or Kalman filtering) that penalizes states or outputs of simplified system `ssys` accoring to the vector of pairs `costs`. +For a system that has been linearized, assemble a quadratic cost matrix (for LQR or Kalman filtering) that penalizes states or outputs of simplified system `ssys` according to the vector of pairs `costs`. The motivation for this function is that ModelingToolkit does not guarantee - Which states are selected as states after simplification. @@ -284,7 +284,7 @@ end """ build_quadratic_cost_matrix(sys::ODESystem, inputs::Vector, costs::Vector{Pair}; kwargs...) -Assemble a quadratic cost matrix (for LQR or Kalman filtering) that penalizes states or outputs of system `sys` accoring to the vector of pairs `costs`. +Assemble a quadratic cost matrix (for LQR or Kalman filtering) that penalizes states or outputs of system `sys` according to the vector of pairs `costs`. The motivation for this function is that ModelingToolkit does not guarantee - Which states are selected as states after simplification. @@ -667,7 +667,7 @@ We can however use the PartitionedStateSpace to prove stability of the closed-ll function Symbolics.build_function(sys::AbstractStateSpace, args...; kwargs...) - ControlSystemsBase.numeric_type(sys) <: Num || error("Expected a system with symbolc coefficients. Call linearize_symbolic to obtain symbolic jacobians") + ControlSystemsBase.numeric_type(sys) <: Num || error("Expected a system with symbolic coefficients. Call linearize_symbolic to obtain symbolic jacobians") Afun, _ = Symbolics.build_function(sys.A, args...; kwargs...) Bfun, _ = Symbolics.build_function(sys.B, args...; kwargs...) Cfun, _ = Symbolics.build_function(sys.C, args...; kwargs...)