Hardware Rich Development

Published

Written by

Workbench

Constrained Optimization in PCB Design: Geometry, Reinforcement Learning, and the Future of EDA Automation

Published

Read the Full Series

This article is one part of a walkthrough detailing how we recreated an NXP i.MX 8M Mini–based computer using Quilter’s physics-driven layout automation. 

Constrained Optimization Is the Real Shape of PCB Automation

Constrained optimization is not an abstract concept inside PCB design. Copper, laminate, vias, component bodies, net classes, manufacturing limits, thermal behavior, impedance targets, and review cycles all turn optimization into something physical. A layout system cannot simply search for a beautiful route; serious circuit board layout automation has to find workable designs inside a crowded territory of electrical, geometric, manufacturing, and organizational limits. Quilter's physics-driven AI for electronics design belongs in that territory because the problem is not merely generation, but generation under constraint.

Across conversations with Quilter engineers Chi-Han Peng, Harshat Kumar, and Jarvis Autey, a shared engineering philosophy comes into focus. Automated PCB design is not primarily an AI spectacle. Better language would call it constrained optimization applied to real hardware. Geometry defines the search space, reinforcement learning helps explore possible solutions, and EDA workflows force every algorithmic decision back into the world of schematics, board files, fabrication rules, and engineer review.

Chi-Han approaches the problem through computer graphics, optimization, and visual reasoning. Harshat brings reinforcement learning, applied mathematics, and a practical understanding of compute budgets. Jarvis works near the translation layer between board files, schematic meaning, circuit metadata, and compiler-like systems that need to understand design intent. Their perspectives differ, but each one points toward the same conclusion: useful automation begins when constraints become legible.

Modern PCB design already lives inside constrained optimization. Placement choices affect routing feasibility. Routing choices affect signal integrity, manufacturability, power delivery, and timing. Layer choices affect cost, density, impedance control, and fabrication. Every design decision narrows or reshapes the feasible region, which means a useful system must do more than generate candidates; it must evaluate tradeoffs with enough rigor for engineers to trust the result.

Constraint Gives Automated PCB Design a Search Space

"Imagination without boundary is going to lead to, like, paralysis because there’s no direction." — Jarvis Autey

Jarvis Autey captures the paradox of open possibility with unusual clarity. Hardware engineers understand the point immediately because boundaries do not merely restrict the design process. Board outlines, stackups, component dimensions, keepouts, current limits, spacing rules, impedance targets, and assembly requirements give the search process shape. A routing system with no constraints resembles a map with no roads, no terrain, and no destination.

Many AI conversations describe automation as liberation from limits. PCB design suggests a more grounded view: limits make the problem computable. Without physical and electrical constraints, an automated routing system has no meaningful basis for choosing one path over another. More freedom can produce more noise, while better constraints can produce better search across candidate layouts.

"There’s always a way you can make it faster, you can make more lightweight, you can always decrease the footprint, you can always optimize." — Harshat Kumar

Harshat Kumar frames the same idea through the language of mathematical optimization. Engineering teams rarely optimize one clean objective in isolation. Faster runtime may trade against layout quality. Smaller board area may increase congestion. Lower layer count may reduce cost while making routing harder, and cleaner signal paths may require placement changes elsewhere.

Constrained optimization gives PCB automation a disciplined way to reason through those tradeoffs. A board layout system must search among candidate solutions that satisfy hard requirements while improving soft objectives. Design rules define what cannot be violated, while objective functions define what should be improved. Practical engineering judgment decides whether a mathematically better result is useful in a product workflow.

Mathematical Optimization Becomes Physical in PCB Layout

Mathematical optimization often begins with a compact formulation: maximize or minimize an objective while satisfying a set of constraints. PCB design turns that formulation into a dense physical environment. Traces occupy space, vias consume layer transitions, and components create placement neighborhoods. Copper pours, connectors, mounting holes, test points, and mechanical keepouts all shape the available design region.

A useful application of constrained optimization in PCB design has to respect both hard and soft boundaries. Clearance violations, impossible layer transitions, and broken connectivity are hard failures. Excessive via count, awkward routing, poor symmetry, high congestion, or longer-than-needed paths may be softer penalties. Strong automation must understand the difference because a layout can be technically valid while still feeling risky, inefficient, or difficult to review.

