85 return (sense_ == Min);
91 return (sense_ == Max);
97 return (sense_ == Unknown);
Base class of all other classes of ABACUS.
bool unknown() const
Returns true if the optimization sense is unknown,, false otherwise.
SENSE sense() const
Returns the sense of the optimization.
bool min() const
Returns true If it is minimization problem,, false otherwise.
friend std::ostream & operator<<(std::ostream &out, const OptSense &rhs)
Output operator for optimization senses.
void sense(SENSE s)
Sets the optimization sense to s.
OptSense(SENSE s=Unknown)
Initializes the optimization sense tos.
SENSE sense_
The optimization sense.
SENSE
The enumeration defining the sense of optimization.
@ Min
Minimization problem.
@ Max
Maximization problem.
bool max() const
Returns true if it is maximization problem,, false otherwise.
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.