ADMB Documentation  -a65f1c97
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
fmmt1.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 
17 extern int ctlc_flag;
18 fmmt1::fmmt1(int nvar, const lvector& ipar)
19 : fmm_control(ipar),
20  w(1,4*nvar),
21  funval(1,10),
22  xx(0,nvar),
23  gbest(0,nvar),
24  xsave(0,nvar),
25  gsave(0,nvar)
26 {
27  ctlc_flag = 0;
28  n = nvar;
29 }
30 
35 fmmt1::fmmt1(int nvar,int _xm)
36 : w(1,4*nvar),
37  funval(1,10),
38  xstep(0,_xm+1,1,nvar),
39  xrho(0,_xm+1),
40  rrr(1,nvar),
41  xy(0,_xm+1,1,nvar),
42  xold(1,nvar),
43  gold(1,nvar),
44  xx(0,nvar),
45  gbest(0,nvar),
46  xsave(0,nvar),
47  gsave(0,nvar)
48 {
49  ctlc_flag = 0;
50  n = nvar;
51  xm=_xm;
52  xrho.initialize();
53 // cout << " In fmm::fmm(int nvar) nvar = " << nvar
54 // << " and n = " << n << "\n";
55 }
Description not yet available.
Definition: fvar.hpp:656
Function minimizer control.
Definition: fvar.hpp:3178
int xm
Definition: fvar.hpp:3340
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
void initialize(void)
Initialze all elements of dvector to zero.
Definition: dvect5.cpp:10
fmmt1(int nvar, int _xm=7)
Description not yet available.
Definition: fmmt1.cpp:35
dvector xrho
Definition: fvar.hpp:3342
#define w
int n
Definition: fvar.hpp:3361
int ctlc_flag
Definition: gradstrc.cpp:68