Optimize chemical injection systems with robust flow control