楼主: sisters
5558 11

[问答] 大侠们帮我看看,程序错在哪里? [推广有奖]

11
lucy嘻 发表于 2014-2-10 10:08:55
sisters 发表于 2014-2-9 17:31
在 google 里直接搜索M程序。 http://www.wiley.com/legacy/wileychi/koopbayesian/supp/tdis_inv.m
我把这个M程序放进工具箱之后,还是运行不出来,不知道大侠有没有遇到过啊,这是怎么回事呢,十分感谢
[ kappa2 LL2] = fmincon('tcopulaCL',theta0,[],[],[],[],lower,upper,[],options,[u,v])
Warning: To use the default trust-region-reflective algorithm you must
supply the gradient in the objective function and set the GradObj option
to 'on'. FMINCON will use the active-set algorithm instead. For
information on applicable algorithms, see Choosing the Algorithm in the
documentation.
> In fmincon at 517
Warning: Your current settings will run a different algorithm
(interior-point) in a future release.
> In fmincon at 522
Undefined function 'beta_inv' for input arguments of type 'double'.

Error in tdis_inv (line 25)
x = beta_inv(p,1/2,a/2);

Error in tcopulaCL (line 33)
   x = tdis_inv(data(:,1),nu);

Error in fmincon (line 640)
      initVals.f = feval(funfcn{3},X,varargin{:});

Caused by:
    Failure in initial user-supplied objective function evaluation.
    FMINCON cannot continue.

12
彩虹眼泪 发表于 2016-1-17 00:39:43
sisters 发表于 2014-2-9 17:31
在 google 里直接搜索M程序。 http://www.wiley.com/legacy/wileychi/koopbayesian/supp/tdis_inv.m
可是楼主,又告诉我beta_inv这个程序没有,怎么解决啊?

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-26 10:40