| 1 | # [Enums](@id structures-enums) |
| 2 | |
| 3 | The members of the fundamental HiGHS enums are defined below. If `Enum` refers |
| 4 | to a particular enum, and `Member` to a particular member, the members are |
| 5 | available as follows. |
| 6 | |
| 7 | * Python: `highspy.Enum.Member` |
| 8 | * C++: `Enum::Member` |
| 9 | |
| 10 | Members for internal use only are not documented. |
| 11 | |
| 12 | ## HighsStatus |
| 13 | |
| 14 | This is (part of) the return value of most HiGHS methods: |
| 15 | |
| 16 | * `kError`: The method has exposed an error |
| 17 | * `kOk`: The method has completed successfully |
| 18 | * `kWarning`: The method has recovered from an unusual event, or has terminated |
| 19 | due to reaching a time or iteration limit |
| 20 | |
| 21 | ## MatrixFormat |
| 22 | |
| 23 | This defines the format of a [HighsSparseMatrix](@ref): |
| 24 | |
| 25 | * `kColwise`: The matrix is stored column-wise |
| 26 | * `kRowwise`: The matrix is stored row-wise |
| 27 | |
| 28 | ## ObjSense |
| 29 | |
| 30 | This defines optimization sense of a [HighsLp](@ref): |
| 31 | |
| 32 | * `kMinimize`: The objective is to be minimized |
| 33 | * `kMaximize`: The objective is to be maximized |
| 34 | |
| 35 | ## HighsVarType |
| 36 | |
| 37 | This defines the feasible values of a variable within a model: |
| 38 | |
| 39 | * `kContinuous`: The variable can take continuous values between its bounds |
| 40 | * `kInteger`: The variable must take integer values between its bounds |
| 41 | * `kSemiContinuous`: The variable must be zero or take continuous values between its bounds |
| 42 | * `kSemiInteger`: The variable must be zero or take integer values between its bounds |
| 43 | |
| 44 | ## HessianFormat |
| 45 | |
| 46 | This defines the format of a [HighsHessian](@ref): |
| 47 | |
| 48 | * `kTriangular`: The lower triangular component of the Hessian is stored column-wise or, equivalently, the upper triangular component is stored row-wise |
| 49 | * `kSquare`: The whole Hessian ``Q`` is stored column-wise. This is for input only: internally the lower triangular component of ``(Q+Q^T)/2`` will be stored |
| 50 | |
| 51 | ## SolutionStatus |
| 52 | |
| 53 | This defines the nature of any primal or dual solution information: |
| 54 | |
| 55 | * `kSolutionStatusNone`: There is no solution information |
| 56 | * `kSolutionStatusInfeasible`: The solution is not feasible |
| 57 | * `kSolutionStatusFeasible`: The solution is feasible |
| 58 | |
| 59 | ## BasisValidity |
| 60 | |
| 61 | This defines the nature of any basis information: |
| 62 | |
| 63 | * `kBasisValidityInvalid`: There is no basisn information |
| 64 | * `kBasisValidityValid`: The basis information is valid |
| 65 | |
| 66 | ## HighsModelStatus |
| 67 | |
| 68 | This defines the status of the model after a call to `run` |
| 69 | |
| 70 | * `kNotset`: The model status has not been set |
| 71 | * `kModelError`: There is an error in the model |
| 72 | * `kSolveError`: There has been an error when solving the model |
| 73 | * `kModelEmpty`: The model is empty |
| 74 | * `kOptimal`: The model has been solved to optimality |
| 75 | * `kInfeasible`: The model is infeasible |
| 76 | * `kUnboundedOrInfeasible`: The model is unbounded or infeasible |
| 77 | * `kUnbounded`: The model is unbounded |
| 78 | * `kObjectiveBound`: The bound on the model objective value has been reached |
| 79 | * `kObjectiveTarget`: The target value for the model objective has been reached |
| 80 | * `kTimeLimit`: The run time limit has been reached |
| 81 | * `kIterationLimit`: The iteration limit has been reached |
| 82 | * `kSolutionLimit`: The MIP solver has reached the limit on the number of LPs solved |
| 83 | * `kInterrupt`: The solver has been interrupted by the user |
| 84 | * `kMemoryLimit`: The solver has been unable to allocate sufficient memory |
| 85 | * `kUnknown`: The model status is unknown |
| 86 | |
| 87 | ## HighsBasisStatus |
| 88 | |
| 89 | This defines the status of a variable (or slack variable for a constraint) in a |
| 90 | basis: |
| 91 | |
| 92 | * `kLower`: The variable is nonbasic at its lower bound (or fixed value) |
| 93 | * `kBasic`: The variable is basic |
| 94 | * `kUpper`: The variable is at its upper bound |
| 95 | * `kZero`: A free variable is nonbasic and set to zero |
| 96 | * `kNonbasic`: The variable is nonbasic |
| 97 | |
| 98 | ## HighsOptionType |
| 99 | |
| 100 | This defines the types of option values that control HiGHS: |
| 101 | |
| 102 | * `kBool`: The option type is boolean |
| 103 | * `kInt`: The option type is integer |
| 104 | * `kDouble`: The option type is double |
| 105 | * `kString`: The option type is string |
| 106 | |
| 107 | ## HighsInfoType |
| 108 | |
| 109 | This defines the types of (scalar) information available after a call to `run`: |
| 110 | |
| 111 | * `kInt64`: The information type is 64-bit integer |
| 112 | * `kInt`: The information type is integer |
| 113 | * `kDouble`: The information type is double |
| 114 |