ControllableModelQ
✖
ControllableModelQ
yields True if the state-space model sys is controllable, and False otherwise.
Details and Options

- ControllableModelQ is also known as a reachable model.
- A state-space model is said to be controllable if for any initial state
and any final state
there exists some control input that drives the state from
to
in finite time.
- The system sys can be a standard or descriptor StateSpaceModel or AffineStateSpaceModel.
- The following subsystems sub can be specified: » »
-
All whole system "Fast" fast subsystem "Slow" slow subsystem {λ1,…} subsystem with eigenmodes - The "Fast" and "Slow" subsystems primarily apply to descriptor state-space models as described in KroneckerModelDecomposition.
- The eigenmodes λi are described in JordanModelDecomposition.
- ControllableModelQ accepts a Method option with the following settings:
-
Automatic automatically choose the appropriate test "Distribution" use controllability distribution's rank "Gramian" use controllability Gramian's rank or positive definiteness "Matrix" use controllability matrix's rank "PBH" use Popov–Belevitch–Hautus rank test

Examples
open allclose allBasic Examples (2)Summary of the most common use cases
Scope (6)Survey of the scope of standard use cases
Test the controllability of a system with approximate coefficients:

https://wolfram.com/xid/0cf1p1u1v56jj3n-k6h6p0


https://wolfram.com/xid/0cf1p1u1v56jj3n-u4nfst


https://wolfram.com/xid/0cf1p1u1v56jj3n-cuphvw


https://wolfram.com/xid/0cf1p1u1v56jj3n-k51bv6


https://wolfram.com/xid/0cf1p1u1v56jj3n-sr3ack


https://wolfram.com/xid/0cf1p1u1v56jj3n-sh5yfz

https://wolfram.com/xid/0cf1p1u1v56jj3n-0ax8eu

Controllability is equivalent to controllability of both slow and fast modes (C-controllability):

https://wolfram.com/xid/0cf1p1u1v56jj3n-j0qby6

Test controllability of individual eigenmodes:

https://wolfram.com/xid/0cf1p1u1v56jj3n-t795wb
The system is uncontrollable because of eigenmode :

https://wolfram.com/xid/0cf1p1u1v56jj3n-hnqko8


https://wolfram.com/xid/0cf1p1u1v56jj3n-j4uwzz

This can be seen in the Jordan form, where there is no way to affect the third state:

https://wolfram.com/xid/0cf1p1u1v56jj3n-8nmo5d

Test controllability of an AffineStateSpaceModel:

https://wolfram.com/xid/0cf1p1u1v56jj3n-vlx8ex

If an operating point is given, controllability from
is tested:

https://wolfram.com/xid/0cf1p1u1v56jj3n-r7kug9

The system is controllable from a generic point:

https://wolfram.com/xid/0cf1p1u1v56jj3n-tfrswu

Options (7)Common values & functionality for each option
Method (7)
By default, the controllability matrix is used for exact and symbolic systems:

https://wolfram.com/xid/0cf1p1u1v56jj3n-4vg30g

https://wolfram.com/xid/0cf1p1u1v56jj3n-onzgng

The system is controllable if the ControllabilityMatrix has full rank:

https://wolfram.com/xid/0cf1p1u1v56jj3n-td87q5

https://wolfram.com/xid/0cf1p1u1v56jj3n-zq44ny

The controllability Gramian is used for stable numeric systems:

https://wolfram.com/xid/0cf1p1u1v56jj3n-7ctner

https://wolfram.com/xid/0cf1p1u1v56jj3n-coldt7

The system is controllable if the ControllabilityGramian has full rank:

https://wolfram.com/xid/0cf1p1u1v56jj3n-qqt69

https://wolfram.com/xid/0cf1p1u1v56jj3n-ds2c8w

For the controllability Gramian, this is equivalent to it being positive definite:

https://wolfram.com/xid/0cf1p1u1v56jj3n-n2m18a

The PBH rank test is used for all other numeric systems:

https://wolfram.com/xid/0cf1p1u1v56jj3n-9c4vhw

https://wolfram.com/xid/0cf1p1u1v56jj3n-jtbvtb

The system is controllable because has full rank for all
:

https://wolfram.com/xid/0cf1p1u1v56jj3n-pkfdbb

https://wolfram.com/xid/0cf1p1u1v56jj3n-dmeinh

The controllability distribution is used for input-linear systems:

