highs-js API reference
    Preparing search index...

    Interface UserSolutionCallbackEvent

    MIP checkpoint at which an application may submit a heuristic candidate. Dense candidates contain one value per current column; sparse candidates may specify only selected columns. HiGHS validates feasibility and may reject the candidate. This channel may not fire during every MIP solve.

    interface UserSolutionCallbackEvent {
        data: CallbackData;
        message: string;
        type: 9;
        repairSolution(): RawStatus;
        setSolution(solution: NumberInput | SparseSolutionInput): RawStatus;
    }

    Hierarchy (View Summary)

    Index

    Detached snapshot of fields available for this callback channel.

    message: string

    Native log/progress text. Do not assume it is non-empty or machine-parseable.

    type: 9

    Callback channel that triggered the event.

    • Asks HiGHS to repair the current type-9 candidate, normally after setSolution(). The repaired vector is retained natively, not returned.

      Returns RawStatus