Skip to main content
QUICK REVIEW

[Paper Review] Safe Trajectory Gradient Flow Control of a Grid-Interfacing Inverter

Trager Joswig-Jones, Baosen Zhang|arXiv (Cornell University)|Jan 15, 2026
Microgrid Control and OptimizationEngineering0 citations
TL;DR

The paper introduces a Safe Trajectory Gradient Flow (STGF) controller that handles current-magnitude constraints in grid-interfacing inverters by solving a constrained rolling-horizon trajectory optimization via safe gradient flows, yielding near-optimal steady-state performance with feasibility guarantees and lower compute times than MPC.

ABSTRACT

Grid-interfacing inverters serve as the interface between renewable energy resources and the electric power grid, offering fast, programmable control capabilities. However, their operation is constrained by hardware limitations, such as bounds on the current magnitude. Existing control methods for these systems often neglect these constraints during controller design and instead rely on ad hoc limiters, which can introduce instability or degrade performance. In this work, we present a control framework that directly incorporates constraints into the control of a voltage-source inverter. We propose a safe trajectory gradient flow controller, which applies the safe gradient flow method to a rolling horizon trajectory optimization problem to ensure that the states remain within a safe set defined by the constraints while directing the trajectory towards an optimal equilibrium point of a nonlinear program. Simulation results demonstrate that our approach can drive the outputs of a simulated inverter system to optimal values and maintain state constraints, even when using a limited number of optimization steps per control cycle.

Motivation & Objective

  • Motivate the need to enforce hardware current limits directly in inverter control to prevent damage and degradation.
  • Develop a control framework that incorporates state and input constraints into the optimization problem.
  • Achieve near-optimal operating points for active/reactive power while maintaining safety constraints in real time.

Proposed method

  • Formulate the inverter control as a constrained nonlinear program over a finite horizon with cost c(x,u) and constraints g(x)≤0, h(x)=0.
  • Apply safe gradient flow to the trajectory optimization, updating a limited number of gradient steps per control cycle.
  • Use a rolling-horizon (MPC-like) approach: at each step, solve a constrained optimization with a few updates, then apply only the first control action.
  • Synthesize a quadratic program (QP) to minimally modify the gradient directions while keeping the state within the safe set via control barrier function concepts.
  • Discretize dynamics with forward Euler, and solve the STGF QP using CVXPY/OSQP within each horizon iteration.

Experimental results

Research questions

  • RQ1Can STGF enforce current-magnitude constraints at all times while steering the inverter toward an optimal NLP solution?
  • RQ2How does STGF performance (in terms of convergence to optimal outputs and safety) compare with MPC and a modified droop controller under current limits?
  • RQ3What are the computational benefits and trade-offs of updating only a few gradient steps per control cycle in a rolling-horizon framework?
  • RQ4How do horizon length and update count affect feasibility, stability, and tracking of reference power setpoints?

Key findings

  • STGF drives inverter states toward the NLP-optimal operating point while respecting the current magnitude constraint.
  • Compared to MPC, STGF achieves similar or near-optimal output trajectories with visibly smoother control inputs when the current limit is active.
  • STGF exhibits substantially faster per-step solve times (about 40x faster on average than MPC in the reported setup) and smaller maximum solve times, though full real-time implementability requires further speedups.
  • Droop-based control can be faster but fails to settle at the NLP-optimal outputs and may violate safety constraints under current limits.
  • The approach maintains feasibility at all times (anytime property) as long as predicted dynamics align with true dynamics and step size is appropriately chosen.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.