Asked by Kenta Yoshida
on 12 Jan 2013

Hi,

Is it possible to get parameter estimation variances after constrained optimization?

I am now using lsqnonlin function to optimize 7 parameters with 14 target values, using 'trust-region-reflective' algorithm.

I referred to the following threads, but they seems like mentioning on unconstrained optimizations. http://www.mathworks.com/matlabcentral/answers/51136 http://www.mathworks.com/matlabcentral/answers/45232 http://www.mathworks.com/matlabcentral/newsreader/view_thread/314454

Thanks in advance

*No products are associated with this question.*

Answer by Matt J
on 12 Jan 2013

Accepted Answer

If none of the constraints are active at your solution, you can estimate the variances in the unconstrained way.

Otherwise, since it's a pretty small problem, why not just estimate the parameter variance by running Monte Carlo simulations?

Kenta Yoshida
on 13 Jan 2013

I meant that the residuals are in R^14, and the parameters are continuous values.

Matt J
on 13 Jan 2013

Kenta Yoshida
on 14 Jan 2013

Thanks a lot again. I will perform that kind of calculation based on the optimized parameter values.

Log in to comment.

Related Content

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn moreOpportunities for recent engineering grads.

Apply Today
## 2 Comments

## Matt J (view profile)

Direct link to this comment:https://www.mathworks.com/matlabcentral/answers/58611-nonlinear-fit-with-constraints-in-r2012b#comment_122173

The threads you've referenced refer to parameter estimation variances, not parameter estimation errors. To calculate errors, you need to know their true values. I'll assume you really mean the former.

## Kenta Yoshida (view profile)

Direct link to this comment:https://www.mathworks.com/matlabcentral/answers/58611-nonlinear-fit-with-constraints-in-r2012b#comment_122174

Thanks Matt, I corrected my question. As you guessed, what I wanted to refer to was parameter estimation variances.

Log in to comment.