Text this: Analytical tuning of regulators in a cascade automatic discharge control system