A New Library for Network Optimization
opensource.googleblog.com
opensource.googleblog.com
Kirchoff's law and Ohm's law makes things linear, and turning the optimization problem into a linear problem is very advantageous for efficiency.
Diodes are asymmetric resistors with R=0 for one direction and R=inf for the other, so represent one-way streets in the network. A voltage source would be how you define the origin location (destination location is set at ground) for recognizing different routes for flows to take. Inductors are out of scope I think since this should find the equilibrium for voltages at each node and currents across each resistor and inductors' dynamics are only interesting over time.
[1] https://ai.googleblog.com/2022/02/robust-routing-using-elect...
My solution was far from perfect, but as a 20-year-old, I was rather proud :D
https://www.aaai.org/AAAI22Papers/AAAI-21.MoffittM.pdf
https://aaai-2022.virtualchair.net/poster_aaai21
As a sidenote, that website's search engine is hilariously bad. Just freezes up for no reason.