Online Feedback Optimization (OFO) is a closed-loop control methodology that steers a physical system—such as a power distribution feeder—toward a steady-state optimum by treating the system itself as an implicit solver. Unlike Model Predictive Control (MPC), OFO does not require a high-fidelity offline model; instead, it perturbs control inputs, measures the resulting change in a cost function (e.g., total line losses), and computes an empirical gradient to iteratively update setpoints for devices like Load Tap Changers and capacitor banks.
Glossary
Online Feedback Optimization (OFO)

What is Online Feedback Optimization (OFO)?
A real-time control strategy that drives a physical system to an optimal operating point by iteratively applying gradient steps computed from live measurements, bypassing the need for a precise offline model.
In the context of Volt-VAR Optimization, OFO addresses the fragility of model-based approaches by remaining robust to topology errors and parameter drift. The algorithm leverages real-time telemetry from Advanced Metering Infrastructure and SCADA to estimate the sensitivity of voltages to reactive power injections, effectively constructing a Sensitivity Matrix on the fly. This enables convergence to the optimal Conservation Voltage Reduction state while respecting ANSI C84.1 voltage limits, even as grid conditions change.
Key Characteristics of OFO
Online Feedback Optimization (OFO) is defined by its ability to drive a physical system to optimality using only real-time measurements, bypassing the need for a precise mathematical model. The following characteristics distinguish it from classical model-based control.
Model-Free Ascent
OFO treats the physical system as a black box. Instead of relying on an offline system model (like the power flow Jacobian), it applies gradient ascent directly to a cost function measured in real-time. The algorithm perturbs control inputs, observes the resulting change in the measured objective (e.g., reduced losses), and steps toward the optimum.
- Key Distinction: Unlike Model Predictive Control (MPC), no state-space representation is required.
- Benefit: Eliminates errors from model mismatch and parameter drift over time.
Real-Time Gradient Estimation
The core algorithmic loop estimates the gradient of the objective function with respect to the control inputs using live sensor telemetry. Techniques like extremum seeking or simultaneous perturbation stochastic approximation (SPSA) are employed to isolate the effect of control changes from ambient grid noise.
- Mechanism: Injects a small, continuous probing signal (dither) to measure the local sensitivity.
- Output: A data-driven descent direction that guides capacitor banks and tap changers toward the loss minimum.
Steady-State Convergence
OFO operates on a timescale separation principle. It assumes the physical system reaches a quasi-steady state faster than the optimization loop iterates. The algorithm waits for transient dynamics to settle after a control action before taking the next measurement.
- Constraint: The optimization cycle time (seconds to minutes) must be slower than the grid's electrical time constants.
- Stability: This deliberate slowness guarantees that the optimizer does not interact with fast electromechanical oscillations.
Constraint Enforcement via Projection
While the objective is maximized model-free, hard engineering limits (like ANSI C84.1 voltage bounds) must be strictly respected. OFO enforces these by projecting the gradient step onto a feasible set.
- Method: If a calculated step would violate a voltage limit, the optimizer clips or nullifies that specific control action.
- Safety Layer: A fast overrule logic monitors raw measurements and blocks commands that risk constraint violation, independent of the optimization loop.
Feedback as a Substitute for Prediction
Classical optimization uses a model to predict the future state. OFO uses instantaneous feedback as a substitute. By measuring the actual system response to a control change, the algorithm implicitly accounts for unmodeled loads, line impedance errors, and topology changes.
- Adaptation: Automatically tracks the optimal point as solar generation and load mix vary throughout the day.
- Resilience: Remains effective even if the Distribution Management System (DMS) topology model is outdated.
Integration with Legacy Controllers
OFO typically acts as a supervisory outer loop, sending updated setpoints to existing local controllers rather than replacing them. It commands the voltage setpoint of a Load Tap Changer (LTC) or the reactive power bias of a capacitor bank controller.
- Architecture: The OFO engine resides in the Distribution Management System (DMS) or an edge gateway.
- Fallback: If communication fails, local controllers revert to their default droop or time-based settings, ensuring no loss of basic voltage regulation.
Frequently Asked Questions
Clarifying the mechanisms and applications of Online Feedback Optimization for autonomous grid control.
Online Feedback Optimization (OFO) is a real-time control strategy that drives a physical system to an optimal operating point by iteratively applying gradient steps computed directly from live measurements, bypassing the need for a precise offline model. Unlike traditional open-loop optimization, OFO operates in a closed loop: the controller perturbs the system, observes the resulting change in a measured cost function (such as total line losses), and estimates the gradient of that cost with respect to the control inputs. This estimated gradient is then used to update the control variables—like Volt-VAR control setpoints or reactive power injections—in a direction that minimizes the objective. The core mathematical framework relies on extremum-seeking control or stochastic gradient descent adapted for physical systems, where the gradient is not analytically computed but estimated via the system's steady-state response. This makes OFO inherently robust to model inaccuracies, topology changes, and unmodeled dynamics, as it treats the physical grid itself as the solver.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
Master the foundational control strategies and mathematical frameworks that enable Online Feedback Optimization to drive distribution grids to peak efficiency without explicit system models.
Model Predictive Control (MPC)
An advanced control methodology that solves a finite-horizon optimization problem at each time step using a dynamic system model to predict future states. Key distinction from OFO: MPC requires an explicit mathematical model of the plant, while OFO relies purely on real-time measurement feedback.
- Uses a receding horizon to compute optimal control sequences
- Handles multi-variable systems with explicit constraints
- Computationally intensive compared to gradient-based OFO
- Often used as the benchmark against which OFO performance is measured
Sensitivity Matrix
A linearized mathematical construct, often derived from the power flow Jacobian, that quantifies the incremental change in node voltages resulting from a unit change in reactive power injection or tap position. In OFO, the sensitivity matrix is estimated online from measurement perturbations rather than computed from an offline model.
- Maps control inputs to voltage outputs: ΔV = S · Δu
- Enables gradient computation: ∂Loss/∂u = Sᵀ · ∂Loss/∂V
- OFO estimates S implicitly through iterative perturbation and observation
- Eliminates dependency on accurate network topology and impedance data
Extremum Seeking Control (ESC)
A model-free real-time optimization technique that drives a system to the extremum of an unknown objective function by injecting a periodic dither signal and observing the resulting output. OFO is a direct descendant of ESC adapted for discrete-time distribution grid control.
- Uses sinusoidal perturbation to estimate the gradient
- Convergence rate depends on dither frequency and amplitude
- OFO replaces continuous dither with discrete gradient steps
- Originally developed for aerospace and automotive engine optimization
Deep Reinforcement Learning for VVO
A model-free AI approach where an agent learns an optimal control policy for voltage regulation by interacting with a grid simulation environment. Contrast with OFO: DRL requires extensive offline training on a simulator, while OFO adapts online without pre-training.
- Learns a policy π(s) → a mapping states to actions
- Requires a reward function encoding voltage limits and loss minimization
- OFO is simpler to deploy but lacks DRL's ability to learn long-horizon strategies
- Both methods bypass the need for explicit grid models at runtime
Conservation Voltage Reduction (CVR)
A demand-side management technique that intentionally lowers service voltage to the lower bound of the allowable ANSI C84.1 range to reduce energy consumption. OFO is the ideal real-time control engine for achieving CVR targets without violating voltage constraints.
- Typical voltage reduction: 2-4% below nominal
- Energy savings quantified by the CVR factor (CVRf)
- OFO continuously adjusts reactive power devices to maintain the lower voltage band
- Eliminates the need for pre-computed CVR schedules that cannot adapt to changing load
Deadband and Tap Change Minimization
A deliberate hysteresis zone around a control setpoint within which no corrective action is taken, preventing excessive wear on mechanical equipment. OFO cost functions explicitly penalize unnecessary control actions to balance optimization gains against equipment longevity.
- Typical voltage deadband: ±0.5% to ±1.0% of nominal
- Tap change minimization extends LTC maintenance intervals by 30-50%
- OFO incorporates a regularization term: Loss + λ · (Δu)²
- The penalty weight λ is tuned based on equipment wear cost models

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us