How can I perform an S-parameter optimization over a range of frequencies where the parameter is optimized at one frequency, then optimized again at another frequency, then optimized again at another frequency, and so on resulting in a list of optimum parameters for each frequency?

If I select a single point in SP1, then it results in the parameter optimized at that frequency. If I select a range of frequencies in SP1, then it results in the parameter optimized to best fit the frequency range but only produces one value whereas I want a separate optimized value at each frequency point.

I am attempting to determine the Z0 of a transmission line by optimizing the characteristic impedances of the Term component to give a minimum dB(S11). I have an S-parameter dataset of the transmission line measured over a range of frequencies and I want to calculate the Z0 of the transmission line at every frequency point so I can plot of graph of how the Z0 varies with frequency.

If I select a single point in SP1, then it results in the parameter optimized at that frequency. If I select a range of frequencies in SP1, then it results in the parameter optimized to best fit the frequency range but only produces one value whereas I want a separate optimized value at each frequency point.

I am attempting to determine the Z0 of a transmission line by optimizing the characteristic impedances of the Term component to give a minimum dB(S11). I have an S-parameter dataset of the transmission line measured over a range of frequencies and I want to calculate the Z0 of the transmission line at every frequency point so I can plot of graph of how the Z0 varies with frequency.

If you run the optimization, the parameter sweep takes precedence and starts to sweep the value of myfreq. For each value of myfreq the optimization, defined by Optim1, is performed. Each optimized parameter will be a list of values, one for each frequency.