Skip to content

Commit 9a321d1

Browse files
committed
changed: minreal with balance=false in LinMPC outer constructor
1 parent 2045d9a commit 9a321d1

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "ModelPredictiveControl"
22
uuid = "61f9bdb8-6ae4-484a-811f-bbf86720c31c"
33
authors = ["Francis Gagnon"]
4-
version = "1.5.2"
4+
version = "1.5.3"
55

66
[deps]
77
ControlSystemsBase = "aaaaaaaa-a6ca-5380-bf3e-84a91bcd477e"
@@ -20,7 +20,7 @@ SparseConnectivityTracer = "9f842d2f-2579-4b1d-911e-f412cf18a3f5"
2020
SparseMatrixColorings = "0a514795-09f3-496d-8182-132a7b665d35"
2121

2222
[compat]
23-
ControlSystemsBase = "1.9"
23+
ControlSystemsBase = "1.14.6"
2424
DAQP = "0.6"
2525
DifferentiationInterface = "0.6.45"
2626
Documenter = "1"

src/model/linmodel.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,9 @@ function LinModel(
174174
sysd_dis = sysd
175175
end
176176
end
177-
# minreal to merge common poles if possible and ensure controllability/observability:
178-
sys_dis = minreal([sysu_dis sysd_dis]) # same realization if already minimal
177+
# minreal to merge common poles if possible and ensure controllability/observability
178+
# balance=false option to keep the same realization if already minimal
179+
sys_dis = minreal([sysu_dis sysd_dis], balance=false)
179180
nu = length(i_u)
180181
A = sys_dis.A
181182
Bu = sys_dis.B[:,1:nu]

0 commit comments

Comments
 (0)