1. A computer program product for determining optimal capacitor bank switching in a distribution network, comprising: a computer readable medium having computer readable code embedded therein, the computer readable medium comprising: program instructions that receive a network model and builds a set of controls S c and a set of conductors S b in the network model; program instructions that solve a base case unbalanced load flow for a base network; program instructions that determine initial current values I i d (0), I i q (0) for each conductor S b in the base case; program instructions that initialize the load flow model to an initial case and, for each control in S c ; program instructions that perturbs the capacitor status for each control in S c and determines a new load flow for the model with the perturbed capacitor status; program instructions that calculate new currents I i d , I i q for each conductor in S b using the new load flow and determine current sensitivity vectors S d , S q according to ΔI i d =I i d −I i d (0),ΔI i q =I i q −I i q (0); program instructions that constructs, using the initial load flow solution and the current sensitivity vectors S d , S q , a MIQCQP; program instructions that solve said MIQCQP to output optimal control settings for S c ; and program instructions that output said optimal control settings.