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. How can I add a variable, x in my constraints. Workable code: from lmfit import Model, Parameters #create x and y data to be used for curve fitting xip=[ 0.02237461, 0.0983837 , 0.25707382, 0.56959641, 1.33419197, 4.95835927] yip=[0.20085822, 0.23583258, 0.28996988, 0.36350284, 0.47981232, 0.67602165] #function to