Lower and Upper bounds in LSQNONLIN

조회 수: 4 (최근 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