Search arXiv⌕ Search

arXiv · 2611.23571

ADSPICE: A Method of Automatic Differentiation for Gradient-Based Lumped Circuit Optimization with Native SPICE

Abstract

This work presents a novel computer-aided design (CAD) tool for gradient-based circuit optimization using SPICE and automatic differentiation, which we term ADSPICE. Automatic differentiation (AD) is a technique for evaluating a derivative by breaking it into its elementary differentiation operations and repeatedly applying the chain rule, in contrast with a finite-difference-based derivative computed from a small perturbation. Native SPICE (realized with ngspice) is equipped with automatic differentiation toward gradient-based optimization, particularly adjoint-mode optimization. This is implemented with custom C code and shared library control, allowing easy integration with existing SPICE infrastructure. We show a computational performance analysis, demonstrating faster optimization vs. an existing finite-difference method, SPICE OPUS, the closest competitor in SPICE optimization tools. The result is a speedup factor of 383x for the largest circuit compared within the state-of-the-art, SPICE OPUS. For circuit sizes above approximately 3,500 nodes, the time taken by ADSPICE optimization decreases with increasing problem size, as a proportion of total computational time. The speed bottleneck is shown to be SPICE solves rather than ADSPICE enhancements. Voltage gradients needed for forward-mode AD are benchmarked against Xyce, another state-of-the-art simulator, using an integrated CMOS operational amplifier test circuit. The results match with a maximum error of 0.203%, further validating the accuracy of our method. ADSPICE is shown to enable SPICE, and SPICE-based simulators, with automatic differentiation for gradient optimization, without requiring creation of a new circuit simulator.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Marcus W. Wolff, Alan Brannon. 2026-11-17. ADSPICE: A Method of Automatic Differentiation for Gradient-Based Lumped Circuit Optimization with Native SPICE. https://searcharxiv.org/abs/2611.23571

Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite Search arXiv by Indiciae: BibTeX · RIS.

KEEP EXPLORING

Related papers

The Cesàro Value Iteration

In this paper, we consider undiscouted infinite-horizon optimal control for deterministic systems with an uncountable state and input space. We specifically address the case when the classic value iteration does not converge. For such systems, we use the Ces`aro mean to define the infinite-horizon optimal control problem and the corresponding infinite-horizon value function. Moreover, for this value function, we introduce the Cesàro value iteration and prove its convergence for the special case of systems with periodic optimal operating behavior. For this instance, we also show that the Cesàro value function recovers the undiscounted infinite-horizon optimal cost, if the latter is well-defined.

eess.SY↗

Comfort energy management system for electrified buildings using hydrogen for seasonal storage

Flexible loads and integrated energy storage in electrified buildings can align volatile renewable energy use with consumption. While battery energy storage systems provide short-term flexibility, hydrogen storage enables seasonal energy shifting. However, since hydrogen systems are expensive, coupling a fuel cell with a heat pump can reduce the required size of the hydrogen system and, therefore, investment costs. To fully exploit the flexibility of this integrated energy system, advanced control strategies are needed. This study proposes a comfort-oriented and grid-aware energy management system for an electrified building equipped with photovoltaics, a battery energy storage system, a hydrogen system, a heat pump, and domestic hot water storage. A novel fuzzy logic-based controller coordinates fuel cell and heat pump operation while exploiting building thermal mass as a flexibility resource. The proposed approach bridges the gap between simple rule-based control and model predictive control, enabling adaptive operation without system models, weather and demand forecasts, or high computational effort. The controller is evaluated over twelve winter weeks for a German single-family household and benchmarked against a rule-based controller and an ideal-forecast model predictive controller. Results show improved thermal comfort and lower electricity costs compared to the rule-based controller. Compared to model predictive control, the proposed controller reduces fuel cell operating hours and toggling counts, leading to more practical system operation. Overall, the proposed controller achieves a favorable trade-off between control performance and implementation complexity, combining low information requirements with improved comfort, storage use, and coordinated fuel cell-heat pump operation.

eess.SY↗

A Heuristic for Scheduling Autonomous Vehicles at Intersections

We consider the coordination of autonomous vehicles at unsignalized intersections, where trajectory planning and crossing-order decisions are intrinsically coupled, thereby making their simultaneous optimization intractable in practice. To this end, we propose a heuristic based on a hierarchical structure consisting of a series of nonlinear programs (NLP) in the lower level, which optimizes trajectories of each vehicle for a given crossing order, and a high-level heuristic to design new crossing schedules that exploits sensitivity information from the lower-level NLPs. Extensive numerical simulations across a broad range of traffic scenarios demonstrate that our strategy achieves substantially improved scheduling with respect to first-in-first-out ordering while preserving computational tractability.

eess.SY↗