How can I put a constraint on two of the parameters, for example m1+m2=1?

Within your curve fit definition, use (1-m1) in place of m2.

Scroll to Top