In this paper a software engineering concept is described which permit
s the automatic solution of a nonlinear set of network. equations. The
power how equation set can be seen as a defined subset of a network e
quation set. The automated solution process is the numerical Newton-Ra
phson solution process of the power flow equations where the key code
parts are the numeric mismatch and the numeric Jacobian term computati
on. It is shown that both the Jacobian and the mismatch term source co
de can be automatically generated in a conventional language such as F
ortran or C. Thereby one starts from a high level, symbolic language w
ith automatic differentiation and code generation facilities. As a res
ult of this software engineering process an efficient, very high quali
ty Newton-Raphson solution code is generated which allows easier imple
mentation of network equation model enhancements and easier code maint
enance as compared to hand-coded Fortran or C code.