Tapping into Efficiency; How Mathematicians are Saving Our Water
Have your water bills recently increased? Have you ever wondered how we can deal with water inequality? How can we achieve these things you may be asking? Well it is quite simple actually, we can use a tool called Mixed Integer Linear Programming (or MILP for short). Sounds scary? Well it is actually quite simple, all it does is minimise or maximise the desired metric (such as minimise cost of pipes or maximise reliability) while constraining values to be within some acceptable bound. For example, in when minimising the cost of pipes, you can not use any pipes, which doesn’t make sense so we can add constraints to avoid this issue. Thus we can create more efficient and cost effective water distribution systems.
What is MILP
So now, unless you have taken third year applied maths units, you are definitely wondering what “Mixed Integer Linear Programming” is. Well have no fear I completely understand you. I was recently asked to read a research paper for a job. The paper was on scheduling and automated planning [1]; a technique where you make a sequence of decisions intending to optimise some objective. Well, if you are starting to understand how MILP works, you may not be surprised that it was used in the paper. However, at the time, I had no idea what MILP was. Yet after many hours spent, I can now explain it in simple terms.
Let’s first focus on the terms “Linear Programming”. Independently, both these words are mostly likely somewhat familiar to most people, yet, their combination is not. Pretty much, linear programming is a mathematical concept where you are trying to optimise a linear function subject to a set of linear constraints. What does that mean? Let me refresh you. A linear function which we are trying to optimise may look like the following
Where “
These constraints ensure that both pipe lengths are positive values and
that the combined length is equal to our desired length. Finally,
referring back to “Mixed Integer”, all it means that the model can have
a mix of continuous and integer (i.e.
How MILP is being used to save water
So how does all this relate to water distribution? Well, Awwalu et.
al. [2]
actually applies MILP to improve our water distribution systems.
Firstly, they use a variant of MILP which allows for multiple objective
functions. These being to minimise the cost of the pipes as well as
minimising the energy use at pipe junctions, all whilst maximising the
reliability of the system.
Additionally, they add a list of constraints with the goal of -
conserving energy inside pipes - providing the population with their
water demands - ensuring that the water pressure is above some minimum
value - restricting pipe diameter sizes to only those available
(e.g. 50cm, 1m, 2m etc.) - conservation of flow
Where to now?
Since this is only a theoretical model, it is now up to the engineers to use these tools in order to create a more efficient system. However, since MILP provides the most optimal solution to the given problem, its mathemagic powers can be used to vastly improve all our water systems.
(1) Say, B.; Wu, G.; Zhou, Y. Q.; Sanner, S. Nonlinear Hybrid Planning with Deep Net Learned Transition Models and Mixed-Integer Linear Programming. In Proceedings of the twenty-sixth international joint conference on artificial intelligence, IJCAI-17; 2017; pp 750–756. https://doi.org/10.24963/ijcai.2017/104.
(2) Awwalu, H. B.; Abdullahi, N.; Hussaini, M. A Conceptual Model of Mixed-Integer Linear Programming Water Distribution System. MASE 2023, 4 (2), 79–153. https://doi.org/10.5206/mase/15591.
(3) Awwalu, H. B.; Abdullahi, N.; Hussaini, M. A Conceptual Model of Mixed-Integer Linear Programming Water Distribution System; 2023; Vol. 4, pp 79–153. https://doi.org/10.5206/mase/15591.