Advanced maths

Minimum observable sensor subset calculator from a state matrix and candidate measurements

Select a minimum-cost set of candidate sensor rows that makes the entered numerical linear system observable.

Your numbers

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

Select a minimum-cost set of candidate sensor rows that makes the entered numerical linear system observable.

THE FORMULAO(CS,A) = [CS; CS A; ...; CS A^(n−1)]; require rank(O)=n

A worked example

For A=diag(1,2) and candidate rows (1,0),(0,1),(1,1), all costing one, the third sensor alone is observable: [[1,1],[1,2]] has determinant one. Minimum cost is one.

Good to know

Rational state matrix order1–6, at most15 candidate sensor rows and nonnegative rational costs. Exhaustive subsets with exact observability rank and complete minimum-cost witnesses/ties capped for display. Numerical parameter values, not generic sparsity observability; no robustness or noise-optimality guarantee.

Choosing measurements rather than assessing them

An observability calculation ordinarily starts with a fixed output matrix and asks whether its measurements reveal the complete state. This page treats each candidate row as an available sensor and searches over subsets. The objective is the sum of selected costs, subject to exact full observability of the supplied numerical state matrix.

This differs from maximizing a determinant or another information-quality score under a fixed sensor budget. A minimum-cost observable subset may be poorly conditioned or sensitive to noise. The rank constraint establishes a structural algebraic ability to distinguish initial states in the exact entered model; it does not automatically establish reliable estimation in a noisy physical experiment.

Minimum observable sensor subset from a state matrix and candidate measurementsc0 = (1,0)c1 = (0,1)c2 = (1,1)O(c2) = [1 1; 1 2]det = 1; rank = 2Minimum cost = 1
Scroll across to see the full diagram.
For A=diag(1,2) and candidate rows (1,0),(0,1),(1,1), all costing one, the third sensor alone is observable: [[1,1],[1,2]] has determinant one. Minimum cost is one.

Compare this with the Observability Gramian calculator with initial state reconstruction. Choose a minimum-cost subset of candidate measurement rows whose full observability matrix has rank n. The existing page analyzes a supplied sensor configuration and reconstructs an initial state; D-optimal design uses a determinant criterion instead of minimum cardinality full rank.

Constructing the observability matrix

For selected output rows C, stack C, C A and successive powers through n minus one. The resulting matrix maps an initial state to a finite sequence of ideal outputs. Full column rank means that no nonzero initial-state difference produces an identically zero stacked output under the homogeneous linear dynamics.

More rows of the same redundant information do not create new observable directions. Conversely, a single sensor row can be enough when the dynamics mix or distinguish state components over time. Counting selected sensors alone is therefore not a valid substitute for constructing the observability matrix and checking its rank for each candidate subset.

Numerical parameter values are part of the model

The input uses exact rational matrix entries and costs. Rank is evaluated for those particular values, not just the zero/nonzero pattern. Two state matrices with the same sparsity can have different repeated eigenvalues or cancellations, which can alter the smallest observable sensor subset. Generic structural observability is a different question.

Rational arithmetic avoids making a full-rank decision from a nearly zero floating singular value. It does not eliminate the need to consider conditioning when interpreting real measurements. A rational matrix can be exactly nonsingular but have a very small determinant relative to its entries. Such a configuration is algebraically observable while still being fragile under perturbation.

The three candidate sensors example

The first candidate measures only the first coordinate, and the second measures only the second coordinate. Under the diagonal default dynamics, neither coordinate influences the other, so either of those sensors alone leaves one state direction invisible. Selecting both would cost two and would certainly make the state observable.

The third candidate measures the sum of the coordinates. Its next propagated row is (1,2), because the two coordinates evolve with different multipliers. These two rows have determinant one, so this single sensor already distinguishes both coordinates over time. Since every nonempty subset costs at least one and the empty subset has rank zero, the minimum cost is exactly one.

Exhaustive subset search and witnesses

With at most the declared number of candidates, enumerate all subsets, compute their costs and test exact observability rank. Cost ordering and rank bounds can prune work, but a minimum-cost claim requires that no cheaper feasible subset has been overlooked. Retain one or all tied optimum subsets according to the displayed output cap.

Each reported subset should identify the original sensor row indices and include an independent full-rank minor or equivalent rank certificate. If ties exceed a display cap, state whether the complete optimal cost was established and whether only the list is truncated. A partial enumeration caused by a computation cap must not be mislabeled as a proven optimum.

Zero costs and infeasible collections

Nonnegative costs allow free sensors. The optimum may contain several zero-cost rows, and minimum cost alone does not necessarily minimize cardinality among tied subsets. If a secondary cardinality rule is used, it must be stated. Otherwise, returning any minimum-cost observable subset is consistent with the primary objective.

Before searching every subset, test the full candidate collection. If it is unobservable, no smaller subset can restore a missing direction, because deleting measurement rows cannot increase rank. That supplies a useful infeasibility certificate. It should be distinguished from an arithmetic or resource failure, which leaves the search unresolved rather than proving that the candidate family is inadequate.

What optimal placement does not guarantee

The result concerns the entered linear model and allowed candidate measurement rows. It does not choose new physical sensor locations outside that catalogue, optimize a Kalman filter or establish an estimation-error covariance. Changes in model parameters, nonlinear behavior or sensor failure can invalidate the exact observability statement and require a different design objective.

Use the selected row indices, cost and rank witness to reproduce the decision. For an engineering deployment, examine sensitivity, sensor noise and robustness separately. The value of this bounded calculator is a transparent combinatorial optimum for the specified algebraic requirement, not an unqualified promise that the cheapest observable design is the best practical instrumentation plan.

A few questions, answered

Can one sensor observe several states?

Yes. Dynamics can make successive readings contain independent information about several state coordinates.

Does minimum cost also mean minimum sensor count?

Not necessarily, particularly with zero costs or unequal costs; any secondary rule must be explicit.

Is this generic structural observability?

No. It uses the exact numerical rational entries supplied for the state and sensor matrices.

Does exact rank guarantee robust estimation?

No. Conditioning and measurement noise require additional analysis.

Find your calculator

Start typing to explore the library.