Maximum likelihood Garch with fmincon

조회 수: 5 (최근 30일)
Karim Hasouna
Karim Hasouna 2020년 7월 11일
댓글: Matt J 2020년 7월 11일
Guys,
I am working to create a model Garch with the implementation of another exogenous variable; but I have some problem with the function fmincon
I have a log_lk_GARCH11VIX function with y data.
theta = [0.1;0.3;0.2;0.4];
lb = [0;
0
0
0];
ub = [100;
0.999999
0.999999
0.999999];
%too many input
[x,fval,exitflag,output,labda,grad,hessian] = fmincon('log_lk_GARCH11VIX',theta,[],[],[],[],lb,ub)
this is the error:
Error using barrier
Objective function is undefined at initial point. Fmincon cannot continue.
Error in fmincon (line 834)
[X,FVAL,EXITFLAG,OUTPUT,LAMBDA,GRAD,HESSIAN] =
barrier(funfcn,X,A,B,Aeq,Beq,l,u,confcn,options.HessFcn, ...
Error in esti (line 16)
[x,fval,exitflag,output,labda,grad,hessian] =
fmincon('log_lk_GARCH11VIX',theta,[],[],[],[],lb,ub)

답변 (1개)

Matt J
Matt J 2020년 7월 11일
Check log_lk_GARCH11VIX(theta). It is returning a bad value.
  댓글 수: 3
Karim Hasouna
Karim Hasouna 2020년 7월 11일
I think there is a mistake in the fmincon input/outputs.
I don't know where.
Matt J
Matt J 2020년 7월 11일
I suppose everything is okay here.
Why? The error message has told you that the objective function returns a bad value at
theta = [0.1;0.3;0.2;0.4];
Did you check the output when this particular theta is given?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Conditional Variance Models에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by