ADMB Documentation  -a65f1c97
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
fmm.cpp
Go to the documentation of this file.
1 /*
2  * $Id$
3  *
4  * Author: David Fournier
5  * Copyright (c) 2008-2012 Regents of the University of California
6  */
11 #include <fvar.hpp>
12 
13 extern int ctlc_flag;
14 
19 fmm::fmm(int nvar, const lvector& ipar, int _disk_save)
20 : fmm_control(ipar),
21  w(1,4*nvar), funval(1,10),
22  xx(0,nvar), gbest(0,nvar), xsave(0,nvar), gsave(0,nvar)
23 {
24  disk_save=_disk_save;
25  if (!disk_save) h.allocate(nvar);
26  ctlc_flag = 0;
27  n = nvar;
28  fbest=1.e+100;
29 }
30 
35 fmm::fmm(int nvar,int _disk_save)
36 : w(1,4*nvar), funval(1,10),
37  xx(0,nvar), gbest(0,nvar), xsave(0,nvar), gsave(0,nvar)
38 {
39  disk_save=_disk_save;
40  if (!disk_save) h.allocate(nvar);
41  ctlc_flag = 0;
42  n = nvar;
43  fbest=1.e+100;
44 // cout << " In fmm::fmm(int nvar) nvar = " << nvar
45 // << " and n = " << n << "\n";
46 }
fmm(int nvar, int disk_save=0)
Description not yet available.
Definition: fmm.cpp:35
Description not yet available.
Definition: fvar.hpp:656
int disk_save
Definition: fvar.hpp:3311
Function minimizer control.
Definition: fvar.hpp:3178
double fbest
Definition: fvar.hpp:3297
int n
Definition: fvar.hpp:3310
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
dfsdmat h
Definition: fvar.hpp:3293
#define w
void allocate(int n)
Description not yet available.
Definition: dfsdmat.cpp:142
int ctlc_flag
Definition: gradstrc.cpp:68