File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ ControlSystemsBase = "aaaaaaaa-a6ca-5380-bf3e-84a91bcd477e"
33DisplayAs = " 0b91fe84-8a4c-11e9-3e1d-67c38462b6d6"
44Documenter = " e30172f5-a6a5-5a46-863b-614d45cd2de4"
55ForwardDiff = " f6369f11-7733-5829-9624-2563aa707210"
6+ LinearMPC = " 82e1c212-e1a2-49d2-b26a-a31d6968e3bd"
67MonteCarloMeasurements = " 0987c9cc-fe09-11e8-30f0-b96dd679fdca"
78Plots = " 91a5bcdd-55d7-5caf-9e0b-520d859cae80"
89RobustAndOptimalControl = " 21fd56a4-db03-40ee-82ee-a87907bee541"
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ module RobustAndOptimalControlLinearMPCExt
88using LinearMPC
99using LinearAlgebra
1010using RobustAndOptimalControl: LQGProblem
11+ using ControlSystemsBase: isdiscrete
1112
1213
1314"""
@@ -58,7 +59,7 @@ function LinearMPC.MPC(prob::LQGProblem;
5859 kwargs...
5960)
6061 # Validate discrete-time system
61- if ! ControlSystemsBase . isdiscrete (prob)
62+ if ! isdiscrete (prob)
6263 error (" Only discrete-time systems are supported. Got a continuous-time system." )
6364 end
6465
You can’t perform that action at this time.
0 commit comments