TITLE: PID controller convergence
QUESTION [7 upvotes]: Is there any material anywhere on convergence of PID controllers? Ie, if we formalize the "plant process" in some way, like $y_{t+1} = f(x_t,y_t)$ (in other words, the process value at a given time depends on the previous process value and controlled value), are there conditions on $f$ that determine if there exist PID coefficients that converge, or on what the coefficients need to be?
I was experimenting with simulated PID controllers and found that it seemed very difficult to get a controller to converge for $f(x_t, y_t) = x_t^2$, and I was curious if the lack of dependence on the previous value ($y_t$) made the convergence difficult.

REPLY [2 votes]: The usual prerequisite for using PID controllers is that the plant itself must be stable in the first place. The plant in your example is marginally stable, so you might want to consider stabilizing the plant (using pole-placement etc.) beforehand.
Secondly, the selection of the coefficients of PID controllers are performed based mostly on heuristic methods as such the Ziegler-Nichols method. The book Modern Control Engineering by Ogata has a whole chapter dedicated for introducing and discussing these methods.

Note that the methods presented assume a plant that can be adequately modeled by inhomogeneous linear ordinary differential equations of the form
\begin{equation}
 \sum_{i = 0}^{n} a_{i}(t)\frac{\mathop{}\!\mathrm{d}^{i}{y}}{\mathop{}\!\mathrm{d}{t}^{i}} = x(t).
\end{equation} 
Your example seems to suggest that you are dealing with a linear difference equation. So, you might want to consider a two-step approach, i.e. design an analog PID controller using the methods presented, and then digitize it.
Also, the input in your example is squared, $x_t^2$. When coupled with a PID controller, could result in a closed-loop system that is highly nonlinear in $y_t$, so your mileage may vary.