Engineering reality also complicates the meaning of best. A solver might find a marginally cleaner trace topology after a long search, but product teams need results while iteration still matters. A routing strategy might reduce one metric while harming manufacturability or reviewability. Optimization in EDA therefore has to account for board quality, runtime, integration burden, and human trust.

PCB design makes constrained optimization concrete because every abstraction eventually touches copper. Signal integrity depends on geometry. Power delivery depends on width, plane strategy, copper weight, and return paths. Manufacturability depends on fabrication rules, drill constraints, spacing, and assembly tolerances. Effective automation has to carry those realities into the search process rather than treating them as cleanup after generation.

Geometry Turns Electrical Intent Into Something Visible

"My core field is always computer graphics. So about geometry, about optimization and real time rendering." — Chi-Han Peng

"PCB routing, it’s always something to be visualized… it’s pretty much a geometry problem." — Chi-Han Peng

Chi-Han Peng's background in computer graphics gives the essay one of its strongest technical throughlines. PCB routing is visual because electrical relationships become physical arrangements. Components have size, orientation, and placement relationships. Nets become paths through constrained space, while vias, layers, keepouts, and return paths turn connectivity into geometry.

Geometry is where electrical intent becomes visible. Differential pairs become coupled geometries rather than simple connections. Power nets become copper structures with current capacity, thermal behavior, and voltage drop implications. A schematic may describe what connects, but layout geometry decides how those relationships survive in the physical board.

"The traces of the octilinear traces, they just look nice. A lot of tiny traces and then they always follow some patterns." — Chi-Han Peng

Chi-Han's aesthetic comment about octilinear traces deserves technical attention. Clean PCB geometry often looks patterned because constraints produce visible order. Parallel runs, repeated angles, disciplined spacing, clustered functional blocks, and clean escapes from dense components are not merely decorative. Visual regularity can signal that electrical and manufacturing requirements have been resolved into a coherent layout.

Circuit board layout automation has to learn from that visual order without reducing design to surface appearance. A beautiful route can still violate return path expectations, impedance targets, or manufacturing constraints. A dense route can look complex while still satisfying the right tradeoffs. Geometry matters because it carries engineering meaning, not because it creates attractive diagrams.

Circuit Board Layout Automation Breaks When Rules Become Brittle

"Given board file, schematic files, extracting underlying metadata that is required for the compiler… What are the diff pairs, what are the high current nets? What is a crystal oscillator?" — Jarvis Autey

Jarvis describes one of the central technical challenges behind EDA automation. Board files contain geometry. Schematics contain connectivity. Engineering intent often lives in the relationship between those artifacts. A tool cannot optimize or validate a design concept it has not recognized.

A differential pair is not merely two nets with similar names. Coupling, spacing, length matching, impedance control, symmetry, and return path continuity all help define the concept. A high-current net is not merely a wire carrying more amperage. Trace width, copper weight, thermal behavior, voltage drop, and plane strategy all matter. A crystal oscillator is not simply one component in a library; capacitor placement, loop area, noise sensitivity, grounding, and proximity all shape reliability.

"We currently use rigorous rules for identifying these. And then there’s always corner cases that… slip through the rules and then we don’t want to be just chasing more and more and more rules and conditions." — Jarvis Autey

Rule-based automation can identify many explicit patterns, but real hardware design contains too much variation for rules alone. Every footprint library, schematic idiom, reference design, naming convention, connector arrangement, and part substitution introduces new variation. A brittle rule system responds by adding exceptions until the rules become difficult to maintain. Concept extraction becomes necessary when pattern matching reaches the limits of hand-coded conditions.

"We should be able to identify that without having rigorous rules. Whether that’s using like machine learning or just a more advanced kind of system of extracting concepts." — Jarvis Autey

Better circuit board layout automation needs concept extraction, not just pattern matching. Rules still matter, especially when engineers need transparent checks. Learned abstractions become valuable when variation defeats hand-coded conditions. Strong EDA systems will likely combine explicit constraints, learned recognition, physics-aware validation, and reviewable outputs.

Reinforcement Learning in Hardware Needs Budgets, Not Just Rewards

Harshat's background in reinforcement learning adds a crucial layer to the constrained optimization story. Academic optimization often emphasizes proofs, convergence, guarantees, and theoretical performance. Hardware automation has to care about those ideas while also respecting time, compute, workflow, and user trust. In practical EDA, an algorithm's value depends on whether its output arrives while the engineering team can still use it.

