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();
99 extern "C" double OSNaN();
121 #define DEFAULT_OUTPUT_LEVEL ENUM_OUTPUT_LEVEL_error
664 if (type1 == type2)
return type1;
bool verifySolutionSubstatusType(std::string type)
ENUM_GENERAL_RESULT_STATUS
std::string OSgetVersionInfo()
bool verifyCPUSpeedUnit(std::string unit)
int returnTimeCategory(std::string category)
bool verifyLocationType(std::string type)
int returnTimeUnit(std::string unit)
int returnGeneralResultStatus(std::string status)
int returnMatrixConstructorType(std::string cType)
bool verifyTransportType(std::string type)
bool verifyNlExprShape(std::string shape)
int returnConeType(std::string type)
bool verifyVarType(char vt)
ENUM_COMBINE_ARRAYS
An enum to streamline set() methods of vectors.
ENUM_MATRIX_TYPE
An enum to track the many different types of values that a matrix can contain Note that these types a...
bool verifyStorageUnit(std::string unit)
ENUM_MATRIX_CONSTRUCTOR_TYPE
bool verifyMatrixType(std::string type)
int returnBasisStatus(std::string status)
int returnSolutionSubstatusType(std::string type)
int returnNlExprShape(std::string shape)
bool verifyConeType(std::string type)
int returnTransportType(std::string type)
int returnVarType(char vt)
bool verifyServiceType(std::string type)
std::string returnMatrixSymmetryString(ENUM_MATRIX_SYMMETRY symmetry)
ENUM_SYSTEM_CURRENT_STATE
bool verifySystemCurrentState(std::string status)
ENUM_SOLUTION_SUBSTATUSTYPE
bool verifyMatrixSymmetry(std::string symmetry)
bool verifyTimeUnit(std::string unit)
int returnSystemCurrentState(std::string status)
double OSNaN()
returns the value for NaN used in OS
bool verifySolutionStatus(std::string status)
bool verifyTimeCategory(std::string category)
int returnJobStatus(std::string status)
ENUM_OUTPUT_LEVEL
Enumeration for the different verbosity levels that can be used in producing output.
int returnMatrixType(std::string type)
int returnCPUSpeedUnit(std::string unit)
int returnMatrixSymmetry(std::string symmetry)
bool verifyBasisStatus(std::string status)
bool verifyConReferenceValueType(std::string valueType)
bool verifyTimeType(std::string type)
int returnServiceType(std::string type)
bool verifyJobStatus(std::string status)
int returnConReferenceValueType(std::string valueType)
int returnSolutionStatus(std::string status)
std::string returnExprShapeString(ENUM_NL_EXPR_SHAPE shape)
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.
std::string returnBasisStatusString(ENUM_BASIS_STATUS status)
std::string returnConReferenceValueTypeString(ENUM_CONREFERENCE_VALUETYPE valueType)
ENUM_OUTPUT_AREA
Enumeration for the different areas that can produce output.
int returnTimeType(std::string type)
bool OSIsnan(double x)
checks whether a given double is NaN
ENUM_CONREFERENCE_VALUETYPE
An enum to track the type of value contained in a reference to a constraint.
int returnLocationType(std::string type)
int returnStorageUnit(std::string unit)
bool verifyMatrixConstructorType(std::string type)
ENUM_BASIS_STATUS
Enumeration for the different states that can be used in representating a basis The last state...
bool verifyGeneralResultStatus(std::string status)
void fint fint fint real fint real * x
std::string returnMatrixTypeString(ENUM_MATRIX_TYPE type)