highs-js API reference
    Preparing search index...

    Type Alias ModelStatusCode

    ModelStatusCode:
        | 0
        | 1
        | 2
        | 3
        | 4
        | 5
        | 6
        | 7
        | 8
        | 9
        | 10
        | 11
        | 12
        | 13
        | 14
        | 15
        | 16
        | 17

    Stable C API model-state code. This describes the optimization outcome, not whether the JavaScript/native call itself succeeded. Compare it with highs.constants.modelStatus; it is distinct from the legacy string-valued HighsSolution.Status.

    Type Declaration

    • 0

      Not set.

    • 1

      Load error.

    • 2

      Invalid model.

    • 3

      Presolve error.

    • 4

      Solve error.

    • 5

      Postsolve error.

    • 6

      Empty model.

    • 7

      Optimal.

    • 8

      Infeasible.

    • 9

      Unbounded or infeasible, not distinguished.

    • 10

      Unbounded.

    • 11

      Objective bound reached.

    • 12

      Objective target reached.

    • 13

      Time limit reached.

    • 14

      Iteration limit reached.

    • 15

      Unknown terminal state.

    • 16

      Solution-count limit reached.

    • 17

      Interrupted.