This page is for an old version of Hexaly Optimizer. We recommend that you update your version and read the documentation for the latest stable release.

HxObjectiveDirection Enumeration

class hexaly.optimizer.HxObjectiveDirection

Objective directions.

As other enumerations present in the hexaly.optimizer module, HxObjectiveDirection is enumerable and indexable:

print (HxObjectiveDirection[0])               # Shows HxObjectiveDirection.MINIMIZE
print (HxObjectiveDirection.MINIMIZE.value)   # Shows 0

# Iterates over the members of HxObjectiveDirection
for e in HxObjectiveDirection:
    print e
MINIMIZE

Minimization.

MAXIMIZE

Maximization.