https://wolfram.com/xid/0cf1p1u1v56jj3n-updc86

For linear systems, the tests based on the controllability matrix and distribution are equivalent:

https://wolfram.com/xid/0cf1p1u1v56jj3n-hkj51j

Controllability of the linearized system implies controllability of the input-linear system:

https://wolfram.com/xid/0cf1p1u1v56jj3n-iblsi8

https://wolfram.com/xid/0cf1p1u1v56jj3n-9ga5h

https://wolfram.com/xid/0cf1p1u1v56jj3n-s06qyz

The matrix test for input linear system uses the "Matrix" method for the linearized system:

https://wolfram.com/xid/0cf1p1u1v56jj3n-53x0lv

Using no control input, the system follows the drift vector field :

https://wolfram.com/xid/0cf1p1u1v56jj3n-h2ubuf
A system is weakly controllable if the drift vector field can also be used to move state:

https://wolfram.com/xid/0cf1p1u1v56jj3n-ctp3p8

Without including the drift vector field, the system is not controllable:

https://wolfram.com/xid/0cf1p1u1v56jj3n-emix4e

Applications (5)Sample problems that can be solved with this function
The position and velocities of all three masses can be controlled by the force on :


https://wolfram.com/xid/0cf1p1u1v56jj3n-qhpwk5

An electric circuit with the capacitor voltage and inductor current as states:


https://wolfram.com/xid/0cf1p1u1v56jj3n-uex790
In general, the system is controllable:

https://wolfram.com/xid/0cf1p1u1v56jj3n-7jzujl

However if , it is not controllable:

https://wolfram.com/xid/0cf1p1u1v56jj3n-ua7e5t

A unicycle with drive and steering as input:

https://wolfram.com/xid/0cf1p1u1v56jj3n-0ndr10
The system is controllable, but the linearized system is not:

https://wolfram.com/xid/0cf1p1u1v56jj3n-fzpfc4



https://wolfram.com/xid/0cf1p1u1v56jj3n-xqbiqp
The system is controllable, but the linearized system is not:

https://wolfram.com/xid/0cf1p1u1v56jj3n-c4gw4i

A rotating rigid satellite modeled using Euler's equations of motion:

https://wolfram.com/xid/0cf1p1u1v56jj3n-vqotat
Its controllability for various values of the principal moments and actuator combinations:

https://wolfram.com/xid/0cf1p1u1v56jj3n-1l2zza

https://wolfram.com/xid/0cf1p1u1v56jj3n-zaulvf
If , the system is controllable with any two actuators:

https://wolfram.com/xid/0cf1p1u1v56jj3n-cas2r3

If , the system is not controllable with actuators 1 and 2 or any one actuator:

https://wolfram.com/xid/0cf1p1u1v56jj3n-zpo3q8

If , the system is controllable only with all 3 actuators:

https://wolfram.com/xid/0cf1p1u1v56jj3n-dljwdm

Properties & Relations (7)Properties of the function, and connections to other functions
A diagonal system is controllable, assuming and
:

https://wolfram.com/xid/0cf1p1u1v56jj3n-6nsclp

With , there is no way to control the first state:

https://wolfram.com/xid/0cf1p1u1v56jj3n-brtpcp

With , the first state cannot be controlled directly, but indirectly from the second state:

https://wolfram.com/xid/0cf1p1u1v56jj3n-fr7x6d

With , the second state cannot be controlled directly or indirectly from the first state:

https://wolfram.com/xid/0cf1p1u1v56jj3n-bet95

Use JordanModelDecomposition to compute the canonical state-space representation above:

https://wolfram.com/xid/0cf1p1u1v56jj3n-fuaft5

https://wolfram.com/xid/0cf1p1u1v56jj3n-m3tfhi

Compute the controllability of each mode using the "PBH" test:

https://wolfram.com/xid/0cf1p1u1v56jj3n-745cjk

For descriptor systems, KroneckerModelDecomposition is the generalization of the diagonal form:

https://wolfram.com/xid/0cf1p1u1v56jj3n-3k6skt

https://wolfram.com/xid/0cf1p1u1v56jj3n-ol56y

Determine the controllability of the slow subsystem from its structure:

https://wolfram.com/xid/0cf1p1u1v56jj3n-j5tf2a

Compute it using the original system:

https://wolfram.com/xid/0cf1p1u1v56jj3n-dccvkc

