-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathSNGAInd.h
50 lines (32 loc) · 1.13 KB
/
SNGAInd.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#ifndef __SNGA_CLASS_H_
#define __SNGA_CLASS_H_
#include "Global.h"
//#include "..\common\objective.h"
class CSNGAInd{
public:
vector <double> x_var;
vector <double> y_obj;
//int rank, count;
//vector <int> sectorialcoord;
//vector <double>
double sectorialangle;
int sectorialindex; //µãËùÔÚÉÈÐÎÇøÓòµÄindex
void rnd_init();
void obj_eval();
void show_objective();
CSNGAInd();
~CSNGAInd();
//void yobj2angle(vector <double> & observerpoint);
void obj2angle_index(/*vector <double> & pseudonadirpoint, */vector <double> & observerpoint, int sectornum);//void angle2coord(int sectornum, double anglesingle);
//bool angle_in_sector(vector <double> & observerpoint, int sectornum, double anglesingle ,int sectorcoord);
/** Compares two points in multiple objective space
*
* Returns _Dominated if this is dominated
* Returns _Dominating if this is dominating
* It may also return _Nondominated or _Equal */
TCompare Compare(CSNGAInd& ind2);
//bool operator<(const CSNGAInd& ind2);
//bool operator==(const CSNGAInd& ind2);
//void operator=(const CSNGAInd& ind2);
};
#endif