A thin set of pybind11 wrappers to HiGHS
Project description
HiGHS - Linear optimization software
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:
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
ctest
HiGHS can read MPS files and (CPLEX) LP files, and the following command
solves the model in ml.mps
highs ml.mps
HiGHS is installed using the command
cmake --install build
with the optional setting of --prefix <prefix>
, or the cmake option CMAKE_INSTALL_PREFIX
if it is to be installed anywhere other than the default location.
As an alternative, HiGHS can be installed using the meson
build interface:
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.
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.
Interfaces
There are HiGHS interfaces for C, C#, FORTRAN, and Python in HiGHS/src/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
$ pip install highspy
Alternatively, highspy
can be built from source. Download the HiGHS source code and run
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 call_highs_from_python_highspy.py.
The Google Colab Example Notebook also demonstrates how to call highspy
.
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for highspy-1.7.1.dev1-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 387ebda1021d0481f1b29c201411aeecaddbb333f6a127fbec17763647546254 |
|
MD5 | 9e6f04279763036c8367e4bc9399404c |
|
BLAKE2b-256 | 1c3c0a978fffd585abc245ac7c45a24aaad977b9668ae5195d37fc4fd65c7e32 |
Hashes for highspy-1.7.1.dev1-cp312-cp312-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65986abf2f7c5f067f3b376923faf812400c89955215217a02814e4b9fa9bf75 |
|
MD5 | 150659c54ada1966c5b368064e1833e1 |
|
BLAKE2b-256 | 584bf355052c73861514b14b627ccc3acb0f2150cdc64c365e14f451a54882db |
Hashes for highspy-1.7.1.dev1-cp312-cp312-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9637b061e52ed4bd7aa0d9236cffc1d6e4c2b11480d90ed55bc5e242df6dbee0 |
|
MD5 | 8c7e687f41015d831e7cf959b88fa3ba |
|
BLAKE2b-256 | 626bbf89c4510de4137d4117e1a53ed3a03e18a27faf4b0cf33a8bb50cd07265 |
Hashes for highspy-1.7.1.dev1-cp312-cp312-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b6bd416ef8460a521f5125ce27c500437f54af79a33ee1d52f1606cc7b33037 |
|
MD5 | 05172366c1e99c6cdfc460b6daf7cef5 |
|
BLAKE2b-256 | 95abaf9034b714960a572a2b24076738f0f4ac4a1431e0f9cdc2c0b3db1ee1a8 |
Hashes for highspy-1.7.1.dev1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 515c0b4c310e6e8e21d028169310204c5a99d742e28fc41cf92d8219ecdc8e42 |
|
MD5 | b14152d124f7dbdd4b95f55b537e696f |
|
BLAKE2b-256 | 26758bb0144456e9912edb49a89a23bdd7acac246c9ee0da8ad438733183b046 |
Hashes for highspy-1.7.1.dev1-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73a1d5d53c06c1dd0ac6386c17cab466c3bdb55b4c79d1aea9be9f52896e7ef3 |
|
MD5 | a5c5399d37d80e87d6b0b20b57e97c5d |
|
BLAKE2b-256 | 4c138701de54bb12596a118c1d43a4fb11b3e210bce01abfc880a3951fe25170 |
Hashes for highspy-1.7.1.dev1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b264e425cad766d09e802c87c4ead920c13d7c11fdc0fdfa2b08dd3ed73b50fd |
|
MD5 | 46e3cc7103d8e17680e24a91c5ff0bac |
|
BLAKE2b-256 | f9678f625421de4947d53a4c086ffc04825535972d82b17d7b00656e9f339028 |
Hashes for highspy-1.7.1.dev1-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59cd938c673bb8cf70dba4ebcc04341fbb72a7175e59e6f99783cd6d2a736d7b |
|
MD5 | d7a237f65a25a04b95b50d93df160900 |
|
BLAKE2b-256 | 3b241a2fe9cf9c04bb7b8ccdf72303d08c0effde00eb58ac6648e440a72c71f1 |
Hashes for highspy-1.7.1.dev1-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c91dc85a06bb1ac191c44f9a3fd6ed76b2041aea0f2dec27cfd49170014ab746 |
|
MD5 | f477ebe5a0dbca00c00f0674bf82cfbd |
|
BLAKE2b-256 | aaddac55dd30030eb4383907d4a8e944d7ba57ae945ac38ce4dae29e18870308 |
Hashes for highspy-1.7.1.dev1-cp311-cp311-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38f04b3b51547fb7c223a69bb1a946cba304a8029b8f50c7dabecbfbe824bb62 |
|
MD5 | d58a6e74f823bf488e9f010eedbb6829 |
|
BLAKE2b-256 | 1c66f85a9a670adc0e76d88974d37e10dbecc74c5bf8b332d12a4c1d176a6779 |
Hashes for highspy-1.7.1.dev1-cp311-cp311-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 862c397c990530a15f710d9bacc4f1c67b8fff82fccc25b26857dfb980186247 |
|
MD5 | 0badcebb1855f124395051382ba46d80 |
|
BLAKE2b-256 | 60d2c3f917558bc1b3b029c86672ee594700ac77d08061bd6e4514c3a43c1687 |
Hashes for highspy-1.7.1.dev1-cp311-cp311-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b945deef267ac12273d327b5157985c8a0c34734ab9c597c5af6bbf47c13c215 |
|
MD5 | 2932eea1953826f88e200bd96244b6da |
|
BLAKE2b-256 | 8d8284942577145a4e484901e37b744bd9d8b34793d196055c63c8de14911419 |
Hashes for highspy-1.7.1.dev1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19f1f76fa5d78e656e7e6f71e9045a42e87ccb08d2fc7eca6b3c18d23d5933eb |
|
MD5 | 4eba226640996e075ffde5fcaa968e6a |
|
BLAKE2b-256 | 85f193cae1f52d2d87f6336c837e20b13a5200394069684d8544049b4fa30209 |
Hashes for highspy-1.7.1.dev1-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15eebbb7b890bb4b1dd2c62459238eeb92cf00539276d7be5e4d486fdac755c6 |
|
MD5 | 1059bc011e62de4d74d6c5862b169298 |
|
BLAKE2b-256 | b5cfec9857a1d3f537bba19f85030be425aaebd0dabf72030b99ca5c45ac6b16 |
Hashes for highspy-1.7.1.dev1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a642e832056c8842a0312a09ba40e2bc03b4cac83d30b3015e254709d7b4cf5a |
|
MD5 | 1c2ef8f6caeeab3a9dae318616cf1168 |
|
BLAKE2b-256 | 28833c7d459b9059c12d8890d67db2858a4a2dda7dbee8b85c025f963a6c92ee |
Hashes for highspy-1.7.1.dev1-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7daa4809eea9c94de0181e68867e68594fbe4a438e2aac6591feee7b00edf46 |
|
MD5 | 12637344bbc5791c08740625cfea5f18 |
|
BLAKE2b-256 | ac34ba79ec79b8ee8f57649864a95c0e6087f0267f1cc945e24c74df227e7ae3 |
Hashes for highspy-1.7.1.dev1-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e7af517a9ae23917c06b49292e9d7d2ddc61220d4134c091e7fa35e55c0cc9d |
|
MD5 | fbc82eacb8f21dd31c6c8e778c3c1b47 |
|
BLAKE2b-256 | 0c2b2c1d68afe0b41889bedf9fac75018808fc1ce56ba82f2516394286041de9 |
Hashes for highspy-1.7.1.dev1-cp310-cp310-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ec1d6bfc45547b174ff218a02d48809acfa4a0dded2cde563faa7fefad2ebdd |
|
MD5 | bf3996db791da7556902bce71301785b |
|
BLAKE2b-256 | fcb8d0ddd6f39d010919efce60dc45ed9c3fdef3b2355b6b9ea7fc439d01773b |
Hashes for highspy-1.7.1.dev1-cp310-cp310-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92dbb95ca5761aa13780d3515caf8f7c146516aae8308d6f5c21489ca21bfcb5 |
|
MD5 | 8872a6ecf91a57fd77248024c5212706 |
|
BLAKE2b-256 | fe52729bf1b032cb10ac98658d0cfc53d785c63da7c3bf9634a712ee89db7cd1 |
Hashes for highspy-1.7.1.dev1-cp310-cp310-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a30f307604f68c39b753e4720417bb11c493baa1c73bcb5c597437724d25ca5e |
|
MD5 | 9b296e141a97b060e226ef29695c6772 |
|
BLAKE2b-256 | e28f15ce4ff5e0f337ccb36090e9267560edd51b4fc882b11163d97686b71414 |
Hashes for highspy-1.7.1.dev1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 981fb93603131024374f1abc42c6a786856710b9aee09210fa10ef777704d450 |
|
MD5 | fcd7871f68763fbc203f507716ac5762 |
|
BLAKE2b-256 | c0d0624c74bd863f225aac4d5511e307c9757cf5aa6b15202e5c026844462594 |
Hashes for highspy-1.7.1.dev1-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dfb204703337a8a866e36191ae71f0e902eb03fda1a28e2ea2b5b685dd43d650 |
|
MD5 | 111f05ad7692e371e1a676b376b38700 |
|
BLAKE2b-256 | eadc83cf92b727717eb187255ef86e6ee5247f03c5a2a818e1911793386c9f19 |
Hashes for highspy-1.7.1.dev1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6067a6f8e5c36c3791054074f0fa857871709462a583b368662f510ea9ae8a47 |
|
MD5 | aff9cda45bd6870699a04b224341c89d |
|
BLAKE2b-256 | 8156b5a1d26c63d36ee34b81ff868438491725f12b87685ecbea598c48ac8b7f |
Hashes for highspy-1.7.1.dev1-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ea19a7bffa418f8b0ed2cbd0f8731dcd2781b2e7fb8314f347a30c5e7322701 |
|
MD5 | 627fdfee0db4a792459c0366be670cd2 |
|
BLAKE2b-256 | 57d02b190019660bec2a9b84127a3b274a7166664e397188c95b13459077f8f6 |
Hashes for highspy-1.7.1.dev1-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17f6fb8bfe74130781e5d64cd1659cf4c0f0338cb00c8948acab0556a457400a |
|
MD5 | 5a3c3563d8566911389b47b41b968fe7 |
|
BLAKE2b-256 | 5f41e2eeccd8e9a775c09abafbcef20111807f3d997bbd6aaee58d1723b65546 |
Hashes for highspy-1.7.1.dev1-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82986845d20b50602aa9964ab607fb69c99bced54528c36c264390811dd3754f |
|
MD5 | 97ca1eb85afdf2b0fb9f193c9b657ff4 |
|
BLAKE2b-256 | c8c59822b1241938673135a82621d9ec8becd2c707cc5ad2b5ed149593242a44 |
Hashes for highspy-1.7.1.dev1-cp39-cp39-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bec1ca7bcb60af797470d105aecde61bc1b14cc7572fb0983ad4af9e906c04ac |
|
MD5 | ea41407b84e66151926e1d4315d85bbb |
|
BLAKE2b-256 | d53581da29ea3b1368dcf093efcc0e842506f103d87bfcf2bdd3a8037917ade9 |
Hashes for highspy-1.7.1.dev1-cp39-cp39-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c77c86b9dece9c02e92c9d7a7d4f480d7b6b304c3af923f2690df9f2f47e262 |
|
MD5 | afd4c2111e79448cca79b028f54e172e |
|
BLAKE2b-256 | 049736700d393e0c801b0ac6d4ed186c710813ee96d3edb3c32d78943f7493a1 |
Hashes for highspy-1.7.1.dev1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a6da6552e5688099ce4224973ceb1b630d42ef9916248ab9645db25532167e3 |
|
MD5 | 9ac80597bc346e299f0c0db2a97482f8 |
|
BLAKE2b-256 | 15ac5e0203dd4325d9f7ab7d0b4b99d858bbf1796e9361a6fa3214f5a17b18d8 |
Hashes for highspy-1.7.1.dev1-cp39-cp39-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79063a31e611412f8728415f9b247e155860647fcbdff946afcb3230f9a5d0da |
|
MD5 | c21686b1dad3099c242849082f9ecac1 |
|
BLAKE2b-256 | 89177c92b2d276a7c70eb85db70f231742cfc37c7616dd4b87da2b2eaac66944 |
Hashes for highspy-1.7.1.dev1-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b63df669ccfafcaed4aa4861d7ae5c16b4d375c538a5563be7a5d04d175b61e |
|
MD5 | 26220c896f563ebb76d8edc229b2a2a5 |
|
BLAKE2b-256 | f0e0a6e92db7d1e207e6b1760cc91bde07cbf29c0cecca30a069ea3fe60709be |
Hashes for highspy-1.7.1.dev1-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4dd2029fc913281eccab098347f5a5e10b58031f422d8e24df0ed881cb6a2dc7 |
|
MD5 | 631b89b84e9af78174e1495894a2a561 |
|
BLAKE2b-256 | 6ef9716027a5ea82eab15bc61ddf74546bcfcf55819981542461503716c6a978 |
Hashes for highspy-1.7.1.dev1-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f0720a3a930c1de40910b94746a646d79c62d3ca86206e2b6cd0c43d821ce52 |
|
MD5 | 10e95a70037eff86c9928c4bccceaaca |
|
BLAKE2b-256 | 21e1bbd4fb7a19b3bb1edb364ea3ba4296ba7ac96bd547aff96e537cd7a958cb |
Hashes for highspy-1.7.1.dev1-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c7bdf958ac84839ac754a372214ecccfb73c899ba5f4182d4243d9fc6fd65d0 |
|
MD5 | 352147f82fa638728020bedadea9ff31 |
|
BLAKE2b-256 | 7d9dafc71c703023328ee12ac815af7710d3c39633c1cb4654079654d2513e3f |
Hashes for highspy-1.7.1.dev1-cp38-cp38-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76e0c84b4d1abdb63d0062f58f906381af54ed43c4f0d7635eb17ec4208bf8f1 |
|
MD5 | 4a7edd219cdc03313be894d0793235a5 |
|
BLAKE2b-256 | 0c32b7b16da3b4cda7c3aeb33e6a520b8d69139af3f08494d287ddfe95f94f7e |
Hashes for highspy-1.7.1.dev1-cp38-cp38-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d47c0d8774780deadb4897f75142ce2f827dae3c72fae8b87c3168428ae2681 |
|
MD5 | 6cdfaebd5c509574e7242e24e51af31d |
|
BLAKE2b-256 | 81bfdf0a7d68d947f381646a9b377cbb2048009bcf12292b4fe733edc5e2de73 |
Hashes for highspy-1.7.1.dev1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb580da34569a674e2295976339939f5d6f8b1aab4b21d0e59bc0c1991f8a028 |
|
MD5 | e7a71520970598b6cd4016016d6784c7 |
|
BLAKE2b-256 | 7a051b01d55773f0d50af127ed0fd9143d609e8a75faa8b590d7faee62cde095 |
Hashes for highspy-1.7.1.dev1-cp38-cp38-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a902c0ff6b5792251b62013257cda92583d4ca7f120e1d6e421b1f3b0a139b64 |
|
MD5 | 3ff3fa73487f638dee52e63df909a107 |
|
BLAKE2b-256 | 00d0a5e0c15aaae28e7651c257327ef6e29211dc77ba0b9362d341ce8df6e325 |
Hashes for highspy-1.7.1.dev1-cp38-cp38-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6aec11fcdb20b5ab7f65f5844893bd0f1e1cc5156667dd4e1ceeed9c30f93721 |
|
MD5 | abfb0f56fe95c9b797c52efc97292526 |
|
BLAKE2b-256 | 859f5a1a4ed6a17ae6c3f6b1abd1219a95d386fbc935f16716860e6fd2325f4d |
Hashes for highspy-1.7.1.dev1-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e32fb209389ced7042b9ce9dd0ca8ba9ee4c01bbd3afa2b0d91f9a8813496a75 |
|
MD5 | 2c7e31948e0b97234366b161ee64e2d3 |
|
BLAKE2b-256 | d92e7a16b0ba9f5935c8c5809f0558d0c5abe144c2973a4ebdaefdb17fa997fd |