Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
H

HiGHS

> 数据库
Open source

Linear optimization software

1.8K stars0 likes1 views
WebsiteGitHub

About

Linear optimization software

HiGHS - Linear optimization software

[![Build Status][fast_build_svg]][fast_build_link] [![Build Status][linux_build_svg]][linux_build_link] [![Build Status][macos_build_svg]][macos_build_link] [![Build Status][windows_build_svg]][windows_build_link]


[fast_build_svg]: https://github.com/ERGO-Code/HiGHS/actions/workflows/build-fast.yml/badge.svg [fast_build_link]: https://github.com/ERGO-Code/HiGHS/actions/workflows/build-fast.yml [linux_build_svg]: https://github.com/ERGO-Code/HiGHS/actions/workflows/build-linux.yml/badge.svg [linux_build_link]: https://github.com/ERGO-Code/HiGHS/actions/workflows/build-linux.yml [macos_build_svg]: https://github.com/ERGO-Code/HiGHS/actions/workflows/build-macos.yml/badge.svg [macos_build_link]: https://github.com/ERGO-Code/HiGHS/actions/workflows/build-macos.yml [windows_build_svg]: https://github.com/ERGO-Code/HiGHS/actions/workflows/build-windows.yml/badge.svg [windows_build_link]: https://github.com/ERGO-Code/HiGHS/actions/workflows/build-windows.yml

  • About HiGHS
  • Documentation
  • Installation
    • Build from source using CMake
    • Build with Meson*
    • Build with Nix*
    • Precompiled binaries
  • Running HiGHS
  • Interfaces
    • Python
    • C
    • CSharp
    • Fortran
  • Reference

About HiGHS

HiGHS is a high performance serial and parallel solver for large scale sparse linear optimization problems of the form

$$ \min \quad \dfrac{1}{2}x^TQx + c^Tx \qquad \textrm{s.t.}~ \quad L \leq Ax \leq U; \quad l \leq x \leq u $$

where $Q$ must be positive semi-definite and, if $Q$ is zero, there may be a requirement that some of the variables take integer values. Thus HiGHS can solve linear programming (LP) problems, convex quadratic programming (QP) problems, and mixed integer programming (MIP) problems. It is mainly written in C++, but also has some C. It has been developed and tested on various Linux, MacOS and Windows installations. No third-party dependencies are required.

HiGHS has primal and dual revised simplex solvers, originally written by Qi Huangfu and further developed by Julian Hall. It also has an interior point solver for LP written by Lukas Schork, an active set solver for QP written by Michael Feldmeier, and a MIP solver written by Leona Gottwald. Other features have been added by Julian Hall and Ivet Galabova, who manages the software engineering of HiGHS and interfaces to C, C#, FORTRAN, Julia and Python.

Find out more about HiGHS at https://www.highs.dev.

Although HiGHS is freely available under the MIT license, we would be pleased to learn about users' experience and give advice via email sent to [email protected].

Documentation

Documentation is available at https://ergo-code.github.io/HiGHS/.

Installation

Build from source using CMake

HiGHS uses CMake as build system, and requires at least version 3.15. To generate build files in a new subdirectory called 'build', run:

bash
    cmake -S . -B build
    cmake --build build

This installs the executable bin/highs and the library lib/highs.

To test whether the compilation was successful, change into the build directory and run

bash
    ctest

More details on building with CMake can be found in HiGHS/cmake/README.md.

Build with Meson

As an alternative, HiGHS can be installed using the meson build interface:

bash
meson setup bbdir -Dwith_tests=True
meson test -C bbdir

The meson build files are provided by the community and are not officially supported by the HiGHS development team. If you use this method and encounter issues, please consider contributing fixes or updates by checking the HiGHS Contribution Guide.

Build with Nix

There is a nix flake that provides the highs binary:

bash
nix run .

You can even run without installing anything, supposing you have installed nix:

bash
nix run github:ERGO-Code/HiGHS

The nix flake also provides the python package:

bash
nix build .#highspy
tree result/

And a devShell for testing it:

bash
nix develop .#highspy
python
>>> import highspy
>>> highspy.Highs()

The nix build files are provided by the community and are not officially supported by the HiGHS development team.

Precompiled binaries

Precompiled static binaries are available at https://github.com/ERGO-Code/HiGHS/releases.

Additionally, there is one package containing shared libraries for Windows x64.

The *-mit binary packages contain HiGHS and are MIT-licenced. The *-apache binary packages contain HiGHS with HiPO and are Apache-licenced, due to the licensing of the dependencies of HiPO. For more information, see THIRD_PARTY_NOTICES.md.

If you have any questions or requests for more platforms and binaries, please get in touch with us at [email protected].

Running HiGHS

HiGHS can read MPS files and (CPLEX) LP files, and the following command solves the model in ml.mps

bash
    highs ml.mps

Command line options

When HiGHS is run from the command line, some fundamental option values may be specified directly. Many more may be specified via a file. Formally, the usage is:

…

For a full list of options, see the options page of the documentation website.

Interfaces

There are HiGHS interfaces for C, C#, FORTRAN, and Python in HiGHS/highs/interfaces, with example driver files in HiGHS/examples/. More on language and modelling interfaces can be found at https://ergo-code.github.io/HiGHS/stable/interfaces/other/.

We are happy to give a reasonable level of support via email sent to [email protected].

Python

The python package highspy is a thin wrapper around HiGHS and is available on PyPi. It can be easily installed via pip by running

bash
$ pip install highspy

Alternatively, highspy can be built from source. Download the HiGHS source code and run

bash
pip install .

from the root directory.

The python package highspy depends on the numpy package and numpy will be installed as well, if it is not already present.

The installation can be tested using the small example HiGHS/examples/call_highs_from_python_highspy.py.

The Google Colab Example Notebook also demonstrates how to call highspy.

To use HiPO in Python, the additional highspy-extras is required. It contains the HiPO dependencies and is Apache 2.0 licensed. It can be installed with

bash
$ pip install highspy[extras]

For more details, see https://ergo-code.github.io/HiGHS/ at Interfaces -> Python -> HiPO in Python.

C

The C API is in HiGHS/highs/interfaces/highs_c_api.h. It is included in the default build. For more details, check out the documentation website https://ergo-code.github.io/HiGHS/.

CSharp

The nuget package Highs.Native is on https://www.nuget.org, at https://www.nuget.org/packages/Highs.Native/.

It can be added to your C# project with dotnet

bash
dotnet add package Highs.Native --version 1.15.1

The nuget package contains runtime libraries for

  • win-x64
  • win-x86
  • linux-x64
  • linux-arm64
  • macos-x64
  • macos-arm64

Details for building locally can be found in nuget/README.md.

Fortran

The Fortran API is in HiGHS/highs/interfaces/highs_fortran_api.f90. It is not included in the default build. For more details, check out the documentation website https://ergo-code.github.io/HiGHS/.

Reference

If you use HiGHS in an academic context, please acknowledge this and cite the following article.

Parallelizing the dual revised simplex method Q. Huangfu and J. A. J. Hall Mathematical Programming Computation, 10 (1), 119-142, 2018. DOI: 10.1007/s12532-017-0130-5

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

C++high-performanceinterior-point-methodlinear-optimizationmixed-integer-programming

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category数据库
PricingOpen source

> Related tools

P
PostgreSQL
功能强大的开源关系型数据库
R
Redis
内存数据结构存储,常用作缓存与队列
M
MySQL
广泛使用的开源关系型数据库