Similarity-based Grouping Genetic Algorithm Object Reference. More...
#include <sgga.h>
Collaboration diagram for RObjRefSG:
Public Member Functions | |
int | Compare (const RObjRefSG &obj) const |
Private Member Functions | |
RObjRefSG (size_t nb) | |
bool | IsSocial (void) const |
Private Attributes | |
RContainer< RCloseObjSG, true, false > | CloseObjs |
bool | MustReOrder |
bool | Social |
Detailed Description
Similarity-based Grouping Genetic Algorithm Object Reference.
The RObjRefSG provides a representation for reference to an object to group. It remembers the closest object and if the object should be considered as social (it prefer to be grouped with other objects rather than to remain alone).
Constructor & Destructor Documentation
|
private |
Constructor.
- Parameters
-
nb Initial size of the container.
Member Function Documentation
|
private |
See if the element is social or not.
int Compare | ( | const RObjRefSG & | obj | ) | const |
Compare two object references.
- Parameters
-
obj Object to compare with.
- Returns
- always -1.
Member Data Documentation
|
private |
Closest Objects.
|
private |
Must the close objects be re-ordered.
|
private |
Can the element be grouped in a group alone?