Turns out, my old Python assignments had plenty left to teach me.
# Upper bounds (Ub) and Lower bounds (Lb) for [X1, X2] LB = np.array([-10.0, -10.0]) # Lower bounds for X1 and X2 UB = np.array([10.0, 10.0]) # Upper bounds for X1 and X2 ...
Water distribution network solver using the Nodal Head Correction Method (Newton-Raphson, sparse Jacobian), validated against EPANET, with an interactive Flask web app.
When solving equations, if a solution cannot be obtained through algebraic manipulation, numerical calculation is used. In this article, we will introduce the "Newton-Raphson method" as a "numerical ...