1. At least one non-transitory computer-readable storage medium comprising instructions that, when executed, cause a system to: receive a model of an electrical distribution network having multiple capacitor banks and multiple voltage regulators, each of the multiple capacitor banks represented in the model by a model capacitor bank, each of the multiple voltage regulators represented in the model by a model voltage regulator, the electrical distribution network having a radial layout in which power flows from a source to multiple nodes in which each node is associated with one voltage regulator; receive one or more existing settings for the multiple capacitor banks and multiple voltage regulators of the electrical distribution network; receive a forecast for demand on the electrical distribution network; determine one or more settings for the multiple capacitor banks and multiple voltage regulators that allow for providing power within predetermined limits while reducing power loss as compared to a power loss of existing settings or reducing power usage as compared to a power usage of the existing settings, the one or more settings for the multiple voltage regulators determined according to a heuristic in which potential settings are iteratively determined for each of the model voltage regulators based on a least squares model of load flow analysis; perform a load-flow analysis based on the model, the forecast, and the potential settings for the model voltage regulators; determine that the load-flow analysis indicates that at least one node on the electrical distribution network would receive power outside the predetermined limits; and adjust the potential settings and test the adjusted potential settings using the load-flow analysis until the load-flow analysis based on each adjustment of the potential settings indicates that all nodes on the electrical distribution network would receive power within the predetermined limits.