Skip to main content

FICO Xpress Optimizer Python interface

Project description

FICO® Xpress Python interface

Create and solve Mathematical Optimization problems like the following:

min  x1^2 + 2 x2
s.t. x1 + 3 x2 >= 4
     -10 <= x1 <= 10
     x1 in Z
     x2 >= 0

with just a few lines of code:

import xpress as xp
p = xp.problem(name='myexample')  # problem name (optional)
x1 = p.addVariable(vartype=xp.integer, name='x1', lb=-10, ub=10)
x2 = p.addVariable(name='x2')
p.setObjective(x1**2 + 2*x2)      # objective function
p.addConstraint(x1 + 3*x2 >= 4)   # one or more constraints
p.optimize()
print ("solution: {0} = {1}; {2} = {3}".format (x1.name, p.getSolution(x1), x2.name, p.getSolution(x2)))

With the xpress module, one can create and solve optimization problems using the Python® programming language and the FICO Xpress Optimizer library. The module allows for

  • Creating, handling, solving, and querying optimization problems;
  • Using Python numerical libraries such as NumPy to create optimization problems;
  • Setting and getting the value of parameters (controls and attributes) of a problem; and
  • Using Python functions as callbacks for the Xpress Optimizer and the Xpress Nonlinear solver.

The Xpress Python interface allows for creating, handling, and solving all problems that can be solved with the FICO-Xpress library: Linear Programming (LP), Quadratic Programming (QP), Second-Order Conic Programming (SOCP), and their mixed-integer extensions: MILP, MIQP, MIQCQP, MISOCP, together with general nonlinear and mixed-integer nonlinear.

Installation

The Xpress Python interface can be downloaded from PyPI and from Anaconda. Run

pip install xpress

to install from PyPI, and

conda install -c fico-xpress xpress

to install from the Conda repository.

Xpress 9.9 will be the last release to be published on Anaconda. Subsequent releases of Xpress will be published on PyPI only.

The downloaded package contains: a directory examples with several examples of usages of the module, with varying degrees of difficulty, and a directory license containing the Xpress Community License The full HTML documentation for the Xpress Optimizer, including the Python interface and its examples, is available at the FICO Xpress Optimization Help page.

If you do not have any FICO Xpress license, the community license will be recognized by the module and no further action is needed. If you do have a license, for instance located in /users/johndoe/xpauth.xpr, make sure to set the global environment variable XPRESS to point to the folder containing the xpauth.xpr file, i.e. XPRESS=/user/johndoe.

For a list of supported versions and their end of support dates, please see https://www.fico.com/en/product-support/support-level-software-release. Customers can download selected older versions of the package from the Xpress client area site by clicking on the Archived Downloads link.

GPU installation guidelines for PDHG

The primal-dual hybrid gradient (PDHG) linear optimization solver can now take advantage of an NVIDIA® CUDA®-capable GPU, if present. The GPU support for PDHG is available as a beta release with Xpress 9.9. The following platforms have been tested: Linux (both x86_64 and ARM64) and Windows (x86_64).

Software requirements:

  • At least version 580 of the NVIDIA drivers must be installed. The latest version is available from https://www.nvidia.com/drivers.
  • At least version 13.0 of the NVIDIA CUDA Runtime must be installed.

When installing Xpress from PyPI, the CUDA Runtime can be specified as an optional dependency:

pip install "xpress[cuda]"

When installing Xpress from Conda, the CUDA Runtime can be installed using the following command:

conda install -c nvidia cuda-cudart libcusparse libcublas

Alternatively, the CUDA Runtime can be installed as part of the CUDA Toolkit, which can be downloaded from https://developer.nvidia.com/cuda-downloads.

Licensing

The Xpress software is governed by the Xpress Shrinkwrap License Agreement. When downloading the package, you accept the license terms. A copy of the Xpress Shrinkwrap License is stored in the file LICENSE.txt in the dist-info directory of the Xpress module.

This package includes the community license of Xpress, see the licensing options overview for more details.

Miscellaneous

"Python" is a registered trademark of the Python Software Foundation. "FICO" is a registered trademark of Fair Isaac Corporation in the United States and may be a registered trademark of Fair Isaac Corporation in other countries. Other product and company names herein may be trademarks of their respective owners.

Copyright (C) Fair Isaac 1983-2026

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

xpress-9.9.0-cp314-cp314t-win_amd64.whl (1.5 MB view details)

Uploaded CPython 3.14tWindows x86-64

