Skip to main content

Cython interface to HiGHS.

Project description

Cython wrappers over HiGHS. This project is a fork of the main repo: fork.

The package is available on pypi as scikit-highs and is tested on the following:

  • Ubuntu 18, gcc 7.5.0, Python 3.6.9

  • Windows 10, VS 2019, Python 3.8.2 x64

It has dependencies on numpy and Cython that require these to be installed before installation of scikit-highs. Once numpy and Cython are installed, install using pip like this:

pip install scikit-highs

Example usage from script:

from pyHiGHS import highs_wrapper
from pyHiGHS import CONST_INF, CONST_I_INF

# Call like this (usually using numpy arrays and A is a scipy.sparse.csc_matrix):
res = highs_wrapper(c, A.indptr, A.indices, A.data, lhs, rhs, lb, ub, options)

options is a dict that supports all options of the HiGHS C++ API.

It will take a second to compile when installing, I did not create any wheels, etc, so always compiles from source.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

scikit-highs-0.3.1.tar.gz (715.1 kB view details)

Uploaded Source

File details

Details for the file scikit-highs-0.3.1.tar.gz.

File metadata

  • Download URL: scikit-highs-0.3.1.tar.gz
  • Upload date:
  • Size: 715.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.0

File hashes

Hashes for scikit-highs-0.3.1.tar.gz
Algorithm Hash digest
SHA256 0b076d58d9bbb0240cb5da243fc143148e09e265585da6c3fa27dab7ccf9b933
MD5 85cc14d28ffdc99346df3518f5c29d22
BLAKE2b-256 2fda861508f3b8837f990afe5c6e8403f84c837b3a18282bd748d7b722f38836

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page