optimization with many variables - lsqnonlin

13 ビュー (過去 30 日間)
omer
omer 2014 年 2 月 13 日
コメント済み: Orion 2024 年 10 月 25 日
Hi, I have an optimization problem with a large amount of variables. could be 100-10,000. Assuming that I can produce a similar amount of function, and that I have good starting guess, How many variables can lsqnonlin handle?
Is there a better mathod to solve these type of problems?
thanks

採用された回答

Alan Weiss
Alan Weiss 2014 年 2 月 13 日
There is no set limit on the number of variables you can use. People routinely use Optimization Toolbox to solve nonlinear problems with thousands of variables. With a good starting guess, you can expect lsqnonlin to work.
That said, there are techniques that can speed lsqnonlin, such as using a Jacobian pattern or analytic Jacobian, or even a Jacobian multiply function. See lsqnonlin options.
Alan Weiss
MATLAB mathematical toolbox documentation

その他の回答 (1 件)

Abdelwahab Afifi
Abdelwahab Afifi 2020 年 5 月 12 日
I wanna avoid defining these large variables manually. Is there any simple method for this?
x(1) x(2) x(3) ...... x(n)
  1 件のコメント
Orion
Orion 2024 年 10 月 25 日
Yes, use a table.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeNonlinear Optimization についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by