Structs

Constants

Functions

Add a new column (variable) to the model.

Add multiple columns (linear constraints) to the model.

Add a new row (a linear constraint) to the model.

Add multiple rows (linear constraints) to the model.

Change a coefficient in the constraint matrix.

Change the variable bounds of a column.

Change the objective coefficient of a column.

Change the integrality of a column.

Change the variable bounds of multiple columns given by a mask.

Change the variable bounds of multiple adjacent columns.

Change the bounds of multiple columns given by an array of indices.

Change the cost of multiple columns given by a mask.

Change the cost coefficients of multiple adjacent columns.

Change the cost of multiple columns given by an array of indices.

Change the integrality of multiple columns given by a mask.

Change the integrality of multiple adjacent columns.

Change the integrality of multiple columns given by an array of indices.

Change the objective offset of the model.

Change the objective sense of the model.

Change the bounds of a row.

Change the bounds of multiple rows given by a mask.

Change the bounds of multiple rows given by an array of indices.

Remove all variables and constraints from the model highs, but do not invalidate the pointer highs. Future calls (for example, adding new variables and constraints) are allowed.

Create a Highs instance and return the reference.

Given a model solved with an interior point method, run crossover to compute a basic feasible solution.

Set a primal (and possibly dual) solution as a starting point, then run crossover to compute a basic feasible solution. If there is no dual solution, pass col_dual and row_dual as nullptr.

Delete multiple columns given by a mask.

Delete multiple adjacent columns.

Delete multiple columns given by an array of indices.

Delete multiple rows given by a mask.

Delete multiple adjacent rows.

Delete multiple rows given by an array of indices.

Destroy the model highs created by Highs_create and free all corresponding memory. Future calls using highs are not allowed.

Get the indices of the rows and columns that make up the basis matrix of a basic feasible solution.

Given a linear program with a basic feasible solution, get the column and row basis statuses.

Get a column of the inverse basis matrix \f$B^{-1}\f$.

Get a row of the inverse basis matrix \f$B^{-1}\f$.

Compute \f$\mathbf{x}=B^{-1}\mathbf{b}\f$ for a given vector \f$\mathbf{b}\f$.

Compute \f$\mathbf{x}=B^{-T}\mathbf{b}\f$ for a given vector \f$\mathbf{b}\f$.

Get a boolean-valued option.

Get data associated with multiple columns given by a mask.

Get data associated with multiple adjacent columns from the model.

Get data associated with multiple columns given by an array.

Get a double-valued info value.

Get a double-valued option.

Get an unbounded dual ray that is a certificate of primal infeasibility.

Return the number of nonzeroes in the Hessian matrix of the model.

Return the value of infinity used by HiGHS.

Get an int64-valued info value.

Get an int-valued info value.

Get an int-valued option.

Get the data from a HiGHS model.

Return the optimization status of the model in the form of a kHighsModelStatus constant.

Return the number of columns in the model.

Return the number of nonzeros in the constraint matrix of the model.

Return the number of rows in the model.

Get the objective offset.

Get the objective sense.

Get the primal objective function value.

Get the type expected by an option.

Get an unbounded primal ray that is a certificate of dual infeasibility.

Compute a column of \f$B^{-1}A\f$.

Compute a row of \f$B^{-1}A\f$.

Get data associated with multiple rows given by a mask.

Get data associated with multiple adjacent rows from the model.

Get data associated with multiple rows given by an array.

Return the cumulative wall-clock time spent in Highs_run.

Get the primal and dual solution from an optimized model.

Get a string-valued option.

Formulate and solve a linear program using HiGHS.

Formulate and solve a mixed-integer linear program using HiGHS.

Set the Hessian matrix for a quadratic objective.

Pass a linear program (LP) to HiGHS in a single function call.

Pass a mixed-integer linear program (MILP) to HiGHS in a single function call.

Pass a model to HiGHS in a single function call. This is faster than constructing the model using Highs_addRow and Highs_addCol.

Formulate and solve a quadratic program using HiGHS.

Read a model from filename into highs.

Reset all options to their default value.

Optimize a model. The algorithm used by HiGHS depends on the options that have been set.

Scale a column by a constant.

Scale a row by a constant.

Set a basic feasible solution by passing the column and row basis statuses to the model.

Set a boolean-valued option.

Set a double-valued option.

Set an int-valued option.

Set a logical basis in the model.

Set a string-valued option.

Write the model in highs to filename.

Write the current options to file.

Write the value of non-default options to file.

Write the solution information (including dual and basis status, if available) to a file.

Write the solution information (including dual and basis status, if available) to a file in a human-readable format.

Type Definitions