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

Last change on this file since 4450 was 2817, checked in by gaug, 21 years ago
*** empty log message ***
File size: 1.6 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 MHSimulatedAnnealing : public MH
18{
19private:
20 UShort_t fDim; // The dimension of the whole thing
21 UShort_t fMoves; // The total number of moves
22
23 TObjArray *fTimeEvolution; //-> Display the time evolution of the simplex in TH1D's
24
25 TH2F fBestEver; // The best values ever found during search
26 TH1F fBestFuncEval; // The best function values ever found during search
27
28public:
29
30 MHSimulatedAnnealing(UShort_t moves = 0,UShort_t ndim = 0,
31 const char *name=NULL, const char *title=NULL);
32 ~MHSimulatedAnnealing();
33
34 void InitFullSimplex();
35 Bool_t StoreFullSimplex(const TMatrix &p, const UShort_t move);
36 Bool_t StoreBestValueEver(const TVector &y, const Float_t yb, const UShort_t move);
37
38 Bool_t ChangeTitle(const UShort_t index, const char* title);
39 void ChangeFuncTitle(const char* title);
40
41 TObjArray *GetTimeEvolution() const { return fTimeEvolution; }
42 const TH2F &GetBestEver() const { return fBestEver; }
43 const TH1F &GetBestFuncEval() const { return fBestFuncEval; }
44
45 void Draw(Option_t *opt=NULL);
46 TObject *DrawClone(Option_t *opt=NULL) const;
47
48 ClassDef(MHSimulatedAnnealing,1) // Storage Histogram Container for Cuteval Results
49};
50
51#endif
Note: See TracBrowser for help on using the repository browser.