Disable OSR unit tests for optimizers not supported by Octave
parent
1a3d8d0b26
commit
91d8ce38bc
|
@ -28,7 +28,7 @@ options_.nograph=1;
|
|||
options_.nocorr=1;
|
||||
osr_params gammax0 gammac0 gamma_y_ gamma_inf_;
|
||||
|
||||
|
||||
if ~isoctave
|
||||
optim_weights;
|
||||
inflation 1;
|
||||
y 1;
|
||||
|
@ -107,3 +107,4 @@ end
|
|||
if max(abs((cell2mat(struct2cell(oo_.osr.optim_params))-cell2mat(struct2cell(oo_covar_single.osr.optim_params)))./cell2mat(struct2cell(oo_.osr.optim_params))))>1e-4
|
||||
error('Parameters should be identical')
|
||||
end
|
||||
end
|
|
@ -41,6 +41,7 @@ gammac0 = 1.5;
|
|||
gamma_y_ = 8;
|
||||
gamma_inf_ = 3;
|
||||
|
||||
if ~isoctave
|
||||
osr(opt_algo=7);
|
||||
%compute objective function manually
|
||||
objective=oo_.var(strmatch('y',M_.endo_names,'exact'),strmatch('y',M_.endo_names,'exact'))+oo_.var(strmatch('inflation',M_.endo_names,'exact'),strmatch('inflation',M_.endo_names,'exact'))+oo_.var(strmatch('dummy_var',M_.endo_names,'exact'),strmatch('dummy_var',M_.endo_names,'exact'));
|
||||
|
@ -107,3 +108,4 @@ end
|
|||
if max(abs((cell2mat(struct2cell(oo_.osr.optim_params))-cell2mat(struct2cell(oo_covar_single.osr.optim_params)))./cell2mat(struct2cell(oo_.osr.optim_params))))>1e-4
|
||||
error('Parameters should be identical')
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue