COPASI API  4.16.103
COptMethodStatistics.h
Go to the documentation of this file.
1 /* Begin CVS Header
2  $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/optimization/COptMethodStatistics.h,v $
3  $Revision: 1.2 $
4  $Name: $
5  $Author: shoops $
6  $Date: 2011/03/07 19:31:26 $
7  End CVS Header */
8 
9 // Copyright (C) 2011 - 2010 by Pedro Mendes, Virginia Tech Intellectual
10 // Properties, Inc., University of Heidelberg, and The University
11 // of Manchester.
12 // All rights reserved.
13 
14 // Copyright (C) 2001 - 2007 by Pedro Mendes, Virginia Tech Intellectual
15 // Properties, Inc. and EML Research, gGmbH.
16 // All rights reserved.
17 
18 /**
19  * COptMethodStatistics class
20  */
21 
22 #ifndef COPASI_COptMethodStatistics
23 #define COPASI_COptMethodStatistics
24 
25 //class CRandom;
26 //*** need to be added for definition
27 class COptProblem;
28 class COptMethod;
29 
31 #include "utilities/CVector.h"
32 
33 // YOHE: this is an abstract class that contains many virtual functions
34 // without definitions
35 //
36 /** @dia:pos 48.05,34.05 */
37 /** @dia:route COptMethod; v,46.9608,16.35,33,59.1652,34.05 */
38 class COptMethodStatistics : public COptMethod
39 {
41 
42  // Operations
43 private:
44  /**
45  * Default Constructor
46  */
48 
49  /**
50  * Initialize arrays and pointer.
51  * @return bool success
52  */
53  virtual bool initialize();
54 
55  /**
56  * Evaluate the fitness of one individual
57  * @param const CVector< C_FLOAT64 > & individual
58  * @return bool continue
59  */
60  bool evaluate(const CVector< C_FLOAT64 > & individual);
61 
62  /**
63  * a vector of the number of individuals.
64  */
66 
67  /**
68  * array of values of objective function f/ individuals
69  */
71 
72  /**
73  * *** Perhaps this is actually not needed ****number of parameters
74  */
75  size_t mVariableSize;
76 
77  /**
78  * The best value found so far.
79  */
81 
82 public:
83  /**
84  * Copy Constructor
85  * @param const COptMethodStatistics & src
86  */
88 
89  /**
90  * Destructor
91  */
92  virtual ~COptMethodStatistics();
93 
94  /**
95  * Execute the optimization algorithm calling simulation routine
96  * when needed. It is noted that this procedure can give feedback
97  * of its progress by the callback function set with SetCallback.
98  */
99  virtual bool optimise();
100 };
101 
102 #endif // COPASI_COptMethodStatistics
CVector< C_FLOAT64 > mIndividual
static COptMethod * createMethod(CCopasiMethod::SubType subType=CCopasiMethod::RandomSearch)
Definition: COptMethod.cpp:50
bool evaluate(const CVector< C_FLOAT64 > &individual)
#define C_FLOAT64
Definition: copasi.h:92