highs-js API reference
    Preparing search index...

    Type Alias CallbackType

    CallbackType: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 9

    Callback channel accepted by Model.run() and the raw callback methods. Prefer highs.constants.callbackType.<name> to numeric literals:

    • logging (0): native log messages
    • simplexInterrupt (1), ipmInterrupt (2), mipInterrupt (6): periodic solver checkpoints that expose event.interrupt()
    • mipSolution (3): feasible MIP solutions
    • mipImprovingSolution (4): new MIP incumbents, including a detached mip_solution vector suitable for live visualization or persistence
    • mipLogging (5): MIP bounds, gap, nodes, iterations, and runtime
    • mipCutPool (7): the current detached MIP cut pool
    • mipUserSolution (9): a checkpoint that accepts setSolution() and repairSolution()

    A channel is not guaranteed to fire for every model or solver run. For example, a small MIP may solve before progress or improving-solution events are needed. Native callback type 8 (lazy constraints) is not exposed.