Log In | Get Help   
Home My Page Projects Code Snippets Project Openings Mareframe
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files
[mareframe] View of /trunk/paramin-beta/paraminsimann.h
[mareframe] / trunk / paramin-beta / paraminsimann.h Repository:
ViewVC logotype

View of /trunk/paramin-beta/paraminsimann.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1 - (download) (annotate)
Mon Feb 10 17:09:07 2014 UTC (10 years, 4 months ago) by agomez
File size: 2029 byte(s)
Initial version based on Gadget 2.2.00
#ifndef paraminsimann_h
#define paraminsimann_h

#include "paraminsearch.h"
class ParaminSimann : public ParaminSearch {
private:
  /**
   * \brief starting values for the variables of the function
   */
  DoubleVector xstart;      
  /**
   * \brief the function value at xstart..
   */
  double fstart;        
  /**
   * \brief the variable vector returned each time.
   */
  DoubleVector xp;          
  /**
   * \brief the function value returned each time.
   */
  double fp;          
  DoubleVector fstar;
  double cs;
  double uratio;
  double lratio;
  /**
   * \brief the step length vector.
   */
  DoubleVector vm;          
  DoubleVector initialVM;
  double T;
  /**
   * \brief number of iterations before temperature reduction.
   */
  int nt;             
  int check;
  int ns;
  double eps;
  double rt;
  /**
   * \brief 1 = maximization, 0 = minimization.
   */
  int maxim;         
  /**
   * \brief acpPointID[0..numvar], acpPointID[i] = -1 if point with trial parameter x[i] was not accepted else acpPointID[i] = returnID of the value which gives the accepted point.
   */
  IntVector acpPointID;
  //int* acpPointID;     
  /**
   * \brief number of accepted points for each parameter
   */
  // int* nacp;
  IntVector nacp;
  /**
   * \brief total number of function evaluations.
   */
  // int nfcnev;     
  /**
   * \brief denotes in what order the points were sent
   */
  // int *ID;
  IntVector ID;
  int returnID;
  /**
   * \brief number of hosts available.
   */
  int NumberOfHosts;
  /**
   * \brief the number of accepted function evaluations accepted in (ns*numvar) number of function evaluations.
   */
  int naccepted_nsloop;  
  
public:
  ParaminSimann(NetInterface* netInt);
  virtual ~ParaminSimann();
  void read(CommentStream& infile, char* text);
  // void doSearch(const DoubleVector& startx, double startf);
  void OptimiseLikelihood();
  void SetXP(int k);
  void AcceptPoint();
  void UpdateVM();
  void ReceiveValue();
  void Print(ofstream& outfile, int prec);

};

#endif

root@forge.cesga.es
ViewVC Help
Powered by ViewVC 1.0.0  

Powered By FusionForge