Constrained generic model control of a surge tank