highs-js API reference
    Preparing search index...

    Type Alias GenericHighsSolution<IsLinear, ColType, RowType, Status>

    Common detached legacy result shape. IsLinear selects continuous-model fields (including a continuous QP) versus MIP fields; it is a type parameter only and is not present in the runtime object.

    type GenericHighsSolution<
        IsLinear extends boolean,
        ColType,
        RowType,
        Status extends HighsModelStatus = HighsModelStatus,
    > = {
        Columns: Record<string, ColType>;
        ObjectiveValue: number;
        Rows: RowType[];
        Status: Status;
    }

    Type Parameters

    Index
    Columns: Record<string, ColType>

    Detached column results keyed by unique model column name.

    ObjectiveValue: number

    Objective including the constant offset; do not use it unless Status establishes a solution.

    Rows: RowType[]

    Detached row results in zero-based model row order.

    Status: Status

    Human-readable HiGHS model status.