Skip to content

Commit 58f9396

Browse files
author
Kevin Chen
committed
Removed testBalredMatchDC from TestModelsimp.py.
Kevin K. Chen <kkchen@princeton.edu>
1 parent 008171e commit 58f9396

1 file changed

Lines changed: 0 additions & 22 deletions

File tree

src/TestModelsimp.py

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -66,28 +66,6 @@ def testModredTruncate(self):
6666
np.testing.assert_array_almost_equal(rsys.C, Crtrue)
6767
np.testing.assert_array_almost_equal(rsys.D, Drtrue)
6868

69-
# def testBalredMatchDC(self):
70-
# #controlable canonical realization computed in matlab for the transfer function:
71-
# # num = [1 11 45 32], den = [1 15 60 200 60]
72-
# A = np.matrix('-15., -7.5, -6.25, -1.875; \
73-
# 8., 0., 0., 0.; \
74-
# 0., 4., 0., 0.; \
75-
# 0., 0., 1., 0.')
76-
# B = np.matrix('2.; 0.; 0.; 0.')
77-
# C = np.matrix('0.5, 0.6875, 0.7031, 0.5')
78-
# D = np.matrix('0.')
79-
# sys = ss(A,B,C,D)
80-
# orders = 1
81-
# rsys = balred(sys,orders,method='matchdc')
82-
# Artrue = np.matrix('-0.566')
83-
# Brtrue = np.matrix('-0.414')
84-
# Crtrue = np.matrix('-0.5728')
85-
# Drtrue = np.matrix('0.1145')
86-
# np.testing.assert_array_almost_equal(sys.A, Artrue)
87-
# np.testing.assert_array_almost_equal(sys.B, Brtrue)
88-
# np.testing.assert_array_almost_equal(sys.C, Crtrue)
89-
# np.testing.assert_array_almost_equal(sys.D, Drtrue)
90-
9169
def testBalredTruncate(self):
9270
#controlable canonical realization computed in matlab for the transfer function:
9371
# num = [1 11 45 32], den = [1 15 60 200 60]

0 commit comments

Comments
 (0)