Feat C++ API
A feature engineering automation tool
FT::Sel::NSGA2 Class Reference

#include <nsga2.h>

Inheritance diagram for FT::Sel::NSGA2:
Collaboration diagram for FT::Sel::NSGA2:

Classes

struct  comparator_obj
 sort based on objective m More...
 
struct  sort_n
 sort based on rank, breaking ties with crowding distance More...
 

Public Member Functions

 NSGA2 (bool surv)
 
 ~NSGA2 ()
 
vector< size_t > select (Population &pop, const Parameters &p, const Data &d)
 selection according to the survival scheme of NSGA-II More...
 
vector< size_t > survive (Population &pop, const Parameters &p, const Data &d)
 survival according to the survival scheme of NSGA-II More...
 
void fast_nds (vector< Individual > &)
 
void crowding_distance (Population &, int)
 
- Public Member Functions inherited from FT::Sel::SelectionOperator
virtual ~SelectionOperator ()
 

Public Attributes

vector< vector< int > > front
 
- Public Attributes inherited from FT::Sel::SelectionOperator
bool survival
 
string name
 

Private Member Functions

size_t tournament (vector< Individual > &pop, size_t i, size_t j) const
 

Detailed Description

Definition at line 17 of file nsga2.h.

Constructor & Destructor Documentation

◆ NSGA2()

FT::Sel::NSGA2::NSGA2 ( bool  surv)

NSGA-II based selection and survival methods.

Definition at line 16 of file nsga2.cc.

◆ ~NSGA2()

FT::Sel::NSGA2::~NSGA2 ( )

Definition at line 18 of file nsga2.cc.

Member Function Documentation

◆ crowding_distance()

void FT::Sel::NSGA2::crowding_distance ( Population pop,
int  fronti 
)

Definition at line 197 of file nsga2.cc.

◆ fast_nds()

void FT::Sel::NSGA2::fast_nds ( vector< Individual > &  individuals)

Definition at line 121 of file nsga2.cc.

◆ select()

vector< size_t > FT::Sel::NSGA2::select ( Population pop,
const Parameters p,
const Data d 
)
virtual

selection according to the survival scheme of NSGA-II

Reimplemented from FT::Sel::SelectionOperator.

Definition at line 39 of file nsga2.cc.

◆ survive()

vector< size_t > FT::Sel::NSGA2::survive ( Population pop,
const Parameters p,
const Data d 
)
virtual

survival according to the survival scheme of NSGA-II

Reimplemented from FT::Sel::SelectionOperator.

Definition at line 72 of file nsga2.cc.

◆ tournament()

size_t FT::Sel::NSGA2::tournament ( vector< Individual > &  pop,
size_t  i,
size_t  j 
) const
private

Definition at line 20 of file nsga2.cc.

Member Data Documentation

◆ front

vector<vector<int> > FT::Sel::NSGA2::front

Definition at line 34 of file nsga2.h.


The documentation for this class was generated from the following files: