source: trunk/Mars/mtools/MHSimulatedAnnealing.h@ 19852

Last change on this file since 19852 was 7749, checked in by tbretz, 18 years ago
*** empty log message ***
File size: 1.7 KB
Line 
1#ifndef MARS_MHSimulatedAnnealing
2#define MARS_MHSimulatedAnnealing
3///////////////////////////////////////////////////////////////////////////////
4//
5// MHSimulatedAnnealing
6//
7///////////////////////////////////////////////////////////////////////////////
8#ifndef MARS_MH
9#include "MH.h"
10#endif
11
12#ifndef ROOT_TH2
13#include <TH2.h>
14#endif
15
16#ifndef ROOT_TMatrix
17#include <TMatrix.h>
18#endif
19
20#ifndef ROOT_TVector
21#include <TVector.h>
22#endif
23
24
25class MHSimulatedAnnealing : public MH
26{
27private:
28 UShort_t fDim; // The dimension of the whole thing
29 UShort_t fMoves; // The total number of moves
30
31 TObjArray *fTimeEvolution; //-> Display the time evolution of the simplex in TH1D's
32
33 TH2F fBestEver; // The best values ever found during search
34 TH1F fBestFuncEval; // The best function values ever found during search
35
36public:
37
38 MHSimulatedAnnealing(UShort_t moves = 0,UShort_t ndim = 0,
39 const char *name=NULL, const char *title=NULL);
40 ~MHSimulatedAnnealing();
41
42 void InitFullSimplex();
43 Bool_t StoreFullSimplex(const TMatrix &p, const UShort_t move);
44 Bool_t StoreBestValueEver(const TVector &y, const Float_t yb, const UShort_t move);
45
46 Bool_t ChangeTitle(const UShort_t index, const char* title);
47 void ChangeFuncTitle(const char* title);
48
49 TObjArray *GetTimeEvolution() const { return fTimeEvolution; }
50 const TH2F &GetBestEver() const { return fBestEver; }
51 const TH1F &GetBestFuncEval() const { return fBestFuncEval; }
52
53 void Draw(Option_t *opt=NULL);
54 TObject *DrawClone(Option_t *opt=NULL) const;
55
56 ClassDef(MHSimulatedAnnealing,1) // Storage Histogram Container for Cuteval Results
57};
58
59#endif
Note: See TracBrowser for help on using the repository browser.