Handouts
LLM 遭遇 多個限制條件的複雜問題
課堂練習
Deadline: This Saturday at 23:59
Send all the share links to me chang212@gmail.com by email with subject EX#5 [your id, your name]
1. Design a Two-Stage BJT Amplifier according to goals specified using A* (Parameters to optimize RE1, RC1. RE2. RC2)
2. Optimize LM3886 class AB audio amplifier IC using A* (Parameters to optimize: resistors except the load)
A Search Setup*
- State space: 5 components × 5 E12 values each = 3,125 possible states
- g(n): actual steps taken from the start configuration
- h(n): circuit performance cost (the heuristic) — sum of 5 weighted penalties
- f(n) = g + h: A* priority queue ordering
Cost function (5 components, all minimized):
- Gain: quadratic penalty for deviation from 26 dB (20×)
- f_low: penalty if low-frequency cutoff exceeds 10 Hz
- f_high: penalty if high-frequency cutoff falls below 100 kHz
- Bias: penalizes Rb1 ≠ Rb2 (asymmetric thermal tracking)
- Re stability: log-scale penalty away from 0.47 Ω optimum






.png)





