highs-js API reference
    Preparing search index...

    Interface SparseSolutionInput

    Partial primal assignment, typically a MIP start. Each index addresses a current model column and its parallel value supplies that column's candidate value; unspecified columns remain unspecified rather than being set to zero.

    interface SparseSolutionInput {
        indices: IndexInput;
        values: NumberInput;
    }

    Hierarchy (View Summary)

    Index
    indices: IndexInput

    Existing opposite-axis coordinate for each sparse value. When adding a column, these are current row indices; when adding a row, these are current column indices. For SparseSolutionInput, they are current column indices. Every index must be in range and indices.length must equal values.length. A new row/column must not list the same coordinate twice.

    values: NumberInput

    Value paired position-for-position with indices. For a newly added row or column, values[k] is its matrix coefficient at indices[k]. For a sparse solution start, it is the proposed primal value of column indices[k]. The array is copied and must have exactly indices.length entries.