Constraints On Curve Fitting Parameters
I am trying to impose bounds and constraints in my quadratic curve fitting process. Objective is to find coefficients a,b and c. Imposing constraint on b: delta-2*a*x is my doubt.
Solution 1:
What error do you get?
It looks to me like the code should work. But, in your message you said you wanted to constraint c
to be delta+b+2*a*x
while in your code you have delta-b-2*a*xpara
. Is there a sign problem?
You also initialize delta
to 5e-2, but set it's maximum value to 0. That seems like a mistake, possibly related to confusing signs.
Post a Comment for "Constraints On Curve Fitting Parameters"