How do you give data as argument of fmincon?

조회 수: 2 (최근 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 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