source: trunk/MagicSoft/Mars/mtools/MHSimulatedAnnealing.h@ 6924

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