How do you give data as argument of fmincon?

2 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Nonlinear Optimization 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by