Function PGASetReferencePoints

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 calling PGADestroy(). If no explicit reference points are set a default will be computed by PGASetUp().

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