Hi,

I have an issue concerning optimization : I am trying to simulate "simulated_gain(frequency)" and making it the closest possible to some "measured_gain(frequency)" and I don't know how to tell the optimization components to fit to every point of the simulation.

I have succeeded to make it fit the maxima of the curves ("max(simulated_gain)-max(measured_gain)=0") but I couldn't go further.

Thanks for helping,

Pascal.

I have an issue concerning optimization : I am trying to simulate "simulated_gain(frequency)" and making it the closest possible to some "measured_gain(frequency)" and I don't know how to tell the optimization components to fit to every point of the simulation.

I have succeeded to make it fit the maxima of the curves ("max(simulated_gain)-max(measured_gain)=0") but I couldn't go further.

Thanks for helping,

Pascal.

Goal

Expr="abs( db(simulated_gain) - db(measured_gain) )"

Min =

Max = 0

This will be evaluated at each simulation frequency and the optimizer will try to minimize the difference between the two curves.