Text this: On the design and control of compartmental networks for optimal evacuation and supply