Circuit Optimizer with a Full-Space KKT System
Amplifier sizing by Newton on the full KKT system with a primal-dual interior point method and Hessian regularisation.
My contribution
I wrote the stamps and test case 1, chose step limiting and the Hessian-regularisation bonus, and wrote the write-up; Claude Code implemented the bonus from my handoff spec.
- Affiliation
- 18-762 Circuit Simulation and Optimization Methods
- Dates
- Fall 2026
- Role
- Individual project on course skeleton code
- Topics
- Optimization and Simulation
- Tools
- Python, Newton-Raphson, Interior point
Contents
01
The problem
I optimized an amplifier design (transistor widths S_N and S_P, bias V_IN) by solving the whole KKT system with Newton and a primal-dual interior point method. On the gain-weighted test case, the solver either stalled or converged to the wrong design. Convergence alone doesn't mean the design is any good.
02
My contribution
This was an individual project on a course framework with an independent KKT checker. I did the stamps and test case 1, then chose step limiting for Part 3. For the bonus, Hessian regularization was suggested in our discussion and adapted from my 18-448 coursework (the merit-slope test from the SQP homework and Hessian damping from the linkage solver). Claude Code implemented and ran it from a handoff spec. I wrote the write-up and am presenting it.
03
Constraints
The design had an area budget (S_N + S_P = 12) and bounds S ≥ 1. Every result had to pass the course checker. The bonus heuristic had to be one not covered in 18-762. Turning the switch off had to give bit-for-bit baseline results, and the write-up was about 2.5 pages.
04
Design decisions
Step limiting fixed the stall but exposed a deeper problem, so for the bonus I added positive curvature to the design-variable diagonal only when the Newton step would go uphill in the merit function, growing it 10x until the step goes down. It changes only the matrix, never the residual, so wherever the solver stops is still a true KKT point. I'd consider a trust-region version as the alternative.
05
What was difficult
The baseline jammed against the S_N ≥ 1 bound: the slack and multiplier collapsed together, and the KKT condition number went from 4.7e6 to 1.7e15. With the step cap, Newton converged cleanly but to the top of a hump: the start sits near a gain minimum, and Newton only looks for zero slope. The δ sweep was also counterintuitive: a small δ (1e-4) made the step four times larger and still uphill before 1e-3 reversed it.
06
Evidence
The step-capped run reached A0 = 183. Both regularized runs reached S_N = 11, S_P = 1, V_IN = 0.4285 V and A0 = 317.8 (1.68x the netlist design), which is the best point in a brute-force scan. All passed the checker with residuals at or below about 1e-9. Regularization fired exactly once, at iteration 1, for two extra solves, and never fired on test case 1.
07
Current status
This is a graded course simulation. The code and write-up are done, and the final presentation is in progress.
08
What I would change next
The test uses the merit (f plus a KCL penalty), so a large KCL error can hide a rise in f. I'd try an ℓ1 merit, test on circuits with more transistors and design variables, and compare against IPOPT's inertia correction.
References and context
Background material and tools. Not personal publications.
- Roychowdhury and Melville, homotopy for global DC convergence (IEEE TCAD 2006) — the gain-reduction homotopy the DC solver adapts
Related work