Patent ID: 6922819

Claim:
A method for optimizing an electrical circuit by tuning one or more component sizes and values, the method comprising: formulating an optimization problem involving one or more waveform shaping requirements; determining one or more behaviors of the electrical circuit including one or more actual waveforms of the electrical circuit; generating one or more error signals, wherein each of said one or more error signals is a difference between one actual waveform and one corresponding desired waveform of the electrical circuit; determining one or more quality metrics from each of said one or more error signals, wherein each of said one or more quality metrics is a single valued measure of a match between said one actual waveform and said one corresponding desired waveform; determining the values of the one or more of the quality metrics and gradients of the one or more of the quality metrics with respect to the one or more of the component sizes and values; and using the values and gradients of the one or more of the quality metrics to iteratively change the component sizes and values so that each said one actual waveform more closely matches said one corresponding desired waveform.