Optimal non‐linear control with application to level control system