File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 11name = " ControlSystemsMTK"
22uuid = " 687d7614-c7e5-45fc-bfc3-9ee385575c88"
33authors = [" Fredrik Bagge Carlson" ]
4- version = " 0.1.1 "
4+ version = " 0.1.2 "
55
66[deps ]
77ControlSystemIdentification = " 3abffc1c-5106-53b7-b354-a47bfc086282"
Original file line number Diff line number Diff line change @@ -231,12 +231,13 @@ function RobustAndOptimalControl.named_ss(
231231 )
232232end
233233
234- function ModelingToolkit. get_disturbance_system (dist:: ModelingToolkit.DisturbanceModel{<:LTISystem} )
235- ControlSystemsBase. issiso (dist. model) || error (" Disturbance model must be SISO" )
236- Blocks. StateSpace (ssdata (ss (dist. model))... , name= dist. name)
234+ if isdefined (ModelingToolkit, :get_disturbance_system )
235+ function ModelingToolkit. get_disturbance_system (dist:: ModelingToolkit.DisturbanceModel{<:LTISystem} )
236+ ControlSystemsBase. issiso (dist. model) || error (" Disturbance model must be SISO" )
237+ Blocks. StateSpace (ssdata (ss (dist. model))... , name= dist. name)
238+ end
237239end
238240
239-
240241"""
241242 build_quadratic_cost_matrix(matrices::NamedTuple, ssys::ODESystem, costs::Vector{Pair})
242243
You can’t perform that action at this time.
0 commit comments