How do you give data as argument of fmincon?

2 views (last 30 days)
Cynthia Prevost
Cynthia Prevost on 11 May 2019
Edited: Stephan on 11 May 2019
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!

Answers (1)

Stephan
Stephan on 11 May 2019
Edited: Stephan on 11 May 2019

Tags

Community Treasure Hunt

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

Start Hunting!