xpress-9.9.0-cp314-cp314t-manylinux2014_aarch64.whl (1.6 MB view details)

Uploaded CPython 3.14t

xpress-9.9.0-cp314-cp314t-manylinux1_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.14t

xpress-9.9.0-cp314-cp314t-macosx_11_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.14tmacOS 11.0+ ARM64

xpress-9.9.0-cp314-cp314-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.14Windows x86-64

xpress-9.9.0-cp314-cp314-manylinux2014_aarch64.whl (1.6 MB view details)

Uploaded CPython 3.14

xpress-9.9.0-cp314-cp314-manylinux1_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.14

xpress-9.9.0-cp314-cp314-macosx_11_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

xpress-9.9.0-cp313-cp313-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.13Windows x86-64

xpress-9.9.0-cp313-cp313-manylinux2014_aarch64.whl (1.6 MB view details)

Uploaded CPython 3.13

xpress-9.9.0-cp313-cp313-manylinux1_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.13

xpress-9.9.0-cp313-cp313-macosx_11_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

xpress-9.9.0-cp312-cp312-win_amd64.whl (1.5 MB view details)

Uploaded CPython 3.12Windows x86-64

xpress-9.9.0-cp312-cp312-manylinux2014_aarch64.whl (1.6 MB view details)

Uploaded CPython 3.12

xpress-9.9.0-cp312-cp312-manylinux1_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.12

xpress-9.9.0-cp312-cp312-macosx_11_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

xpress-9.9.0-cp311-cp311-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.11Windows x86-64

xpress-9.9.0-cp311-cp311-manylinux2014_aarch64.whl (1.6 MB view details)

Uploaded CPython 3.11

xpress-9.9.0-cp311-cp311-manylinux1_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.11

xpress-9.9.0-cp311-cp311-macosx_11_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

xpress-9.9.0-cp310-cp310-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.10Windows x86-64

xpress-9.9.0-cp310-cp310-manylinux2014_aarch64.whl (1.6 MB view details)

Uploaded CPython 3.10

xpress-9.9.0-cp310-cp310-manylinux1_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.10

xpress-9.9.0-cp310-cp310-macosx_11_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

Details for the file xpress-9.9.0-cp314-cp314t-win_amd64.whl.

File metadata

  • Download URL: xpress-9.9.0-cp314-cp314t-win_amd64.whl
  • Upload date:
  • Size: 1.5 MB
  • Tags: CPython 3.14t, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.10

File hashes

Hashes for xpress-9.9.0-cp314-cp314t-win_amd64.whl
Algorithm Hash digest
SHA256 abf7c9a8b14a165235be64cd34ff2d90cd84a7deb08bf4fcdabbc4398b08f2e9
MD5 d572793d429e3f7aa8bed98bd7999603
BLAKE2b-256 985c2d596b2b596df7f403b56cd03d62a7ab50d17b3bd7046464be3a3cd39b01

See more details on using hashes here.

File details

Details for the file xpress-9.9.0-cp314-cp314t-manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for xpress-9.9.0-cp314-cp314t-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 7e5c39b77a7b6b528379f558c452744adc44998d1ec36b6e7f5ab2cc2c80ddc1
MD5 5ecb3c56ba07724f169a747bf1dec297
BLAKE2b-256 87fbe4cafcfb81bd20ab7218992ccf872dd15a1c6f23acb77f26b4f17952de45

See more details on using hashes here.

File details

Details for the file xpress-9.9.0-cp314-cp314t-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for xpress-9.9.0-cp314-cp314t-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 71ac478cd0b20a8add9ea61a08dc79d92e7550e9a39df87591aae08c9dce9b52
MD5 66d0f4e6b503e276b5b691551bfb8a39
BLAKE2b-256 a6caf4f4bc473249db749df41b032fff6af4b772c6d0fa40e2956fa1afd55b66

See more details on using hashes here.

File details

Details for the file xpress-9.9.0-cp314-cp314t-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for xpress-9.9.0-cp314-cp314t-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3a66d71840d48cc966d886c3989e6cb088130bbb3eb0c78d4f8a56fdfa33cc82
MD5 b346a5835eaaa52442471812fa74b8af
BLAKE2b-256 7d7607b75cfda320d7bc3d54d10cea33c12aa6afb8a5dbf1ddcae24f93d1bef5

See more details on using hashes here.

File details

Details for the file xpress-9.9.0-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: xpress-9.9.0-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.14, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.10

File hashes