"You could have… the best algorithm in theory, but if it takes forever to run, then like, what good is it?" — Harshat Kumar

Reinforcement learning in hardware becomes useful only when the learning system respects engineering budgets. Compute is a budget. Runtime is a budget. Engineering attention is a budget. Board revision cycles, fabrication schedules, and organizational patience are budgets as well.

"You’re trying to balance… the budget of time, the budget of compute… you may have to take… not the best algorithm, but this one is very fast and can get as good of a result in a fraction of the time." — Harshat Kumar

Harshat's point belongs near the center of any serious conversation about applications of constrained optimization in EDA. Optimality always depends on context. A board layout that improves one metric while breaking workflow constraints is not truly optimized for the system that needs to use it. A system that generates several viable candidates quickly may produce more engineering value than one system that slowly searches for a fragile ideal.

Reinforcement learning can help explore design spaces where sequential decisions create long chains of consequence. Placement decisions affect routing, routing decisions affect congestion, and layer decisions affect impedance, cost, and fabrication. Reward functions can guide search, but hardware reality must discipline the reward. Without physical validation, reinforcement learning becomes a game; with constraints, evaluation, and review, learning becomes engineering infrastructure.

Contemporary Research: Safe Reinforcement Learning and Constrained MDPs

Contemporary reinforcement learning research gives Quilter a useful authority bridge because many researchers now describe deployment as a constrained decision-making problem rather than a simple reward maximization task. Safe reinforcement learning often uses constrained Markov decision processes, or CMDPs, to model agents that must improve performance while respecting safety or resource limits. A 2024 IJCAI survey on constraint formulations in safe reinforcement learning organizes the field around how constraints are represented, which matters because different formulations lead to different algorithms and guarantees. A 2025 technical survey on SafeRL and constrained MDPs similarly frames safety as a formal part of the learning problem rather than an after-the-fact filter.

PCB layout automation does not map perfectly onto robotics safety or autonomous-driving benchmarks, but the analogy is useful. A routing agent cannot maximize completion rate while treating clearance, manufacturability, impedance, or current capacity as optional preferences. Many layout constraints behave more like hard operating limits than aesthetic goals. Constraint-aware learning therefore fits hardware better than unconstrained generation because the board has to remain valid at each meaningful step of the design process.

State-wise constraint research also sharpens the point. Some RL formulations treat constraints as cumulative budgets, while others require satisfaction at individual states or time steps. PCB design often needs both modes. A design may tolerate a soft penalty such as extra via count, but it cannot tolerate a broken connection or a clearance violation that makes the board invalid. Strong hardware automation needs a vocabulary for these differences because engineers do not treat every failure mode the same way.

A Quilter-facing version of this research story should avoid overclaiming. Current safe RL papers do not solve PCB design by themselves. Their value lies in framing: credible AI systems need objective functions, constraint representations, evaluation methods, and failure boundaries. For hardware readers, that framing supports a practical claim: AI becomes useful when it respects the constraints that engineers already know matter.

Contemporary Research: AI-for-EDA and Learning Layout Under Physical Objectives

EDA research provides a second credibility bridge. A paper on learning circuit placement techniques through reinforcement learning with adaptive rewards formulates PCB placement as a Markov decision process and reports that RL policies can learn useful placement behavior under reward signals tied to post-routing wirelength. Chip-design research offers a related, higher-profile example through graph placement methodology for fast chip design, where reinforcement learning is applied to physical design objectives rather than generic pattern imitation. Google's open-source Circuit Training repository also reflects the broader movement toward learning systems for placement under concrete physical metrics.

PCB design differs from chip floorplanning in scale, materials, fabrication context, signal behavior, and workflow. Similarity does not mean equivalence. Shared structure still matters: both domains require search under physical constraints, evaluation against multiple objectives, and practical tradeoffs between solution quality and runtime. That makes contemporary AI-for-EDA research useful as a reference point, not as a shortcut.

Quilter's public product story can sit confidently inside this research current without sounding derivative. Recent AI-for-EDA work reinforces the idea that physical design automation gains credibility when learning is tied to layout metrics, constraints, and reviewable outputs. Quilter's challenge extends that idea into PCB design, where board files, schematics, component libraries, constraints, and manufacturing realities must all become part of the design environment. Constrained optimization gives that challenge a precise technical language.

