COPASI API  4.16.103
CRealProblem.h
Go to the documentation of this file.
1 /* Begin CVS Header
2  $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/optimization/CRealProblem.h,v $
3  $Revision: 1.12 $
4  $Name: $
5  $Author: shoops $
6  $Date: 2012/04/23 21:11:20 $
7  End CVS Header */
8 
9 // Copyright (C) 2012 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  * File name: CRealProblem.h
20  *
21  * Programmer: Yongqun He
22  * Contact email: yohe@vt.edu
23  * Purpose: This is the header file of the CRealProblem class.
24  * It specifies the optimization problem with its own members and
25  * functions. It's used by COptAlgorithm class and COptimization class
26  * It's a subclass of COptProblem
27  *
28  * The specific purpose here is to use it to demonstrate that the system works
29  * fine. It is for my independent study project. -- Yongqun He
30  *
31  * The function I use here is a N-Dimensional Test Function:
32  * f(x) = (1/2)Sum(j=1, n)(Xj^4 - 16Xj^2 + 5Xj)
33  * where, x = [X1, X2, ... , Xj, ..., Xn]
34  * Number of global minima = 1;
35  * Global minimum found by TRUST is:
36  * [-2.90354, -2.90354, ..., -2.90354].
37  *
38  */
39 
40 #ifndef CREALPROBLEM_H
41 #define CREALPROBLEM_H
42 
43 #include <string>
44 #include <vector>
45 
47 
48 //
49 /** @dia:pos 3.05,34.05 */
50 /** @dia:route COptProblem; v,9.3288,30.75,32.7,9.3472,34.05 */
51 class CRealProblem : public COptProblem
52 {
53  //data member
54  //no real variables defined here, but the base class has many members
55 private:
56 
57  // Implementation
58 public:
59 
60  /**
61  * Default constructor
62  */
63  CRealProblem();
64 
65  /**
66  * Destructor
67  */
68  ~CRealProblem();
69 
70  /**
71  * calculate function for optimization
72  */
73  virtual bool calculate();
74 };
75 
76 #endif // the end
virtual bool calculate()