Hashes for xpress-9.9.0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 b97dbefdaea15c05044f6d86231a3408534569417dddaf02ee862ee28112fb3a
MD5 f385f4649230cc066d9944d7a1c09bfc
BLAKE2b-256 56cf02156487e38311873c4161239665a10abcac50fbc6656d76d4c330bce002

See more details on using hashes here.

File details

Details for the file xpress-9.9.0-cp314-cp314-manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for xpress-9.9.0-cp314-cp314-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 3cba3f1933f1d9ee4197c32d4accd3c5800dc0b4937b5986b1df2d316925936f
MD5 80d4ac932c78c01ceecff3af84add0d8
BLAKE2b-256 12da7e8fc08a14bf6e051e8745ecab4f10b16ae2d9cbc549d1f5fabdefeeaae8

See more details on using hashes here.

File details

Details for the file xpress-9.9.0-cp314-cp314-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for xpress-9.9.0-cp314-cp314-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 47b8152dd88e0df72451c812878e3a02a3105ee89c16aa0da58db65be9654232
MD5 4ef9dde469b430ff0df1c1ac2a8c6fce
BLAKE2b-256 b082dc87c2d259e4ba7adafee37b7a5ad92a449586759791c1ca513890fce155

See more details on using hashes here.

File details

Details for the file xpress-9.9.0-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for xpress-9.9.0-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0e0c7884f5f700d5a8014a409eb8c96a9a03514bc40995b9c8fba1dbfa063bdf
MD5 81e673bae27396a712d6a1ba7991dbc8
BLAKE2b-256 77eae28996deea19004cd65a604256618ed73a2e13ff463b4362adb11cf8409a

See more details on using hashes here.

File details

Details for the file xpress-9.9.0-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: xpress-9.9.0-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.10

File hashes

Hashes for xpress-9.9.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 0b224ab0d8d44e752ed53e9633482f404253e7f5fc019f6111b19634aedb2eaa
MD5 9946a475f2ad08a9c3239c03c1942567
BLAKE2b-256 f22ff594c146cda0daa90ee79773e9c0d58c79bb76b28c7abfd77f3d46706a43

See more details on using hashes here.

File details

Details for the file xpress-9.9.0-cp313-cp313-manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for xpress-9.9.0-cp313-cp313-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 58b13b37067eb6ab6a05cf5cdf578778139c42b56911934c1e18f9e98107015e
MD5 78f06d25fd15fafd6b9bad54f8541b13
BLAKE2b-256 65e5c28ef8c2fdc5ea6fe942452a17cab97dfc1fe28d74b73593074caba4f3e6

See more details on using hashes here.

File details

Details for the file xpress-9.9.0-cp313-cp313-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for xpress-9.9.0-cp313-cp313-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 89aba3a992dda6cfaf306af5334db423e2b841de30fea734bcda63c750cff1b1
MD5 1f37b30656ebc0f47aaf3bbec1c8db9d
BLAKE2b-256 973ecfda6f258d4ef9505f469ccd03a89c7ce145fb99eb807c18fed05827d444

See more details on using hashes here.

File details

Details for the file xpress-9.9.0-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for xpress-9.9.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 043c371f9c5ef468cc78ee5e44124d65580a291be18055febdff472bc7ef9390
MD5 d77c1e09a83fe98f9140bae562b2ef37
BLAKE2b-256 6476a4b40e26f19a6f5eda4e397db8aa7f4a7b76010ee08dc7fd3d10da4e2578

See more details on using hashes here.

File details

Details for the file xpress-9.9.0-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: xpress-9.9.0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 1.5 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.10

File hashes

Hashes for xpress-9.9.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 aacc04f383aebd154e181785284531b72af8531c4f376bfbec79223819fe07b5
MD5 286d4b07031f7a663ed374310625f446
BLAKE2b-256 2a6796a70775795d2000b3952ad2f54daf6295450d397e18ef4233734a37802a

See more details on using hashes here.

File details

Details for the file xpress-9.9.0-cp312-cp312-manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for xpress-9.9.0-cp312-cp312-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 7d326d98ef6909bc69588f2994f3ecc30112fd52db29cf69c8877e49a612c360
MD5 b503e23f99adf6c0254cc923643270bd
BLAKE2b-256 87e8ae93d7e33e2aeaad962922215f942ce0158af2e187f8f3872786471b2a7d

See more details on using hashes here.

File details

Details for the file xpress-9.9.0-cp312-cp312-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for xpress-9.9.0-cp312-cp312-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 23ffb241221517eb45d6205eb55569ac3d90f776eb1b9eebabdc4eb3ad70659c
MD5 4bdc4da8b7c67b8de5c8f12557e8d280
BLAKE2b-256 c18711eead94eb2e78d3e6bc4fafb6ba3ae0901c409c3fe91b8a033621ee8aec

See more details on using hashes here.

File details

Details for the file xpress-9.9.0-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for xpress-9.9.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 15005498483b160267fbf8b33060bf9a35e65689d026c679f809185eb17f6ec2
MD5 7de1fa8b466e697d7627fc282d682a96
BLAKE2b-256 4d38ad8a23c1bdfcbb4f7b0ea12a266152e052c1b2a2abb7ec3a7921f029aeee

See more details on using hashes here.

File details

Details for the file xpress-9.9.0-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: xpress-9.9.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.10

File hashes

Hashes for xpress-9.9.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 1018de7ee93a46a054759cbcd7344ec4a51729984a76b41ca753a0445a8d1728
MD5 0b6f0c3a83ca063b6385c2f627bd4c15
BLAKE2b-256 0a3cead21b0dec3ffc6efd23015847f2a41691be63a55b3cc66dc1088cb7b8d6

See more details on using hashes here.

File details

Details for the file xpress-9.9.0-cp311-cp311-manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for xpress-9.9.0-cp311-cp311-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 cf86f522bbd1836c8c19e7e602b2a98b1b888838096164430b93a2606892245f
MD5 5bb877c2b952d274797fd9d1e6b7ac69
BLAKE2b-256 c33cd652075e4300b5aff93ae31f8d29319ee93d1aa737fd85ed94eccb1c985e

See more details on using hashes here.

File details

Details for the file xpress-9.9.0-cp311-cp311-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for xpress-9.9.0-cp311-cp311-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 7914ebfa776b27dd7ce6b1b73d10325627b908974befbdf2b87f12ee75e3a3a6
MD5 c52206ede37dc4344f22d507ec6f48e1
BLAKE2b-256 91db1799c7b3e5c8a54756d5dafef88066e96ae3e1b0ba282f1c3f17dbedf950

See more details on using hashes here.

File details

Details for the file xpress-9.9.0-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for xpress-9.9.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cb1ab5c8b59e91cb6bc76f1dd72783ed467b348ba3ca6b1e3eb3d848fa978fcb
MD5 ae9cced4f5d2fd2c5c2a169a3c874974
BLAKE2b-256 56da54dbed36d3913de0fa5a18a57043375dd7d3822c822249de7a60be23a110

See more details on using hashes here.

File details

Details for the file xpress-9.9.0-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: xpress-9.9.0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.10

File hashes

Hashes for xpress-9.9.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 6c237a3d78b23ce8013eb2203896be5987de6ca33f6b2435fd91ce1173de46d7
MD5 ec48a849f47a5a086e7cc6bbc38ce35c
BLAKE2b-256 489094c4f556574b6458e0a0c9bd2fd624915d2d48f6df66085cc9463eb071e8

See more details on using hashes here.

File details

Details for the file xpress-9.9.0-cp310-cp310-manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for xpress-9.9.0-cp310-cp310-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 b3b7e0d9980e843ae4e0226dd6e2fef7ad35c3add484cee5bfe108f8cb2fe981
MD5 b3b5f23fb995e63cc4fafcf4b331f26e
BLAKE2b-256 e11deda6d3104ed8615b842caff3c016ccf0ca53325cacac4171e01338420a61

See more details on using hashes here.

File details

Details for the file xpress-9.9.0-cp310-cp310-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for xpress-9.9.0-cp310-cp310-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 bd7f28d246eb8e187d11e919f6c2da066ed3f04e59e5257b407a2d0904fdd9be
MD5 ed142cccec74aa6ddaacb2023e0ff68c
BLAKE2b-256 6860a40045d2639d1d38a1dd287b6aa05d778746e7c97dc0a60c8e0f2b248195

See more details on using hashes here.

File details

Details for the file xpress-9.9.0-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for xpress-9.9.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 704bfce8846f57e35680d7079a0ecd77b988a3aa623636fd2a52b67ed99abcb0
MD5 986602c329932dbc345c43ad7d3a2971
BLAKE2b-256 63e23484e9bd088c6a877fcc67fd47be0c9a5df66916862ba7b9f57516e5ad91

See more details on using hashes here.

Supported by

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