OPAL (Object Oriented Parallel Accelerator Library)  2021.1.99
OPAL
hypervolume.h
Go to the documentation of this file.
1 /*
2 
3  This program is free software (software libre); you can redistribute
4  it and/or modify it under the terms of the GNU General Public License
5  as published by the Free Software Foundation; either version 2 of the
6  License, or (at your option) any later version.
7 
8  This program is distributed in the hope that it will be useful, but
9  WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  General Public License for more details.
12 
13  You should have received a copy of the GNU General Public License
14  along with this program; if not, you can obtain a copy of the GNU
15  General Public License at:
16  http://www.gnu.org/copyleft/gpl.html
17  or by writing to:
18  Free Software Foundation, Inc., 59 Temple Place,
19  Suite 330, Boston, MA 02111-1307 USA
20 
21  ----------------------------------------------------------------------
22 
23 */
24 
25 #include <string>
26 #include <vector>
27 
28 // To do:
29 // - can we sort less often or reduce/optimise dominance checks?
30 // - should we use FPL's data structure?
31 // - two changes in read.c
32 // - heuristics
33 
34 // opt: 0 = basic, 1 = sorting, 2 = slicing to 2D, 3 = slicing to 3D
35 
36 //For some reason opt=3 doesnt work for some of the test data
37 //So keep opt = 2
38 #define hyper_opt 2
39 
40 namespace Hypervolume {
41 
42  double FromFile(std::string file, const std::vector<double>& referencePoint);
43  //Room for more functions to compute volumes
44  //without accessing external files
45 }
double FromFile(std::string file, const std::vector< double > &referencePoint)