Fit parameter's relation fixed

Hello all,

I have 7 parameter’s in my fit function. Among them, the sum of the second and third parameter should be 1 (physically). I wonder, is there is any way to fix this relation or not?

Thank you.

In your fit function, simply set “par3 = 1. - par2” and reduce the total number of free parameters of your fit function by one.
Or, redefine one of your free parameters, e.g. “par3 = par2 + original_par3” and then fix “par3” to 1. while doing the fit.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.