StateFeedbackGains
StateFeedbackGains[sspec,{p_{1},…,p_{n}}]
gives the state feedback gains for the system specification sspec to place its closedloop poles at p_{i}.
StateFeedbackGains[…,"prop"]
gives the value of the property "prop".
Details and Options
 StateFeedbackGains is also known as pole placement or eigenvalue placement.
 StateFeedbackGains is used to compute a regulating controller or tracking controller.
 StateFeedbackGains works by modifying the closedloop system poles to be at positions p_{i}.
 A regulating controller aims to maintain the system at an equilibrium state despite disturbances pushing it away. Typical examples include maintaining an inverted pendulum in its upright position or maintaining an aircraft in level flight.
 The regulating controller is given by a control law of the form , where is the computed gain matrix.
 The number of poles n to place is given by SystemsModelOrder of the system sys.
 A tracking controller aims to track a reference signal despite disturbances interfering with it. Typical examples include a cruise control system for a car or path tracking for a robot.
 The tracking controller is given by a control law of the form , where is the computed gain matrix for the augmented system that includes the system sys as well as the dynamics for .
 The number of poles n to place is given by , where is given by SystemsModelOrder of sys, the order of y_{ref} and the number of signals y_{ref}.
 Pole placement works for linear systems as specified by StateSpaceModel:

continuoustime system discretetime system  The performance of the resulting closedloop system csys is primarily determined by the location of the poles p_{i}.
 Typically there are performance constraints such as settling time and quality constraints such as overshoot. These correspond to certain regions that are desirable pole locations.
 The system specification sspec is the system sys together with the u_{f}, y_{t} and y_{ref} specifications.
 The system specification sspec can have the following forms:

StateSpaceModel[…] linear control input and linear state AffineStateSpaceModel[…] linear control input and nonlinear state NonlinearStateSpaceModel[…] nonlinear control input and nonlinear state SystemModel[…] general system model <… > detailed system specification given as an Association  The detailed system specification can have the following keys:

"InputModel" sys any one of the models "FeedbackInputs" All the feedback inputs u_{f} "TrackedOutputs" None the tracked outputs y_{t} "TrackedSignal" Automatic the dynamics of y_{ref}  The tracked signal dynamics is given as a function of the reference signal and time variable. By default, it is assumed to be constant.

