ReadonlydisposedWhether dispose() on either model view destroyed the shared native instance.
Appends one column using zero-based row entries.
Appends copied CSC columns. cost, lower, and upper have equal length;
the matrix has that many columns and one row per existing model row.
Appends one row using zero-based column entries.
Appends one zero-cost column with no coefficients.
Appends zero-cost columns from equal-length copied bound arrays.
Inserts, changes, or removes (value === 0) one matrix coefficient.
Changes one zero-based column's lower and upper bounds.
Changes one zero-based column's variable domain.
Changes selected column bounds; mask arrays span every column.
Changes selected costs; mask values span every column.
Changes selected domains; mask input arrays span every column.
Changes objective direction and invalidates relevant solver state.
Changes one zero-based row's lower and upper bounds.
Changes selected row bounds; mask arrays span every row.
Resets model, solver state, and options to defaults.
Makes all columns continuous.
Removes all auxiliary linear objectives.
Clears model and solver state while retaining options.
Clears solution/basis state while retaining model and options.
Runs LP crossover. colValue is required; colDual and rowDual must be
supplied together or omitted. rowValue is ignored.
Deletes selected columns and renumbers later columns.
Deletes selected rows and renumbers later rows.
Destroys native ownership. Idempotent; subsequent operations throw disposed errors.
Converts internal matrix storage to column-wise form.
Converts internal matrix storage to row-wise form.
Serializes the model to detached LP text or MPS bytes.
Serializes all options or only deviations into detached text.
OptionaldeviationsOnly: booleanSerializes the last presolved model; presolve state is required.
Serializes solution state; pretty output represents unavailable fields with placeholders.
Optionalpretty: booleanSolves a relaxation, restores the original model/status, and retains its solution/objective. Negative penalties prohibit corresponding violations; local vectors override global penalties. The retained basis is invalidated.
Copies basis identifiers: columns are zero-based; row slacks are -rowIndex - 1.
Copies a zero-based column of B^-1; requires a valid basis.
Optionalsparse: booleanCopies a zero-based row of B^-1; requires a valid basis.
Optionalsparse: booleanSolves B x = rhs; rhs.length === numRows.
Optionalsparse: booleanSolves B^-T x = rhs; input and output lengths equal numRows.
Optionalsparse: booleanResolves an exact column name to a zero-based index.
Copies selected columns in ascending current index order with a CSC matrix.
Returns current original-model dimensions directly.
Copies a primal-infeasibility dual ray, possibly after an additional LP solve.
Copies a dual direction certifying primal infeasibility, possibly after an LP solve.
Copies an LP with discrete variables fixed; requires a MIP and valid primal solution.
Optionalformat: MatrixFormatCopies the LP associated with the most recent IIS computation.
Optionalformat: MatrixFormatReturns IEEE positive infinity.
Reads one exact information item; int64 values preserve precision as bigint.
Copies the current LP portion in the requested matrix orientation.
Optionalformat: MatrixFormatCopies model coefficients; names and auxiliary linear objectives are excluded.
Optionalformat: MatrixFormatReturns current model status directly; this C getter has no call-status output.
Returns the number of enumerable native options.
Reads the constant objective term.
Reads the branded current objective direction.
Returns current objective value directly; check solution/model status before use.
Returns the option name at a zero-based enumeration index.
Reads the current value of an exact option name.
Returns current/default value and numeric limits for an option.
Returns current presolved-model dimensions directly.
Copies the last presolved LP; presolve state is required.
Optionalformat: MatrixFormatCopies a primal-unboundedness certificate, possibly after an additional LP solve.
Requires an optimal LP simplex solution with initialized valid basis state.
Copies a column of B^-1 A; requires a valid basis.
Optionalsparse: booleanCopies a row of B^-1 A; requires a valid basis.
Optionalsparse: booleanCopies selected rows in ascending current index order with a CSR matrix.
Returns cumulative wall-clock seconds spent in solver runs since the last clock reset.
Returns native HighsInt width in bytes.
Replaces the quadratic objective Hessian with copied sparse data.
Replaces all auxiliary linear objectives; the primary colCost objective remains.
Maps current-presolve-order values back to original space; dimensions must
match getPresolvedDimensions() and mutation may invalidate presolve state.
Presolves the current model synchronously.
Replaces the model by parsing copied LP/MPS content in private storage.
Parses option-file text from private storage; accepted earlier settings may persist on error.
Clears model/solver state and capacity; retains the reusable instance and options.
Restores all options to compiled defaults.
Solves synchronously with configured callbacks/options. status reports
whether the native call completed, not the optimization outcome; call
getModelStatus() for optimal, infeasible, limited, or interrupted state.
A limit can therefore accompany status: 0 or 1.
Multiplies column coefficients/cost by a nonzero factor and divides/reorders its bounds.
Multiplies row coefficients/bounds by a nonzero factor and reorders bounds if negative.
Registers a synchronous callback until replaced, unset, or disposed. Registration activates no channel. Payloads are detached, and only event controls may call HiGHS while the callback is executing. Callback/channel registration persists across runs until explicitly changed.
Constructs the logical basis.
Sets an exact option name, validating its native type and wrapper support policy.
Supplies copied dense components as a solver start; this does not set a basis.
Supplies copied sparse primal column values.
Activates a channel until stopped or disposed. Register a callback first;
otherwise native status is an error. Native callback type 8 is rejected
by JavaScript validation and is not a CallbackType.
Deactivates a channel without unregistering the persistent callback function.
Resets timing accumulators, restoring the full cumulative time_limit budget.
Methods correspond closely to stable C operations; some combine several C calls or use a small safety bridge. File-oriented C functions are represented as data operations. Pointer arguments are validated, copied into packed temporary allocations, and freed before return. Returned arrays are detached copies.