The invention relates generally to electronic circuits for analog computation. More specifically, it relates to analog circuits for solving nonlinear programming problems.
Nonlinear programming (NLP) is an important method used in a variety of power and energy systems to solve optimization problems in which the objective function or constraints are nonlinear. Some examples of NLP-based control problems include model predictive control, optimal power flow, state and parameter estimation, and motor control.
Existing implementations of these control problems are typically implemented using digital microcontrollers, FPGAs, GPUs, or CPUs. These digital implementations suffer from two key drawbacks: 1) they are too computationally complex to run in real-time, and 2) their high computational complexity necessitates digital microcontrollers/computers that can draw substantial amounts of power. These drawbacks limit the applicability and widespread adoption of such techniques, particularly in power and energy applications, where cost and energy efficiency are important considerations. In other application domains, analog computing techniques have shown promise in enabling lower power and faster computing systems. However, many of these techniques are not tailored to the types of problems that are relevant to power conversion systems, and others lack the programmability and flexibility needed to be used effectively in practical applications.
Herein is disclosed a hybrid analog/digital computing circuit that is capable of solving online optimization and optimal control techniques, and more specifically nonlinear programming problems, in a fast and energy efficient manner (e.g., for power and energy applications). The circuit combines a purely analog computing circuit with a low power digital microcontroller. The addition of the digital microcontroller endows the circuit with flexibility and scalability in programming the desired optimization or control technique, while adding minimal overhead in terms of cost and power.
General NLPs with arbitrary cost functions can be programmed and solved by the circuit. Problems of this form from the power and energy application area include the optimal power flow problem, model predictive control (e.g., model predictive direct torque control), maximum power point tracking for energy harvesting (e.g. solar and wind energy systems), and optimal control of motor drive systems.
The circuit is a physical realization of the desired NLP such that voltages in the circuit represent variables in the NLP, and the interconnection of the circuit components enforce the Karush-Kuhn-Tucker (KKT) conditions on these variables. The KKT conditions provide the first order necessary conditions for the optimal solutions to the NLP given a set of constraints on the variables. Thus, in steady state, the voltages in the circuit that represent the variables of the NLP naturally converge to an optimal and feasible solution of the NLP. Particular nodes in the electronic circuit are driven by (have their voltages set by) a digital microcontroller. These voltages dictate the cost function that is minimized by the electronic circuit. In this way, the digital microcontroller can be programmed to implement arbitrary cost functions that will subsequently be minimized by the electronic circuit. The precise voltages are computed by the digital microcontroller based on voltage measurements of particular nodes from the electronic circuit.
In one example implementation, an embodiment of the circuit is used for a specific online optimization problem called selective harmonic minimization, in which the pulse-width modulation (PWM) of a power converter typically a two-level or multilevel inverter is optimally calculated to precisely control or minimize the output harmonic content. Due to the complexity of the selective harmonic minimization problem, conventional implementations are based on offline programmed PWM techniques that rely on pre-computed solutions stored either as a lookup table or as a pre-trained artificial neural network.
The hybrid analog/digital computing circuit yields a solution to the selective harmonic minimization problem in near-to-real-time and generates the associated quarter-wave symmetric PWM for a two-level, single-phase inverter. The computing circuit solves for eight independent switching angles, which enables the elimination of seven undesired harmonics while maintaining dynamic control of the modulation index. The experimental results demonstrate that the circuit can converge to the optimal solution in 3.8 ms, which is substantially faster than existing methods and facilitates real-time implementation. Moreover, the steady state power consumption of the computing circuit is approximately 700 mW, which is significantly lower than published methods for comparable applications.
The approach leverages favorable attributes of digital and analog controllers to yield a fast and scalable optimization solver. A digital microcontroller programs the cost function and other user-defined inputs to the optimization. Voltages in the circuit represent switching angles in the optimization problem. In steady state, the voltages converge to Karush-Kuhn-Tucker (KKT) points of the problem.
As an illustrative example, a specific realization of the computing circuit is disclosed that solves for eight independent switching angles for a quarter-wave symmetric PWM driven two-level single-phase inverter. Seven undesired harmonics are minimized while retaining control over the modulation index. The computing circuit is verified with simulations and a PCB hardware implementation. The experimental results demonstrate that the circuit can converge to the optimal solution in less than 5.0 ms, which is substantially faster than existing methods and facilitates real-time implementation. Moreover, the steady-state power consumption of the PCB implementation is approximately 750 mW, which is also significantly lower than published methods for comparable applications. The computing circuit is utilized to generate the PWM for a 2 kW single-phase inverter, which validates its feasibility in practical applications.
The techniques disclosed herein provide an electronic circuit for solving nonlinear programming problems (NLPs). The circuit is a physical realization of the desired NLP such that voltages in the circuit represent variables in the NLP, and the interconnection of the circuit components enforce the Karush-Kuhn-Tucker (KKT) conditions on these variables. The KKT conditions provide the first order necessary conditions for the optimal solutions to the NLP given a set of constraints on the variables. Thus, in steady state, the voltages in the circuit that represent the variables of the NLP naturally converge to an optimal solution of the NLP. Particular nodes in the electronic circuit are driven by (have their voltages set by) a digital microcontroller. These voltages dictate the cost function that is minimized by the electronic circuit. In this way, the digital microcontroller can be programmed to implement arbitrary cost functions that will subsequently be minimized by the electronic circuit. The precise voltages are computed by the digital microcontroller based on voltage measurements of particular nodes from the electronic circuit.
Consider a general nonlinear programming (NLP) problem, that is, we wish to minimize an arbitrary scalar cost function:
φ(α1, α2, . . . , αN), (1)
subject to the constraints:
where N is the number of variables in the NLP, and M is the number of constraints.
In one embodiment, the circuit in are equivalent to the variables α1, . . . , αN in the NLP. We will show that, in steady state, these voltages will converge to the optimal solution min φ(α)=γ(α*).
The circuit in
Fundamentally, the circuit is a physical realization of the Karush-Kuhn-Tucker (KKT) conditions that provide the first-order necessary conditions for the optimal solution α*. The four KKT conditions for the NLP in (1) and (2) can be formulated as follows:
where =[1, . . . , N], j=[1, . . . , M], are KKT multipliers, and fj(α) are constraints. When the voltages
, the currents fj, and the voltages Λj in the electronic circuit satisfy (8a) (12b), the voltages given by
optimally solve the problem.
Arbitrary cost functions can be minimized by the electronic circuit through the programming and control of the digital microcontroller. The digital microcontroller controls the voltages at particular nodes in the electronic circuit. Specifically, the microcontroller computes [∂φ(α)/∂α1, . . , ∂φ(α)/∂αN] based on measurements of α1, . . . , αN, and applies these voltages to the nodes connected to the DAC. This allows arbitrary cost functions φ(α) to be programmed by the digital microcontroller, which will subsequently be automatically minimized by the electronic circuit. Such a hybrid analog/digital circuit can be used to solve the selective harmonic minimization problem in real-time.
In order to build intuition for the hybrid analog/digital computing method, first we discuss as an illustrative example a special case involving the minimization of a single harmonic for a two-level single-phase inverter subject to a quarter-wave symmetric PWM scheme. The cost function and desired modulation index is determined by the digital stage of the circuit, and these can be updated in real-time. The voltages in the circuit correspond to the PWM switching angles, and in steady-state, they are feasible solutions to the optimization problem (precisely, they are Karush-KuhnTucker (KKT) points).
This example computing circuit was verified with a PCB hardware implementation that optimizes eight independent switching angles to eliminate seven undesired harmonics while maintaining control of the modulation index. The hardware implementation demonstrates convergence to the optimal solution in less than 5.0 ms, which is substantially faster than existing methods and facilitates real-time implementation. Moreover, the steady-state power consumption of the PCB implementation is approximately 750 mW, which is also significantly lower than published methods. The computing circuit is utilized to generate PWM signals for a 2 kW single-phase inverter, which validates its performance and feasibility in practical applications.
The constraints f1(α), f2(α), f3(α) ensure the correct ordering and bounds on the switching angles
and corresponding Lagrange multipliers are denoted by λ1, λ2, λ3, respectively. In what follows, we will leverage the notation f(α)=[f1(α), f2(α), f3(α)]T and λ=[λ1, λ2, λ3]T.
For a modulation index, m=0.9,
The computing circuit physically realizes the Karush-Kuhn-Tucker (KKT) conditions for the optimization problem in (7). The KKT conditions are first-order necessary conditions to guarantee a local minimum solution; such solutions are called KKT points. We denote these KKT points by α*=[α*1, α*2]T, λ*=[λ*1, λ*2, λ*3]T. The KKT conditions for (7) take the form:
In particular, (8a) are the so-called stationarity conditions. Furthermore, in (8b), fj(α*)≥0 are primal feasibility conditions, λ*j≤0 are dual feasibility conditions, and λ*jfj(α*)=0 are complementary-slackness conditions. Given the constraints in (7b)-(7d), it follows that:
It is relevant to note that the KKT conditions in (8a) and (8b) have been shown to be continuous or Lipschitz continuous for parametric optimization (the modulation index m being the exogenous parameter in this case) under a set of mild assumptions. This is unlike the selective harmonic elimination (SHE) problem, which involves solving harmonic transcendental equations, and admit a discontinuous solution space for higher-order multilevel converters.
We show next that, with an appropriate mapping and interpretation of the variables α and λ, the circuit in terminal in
Notice that the resistive network 300 encodes the sensitivities of the constraints with respect to the optimization variables (9). Likewise, the resistive network 302 yields currents that capture the functional form of the constraints in (7b)-(7d). The cost function dynamics of φ(α) are introduced to the circuit by time-varying controlled voltage sources with values precisely equal to ∂φ(α)/. The implementation of these controlled voltage sources is elaborated on below. As we will show through forthcoming developments, the circuit is constructed in a manner such that the steady state values of these voltages and currents precisely satisfy the KKT conditions in (8a)-(8b). The integrator blocks (e.g., 306) and nonlinear resistor blocks (e.g., 304) depicted in
The integrator block shown in , originate from two sources. The first source is the term ∂φ(α)/
(from the controlled voltage sources), while the second source is from the sum of terms λj∂fj(α)/
.
The nonlinear resistor shown in
for some R and where is the input current to the nonlinear resistor. A resistor network connects the input of the nonlinear resistors to voltages α1, α2, α3 such that the currents flowing into the inputs of the nonlinear resistors are −f1(α), −f2(α), −f3(α).
Having overviewed the subsystems of the circuit realization, we now examine its steady state operation. First, consider that in steady state, the currents are zero. Given the composition of the currents, we see that this precisely maps to the KKT stationarity condition (8a). Assume that in steady state, αj satisfy the constraints in (7b)-(7d), equivalently, the currents fj(α) satisfy the primal-feasibility constraints in (8b). With negative (or zero) input currents to the nonlinear resistors, the output voltages of the nonlinear resistors are λj=0. With this, we see that the voltages αj, λj correspond to the KKT points, α*j, λ*j, i.e., they satisfy all the KKT conditions in (8a), (8b). It is relevant to note that while these KKT points represent local minima of (7), they are not necessarily the global minimum, as finding the global minimum of a non-convex function such as (7a) is generally an NP-hard problem. Many conventional meta-heuristic optimization techniques (e.g., genetic algorithms, particle swarm optimization, among others) introduce noise based on a Gaussian or Boltzmann distribution to the dynamics of the optimization variable to mitigate the likelihood of falling into undesirable local minima. In the simulation and experimental results that follow, we will evaluate the effectiveness of the solution obtained at the KKT points, which will depend on the initial starting condition of the circuit and the presence of noise. We will see that the approach does not fall into undesired local minima and that the targeted harmonics are effectively minimized in the various tested scenarios. The analog realization of the circuit may provide a natural noise mechanism, similar to the artificial noise introduced in conventional meta-heuristic optimization techniques. Moreover, artificial noise or perturbations could be introduced to dynamics of the optimization variables by the digital microcontroller.
Alternatively, consider the scenario where, e.g., the constraint f1(α) is not satisfied, i.e., the voltage, α1 is such that f1(α)<0. In this case, the output of the first nonlinear resistor will be a negative voltage λ1=−f1(α)R. This produces a nonzero current i1 at the input of the first integrator, thereby perturbing the α1 voltage. In all, the passive nonlinearity in (10) penalizes errors in the constraints fj(α) and perturbs the voltages αj in a direction to satisfy the constraints fj(α)≥0. The value of the resistance R in the nonlinear resistor block determines the magnitude of the perturbation and, thus, affects the rate of convergence to a steady state solution that satisfies the constraints.
The computing circuit depicted in
Next, we present a transient analysis of the switching angle and KKT multiplier voltages as a function of the nominal resistance value (Rnom) and the integrator capacitance (Cint). The results of the simulation are illustrated in
Transient simulation of the computing circuit with variations in the nominal resistance value Rnom is shown in
In this section, we consider the generalized version of the selective harmonic minimization problem leveraging intuition gleaned from the special case of eliminating one harmonic considered earlier.
The generalized version of the problem involves solving for the optimal values of N switching angles to minimize N−1 arbitrary harmonics while maintaining an arbitrary modulation index n. As before, we consider a quarter-wave symmetric PWM scheme for a two-level inverter. The precise formulation is given by:
where α=[α1, . . . , αN]T are the N switching angles to be determined, λ=[λ1, . . . , λN+1]T are the Lagrange multipliers corresponding to the constraints f(α)=[f1(α), . . . , fN+1(α)]T, which enforce
m is modulation index, and h1, . . , hN−1 are the orders of the undesired harmonics to be minimized. Depending on the application, h1, . . , hN−1 are typically chosen to be the lowest odd harmonics (i.e., 3, 5, 7, . . . ) or, for three-phase applications, the lowest odd nontriplen harmonics (i.e., 5, 7, 13, . . . ). The KKT conditions for problem (7) take the form:
∇αφ(α*)+(λ*)T∇αf(α*)=0, (12a)
f
j(α*)≥0, λ*j≤0, λ*jfj(α*)=0, j=1, . . , N+1, (12b)
where ∇αφ(·) captures sensitivities of the cost function with respect to the optimization variables:
and ∇αf(·) is the Jacobian matrix corresponding to the constraints, given by:
that minimize N−1 arbitrary harmonics for a two-level inverter. In particular, the steady-state values of voltages α1, . . . , αN and λ1, . . . , λN+1 converge to α*1, . . . , α*N and λ*1, . . . , λ*N+1 respectively, which satisfy the KKT conditions (12a)-(12b). The circuit minimizes the cost function of (11a) with the constraints of (lib). The resistors are labeled with conductances normalized to a 10 kΩ resistor, and negative resistors are realized by connecting one terminal of the resistor to an inverted output of the equivalent voltage.
The computing circuit merges an analog system 800 composed of a resistor network, integrators ( based on measurements of
. The programmed cost function includes the harmonics h1, . . . , hN−1 that are to be minimized, along with the modulation index n of the two-level waveform. Notably, these parameters can be changed in real-time and the circuit will then dynamically converge to a new solution.
The operation of this circuit is largely similar to that of the circuit of =1, . . . , N are all zero, and the constitution of these currents implies that this steady-state operating condition satisfies the stationarity condition (12a). Furthermore, the non-linear resistors operate in concert with the integrators to ensure that voltages, λ*1≤0, . . . , λ*N+1≤0 and currents f1(α*)≥0, . . . , fN+1(α*)≥0.
In this section, we present a printed circuit board (PCB) prototype implementation of the computing circuit that solves the selective harmonic minimization problem with eight independent switching angles, that is, N=8, for an effective switching frequency of 8×4×60 Hz=1920 Hz. The PCB implementation, moreover, generates the associated PWM signals to control a 2 kW single-phase inverter, from which we measure the output voltage to verify the minimization of the seven (N−1) desired harmonics.
The analog system is implemented with 14 LM324 general purpose quad op amps, 111 SMD 0603 resistors, 26 SMD 0603 capacitors, and 9 SOT-23 diodes connected as to realize the circuit diagram in
We now present simulation and experimental verification of the hardware implementation discussed above. We conduct three verification tests that involve the minimization of
In the first verification test, the digital system is programmed to minimize the first seven odd harmonics (h=3, 5, 7, 9, 11, 13, 15) while maintaining a constant modulation index m=0.9.
As shown in =1, . . . , 8 from the computing circuit converge in steady state to KKT points,
=1, . . . , 8 in approximately 5 ms.
A frequency domain analysis of this two-level waveform is shown in
=1, . . . , 8.
=1, . . . , 8 from the analog system illustrate that the circuit converges to a steady state optimal value
in 5.0 ms. The transient dynamics and steady-state values of
=1, . . . , 8 closely match the simulation seen in
In this verification test, the digital system is reprogrammed to minimize the first seven odd nontriplen harmonics (h=5, 7, 11, 13, 17, 19, 23). Note that there are no modifications to the analog system of the computing circuit. A SPICE-based simulation of this scenario is shown in converge to a KKT point in steady state that is the optimal value
in approximately 3.8 ms.
The experimental measurements from the hardware implementation of the computing circuit minimizing the first seven odd nontriplen harmonics (h=5, 7, 11, 13, 17, 19, 23) are shown in converge to steady state optimal value
in 3.7 ms as shown in
In the third verification test, the digital system is programmed to minimize the first seven odd nontriplen harmonics while varying the modulation index. More specifically, continuously evolve in response to the changing modulation index as the KKT points
change as a function of m.
We have disclosed herein a hybrid analog/digital computing circuit capable of solving NLP problems, and in particular the selective harmonic minimization problem in a fast and power-efficient manner. The experimentally verified convergence speed (<5.0 ms) and power consumption (750 mW) of the computing circuit are substantially lower than previously published works where data is available. Moreover, the circuit is capable of dynamically updating the optimization in real-time based on inputs and feedback illustrated specifically by dynamic control of the modulation index—which is unique in the selective harmonic minimization literature.
Those skilled in the art will appreciate that the principles described herein are not limited to the specific examples used for purposes of illustration. Many details could be adapted and varied based on the teachings contained herein. Other variations have also been envisioned by the inventors. For example, grid codes or uneven weighting function across the harmonics to be minimized could be incorporated by modifying the objective function. Second, while the experimental results shown here were targeted for a lower power single-phase inverter application, the circuit could be generalized for other converter configurations that have been explored in the context of selective harmonic minimization techniques, such as three-phase, multi-level, or unbalanced converters.
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/US2022/014463 | 1/29/2022 | WO |
Number | Date | Country | |
---|---|---|---|
63143856 | Jan 2021 | US |