A non-linear programming approach to the computer-aided design of regulators using a linear-quadratic formulation