Skip to content
Prev 83384 / 398503 Next

Parameter Constraints in nls.lm()

Have you referred this question to the maintainer of "minpack.lm", 
the package containing "nls.lm"?  "help(package='minpack.lm')" should 
give you a name and an email address.

	  My two favorite techniques for handling constraints are as follows:

	  (1) Eliminate the constraints by transformations, e.g., logs or logits.

	  (2) Add a penalty for violating the constraints, as you suggested.

	  The last time I specified constraints inside nlminb or optim, the 
minimizer died when it tested values outside the constraints, for which 
my function died or returned NAs.  That was a few years ago, and the 
functions may be better today, but that's what I've done.

	  hope this helps.
	  spencer graves
Kilian Plank wrote: