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.1-cp314-cp314t-win_amd64.whl (1.5 MB view details)

Uploaded CPython 3.14tWindows x86-64

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

Uploaded CPython 3.14t

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

Uploaded CPython 3.14t

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

Uploaded CPython 3.14tmacOS 11.0+ ARM64

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

Uploaded CPython 3.14Windows x86-64

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

Uploaded CPython 3.14

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

Uploaded CPython 3.14

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

Uploaded CPython 3.14macOS 11.0+ ARM64

xpress-9.9.1-cp313-cp313-win_amd64.whl (1.5 MB view details)

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13

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

Uploaded CPython 3.13

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

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12

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

Uploaded CPython 3.12

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11

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

Uploaded CPython 3.11

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10

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

Uploaded CPython 3.10

xpress-9.9.1-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.1-cp314-cp314t-win_amd64.whl.

File metadata

  • Download URL: xpress-9.9.1-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.1-cp314-cp314t-win_amd64.whl
Algorithm Hash digest
SHA256 489a6ef0f1e676d0a403062237fe8fa14054ae61ae0695c0647b334f9622d185
MD5 aa3439b3305b2376ba2fa4148040c853
BLAKE2b-256 75c8b755f8dfb2d9d7972afbffafb3fd1969f79c7a552a5b92e328c55c149564

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.9.1-cp314-cp314t-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 e89f96305f17c1929f4744aaad1b87ea2aef6c1dfb2e76b781910ceda1aa9fcf
MD5 f4ad82b83bc0759bd072f9844a7fa4bb
BLAKE2b-256 f9e3cc92925e35da95e5f6d2221650c4e71695b883c4efef7dac5f83d0208655

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.9.1-cp314-cp314t-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 18df26f1944198e204fce146b56416f62370b5569409cc3c7e7bd210af0b6b7f
MD5 eb3e6f024fd1818fb1a8adbe2430b969
BLAKE2b-256 fa7588badbde1401fa1c641a7289345a59f380a698549cbf2caf627864ea12d3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.9.1-cp314-cp314t-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 91702d75b3dca079cb97bff280a293283efefded4c6ad83c880ea50eb09c035a
MD5 f63bcbdccb027da799a351ca91edaeb6
BLAKE2b-256 60d06fa6486ac9f575e00bcc033860eb2e88e4582569d4025de62887abefd2ec

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xpress-9.9.1-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.1-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 3b6f87b004b037a9fc60c12a7aeef13df46ea58a8b505a6a03dc9f6825cff79d
MD5 f77424e59cf27f565dec2cd59ed8fc2a
BLAKE2b-256 43badb21a7a2ba138d1a0d29eec7dc327c3af940ec0aead87c5468d54f1f333f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.9.1-cp314-cp314-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 62d182a66592dd37fdce71f360ef00af5fdee450f0666da0b6ad5242ee0d9903
MD5 78a460c067511b834ddf419925998eaa
BLAKE2b-256 724e7ec075079de6503fb64ada6c116d0610db0bd556f18f9f831ae70f3b259e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.9.1-cp314-cp314-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 c4ea0e2e14b0ccf2520edeb6a105184a793a54e5a0ef84647e7024e25bf7203a
MD5 32fa19e947ccee9e1f3bbd80a41d210e
BLAKE2b-256 d69688f362d65e7c08f9b136d75defe5e0616ebbc86246640a50ddd562176271

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.9.1-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9228bfadd02b338b88b4238d4cd93c9edd0a339def3146afe975690246e21679
MD5 56068d8e1c3a309036dcc057e43b0f8a
BLAKE2b-256 3740ef08bbcaf0bab48278c3f127aac590537b1fe2c1c37ba18d47f7d8428223

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xpress-9.9.1-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 1.5 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.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 e5f7ae8ef9a547904882ac3698da1a0426f0595a1ac87ceea039b2df496837f8
MD5 617537e4f8fc2f51764cea87deda0cdf
BLAKE2b-256 9574b06b5afde169173a25bbeef221718a7dbab11fb59266a8339e86cd3a1c32

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.9.1-cp313-cp313-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 2ce134b620048c7057b45c8a7bbf724f7097c06d2e78f5f26d9065b09a738546
MD5 5b8aefc2a7b3c736a7cc5277e3b96652
BLAKE2b-256 8bd00136ed57a9015083103ed1bce32cb50bcda13de967a8bf0846ecd93892b8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.9.1-cp313-cp313-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 59932599b1a41ed269e502178dfccdc447ebbd71ce8239c088a948375ccd957f
MD5 dcb4461357032bf06059b07e6ddcb24c
BLAKE2b-256 10585a958e942335e55bdcb43c490027ad36b02992e1255fc0911da467a72eba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.9.1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2edd43daa76c009ec69fe19c2f6a15ade5a4aee12ade1dfeeaf6a45d3cc46665
MD5 efedf160bf6e5058e11fd7c8cc3e1351
BLAKE2b-256 cd6d33cc05c5b530a2dcc1180e123ebec0240ed8deeef932aee677152d9589ad

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xpress-9.9.1-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.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 74e029f6384e5c9155a45dcc729cdd6d1e6d88e81127efcb731bce94b94f529f
MD5 07c9da23bfa00b8c29645fb9052ad3f8
BLAKE2b-256 a21dcf256ff54fbeb2d8a11bf729330ffd704985b5e8504641cacb8fa4186e60

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.9.1-cp312-cp312-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 36b11afaddd7d72b196d967c4eb84a33d9532c72f5e0942e6a2881a207918c00
MD5 07484d25b49fea8c86d2aad6bde80682
BLAKE2b-256 bb5185a91ff5c76101f7a0d21dfd55921ac41b9667aef02bc28ab07915d0f41e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.9.1-cp312-cp312-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 22a813f50e28b83cd52ea0d6f9e8e5a95a4d4b161010e0621e8b989caefd29c2
MD5 f73f03026e1ce50ab02e2a41651ca42b
BLAKE2b-256 1034b9489b2e84d6adfb34275190982942ad28b226aed1edf88ef3f22d03ec2c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.9.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f01135ad1343382f0db23ec927fffc2b6d26a04b57b990706b569d979281b854
MD5 2b124bf15cce903653b643f6c70ce18b
BLAKE2b-256 1bccf9a23ab298d09919949a57933b803db7acea76d58c30822373341fb86ca4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xpress-9.9.1-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.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 95d48103a6592edc86677611883a46b765b0f2d6828f9f06efba65644b0d04e0
MD5 1869b9d113f227d71949e8beb4064499
BLAKE2b-256 e9f3369ea8b0c5beecfc1014704b88701ea33b227ef0171ca2c1a296c9d03aaf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.9.1-cp311-cp311-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 07aa62f8c97799b021cfaa0ae8bd2e8bf0bff2a0a2a6d14cec236ea60e96b267
MD5 37d8d74ed3ed174fa94ae2f79d6a3199
BLAKE2b-256 7e2bb05f4341c9293d9b1c7cb32b16080fe3257670abb4ba5b6b3324cc9d5f27

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.9.1-cp311-cp311-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 bf0b7e1aa3a0aea961003a3a78520ac9d7b3133c5daac6324711b5ef9f8dbdcd
MD5 9ce7c487be04e2fd01d6013afa9a62fd
BLAKE2b-256 4ec0bb05bc13684f7ff41bd7669d4b79743123b7c6b3da22da585e5d69132db4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.9.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fbe7a3abe2d7f621e9bcaa0832ae6d447d6a79df4ac458bf0437f0283a1609ec
MD5 1207d5cdb60fc3bcb983abc4ca3e574f
BLAKE2b-256 a2fd67d251dab0220f32c0f8a7b8ab0a8ec137a1468950ca0e8756347ddaa4a0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xpress-9.9.1-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.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 80523324e3fb929ab41900abf442a5ec234778e748b94d408797fd1ae03be276
MD5 cefe127e9f382e34adfe15d04347add6
BLAKE2b-256 2fa995bbb00ca2a6b8a3cd13d8727767c19609fefdb46937a192786c78794628

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.9.1-cp310-cp310-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 d3529e3773f5c1f0e7336fc8bf553437f28453dbe064961ab9d3aaa0602b2726
MD5 a97c270fbe7bea8780e2c1a02a759fb2
BLAKE2b-256 5ed8e6e05ebd8dee51657aa5c0c94ed8bc20673efa21ae1d8f61d63703043a68

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.9.1-cp310-cp310-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 946956ed0bf59624cbfb7ff18c30258401675f6b0dcbb7ac7a8f5c120fcdb7a4
MD5 924ac14d58cdcc3c0439750449ed274f
BLAKE2b-256 088e4227d1b1c9a08a3bf9c861c5b4c8966b335e0d51adc01a8f0441dea9a104

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.9.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 48e9fc3785f96f98e48132b4bbdb7d437edb17d92256689b601e80970d999823
MD5 356d8ff7bac5f83d38c690f14372b7ab
BLAKE2b-256 45a202e27db6d7d681a26d9e68cd5f97bb90752e479a52b55e683dbdccde89ef

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