MATLAB Answers

fmincon, quadprog or other

3 ビュー (過去 30 日間)
Orongo
Orongo 2018 年 2 月 16 日
回答済み: Torsten 2018 年 2 月 16 日
Hi, I want to minimize (B-MU)^2, where B is a vector of length 106 (ages x=1 to x=106) and MU is expressed as below equation. By minimizing I want to find optimal a, b and c. How can I do this? Should I use fmincon, quadprog or other function? Any advise is much appreciated. Thanks!

回答 (1 件)

Torsten
Torsten 2018 年 2 月 16 日
Use "lsqcurvefit".
Best wishes
Torsten.

Community Treasure Hunt

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

Start Hunting!

Translated by