|
楼主,我用你的命令运行时出现两个问题,请指教:
1、[ kappa2 LL2] = fmincon('claytonCL',theta0,[],[],[],[],lower,[],[],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 520
Warning: Your current settings will run a different algorithm
(interior-point) in a future release.
> In fmincon at 525
2、>> [ kappa6 LL6] = fmincon('gumbelCL',theta0,[],[],[],[],lower,[],[],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 520
Warning: Your current settings will run a different algorithm
(interior-point) in a future release.
> In fmincon at 525
Cannot find an exact (case-sensitive) match for 'Gumbel_cdf'
The closest match is: gumbel_cdf in C:\copula\gumbel_cdf.m
Error in gumbelCL (line 26)
CL = log(Gumbel_cdf(data(:,1),data(:,2),theta)) - log(data(:,1)) -
log(data(:,2));
Error in fmincon (line 635)
initVals.f = feval(funfcn{3},X,varargin{:});
Caused by:
Failure in initial user-supplied objective function evaluation. FMINCON
cannot continue.
|