UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
simplex.H
1 /* simplex.H */
2 /* $Id: simplex.H,v 1.3 2000/01/26 13:32:39 hoh Exp $ */
3 #ifndef __simplex_H
4 #define __simplex_H
5 
6 #include <math.h>
7 #include <mix/wenv.h>
8 #include <mix/geometry.H>
9 #include <mix/DoubleAr.H>
10 #include <mix/IndexAr.H>
11 
12 #define DEFAULT_LESSER_VALUE 0.37
13 #define DEFAULT_ENLARGE_VALUE 1.5
14 
15 #define DEFAULT_A 0.3
16 #define DEFAULT_B 1.03
17 #define DEFAULT_G 1.6
18 
19 class simplex2D{
20 protected:
21  DoubleAr daValues;
22  IndexAr iaSorted;
23  aPoints2D apCurrent;
24  double A,B,G;
25  double LESSER_VALUE;
26  double ENLARGE_VALUE;
27  int iLastReflected;
28  double dStep;
29  double dSMin;
30  double dBValue;
31 
32  virtual double value(const point2D&);
33  Logic new_top();
34  void change_rib(double dChangeCoef);
35  void prepare(const point2D &p1,const double dE1,const point2D &p2,
36  const double dE2);
37 public:
38  simplex2D(double le=DEFAULT_LESSER_VALUE,double ee=DEFAULT_ENLARGE_VALUE,
39  double _a=DEFAULT_A,double _b=DEFAULT_B,double _g=DEFAULT_G);
40  virtual void minimize (double &dEps,const double &dMStep,point2D &pRes);
41 
42 };
43 
44 #endif /* simplex.H */
45 /* Melnikov George Yu. 24-Dec-1999 */
46 /* Melnikov George Yu. 27-Dec-1999 */
47 /* Melnikov George Yu. 10-Jan-2000 */
Definition: simplex.H:19
Definition: IndexAr.H:9
Definition: DoubleAr.H:14
Definition: geometry.H:39