Determine the controllability of the fast subsystem:

https://wolfram.com/xid/0cf1p1u1v56jj3n-v646g9

Compute it using the original system:

https://wolfram.com/xid/0cf1p1u1v56jj3n-n1eh3q

If the descriptor matrix of a StateSpaceModel has full rank, there is no fast subsystem:

https://wolfram.com/xid/0cf1p1u1v56jj3n-wwty4o
Hence the complete controllability of the system can be evaluated from the slow subsystem:

https://wolfram.com/xid/0cf1p1u1v56jj3n-qmci4f

Controllability is invariant under a nonsingular StateSpaceTransform:

https://wolfram.com/xid/0cf1p1u1v56jj3n-b1429y

https://wolfram.com/xid/0cf1p1u1v56jj3n-kddl4s

https://wolfram.com/xid/0cf1p1u1v56jj3n-okbxn5

Controllability is invariant under state feedback:

https://wolfram.com/xid/0cf1p1u1v56jj3n-hqzkns

https://wolfram.com/xid/0cf1p1u1v56jj3n-gff48o

Compute the state feedback using StateFeedbackGains:

https://wolfram.com/xid/0cf1p1u1v56jj3n-lwj3ql

The closed-loop system is also controllable:

https://wolfram.com/xid/0cf1p1u1v56jj3n-epg8ze

https://wolfram.com/xid/0cf1p1u1v56jj3n-w6lu4m

Controllability does not mean it is output controllable (OutputControllableModelQ):

https://wolfram.com/xid/0cf1p1u1v56jj3n-2frou5

https://wolfram.com/xid/0cf1p1u1v56jj3n-gw7vd8

Output controllability does not imply controllability:

https://wolfram.com/xid/0cf1p1u1v56jj3n-hh9vk2

https://wolfram.com/xid/0cf1p1u1v56jj3n-fcw0v9

Possible Issues (2)Common pitfalls and unexpected behavior
The Gramian method is not reliable for systems that are not asymptotically stable:

https://wolfram.com/xid/0cf1p1u1v56jj3n-3skwej

https://wolfram.com/xid/0cf1p1u1v56jj3n-dtf4fu


The eigenvalue in the right half of the complex plane leads to instability for continuous-time systems:

https://wolfram.com/xid/0cf1p1u1v56jj3n-ucbwah

For affine systems with nonzero drift, the distribution tests only for accessibility:

https://wolfram.com/xid/0cf1p1u1v56jj3n-pffk2w

https://wolfram.com/xid/0cf1p1u1v56jj3n-n9kpwx

A random initial condition and random input signal generator:

https://wolfram.com/xid/0cf1p1u1v56jj3n-oj6d9s
Simulate the system 10 times with random inputs:

https://wolfram.com/xid/0cf1p1u1v56jj3n-3spfof
The system cannot be moved to the left of the initial point:

https://wolfram.com/xid/0cf1p1u1v56jj3n-xi1r4f

Wolfram Research (2010), ControllableModelQ, Wolfram Language function, https://reference.wolfram.com/language/ref/ControllableModelQ.html (updated 2014).
Text
Wolfram Research (2010), ControllableModelQ, Wolfram Language function, https://reference.wolfram.com/language/ref/ControllableModelQ.html (updated 2014).
Wolfram Research (2010), ControllableModelQ, Wolfram Language function, https://reference.wolfram.com/language/ref/ControllableModelQ.html (updated 2014).
CMS
Wolfram Language. 2010. "ControllableModelQ." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2014. https://reference.wolfram.com/language/ref/ControllableModelQ.html.
Wolfram Language. 2010. "ControllableModelQ." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2014. https://reference.wolfram.com/language/ref/ControllableModelQ.html.
APA
Wolfram Language. (2010). ControllableModelQ. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ControllableModelQ.html
Wolfram Language. (2010). ControllableModelQ. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ControllableModelQ.html
BibTeX
@misc{reference.wolfram_2025_controllablemodelq, author="Wolfram Research", title="{ControllableModelQ}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/ControllableModelQ.html}", note=[Accessed: 04-June-2025
]}
BibLaTeX
@online{reference.wolfram_2025_controllablemodelq, organization={Wolfram Research}, title={ControllableModelQ}, year={2014}, url={https://reference.wolfram.com/language/ref/ControllableModelQ.html}, note=[Accessed: 04-June-2025
]}