]> Creatis software - CreaPhase.git/blob - octave_packages/control-2.3.52/test_control.m
Add a useful package (from Source forge) for octave
[CreaPhase.git] / octave_packages / control-2.3.52 / test_control.m
1 ## Copyright (C) 2010, 2011, 2012   Lukas F. Reichlin
2 ##
3 ## This file is part of LTI Syncope.
4 ##
5 ## LTI Syncope is free software: you can redistribute it and/or modify
6 ## it under the terms of the GNU General Public License as published by
7 ## the Free Software Foundation, either version 3 of the License, or
8 ## (at your option) any later version.
9 ##
10 ## LTI Syncope is distributed in the hope that it will be useful,
11 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
12 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 ## GNU General Public License for more details.
14 ##
15 ## You should have received a copy of the GNU General Public License
16 ## along with LTI Syncope.  If not, see <http://www.gnu.org/licenses/>.
17
18 ## -*- texinfo -*-
19 ## @deftypefn {Script File} {} test_control
20 ## Execute all available tests at once.
21 ## The Octave control package is based on the @uref{http://www.slicot.org, SLICOT} library.
22 ## SLICOT needs a LAPACK library which is also a prerequisite for Octave itself.
23 ## In case of failing test, it is highly recommended to use
24 ## @uref{http://www.netlib.org/lapack/, Netlib's reference LAPACK}
25 ## for building Octave.  Using ATLAS may lead to sign changes
26 ## in some entries in the state-space matrices.
27 ## In general, these sign changes are not 'wrong' and can be regarded as
28 ## the result of state transformations.  Such state transformations
29 ## (but not input/output transformations) have no influence on the
30 ## input-output behaviour of the system.  For better numerics,
31 ## the control package uses such transformations by default when
32 ## calculating the frequency responses and a few other things.
33 ## However, arguments like the Hankel singular Values (HSV) must not change.
34 ## Differing HSVs and failing algorithms are known for using Framework Accelerate
35 ## from Mac OS X 10.7.
36 ## @end deftypefn
37
38 ## Author: Lukas Reichlin <lukas.reichlin@gmail.com>
39 ## Created: May 2010
40 ## Version: 0.4
41
42 ## test collection
43 test ltimodels
44
45 ## LTI methods
46 test @lti/c2d
47 test @lti/d2c
48 test @lti/feedback
49 test @lti/horzcat
50 test @lti/inv
51 test @lti/minreal
52 test @lti/mtimes
53 test @lti/norm
54 test @lti/plus
55 test @lti/prescale
56 test @lti/sminreal
57 test @lti/subsref
58 test @lti/zero
59
60 ## robust control
61 test h2syn
62 test hinfsyn
63 test ncfsyn
64
65 ## ARE solvers
66 test care
67 test dare
68 test kalman
69
70 ## Lyapunov
71 test covar
72 test dlyap
73 ## test dlyapchol  # TODO: add tests
74 test gram
75 test lyap
76 test lyapchol
77
78 ## model order reduction
79 test bstmodred
80 test btamodred
81 test hnamodred
82 ## test spamodred  # TODO: create test case
83
84 ## controller order reduction
85 test btaconred
86 test cfconred
87 test fwcfconred
88 ## test spaconred  # TODO: create test case
89
90 ## identification
91 test fitfrd
92
93 ## various oct-files
94 test ctrbf
95 test hsvd
96 test place
97
98 ## various m-files
99 test ctrb
100 test filt
101 test initial
102 test issample
103 test margin
104 test obsv
105 test sigma