A strong authority essay should position research as context rather than decoration. External papers show that constrained learning, placement optimization, and physical-design AI are active areas of serious study. Quilter's interviews add a more grounded contribution: engineers building PCB automation have to wrestle with the messy translation layer between mathematical optimization and real boards. That layer is where EDA authority lives.

Applications of Constrained Optimization in EDA Are Everywhere

Placement offers one of the clearest applications of constrained optimization in PCB design. Components must fit inside board outlines, respect mechanical interfaces, support routing feasibility, and preserve functional relationships. Regulators, capacitors, connectors, oscillators, antennas, sensors, and high-speed devices each create different placement pressures. Strong automation cannot treat placement as a packing puzzle alone; electrical behavior and downstream routing must influence the search. Quilter's autonomous PCB design narrative should keep this point close to the surface.

Routing adds another layer of constraint density. Traces must connect nets while obeying width, spacing, layer, via, and clearance rules. High-speed signals may require impedance control, length matching, shielding, or careful reference planes. Power nets may require width, copper area, thermal relief, or plane strategies. Dense boards create congestion, and congestion changes which solutions remain feasible.

Power integrity and signal integrity bring physics deeper into the optimization loop. Current capacity, voltage drop, return paths, coupling, discontinuities, stubs, and impedance all depend on layout geometry. Quilter's writing on power electronics PCB layout can serve as a natural internal link because high-current routing makes constraint interaction especially visible. A board that routes successfully but fails review on electrical or manufacturing grounds has not solved the real problem. Automated systems must evaluate layouts against the constraints that determine usefulness.

Workflow constraints matter just as much. EDA tools live inside existing engineering processes, not outside them. File compatibility, ECAD round-tripping, readable outputs, transparent scoring, and engineer review all influence whether automation earns trust. Quilter's schematic to fab-ready PCB workflow is useful here because it turns optimization language into an operational sequence with setup, candidate generation, review, and final CAD ownership. Practical constrained optimization includes the human workflow as part of the design environment.

EDA Automation Requires T-Shaped Engineering

Chi-Han, Harshat, and Jarvis each show why modern EDA automation requires more than one technical lineage. Computer graphics contributes geometry, visualization, search, and spatial reasoning. Reinforcement learning contributes sequential decision-making, reward design, exploration, and policy improvement. Electrical engineering contributes physical constraints, signal behavior, circuit intent, and manufacturability. Software infrastructure turns these ideas into systems that can scale across real projects.

Jarvis's work highlights the importance of translation. A system cannot optimize what it cannot understand. Board files, schematics, component libraries, net metadata, design rules, and user intent must become machine-readable without losing engineering meaning. Failure at that layer can mislead the optimizer, weaken validation, or create outputs that engineers cannot trust.

Chi-Han's perspective shows why spatial intelligence matters. PCB routing is full of shape, pattern, and constraint. Graphics experience helps make sense of geometric complexity, but hardware forces that geometry to obey electrical and manufacturing requirements. Visual fluency becomes more valuable when paired with physics and design-rule awareness.

Harshat's perspective shows why optimization must stay practical. Theory can guide algorithm design, but deployed systems need runtime discipline, resource awareness, and useful tradeoff behavior. Engineering teams rarely need a proof of perfection as much as they need credible candidates, clear evaluations, and fast iteration. Quilter's challenge sits in the overlap between these domains, where geometry, learning, physics, and product judgment must reinforce one another.

Why Constrained Optimization Is the Right Frame for Quilter

Many AI narratives in hardware begin with generation. Quilter's more interesting story begins with constraint. Generated PCB candidates only matter when a system can evaluate whether they satisfy the physical, electrical, and manufacturing requirements of real boards. Search only matters when the search space reflects engineering reality. Automation only matters when engineers can understand, inspect, and trust the output through a visible Quilter interface.

Constrained optimization gives Quilter a sharper authority position than generic AI language. The phrase connects the company’s work to mathematical optimization while keeping the discussion grounded in practical EDA. It also explains why PCB design is different from content generation, image generation, or other software-native AI applications. Hardware has consequences that cannot be edited away after the fact.

Quilter's strongest public narrative should emphasize constraint-aware automation rather than magic. Engineers do not need another claim that AI will replace expertise. Hardware teams need systems that can help them search, evaluate, compare, and improve design candidates under real constraints. Better automation should make tradeoffs clearer, not hide them.

"All models are wrong, but some are useful." — cited by Harshat Kumar

