How do you give data as argument of fmincon?

1 回表示 (過去 30 日間)
Cynthia Prevost
Cynthia Prevost 2019 年 5 月 11 日
編集済み: Stephan 2019 年 5 月 11 日
Hi,
I want to optimize a loglikelihood. I use the function fmincon for this, but I also need to give the data as argument. How can I do that?
The code is:
[x,fval]=fmincon(@Loglike,[0.1,0.1,0.1,0.1,0.01,0.02,0.8],[0 0 0 0 0 1 1],1);
Thanks in advance!

回答 (1 件)

Stephan
Stephan 2019 年 5 月 11 日
編集済み: Stephan 2019 年 5 月 11 日

カテゴリ

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