Function PGASetReferencePoints
Defined in File pop.c
Function Documentation
-
void PGASetReferencePoints(PGAContext *ctx, size_t npoints, void *points)
Set reference points on reference hyperplane for NSGA-III.
Description
Reference points should be allocated by
LIN_dasdennis()
. They are freed when callingPGADestroy()
. If no explicit reference points are set a default will be computed byPGASetUp()
.Example
PGAContext *ctx; ... int dim = PGAGetNumAuxEval (ctx) - PGAGetNumConstraint (ctx) + 1; void *p = NULL; int np = 0; ... np = LIN_dasdennis (dim, 3, &p, 0, 1, NULL); PGASetReferencePoints (ctx, np, p);
- Parameters:
ctx – context variable
npoints – Number of points
points – Pointer to points
- Returns:
None