PGAGetOptDir(8)

NAME
PGAGetOptDir - Returns the direction of optimization

INPUT PARAMETERS
ctx - context variable

OUTPUT PARAMETERS
none

SYNOPSIS
#include "pgapack.h"
int  PGAGetOptDir(ctx)
PGAContext *ctx

LOCATION
get.c

EXAMPLE
Example:
PGAContext *ctx;
int optdir;
:
optdir = PGAGetOptDir(ctx);
switch (optdir) {
case PGA_MAXIMIZE:
printf("Optimization direction = PGA_MAXIMIZE);
break;
case PGA_MINIMIZE:
printf("Optimization direction = PGA_MINIMIZE);
break;
}