Front class which stores the final results of an EA execution.
More...
#include <Front.h>
template<class S>
class Front< S >
Front class which stores the final results of an EA execution.
- Template Parameters
-
S | Type of individual in the population |
◆ Front() [1/4]
Construct a new Front object.
- Template Parameters
-
- Parameters
-
nSolutions | number of solutions to set in the front |
◆ Front() [2/4]
Construct a new Front object with the solutions in the vector sols.
- Template Parameters
-
- Parameters
-
sols | Solutions to insert in the front. |
◆ Front() [3/4]
Construct a new Front object copying an existing one.
- Template Parameters
-
- Parameters
-
◆ Front() [4/4]
Construct a new Front object copying an existing one.
- Template Parameters
-
- Parameters
-
copy | Pointer to the front to copy. |
◆ addSolution() [1/2]
template<class S >
void Front< S >::addSolution |
( |
const S & |
solution | ) |
|
Includes a new solution in the front. This is only for single-objective solutions.
- Template Parameters
-
- Parameters
-
◆ addSolution() [2/2]
template<class S >
void Front< S >::addSolution |
( |
const S & |
solution, |
|
|
const Problem< S > * |
problem |
|
) |
| |
Includes a new solution in the front.
- Template Parameters
-
- Parameters
-
◆ empty()
template<class S >
bool Front< S >::empty |
( |
| ) |
const |
|
inline |
Checks whether the front is empty or not.
- Returns
- true
-
false
◆ getNumOfSolutions()
template<class S >
int Front< S >::getNumOfSolutions |
( |
| ) |
const |
|
inline |
Gets the number of solutions in the front.
- Returns
- int
◆ getSolutions()
template<class S >
vector< S > Front< S >::getSolutions |
Returns the solutions in the front.
- Template Parameters
-
- Returns
- vector
◆ setSolutions()
template<class S >
void Front< S >::setSolutions |
( |
const vector< S > & |
solutions | ) |
|
Resets the front with the solutions in the vector solutions.
- Template Parameters
-
- Parameters
-
◆ to_json()
Creates a JSON object with the information of the Front.
- Template Parameters
-
- Returns
- json object with the front information
The documentation for this class was generated from the following file: