5#ifndef OPTIMIZE_TYPES_H
6#define OPTIMIZE_TYPES_H
8#include "idol/general/utils/exceptions/Exception.h"
24 enum ObjectiveSense :
int {
29 static std::ostream &operator<<(std::ostream &t_os, VarType t_type) {
32 return t_os <<
"Continuous";
34 return t_os <<
"Integer";
36 return t_os <<
"Binary";
39 throw Exception(
"Enum out of bounds.");
42 static std::ostream &operator<<(std::ostream &t_os, CtrType t_type) {
52 throw Exception(
"Enum out of bounds.");
55 static std::ostream &operator<<(std::ostream &t_os, ObjectiveSense t_type) {
58 return t_os <<
"Minimize";
60 return t_os <<
"Maximize";
63 throw Exception(
"Enum out of bounds.");