How to put a restraint on a parameter during optimiztion.<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />Hello all,
Recently, I noticed that every once in a while, a parameter that I have been solving for using non-linear least squares has been coming up as negative. Unfortunately, it is theoretically impossible for the parameter to be negative. How can I add a restraint to the script so that it cannot be negative?
Thank you,
--SurfaceThought
Re: How to put a restraint on a parameter during optimiztion.<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />JMP Nonlinear allows you to specify upper and lower bounds for each parameter.
Example:
Nonlinear(
Y( :y ),
X( :Formula ),
Parameter Bounds( b0( 10, 20 ), b1( 3, 5 ) ),
Newton,
Finish
);
This is available when you supply a custom formula. You can accomplish the same thing interactively by using the red triangle pull down menu for "Nonlinear Model" on the "Control Panel" dialog box. The first item is "Parameter Bounds". (In fact that's how I generated the script above ... I did the interactive thing and then saved script to script window). I don't see a way to do this using the simplified "Curve Fit" personality.
Re: How to put a restraint on a parameter during optimiztion.<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />mpb -
This was exactly what I was looking for! Just noticed I never marked it as the correct answer. Thanks!