Advanced maths

Linear output regulator equations calculator for exosystem tracking

Solve coupled linear regulator equations for an externally specified reference and disturbance model.

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

Solve coupled linear regulator equations for an externally specified reference and disturbance model.

THE FORMULAAΠ+BΓ+E=ΠS; CΠ+DΓ+F=0.

A worked example

With A=−1,B=1,E=0,S=0,C=1,D=0,F=−1, the exact solution is Π=1,Γ=1: constant reference w requires steady state x=w,u=w.

Good to know

Rational plant up to 5 states, 2 inputs/outputs and 3 exosystem states. Solve AΠ+BΓ+E=ΠS and CΠ+DΓ+F=0 by exact elimination; classify inconsistent/unique/affine solutions. Full-state information only. Optional supplied stabilizing K is verified separately; regulation equations alone do not establish closed-loop stability.

Separate the plant from the reference generator

A regulator problem contains two connected models. The plant obeys xdot=Ax+Bu+Ew, while the exosystem obeys wdot=Sw. The vector w may describe a constant reference, an oscillating reference or a disturbance with known dynamics. The regulated error is e=Cx+Du+Fw; choose the sign of F so zero error means the tracking condition you actually want.

A constant reference uses S=0. A sinusoidal reference needs a two-state rotation generator with the desired angular frequency. This page accepts the exosystem matrix rather than guessing its dynamics from a label such as step or sine. All matrices must use compatible dimensions and the same time unit; one malformed coupling can change the physical meaning of the entire calculation.

Two equations for a constant referencew constantu = wx = w−Π + Γ = 0Π − 1 = 0Π = 1, Γ = 1: both residuals vanish
Scroll across to see the full diagram.
The default solution Π=Γ=1 satisfies both the plant balance and the tracking error equation.

Compare this with the Sylvester matrix equation calculator AX + XB = C. Solve the coupled Francis regulator equations for a plant and reference/disturbance exosystem, including solvability and feedforward matrices. A single Sylvester equation does not impose the additional output-error constraints.

Interpret the two unknown matrices

The desired steady motion is x=Πw and u=Γw. The matrix Π maps exosystem states into plant states; Γ maps the same exosystem states into the input needed to sustain that motion. They are not feedback gains. Their column count equals the number of exosystem states, even if the plant has a different number of states or inputs.

Differentiating x=Πw gives xdot=ΠSw. Substitution into the plant yields AΠ+BΓ+E=ΠS. Requiring the regulated output to vanish gives CΠ+DΓ+F=0. Both equations must hold together. Solving only the first equation may produce a dynamically compatible motion with the wrong output, which is why a general Sylvester solve is insufficient here.

How the coupled linear solve works

Each unknown entry of Π and Γ appears linearly. The calculator expands the dynamic equation entry by entry, appends the output-error equations and reduces the resulting augmented rational matrix. This converts a matrix design problem into a finite exact consistency problem, without numerical optimization or a guessed steady-state response.

The row reduction distinguishes a unique solution from a family containing free parameters. For a family, the output includes one particular solution and vectors spanning the homogeneous solution space. If the equations are inconsistent, the calculator reports that condition instead of returning a least-squares approximation that would leave a nonzero tracking error.

Work through the constant-reference default

The scalar default plant is xdot=−x+u and the error is x−w. Since w is constant, S=0. The dynamic regulator equation becomes −Π+Γ=0, while the output equation becomes Π−1=0. Therefore Π=1 and Γ=1; the reference requires equal steady state and input values.

For w=3 the compatible motion is x=3,u=3. Direct substitution gives xdot=−3+3=0 and error 3−3=0. The example is intentionally small enough to check without software. Larger models follow exactly the same substitution logic, and the returned residual matrices let you inspect whether every dynamic and output component vanishes.

Add feedback only after understanding feedforward

To attract trajectories toward the compatible motion, a full-information control law can be written u=−K(x−Πw)+Γw. Define the deviation z=x−Πw. When the regulator equations hold, its dynamics reduce to zdot=(A−BK)z. The feedforward matrices remove the reference and disturbance terms from this deviation equation.

That derivation does not make A−BK stable. A stabilizing K must be designed and checked separately. For the default scalar system, choosing K=2 gives deviation dynamics zdot=−3z, but the same Π and Γ could be combined with a destabilizing K. The page therefore does not label an algebraically solvable system as a complete stable regulator.

Understand nonuniqueness and impossibility

A free solution parameter may represent redundant actuator choices or an internal direction not constrained by the regulated output. It is not an automatic opportunity to minimize energy. An additional optimization objective or stability requirement would be needed to select a preferred member. The particular solution returned here uses zero values for the free coordinates of the reduced system.

An inconsistent system can instead reflect an unattainable reference channel, missing control authority or incompatible exosystem frequency. Check the model and the error definition before treating inconsistency as a numerical failure. Because the equations use exact bounded rational arithmetic, reducing a tolerance cannot turn an inconsistent entered system into a valid exact regulator.

Use the result within its information assumptions

The law above assumes access to the plant state x and exosystem state w. If only a noisy measured output is available, an observer and a suitable internal-model design are additional tasks. This calculator does not silently replace full-information feedback with output feedback, nor does it estimate an unknown disturbance generator from observations.

The returned exact residuals establish dynamic compatibility and zero error on the prescribed invariant motion. They do not establish robustness to uncertain A,B,C matrices, input saturation or unmodeled reference frequencies. Document those distinctions when using the matrices in a simulation, and retain the original sign convention alongside any exported numbers.

A few questions, answered

What does F=−1 mean in the default?

The error is e=x−w. F multiplies w in the error definition, so −1 makes a positive reference demand an equal positive state.

Is Γ the state-feedback gain?

No. Γ generates the steady input from w. A separate K governs deviations through A−BK.

What if the solution has free parameters?

The calculator returns a particular solution and a basis for the homogeneous family. Additional design criteria are required to choose among those solutions.

Does zero residual prove convergence?

No. Zero residual proves the prescribed steady motion is compatible. Convergence additionally requires stable deviation dynamics and the stated information assumptions.

Find your calculator

Start typing to explore the library.