|
From: <kk...@us...> - 2011-02-08 22:17:50
|
Revision: 97
http://python-control.svn.sourceforge.net/python-control/?rev=97&view=rev
Author: kkchen
Date: 2011-02-08 22:17:44 +0000 (Tue, 08 Feb 2011)
Log Message:
-----------
Removed testBalredMatchDC from TestModelsimp.py.
Kevin K. Chen <kk...@pr...>
Modified Paths:
--------------
branches/control-0.4a/src/TestModelsimp.py
Modified: branches/control-0.4a/src/TestModelsimp.py
===================================================================
--- branches/control-0.4a/src/TestModelsimp.py 2011-02-08 22:17:40 UTC (rev 96)
+++ branches/control-0.4a/src/TestModelsimp.py 2011-02-08 22:17:44 UTC (rev 97)
@@ -66,28 +66,6 @@
np.testing.assert_array_almost_equal(rsys.C, Crtrue)
np.testing.assert_array_almost_equal(rsys.D, Drtrue)
-# def testBalredMatchDC(self):
-# #controlable canonical realization computed in matlab for the transfer function:
-# # num = [1 11 45 32], den = [1 15 60 200 60]
-# A = np.matrix('-15., -7.5, -6.25, -1.875; \
-# 8., 0., 0., 0.; \
-# 0., 4., 0., 0.; \
-# 0., 0., 1., 0.')
-# B = np.matrix('2.; 0.; 0.; 0.')
-# C = np.matrix('0.5, 0.6875, 0.7031, 0.5')
-# D = np.matrix('0.')
-# sys = ss(A,B,C,D)
-# orders = 1
-# rsys = balred(sys,orders,method='matchdc')
-# Artrue = np.matrix('-0.566')
-# Brtrue = np.matrix('-0.414')
-# Crtrue = np.matrix('-0.5728')
-# Drtrue = np.matrix('0.1145')
-# np.testing.assert_array_almost_equal(sys.A, Artrue)
-# np.testing.assert_array_almost_equal(sys.B, Brtrue)
-# np.testing.assert_array_almost_equal(sys.C, Crtrue)
-# np.testing.assert_array_almost_equal(sys.D, Drtrue)
-
def testBalredTruncate(self):
#controlable canonical realization computed in matlab for the transfer function:
# num = [1 11 45 32], den = [1 15 60 200 60]
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|