ADMB Documentation  11.5.3197
 All Classes Files Functions Variables Typedefs Friends Defines
fmm.cpp
Go to the documentation of this file.
00001 /*
00002  * $Id$
00003  *
00004  * Author: David Fournier
00005  * Copyright (c) 2008-2012 Regents of the University of California
00006  */
00011 #include <fvar.hpp>
00012 
00013 extern  int ctlc_flag;
00014 
00019 fmm::fmm(int nvar, const lvector& ipar, int _disk_save)
00020 : fmm_control(ipar),
00021   w(1,4*nvar), funval(1,10),
00022   xx(0,nvar), gbest(0,nvar), xsave(0,nvar), gsave(0,nvar)
00023 {
00024   disk_save=_disk_save;
00025   if (!disk_save) h.allocate(nvar);
00026   ctlc_flag = 0;
00027   n = nvar;
00028   fbest=1.e+100;
00029 }
00030 
00035 fmm::fmm(int nvar,int _disk_save)
00036 : w(1,4*nvar), funval(1,10),
00037   xx(0,nvar), gbest(0,nvar), xsave(0,nvar), gsave(0,nvar)
00038 {
00039   disk_save=_disk_save;
00040   if (!disk_save) h.allocate(nvar);
00041   ctlc_flag = 0;
00042   n = nvar;
00043   fbest=1.e+100;
00044 //  cout << " In fmm::fmm(int nvar) nvar = " << nvar
00045 //       << " and n = " << n << "\n";
00046 }