Harshat's aphorism fits this philosophy well. Useful models do not need to contain the entire truth of hardware. They need to help engineers make better decisions inside the constraints that matter. In PCB design, usefulness means viable candidates, recognizable circuit structures, physics-aware checks, reviewable outputs, and faster paths through difficult design spaces.

Constraint Is the Craft of Hardware Automation

Engineering lives between proof and practice. Proof asks what can be guaranteed. Practice asks what works inside a schedule, a fabrication process, an ECAD workflow, a review meeting, and a physical board. PCB automation has to respect both worlds because algorithms become useful only when they survive contact with hardware.

Chi-Han sees routing through geometry, visual structure, and optimization. Harshat sees learning systems through budgets, objectives, and practical runtime. Jarvis sees the difficulty of extracting circuit meaning from board files, schematics, metadata, and real engineering variation. Their combined perspective gives Quilter a more authoritative story than a simple claim about AI for PCB design.

Constrained optimization sits at the center of that story. Constraint gives the search direction. Geometry makes electrical intent visible. Reinforcement learning explores candidate solutions. Physics-aware validation judges whether those solutions matter. Human review keeps automation connected to engineering responsibility.

PCB design will not become powerful by becoming less constrained. Better tools will make constraints more computable, more transparent, and more useful. The future of EDA automation belongs to systems that can reason inside constraint with enough rigor to satisfy engineers and enough flexibility to handle real boards. Hardware automation is not the art of escaping limits; it is the craft of working fluently within them.

FAQ Targets

What is constrained optimization in PCB design?

Constrained optimization in PCB design means improving a board layout while respecting physical, electrical, manufacturing, and workflow limits. These limits can include board outline, trace spacing, impedance targets, layer count, current capacity, component placement, signal integrity, power integrity, and fabrication rules. A useful system must search for better designs without violating the requirements that make a board manufacturable and electrically reliable. In automated PCB design, constrained optimization helps determine which candidate layouts are not merely possible, but actually useful.

Why does constrained optimization matter for EDA?

EDA tools operate inside dense technical constraints. Placement, routing, design-rule checking, signal integrity review, power integrity, manufacturability, and ECAD handoff all require structured tradeoffs. Constrained optimization gives EDA automation a framework for improving design outcomes while preserving the limits engineers care about. Without that framework, automation risks generating outputs that look plausible but fail under review.

How does reinforcement learning apply to hardware design?

Reinforcement learning can apply to hardware design when layout decisions are framed as sequential choices inside a constrained environment. A system can explore candidate placements or routes, receive feedback through reward signals, and improve future decisions. Hardware applications require more discipline than toy environments because rewards must reflect physical constraints, electrical behavior, manufacturability, runtime, and reviewability. Reinforcement learning in hardware becomes credible when it is tied to real engineering evaluation.

Why is PCB routing a geometry problem?

PCB routing is a geometry problem because traces, vias, components, copper regions, keepouts, and board outlines all occupy physical space. Electrical relationships become layout structures through spacing, coupling, length, width, layer transitions, and return paths. Geometry does not replace electrical engineering, but it carries electrical intent into the physical board. Automated routing systems need geometric reasoning in order to produce layouts that work.

Why do rule-based EDA systems become brittle?

Rule-based EDA systems become brittle when they rely on fixed conditions to identify design concepts that vary across real projects. Differential pairs, high-current nets, oscillators, decoupling networks, and switching regulators can appear through many naming conventions, schematic patterns, footprint libraries, and layout styles. More rules can catch more cases, but each new exception increases complexity. Stronger automation needs concept extraction, transparent rules, learned recognition, and physics-aware validation working together.

Try Quilter for Yourself

Project Speedrun demonstrated what autonomous layout looks like in practice and the time compression Quilter enables. Now, see it on your own hardware.

Get Started

Validating the Design

With cleanup complete, the final question is whether the hardware works. Power-on is where most electrical mistakes reveal themselves, and it’s the moment engineers are both nervous and excited about.

Continue to Part 4

Cleaning Up the Design

Autonomous layout produces a complete, DRC'd design; cleanup is a brief precision pass to finalize it for fabrication.

Continue to Part 3

Compiling the Design

Once the design is prepared, the next step is handing it off to Quilter. In traditional workflows, this is where an engineer meets with a layout specialist to clarify intent. Quilter replaces that meeting with circuit comprehension: you upload the project, review how constraints are interpreted, and submit the job.

Continue to Part 2