Abstract
An approach to obtain the optimal gains for a discrete PID controller is presented. The optimal gains are obtained by minimising the variance of the output variable under feedback. The problem is formulated similarly to the Kalman filter problem and the gains are obtained from the solution of a Riccati equation. The discussion is restricted to single input single output systems.