Debian Codegraph @

contrib/ms-sbvar/switch_dw/state_space/sbvar/dw_csminwel.h

raw
1 /*
2 * Copyright (C) 1996 Christopher Sims
3 * Copyright (C) 2003 Karibzhanov, Waggoner, and Zha
4 *
5 * This free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * It is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * If you did not received a copy of the GNU General Public License
16 * with this software, see <http://www.gnu.org/licenses/>.
17 */
18
19 #ifndef __CSMINWEL_H__
20 #define __CSMINWEL_H__
21
22 // Added by DW to eliminate optpackage.h
23 #define INI_H_CSMINWEL 1.0e-005 //Initial value for the diagonal of inverse Hessian in the quasi-Newton search.
24 //1.0e-05 (sometimes used for SargentWZ USinflation project I)
25 //5.0e-04 (for monthly TVBAR)
26
27 //--- This extern variable allows an input by the user from an input data file.
28 extern double GRADSTPS_CSMINWEL;
29
30 void csminwel(double (*fcn)(double *x, int n, double **args, int *dims),
31 double *x, int n, double *H, double *gh,
32 int (*grad)(double *x, int n, double *g, double **args, int *dims),
33 double *fh, double crit, int *itct, int nit,
34 int *fcount, int *retcodeh, double **args, int *dims);
35
36 void csminwel_SetPrintFile(char *filename);
37 int csminwel_randomseedChanged(int seednumber);
38
39 #endif