[Date Index] [Thread Index] [Author Index]
Hi, no, because NonlinearRegression use *unconstrained* nonlinear optimization methods. Giving a range for x would turn the problem into a constrained optimization problem and Mathematica has no solver for it :-) Regards Jens David Pires wrote: > > I want to fit my data with a function such as: > f(x)=Sqrt(a-b*x), where a and b are the parameters I want to adjust and x > is the variable. The problem is that there is only a given range of x for > that f(x) has real values. When I use the NonlinearRegression (or > NonlinearFit) command, Mathematica gives error messages and aborts the > fitting process. > > I'd like to know if someone knows how to set the range of x when using > that command. > Thanks.