全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 MATLAB等数学软件专版
5426 11
2013-01-01

%  Example code for some copula functions

%  Andrew Patton

%  27 February 2006

[ kappa8 LL8] = fmincon('tcopulaCL',theta0,[],[],[],[],lower,upper,[],options,[u,v]);
Warning: Trust-region-reflective algorithm does not solve this type of problem, using active-set
algorithm. You could also try the interior-point or sqp algorithms: set the Algorithm option to
'interior-point' or 'sqp' and rerun. For more help, see Choosing the Algorithm in the
documentation.
> In fmincon at 472
??? Undefined function or method 'tdis_inv' for input arguments of type 'double'.Error in ==> tcopulaCL at 33
   x = tdis_inv(data(:,1),nu);
Error in ==> fmincon at 574
      initVals.f = feval(funfcn{3},X,varargin{:});
Caused by:
    Failure in initial user-supplied objective function evaluation. FMINCON cannot continue.

就是Patton_copula_toolbox里面的copula_example_code.m的
% 8. Student's t copula
lower = [-0.9 , 2.1 ];
upper = [ 0.9 , 100 ];
theta0 = [kappa1;10];
[ kappa8 LL8] = fmincon('tcopulaCL',theta0,[],[],[],[],lower,upper,[],options,[u,v]);

一运行就出错---

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2013-2-14 20:00:51
提示: 作者被禁止或删除 内容自动屏蔽
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2013-2-14 20:50:49
遥远的生命 发表于 2013-2-14 20:00
找下你的软件包里面有没有tdis_inv这个fx性质的m函数句柄
再看看tcopulaCL文件里面有没有function tdis_in ...
谢谢你 这个弄明白了
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2013-6-9 20:33:59
sisters 发表于 2013-2-14 20:50
谢谢你 这个弄明白了
楼主,你是怎么解决的,我也遇到了这个问题,能不能分享下?谢谢~
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2014-1-6 11:16:09
楼主,我也遇到了这个问题,你是怎么解决的,可以告诉我下吗?
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2014-1-18 20:25:01
qi_ecmj 发表于 2014-1-6 11:16
楼主,我也遇到了这个问题,你是怎么解决的,可以告诉我下吗?
按二楼的解答
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

点击查看更多内容…
相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群