highs.native

Linear optimization software

https://github.com/ergo-code/highs

Science Score: 77.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 2 DOI reference(s) in README
  • Academic publication links
    Links to: springer.com
  • Committers with academic emails
    8 of 66 committers (12.1%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (10.3%) to scientific vocabulary

Keywords

high-performance interior-point-method linear-optimization mixed-integer-programming parallel quadratic-programming simplex

Keywords from Contributors

mathematical-programming closember energy-system-model energy-system nonlinear-optimization cython nonlinear-programming modeling-language semidefinite-programming mathematical-modelling
Last synced: 4 months ago · JSON representation ·

Repository

Linear optimization software

Basic Info
  • Host: GitHub
  • Owner: ERGO-Code
  • License: mit
  • Language: C++
  • Default Branch: master
  • Homepage:
  • Size: 118 MB
Statistics
  • Stars: 1,275
  • Watchers: 37
  • Forks: 242
  • Open Issues: 122
  • Releases: 19
Topics
high-performance interior-point-method linear-optimization mixed-integer-programming parallel quadratic-programming simplex
Created almost 8 years ago · Last pushed 4 months ago
Metadata Files
Readme Contributing License Code of conduct Citation Authors

README.md

HiGHS - Linear optimization software

Build Status Build Status Build Status Build Status \ Conan Center \ PyPi PyPi \ NuGet version NuGet download

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 highsopt@gmail.com.

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:

shell 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

shell 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: sh 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.

Build with Nix

There is a nix flake that provides the highs binary:

shell nix run .

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

shell nix run github:ERGO-Code/HiGHS

The nix flake also provides the python package:

shell nix build .#highspy tree result/

And a devShell for testing it:

```shell 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 executables are available for a variety of platforms at https://github.com/JuliaBinaryWrappers/HiGHSstatic_jll.jl/releases

These binaries are provided by the Julia community and are not officially supported by the HiGHS development team. If you have trouble using these libraries, please open a GitHub issue and tag @odow in your question.

See https://ergo-code.github.io/HiGHS/stable/installation/#Precompiled-Binaries.

Running HiGHS

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

shell 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:

```shell $ bin/highs --help usage: ./bin/highs [options] [file]

options: --modelfile file File of model to solve. --optionsfile file File containing HiGHS options. --readsolutionfile file File of solution to read. --readbasisfile text File of initial basis to read. --writemodelfile text File for writing out model. --solutionfile text File for writing out solution. --writebasisfile text File for writing out final basis. --presolve text Set presolve option to: "choose" * default "on" "off" --solver text Set solver option to: "choose" * default "simplex" "ipm" --parallel text Set parallel option to: "choose" * default "on" "off" --runcrossover text Set runcrossover option to: "choose" "on" * default "off" --timelimit float Run time limit (seconds - double). --random_seed int Seed to initialize random number generation. --ranging text Compute cost, bound, RHS and basic solution ranging: "on" "off" * default -v, --version Print version. -h, --help Print help.

``` 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 highsopt@gmail.com.

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

shell $ pip install highspy

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

shell pip install . from the root directory.

The HiGHS C++ library no longer needs to be separately installed. 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.

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

shell dotnet add package Highs.Native --version 1.11.0

The nuget package contains runtime libraries for

  • win-x64
  • win-x32
  • 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

Owner

  • Name: ERGO-Code
  • Login: ERGO-Code
  • Kind: organization
  • Email: highsopt@gmail.com
  • Location: United Kingdom

Citation (CITATION.cff)

cff-version: 1.2.0
message: 'If you use this software, please cite it as below'
authors:
- given-names: Julian
  family-names: Hall
  email: HighsOpt@gmail.com
- given-names: Ivet
  family-names: Galabova
- given-names: Leona
  family-names: Gottwald
- given-names: Michael
  family-names: Feldmeier
title: "HiGHS"
version: 1.2.2
date-released: 2022-04-18
url: "https://github.com/ERGO-Code/HiGHS/releases/tag/v1.2.2"
preferred-citation:
  type: article
  authors:
    - given-names: Q.
      family-names: Huangfu
    - given-names: J. A. J.
      family-names: Hall
      email: jajhall@ed.ac.uk
      affiliation: University of Edinburgh
  doi: 10.1007/s12532-017-0130-5
  journal: "Mathematical Programming Computation"
  start: 119 # First page number
  end: 142 # Last page number
  title: "Parallelizing the dual revised simplex method"
  issue: 1
  volume: 10
  year: 2018

Committers

Last synced: almost 2 years ago

All Time
  • Total Commits: 7,226
  • Total Committers: 66
  • Avg Commits per committer: 109.485
  • Development Distribution Score (DDS): 0.473
Past Year
  • Commits: 805
  • Committers: 27
  • Avg Commits per committer: 29.815
  • Development Distribution Score (DDS): 0.466
Top Committers
Name Email Commits
Julian Hall j****l@e****k 3,808
Leona Gottwald l****d@p****e 1,318
galabovaa g****a@g****m 1,204
Michael Feldmeier s****7@e****k 177
Stefan Vigerske s****e@g****m 158
Rohit Goswami r****2@h****s 88
fwesselm f****m@m****m 73
Michael Feldmeier m****d@g****m 58
s1613957 s****7@s****k 44
odow o****n@g****m 42
Ivet S****x 40
Michael Bynum m****m@s****v 30
Matthias Miltenberger m****r@z****e 25
Galabova b****b@o****e 20
Nicholas McKibben n****p@g****m 11
Markus Mützel m****l@g****e 9
Mathieu Besançon m****n@g****m 9
Matthias Miltenberger m****r@g****m 8
Galabova b****b@o****e 8
Yann Collette y****e@a****m 7
Galabova b****b@o****e 5
Søren Fuglede Jørgensen g****b@f****k 5
Lukas Schork l****k@g****t 4
jannick.lange j****e@o****m 4
Miles Lubin m****n@g****m 3
NaCN h****n@a****m 3
Luke Marshall l****l@m****m 3
Lea Kapelevich l****v@v****m 3
Guilherme Coelho c****z@g****m 3
Galabova b****b@o****e 3
and 36 more...

Issues and Pull Requests

Last synced: 4 months ago

All Time
  • Total issues: 559
  • Total pull requests: 1,068
  • Average time to close issues: 3 months
  • Average time to close pull requests: 9 days
  • Total issue authors: 232
  • Total pull request authors: 61
  • Average comments per issue: 2.97
  • Average comments per pull request: 1.17
  • Merged pull requests: 859
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 230
  • Pull requests: 541
  • Average time to close issues: 7 days
  • Average time to close pull requests: 2 days
  • Issue authors: 101
  • Pull request authors: 32
  • Average comments per issue: 1.78
  • Average comments per pull request: 1.39
  • Merged pull requests: 426
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • jajhall (143)
  • zxt5 (21)
  • odow (18)
  • jeffreydeankelly2 (15)
  • Thell (9)
  • few (8)
  • lkapelevich (6)
  • stephane-caron (6)
  • svigerske (5)
  • fuglede (5)
  • NPC (5)
  • apfelix (4)
  • timellemeet (4)
  • enri07 (4)
  • amigalemming (4)
Pull Request Authors
  • jajhall (398)
  • galabovaa (222)
  • fwesselm (149)
  • HaoZeke (39)
  • svigerske (30)
  • Opt-Mucca (24)
  • mathgeekcoder (20)
  • odow (18)
  • feldmeier (13)
  • BenChampion (12)
  • Coloquinte (10)
  • Mizux (9)
  • quantresearch1 (7)
  • silky (6)
  • few (6)
Top Labels
Issue Labels
bug (76) enhancement (66) code-quality (63) MIP (41) Build (24) MIP Presolve (20) LP (12) BE-JuMP (11) Python (8) QP (7) question (5) Simplex (5) LP presolve (3) cuPDLP-C (3) Documentation (2) IPX (2) Timeout (2) windows (1) Postsolve (1) CUDA (1)
Pull Request Labels
enhancement (2) BE-JuMP (2) Build (1) code-quality (1)

Packages

  • Total packages: 5
  • Total downloads:
    • nuget 16,591 total
    • pypi 453,836 last-month
  • Total docker downloads: 636
  • Total dependent packages: 13
    (may contain duplicates)
  • Total dependent repositories: 2
    (may contain duplicates)
  • Total versions: 86
  • Total maintainers: 1
pypi.org: highspy

A thin set of pybind11 wrappers to HiGHS

  • Versions: 13
  • Dependent Packages: 13
  • Dependent Repositories: 2
  • Downloads: 453,836 Last month
  • Docker Downloads: 636
Rankings
Dependent packages count: 1.3%
Downloads: 1.9%
Stargazers count: 2.5%
Forks count: 4.2%
Average: 4.3%
Dependent repos count: 11.9%
Maintainers (1)
Last synced: 4 months ago
proxy.golang.org: github.com/ERGO-Code/highs
  • Versions: 19
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent packages count: 5.2%
Average: 5.4%
Dependent repos count: 5.6%
Last synced: 4 months ago
proxy.golang.org: github.com/ergo-code/highs
  • Versions: 19
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent packages count: 5.2%
Average: 5.4%
Dependent repos count: 5.6%
Last synced: 4 months ago
proxy.golang.org: github.com/ERGO-Code/HiGHS
  • Versions: 19
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent packages count: 5.2%
Average: 5.4%
Dependent repos count: 5.6%
Last synced: 4 months ago
nuget.org: highs.native

.NET native wrapper for the HiGHS solver https://github.com/ERGO-Code/HiGHS.git

  • Versions: 16
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 16,591 Total
Rankings
Dependent repos count: 7.8%
Dependent packages count: 9.9%
Average: 24.9%
Downloads: 57.1%
Maintainers (1)
Last synced: 4 months ago

Dependencies

.github/workflows/build-bazel.yml actions
  • actions/cache v3 composite
  • actions/checkout v3 composite
  • bazelbuild/setup-bazelisk v2 composite
.github/workflows/build-clang.yml actions
  • actions/checkout v3 composite
.github/workflows/build-fast.yml actions
  • actions/checkout v3 composite
  • actions/setup-python v2 composite
.github/workflows/build-linux.yml actions
  • actions/checkout v3 composite
.github/workflows/build-macos.yml actions
  • actions/checkout v3 composite
.github/workflows/build-mingw.yml actions
  • actions/checkout v3 composite
  • msys2/setup-msys2 v2 composite
.github/workflows/build-wheels.yml actions
  • actions/checkout v3 composite
  • actions/setup-python v2 composite
  • actions/upload-artifact v2 composite
.github/workflows/build-windows.yml actions
  • actions/checkout v3 composite
.github/workflows/clang-format.yml actions
  • DoozyX/clang-format-lint-action v0.14 composite
  • actions/checkout v3 composite
.github/workflows/test-c-example.yml actions
  • actions/checkout v3 composite
.github/workflows/test-python-platforms.yml actions
  • actions/checkout v3 composite
  • actions/setup-python v3 composite
.github/workflows/documentation.yml actions
  • actions/checkout v2 composite
  • julia-actions/setup-julia latest composite
.github/workflows/test-python-api-mac.yml actions
  • actions/checkout v3 composite
  • actions/setup-python v3 composite
.github/workflows/test-python-api-ubuntu.yml actions
  • actions/checkout v3 composite
  • actions/setup-python v3 composite
.github/workflows/test-python-api-win.yml actions
  • actions/checkout v3 composite
  • actions/setup-python v3 composite
pyproject.toml pypi
setup.py pypi