Model based control of a four-tank system