Returns a symbolic constant that represents the direction of optimization
ctx
- context variable
none
#include "pgapack.h" int PGAGetOptDirFlag(ctx) PGAContext *ctx
pga.c
Example: PGAContext *ctx; int optdir; : optdir = PGAGetOptDirFlag(ctx); switch (optdir) { case PGA_MAXIMIZE: printf("Optimization direction = PGA_MAXIMIZE\n"); break; case PGA_MINIMIZE: printf("Optimization direction = PGA_MINIMIZE\n"); break; }