Lower and Upper bounds in LSQNONLIN

2 次查看(过去 30 天)
Ankit
Ankit 2011-11-29
I am currently using the LSQNONLIN method in order to minimise an equation of n variables using least square.
For the variable I want to give the values of the lower and upper bounds as 1 and -1 respectively.
but during the optimisation in the toolbox, if i provide the starting point of the variable as a positive number between 0 and 1, then it will continue to optimize till the value of the variable is near 0, but does not then later take a negative value for the variable.
And if i provide a negative start point, thenthe value is not altered only.
What can i do in order to make it search for a solution in the entire range of -1 to 1.

回答(1 个)

Steve Grikschat
Steve Grikschat 2011-12-13
The start point is one of a few things you can change to influence the solver. There are other options (tolerances, etc) that may change the behavior as well.
However, it sounds like there may be multiple minima in your problem. Which of the different start points (positive or negative) gives the smallest residual?
You may opt to try many different start points to find the best solution.

类别

Help CenterFile Exchange 中查找有关 Genetic Algorithm 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by