How do I add "internal" upper and lower bounds to the function lsqcurvefit?
조회 수: 2 (최근 30일)
이전 댓글 표시
Hello everyone,
I'm having trouble understanding the documentation for the function lsqcurvefit, and in particular the sections discussing the upper and lower bounds of the minimization. I have the sample data E' and an equation for the simulated data E, and the minimization would look as such:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1126475/image.png)
Notably,
. How would I use lb and ub to specify that this condition must hold, in addition to setting lb = 0 and ub =
for the whole minimization? Would this function even work in my case because I have more than one parameter which needs to be fit?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1126480/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1126485/image.png)
Thank you,
Warren
댓글 수: 0
채택된 답변
Torsten
2022년 9월 15일
The condition lambda_1 <= lambda_2 has to be set in A,b of the mimimizer "fmincon".
"lsqcurvefit" is not suited in this case.
댓글 수: 2
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!