"WeiAn" wrote in message <o22efv$jgu$1@newscl01ah.mathworks.com>...
> When I use lsqlin to solve this optimisation problem, it shows the all x(i)=1, and the convergence is satisfied.
>
> How should I do? lsqlin doesnot have the tolerance setting.
What do you want to do??? lsqlin returns rightly the best solution, meaning minimize |A*x-b|, with the given constraints.
You can't tell MATLAB solve a pb and expect getting something else.
> When I use lsqlin to solve this optimisation problem, it shows the all x(i)=1, and the convergence is satisfied.
>
> How should I do? lsqlin doesnot have the tolerance setting.
What do you want to do??? lsqlin returns rightly the best solution, meaning minimize |A*x-b|, with the given constraints.
You can't tell MATLAB solve a pb and expect getting something else.