MATLAB Answers

0

How do you give data as argument of fmincon?

Asked by Cynthia Prevost on 11 May 2019
Latest activity Edited by 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!

  0 Comments

Sign in to comment.

Tags

1 Answer

Answer by Stephan
on 11 May 2019
Edited by Stephan
on 11 May 2019

  0 Comments

Sign in to comment.