30 #define OS_NEGATE 1004 32 #define OS_DIVIDE 1006 34 #define OS_PRODUCT 1010 36 #define OS_SQUARE 2005 45 #define OS_NUMBER 5001 48 #define OS_VARIABLE 6001 50 #define OS_ALLDIFF 7016 52 #define OS_MATRIX_DETERMINANT 8001 53 #define OS_MATRIX_TRACE 8002 54 #define OS_MATRIX_TO_SCALAR 8003 57 #define OS_MATRIX_PLUS 8501 58 #define OS_MATRIX_SUM 8502 59 #define OS_MATRIX_MINUS 8503 60 #define OS_MATRIX_NEGATE 8504 61 #define OS_MATRIX_TIMES 8505 62 #define OS_MATRIX_PRODUCT 8506 63 #define OS_MATRIX_INVERSE 8510 64 #define OS_MATRIX_TRANSPOSE 8515 65 #define OS_MATRIX_SCALARTIMES 8518 66 #define OS_MATRIX_DOTTIMES 8520 67 #define OS_IDENTITY_MATRIX 8536 68 #define OS_MATRIX_LOWERTRIANGLE 8537 69 #define OS_MATRIX_UPPERTRIANGLE 8538 70 #define OS_MATRIX_DIAGONAL 8539 71 #define OS_DIAGONAL_MATRIX_FROM_VECTOR 8540 72 #define OS_MATRIX_REFERENCE 8541 73 #define OS_MATRIX_SUBMATRIX_AT 8544 74 #define OS_MATRIX_VAR 8601 75 #define OS_MATRIX_OBJ 8602 76 #define OS_MATRIX_CON 8603 80 #define OS_E_VALUE exp(1.0) 81 #define OS_PI_VALUE 2*asin(1.0) 83 #define OS_SCHEMA_VERSION "2.0" 89 #define OS_NEAR_EQUAL 1e-2 93 const double OSDBL_MAX = std::numeric_limits<double>::max();
94 const int OSINT_MAX = std::numeric_limits<int>::max();
97 extern "C" bool OSIsnan(
double x);
99 extern "C" double OSNaN();
121 #define DEFAULT_OUTPUT_LEVEL ENUM_OUTPUT_LEVEL_error 664 if (type1 == type2)
return type1;
int returnMatrixSymmetry(std::string symmetry)
int returnSolutionSubstatusType(std::string type)
std::string returnExprShapeString(ENUM_NL_EXPR_SHAPE shape)
bool verifyJobStatus(std::string status)
bool verifyLocationType(std::string type)
std::string returnConReferenceValueTypeString(ENUM_CONREFERENCE_VALUETYPE valueType)
ENUM_MATRIX_TYPE mergeMatrixType(ENUM_MATRIX_TYPE type1, ENUM_MATRIX_TYPE type2)
A function to merge two matrix types so we can infer the type of a matrix recursively.
int returnVarType(char vt)
ENUM_COMBINE_ARRAYS
An enum to streamline set() methods of vectors.
int returnTimeType(std::string type)
int returnMatrixConstructorType(std::string cType)
std::string returnMatrixTypeString(ENUM_MATRIX_TYPE type)
int returnSystemCurrentState(std::string status)
bool verifyVarType(char vt)
int returnConReferenceValueType(std::string valueType)
std::string OSgetVersionInfo()
int returnLocationType(std::string type)
bool verifyMatrixType(std::string type)
bool verifyTransportType(std::string type)
int returnJobStatus(std::string status)
bool verifyMatrixSymmetry(std::string symmetry)
ENUM_CONREFERENCE_VALUETYPE
An enum to track the type of value contained in a reference to a constraint.
bool verifyServiceType(std::string type)
int returnTransportType(std::string type)
bool verifyGeneralResultStatus(std::string status)
int returnMatrixType(std::string type)
int returnGeneralResultStatus(std::string status)
bool OSIsnan(double x)
checks whether a given double is NaN
int returnSolutionStatus(std::string status)
bool verifyBasisStatus(std::string status)
bool verifyMatrixConstructorType(std::string type)
int returnTimeUnit(std::string unit)
int returnBasisStatus(std::string status)
bool verifySolutionStatus(std::string status)
double OSNaN()
returns the value for NaN used in OS
bool verifyTimeType(std::string type)
bool verifyStorageUnit(std::string unit)
std::string returnBasisStatusString(ENUM_BASIS_STATUS status)
int returnNlExprShape(std::string shape)
bool verifyConReferenceValueType(std::string valueType)
int returnTimeCategory(std::string category)
bool verifyConeType(std::string type)
bool verifyCPUSpeedUnit(std::string unit)
ENUM_SYSTEM_CURRENT_STATE
ENUM_OUTPUT_LEVEL
Enumeration for the different verbosity levels that can be used in producing output.
std::string returnMatrixSymmetryString(ENUM_MATRIX_SYMMETRY symmetry)
ENUM_MATRIX_CONSTRUCTOR_TYPE
ENUM_MATRIX_TYPE
An enum to track the many different types of values that a matrix can contain Note that these types a...
ENUM_BASIS_STATUS
Enumeration for the different states that can be used in representating a basis The last state...
ENUM_SOLUTION_SUBSTATUSTYPE
bool verifyNlExprShape(std::string shape)
ENUM_GENERAL_RESULT_STATUS
int returnStorageUnit(std::string unit)
int returnCPUSpeedUnit(std::string unit)
bool verifySolutionSubstatusType(std::string type)
int returnServiceType(std::string type)
bool verifySystemCurrentState(std::string status)
bool verifyTimeCategory(std::string category)
int returnConeType(std::string type)
ENUM_OUTPUT_AREA
Enumeration for the different areas that can produce output.
bool verifyTimeUnit(std::string unit)