Skip to content

Commit

Permalink
typos (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
spaette committed Jul 10, 2023
1 parent 52fc201 commit 3aafc2c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ode_system.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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...)
Expand Down

0 comments on commit 3aafc2c

Please sign in to comment.