Nonlinear power flow constraints render a variety of power system optimization problems computationally intractable. Emerging research shows, however, that the nonlinear AC power flow equations can be successfully modeled using Neural Networks (NNs). These NNs can be exactly transformed into Mixed Integer Linear Programs (MILPs) and embedded inside challenging optimization problems, thus replacing nonlinearities that are intractable for many applications with tractable piecewise linear approximations. Such approaches, though, suffer from an explosion of the number of binary variables needed to represent the NN. Accordingly, this paper develops a technique for training an "optimally compact" NN, i.e., one that can represent the power flow equations with a sufficiently high degree of accuracy while still maintaining a tractable number of binary variables. We show that the resulting NN model is more expressive than both the DC and linearized power flow approximations when embedded inside of a challenging optimization problem (i.e., the AC unit commitment problem). Index Terms-AC power flow, AC unit commitment (AC-UC), mixed-integer linear program (MILP), neural networks, piecewise linear model
I. INTRODUCTIONThe AC power flow equations are routinely used to model network constraints in optimization problems related to the control, operation, and planning of power systems. These constraints, however, are both nonlinear and non-convex, resulting in optimization problems that can be NP-hard [1]. In practice, many power systems operation problems, like unit commitment (UC), optimal power flow (OPF), and optimal transmission switching (OTS), are solved using linearized approximations of the nonlinear AC power flow equations for the sake of computational tractability. However, linear approximations can result in suboptimal solutions or solutions that are infeasible in the original, nonlinear problem [2].Piecewise linear models offer a method of improving solution accuracy by capturing some of the nonlinearity of the † denotes an equal contribution among authors.