Function PGASetSumConstraintsFlag
Defined in File create.c
Function Documentation
-
void PGASetSumConstraintsFlag(PGAContext *ctx, int n)
Configure if constraints are summed for minimization or use nondominated sorting for optimization.
Description
This only has an effect if the NSGA-II or NSGA-III replacement scheme is configured. In that case, using nondominated sorting for constraint optimization can be turned on by this option. By default constraints are summed and the sum in minimized. This is also done if no NSGA replacement scheme is in use. If summing is disabled by setting this configuration to
PGA_FALSE
, constraints are minimized using nondominated sorting. Note that nondominated sorting for constrains may not work very well on many problems.Example
PGAContext *ctx; ... PGASetSumConstraintsFlag (ctx, PGA_FALSE);
- Parameters:
ctx – context variable
n – PGA_TRUE or PGA_FALSE
- Returns:
None