Function[{r, t},r'[t]] continuoustime system Function[{r,k},r[k+1]r[k]] discretetime system  The feedback inputs and tracked outputs can have the following forms:

{num_{1},…,num_{n}} numbered inputs num_{i} used by StateSpaceModel, AffineStateSpaceModel and NonlinearStateSpaceModel {name_{1},…,name_{n}} named inputs name_{i} used by SystemModel All uses all inputs  For nonlinear systems such as AffineStateSpaceModel, NonlinearStateSpaceModel and SystemModel, the system will be linearized around its stored operating point.
 StateFeedbackGains[…,"Data"] returns a SystemsModelControllerData object cd that can be used to extract additional properties using the form cd["prop"].
 StateFeedbackGains[…,"prop"] can be used to directly get the value of cd["prop"].
 Possible values for properties "prop" include:

"ClosedLoopPoles" poles of the linearized "ClosedLoopSystem" "ClosedLoopSystem" system csys {"ClosedLoopSystem", cspec} detailed control over the form of the closedloop system "ControllerModel" model cm "Design" type of controller design "DesignModel" model used for the design "FeedbackGains" gain matrix κ or its equivalent "FeedbackGainsModel" model gm or {gm_{1},gm_{2}} "FeedbackInputs" inputs u_{f} of sys used for feedback "InputModel" input model sys "InputCount" number of inputs u of sys "OpenLoopPoles" poles of "DesignModel" "OutputCount" number of outputs y of sys "SamplingPeriod" sampling period of sys "StateCount" number of states x of sys "TrackedOutputs" outputs y_{t} of sys that are tracked  Possible keys for cspec include:

"InputModel" input model in csys "Merge" whether to merge csys "ModelName" name of csys  The diagram of the regulator layout.
 The diagram of the tracker layout.
 StateFeedbackGains accepts a Method option with settings given by:

Automatic automatic method selection "Ackermann" Ackermann method "KNVD" Kautsky–Nichols–Van Dooren method
Examples
open allclose allBasic Examples (3)
Scope (32)
Basic Uses (8)
Compute the state feedback gain that places the closedloop pole at p:
The closedloop system has pole p:
Compute the gain to stabilize an unstable system:
The closedloop system has pole :
The unstable pole and the stabilized pole can be seen in the system's responses:
Compute the state feedback gains for a multiplestate system:
The dimensions of the result correspond to the number of inputs and the system's order:
Compute the gains for a system with 2 inputs and 3 states:
Place the poles at conjugate pole locations:
If the poles are not complex conjugate, the gains will be complex:
Place the poles at conjugate pole locations for a multipleinput system:
If the poles are not complex conjugate, the control will be complex and use only one of the inputs:
The first input is not used for feedback:
Choose the feedback inputs for multipleinput systems:
Compute the gains for a nonlinear system:
The controller is returned as a vector and takes operating points into consideration:
Plant Models (6)
Continuoustime StateSpaceModel:
Discretetime StateSpaceModel:
Descriptor StateSpaceModel:
AffineStateSpaceModel with no operating point is taken to be 0:
NonlinearStateSpaceModel with no operating point is taken to be 0:
Properties (10)
StateFeedbackGains returns the feedback gains by default:
In general, the feedback is affine in the states:
It is of the form κ_{0}+κ_{1}.x, where κ_{0} and κ_{1} are constants:
The systems model of the feedback gains:
An affine feedback gains systems model:
The poles of the linearized closedloop system:
They should be the specified poles:
The model used to compute the feedback gains:
The feedback gains of the input model and the design model, respectively:
Properties related to the input model:
Get the controller data object:
Tracking (5)
The closedloop system tracks the reference signal :
Design a tracking controller for a discretetime system:
The closedloop system tracks the reference signal :
The closedloop system tracks two different reference signals:
Compute the controller effort:
Track a desired reference signal:
The reference signal is of order 2:
Design a controller to track one output of a firstorder system:
ClosedLoop System (3)
Assemble the closedloop system for a nonlinear plant model:
The closedloop system with a linearized model:
Compare the response of the two systems:
Assemble the merged closedloop of a plant with one disturbance and one feedback input:
The unmerged closedloop system:
When merged, it gives the same result as before:
Explicitly specify the merged closedloop system:
Create a closedloop system with a desired name:
The closedloop system has the specified name:
The name can be directly used to specify the closedloop model in other functions:
Options (6)
Method (6)
The "Ackermann" method is used by default for systems with exact or symbolic values:
The "KNVD" method is used by default for inexact systems:
LinearSolve is used for inexact systems with at least as many inputs as states:
The "KNVD" method is typically used for multiinput systems:
The "Ackermann" method uses only one input for multiinput systems:
The input selected has the lowest controllability matrix condition number:
The "KNVD" closedloop poles are less sensitive to the feedback gain perturbations than "Ackermann":
Add random perturbations to the gain matrices:
The resulting closedloop poles:
The maximum error from the specified poles is smaller for the "KNVD" method:
Applications (14)
Mechanical Systems (4)
Design a balancing controller for a Segway PT:
The nonlinear model of the Segway PT:
Without a controller, the Segway's position and orientation are not balanced:
Design a controller to balance the Segway using pole placement:
The openloop system was unstable:
Obtain the closedloop system:
It is balanced from a nonzero initial position:
So is its response to a nudge:
Design a regulator for a singlelink robotic manipulator with a flexible joint:
The arm's angular position is unregulated:
Design a state feedback controller:
Obtain the closedloop system:
The feedback controller regulates the arm's angular position:
Design a discretetime stabilizing controller for a ball and beam system:
The linear continuoustime model of the system:
Discretize the model with a sampling period of :
The ball's position is unstable if the beam is perturbed:
Compute a stabilizing controller:
Obtain the closedloop system:
The ball's position is stabilized:
Suppress the oscillations of a twomass damper system:
Discretize it with a sampling period of using the zeroorder hold method:
The masses and oscillate when perturbed:
Compute state feedback gains for a set of poles within the unit circle:
Compute gains for a set of poles that are less damped:
Obtain the closedloop systems for each set of poles:
Electromechanical Systems (1)
Dampen the oscillations on an angular gauge:
A disturbance of the gauge's position results in significant oscillations:
Set the current i as the feedback input:
Design a state feedback controller to dampen the oscillations:
Obtain the closedloop system:
A sinusoidal torque disturbance is also blocked by the controller:
Aerospace Systems (2)
Improve the handling of an aircraft's response about the longitudinal axis:
Its pitch angle takes about 1500 seconds to stabilize after an initial perturbation:
Design a controller to improve the response:
Obtain the closedloop system:
The response of the closedloop system now stabilizes in about 10 seconds:
Design an output feedback controller to regulate an orbiting satellite's trajectory:
The orbit is unstable if perturbed:
Compute a set of feedback gains:
Compute a set of estimator gains:
Assemble the estimator regulator:
Obtain the closedloop system:
Electrical Systems (3)
Tune the frequency response of a circuit:
A descriptor model of the circuit:
Its step response is highly oscillatory:
The oscillatory response is due to its underdamped poles:
Design a state feedback controller with poles that are not underdamped:
Obtain the closedloop system:
Compare the frequency responses of the open and closedloop systems:
Tune an active bandpass filter:
A statespace realization of the filter:
Design a set of controllers to improve the filter's characteristics:
The more damped the poles are, the smaller the oscillations:
Design a speed controller for a DC motor:
Set the motor speed as a tracked output:
Compute a pole placement controller:
Assemble an estimator regulator that tracks the motor velocity:
Chemical Systems (2)
Improve the response of the flow rate in a mixing tank:
The response to a disturbance in the flow rate q_{2}is sluggish:
Design a state feedback controller to accelerate the response:
The response of the closedloop system is faster:
Improve the response of a twostage chemical reactor with delayed recycle:
The reactor's response to a perturbation is delayed:
Remove the delay and obtain a minimal realization of the model:
Compute a set of regulator gains:
Assemble the estimator regulator using the computed gains:
Assemble a Smith compensator for the original system:
Obtain the closedloop system of the model with the Smith compensator in the feedback path:
The closedloop response to an initial perturbation has been improved:
Deadbeat Control (1)
Properties & Relations (17)
The state feedback gains are computed for negative feedback:
The closedloop poles with negative feedback κ.x:
They are the same as the specified poles:
The closedloop system is obtained using state feedback:
Obtain it directly as a property:
The control effort increases as the closedloop poles are moved further away from the openloop poles:
For a nonlinear system the gains are affine and of the form :
The gains of the linearized system are linear of the form :
The affine gains are obtained by solving :
All the poles of a controllable standard StateSpaceModel can be controlled using state feedback:
The closedloop poles are the specified poles:
All the poles of a controllable nonsingular descriptor StateSpaceModel can also be controlled:
The closedloop poles are the specified poles:
Only a subsystem of an an uncontrollable standard StateSpaceModel can be controlled:
The eigenvalue is controllable and is not:
Move only the controllable eigenvalue to :
It is not possible to move the uncontrollable eigenvalue:
Only the poles of the controllable slow subsystem of a nonsingular descriptor can be controlled:
The dimension of the slow subsystem:
The gain corresponding to the fast subsystem is :
The pole of the slow subsystem is moved to the desired location and the pole at corresponding to the fast subsystem is unchanged:
The complete system is uncontrollable and is of order less than the number of states:
None of the poles of the controllable slow subsystem of a nonsingular descriptor can be controlled:
The dimension of the slow subsystem:
None of the poles are changed:
LQRegulatorGains and StateFeedbackGains yield the same results for a singleinput system:
StateFeedbackGains with the closedloop poles of the LQRegulatorGains design:
LQRegulatorGains gives the same gains:
The closedloop poles that minimize ρ c.c x(t)^{2}+u(t)^{2}t can be obtained using the symmetric root locus plot:
The symmetric root locus plot:
The closedloop poles for the parameter value :
The feedback gains to place the poles at the specified locations:
The same gains are obtained using LQRegulatorGains:
For a StateSpaceModel, StateFeedbackGains and FullInformationOutputRegulator give the same results:
An estimator regulator is assembled using state feedback and estimator gain matrices:
The estimator regulator with the computed gains:
State feedback gains correspond to the gain in the closedloop system for singleinput systems:
The closedloop poles for a gain value κ:
The controllable canonical statespace realization of the system:
For this realization, the state feedback gains are of the form {{κ,0,…,0}}:
The closedloop poles for a gain value κ:
The controllable canonical statespace realization of the system:
For this realization, the state feedback gains are of the form {{κ,0,…,0}}:
The state feedback and estimator gains are duals of each other:
The state feedback gains of the system for a set of poles:
The estimator gains of the dual system for the conjugate set of poles:
The state feedback gain matrix is the conjugate transpose of the estimator gain matrix and conversely:
State feedback does not alter the inputblocking properties of a system:
The closedloop system for a specific set of poles:
Both the open and closedloop systems block the input Sin[2t]:
The closedloop system becomes unobservable if the state feedback makes a pole and a zero coincident:
The closedloop system with the pole coinciding with the zero:
The coincident polezero pair makes the closedloop system unobservable:
Possible Issues (5)
The gains cannot be calculated for an uncontrollable system:
An uncontrollable descriptor system:
The dimension of the slow subsystem:
None of the poles are changed:
The gains cannot be calculated for an unstabilizable system:
The KNVD method does not handle exact systems with fewer inputs than states:
The KNVD method can give different sets of gains on different computer systems:
Text
Wolfram Research (2010), StateFeedbackGains, Wolfram Language function, https://reference.wolfram.com/language/ref/StateFeedbackGains.html (updated 2021).
CMS
Wolfram Language. 2010. "StateFeedbackGains." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2021. https://reference.wolfram.com/language/ref/StateFeedbackGains.html.
APA
Wolfram Language. (2010). StateFeedbackGains. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/StateFeedbackGains.html