Skip to main content

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.

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.

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

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.6.3-cp313-cp313-win_amd64.whl (2.7 MB view details)

Uploaded CPython 3.13Windows x86-64

xpress-9.6.3-cp313-cp313-manylinux2014_aarch64.whl (1.2 MB view details)

Uploaded CPython 3.13

xpress-9.6.3-cp313-cp313-manylinux1_x86_64.whl (2.8 MB view details)

Uploaded CPython 3.13

xpress-9.6.3-cp313-cp313-macosx_11_0_x86_64.whl (2.8 MB view details)

Uploaded CPython 3.13macOS 11.0+ x86-64

xpress-9.6.3-cp313-cp313-macosx_11_0_arm64.whl (2.8 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

xpress-9.6.3-cp312-cp312-win_amd64.whl (2.7 MB view details)

Uploaded CPython 3.12Windows x86-64

xpress-9.6.3-cp312-cp312-manylinux2014_aarch64.whl (1.2 MB view details)

Uploaded CPython 3.12

xpress-9.6.3-cp312-cp312-manylinux1_x86_64.whl (2.8 MB view details)

Uploaded CPython 3.12

xpress-9.6.3-cp312-cp312-macosx_11_0_x86_64.whl (2.8 MB view details)

Uploaded CPython 3.12macOS 11.0+ x86-64

xpress-9.6.3-cp312-cp312-macosx_11_0_arm64.whl (2.8 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

xpress-9.6.3-cp311-cp311-win_amd64.whl (2.7 MB view details)

Uploaded CPython 3.11Windows x86-64

xpress-9.6.3-cp311-cp311-manylinux2014_aarch64.whl (1.2 MB view details)

Uploaded CPython 3.11

xpress-9.6.3-cp311-cp311-manylinux1_x86_64.whl (2.8 MB view details)

Uploaded CPython 3.11

xpress-9.6.3-cp311-cp311-macosx_11_0_x86_64.whl (2.8 MB view details)

Uploaded CPython 3.11macOS 11.0+ x86-64

xpress-9.6.3-cp311-cp311-macosx_11_0_arm64.whl (2.8 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

xpress-9.6.3-cp310-cp310-win_amd64.whl (2.7 MB view details)

Uploaded CPython 3.10Windows x86-64

xpress-9.6.3-cp310-cp310-manylinux2014_aarch64.whl (1.2 MB view details)

Uploaded CPython 3.10

xpress-9.6.3-cp310-cp310-manylinux1_x86_64.whl (2.8 MB view details)

Uploaded CPython 3.10

xpress-9.6.3-cp310-cp310-macosx_11_0_x86_64.whl (2.8 MB view details)

Uploaded CPython 3.10macOS 11.0+ x86-64

xpress-9.6.3-cp310-cp310-macosx_11_0_arm64.whl (2.8 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

xpress-9.6.3-cp39-cp39-win_amd64.whl (2.7 MB view details)

Uploaded CPython 3.9Windows x86-64

xpress-9.6.3-cp39-cp39-manylinux2014_aarch64.whl (1.2 MB view details)

Uploaded CPython 3.9

xpress-9.6.3-cp39-cp39-manylinux1_x86_64.whl (2.8 MB view details)

Uploaded CPython 3.9

xpress-9.6.3-cp39-cp39-macosx_11_0_arm64.whl (2.8 MB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

xpress-9.6.3-cp39-cp39-macosx_10_13_x86_64.whl (2.8 MB view details)

Uploaded CPython 3.9macOS 10.13+ x86-64

File details

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

File metadata

  • Download URL: xpress-9.6.3-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 2.7 MB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.15

File hashes

Hashes for xpress-9.6.3-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 00be0cc1cd87e4d47b43cb0dc2b1d5a4aad812ce24bf78ee665ded7286568512
MD5 f2812b0e9532066ee62e1674544fb161
BLAKE2b-256 20ff8a139b463567b482fb256dba8bfffd18363167a7ff1e0bde8632fccbd8a3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.6.3-cp313-cp313-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 dbcc47e0407f0b58731f9818e8d1748a0d221bd5ff618e8d915471a1ce30c39a
MD5 b4fab576e3088b2a3aba2a873dacb070
BLAKE2b-256 ae2dd87822a9a867f3121444367dfbe11c0992caab5df19c34d623f946d48f9c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.6.3-cp313-cp313-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 840729d49ddcafdedef0f89b6ad516f9acbbd95772f2056f1b57eafe00e147dc
MD5 06fcf7ada5794925a3d82b4531c23b10
BLAKE2b-256 485df008272b25637efab686e8b56e02c6fb9aa34791f4475f014f3c4cdb6396

See more details on using hashes here.

File details

Details for the file xpress-9.6.3-cp313-cp313-macosx_11_0_x86_64.whl.

File metadata

File hashes

Hashes for xpress-9.6.3-cp313-cp313-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 dc257627a156ee6b95cb33da2482bc8a452fa01f154b047743b7b1212cefb6d3
MD5 d3cfb317ab6055c5be6ba3f9b7a4cabd
BLAKE2b-256 8c9bb06b49390d4715b50630758acc1548e6ce4613d12614fca9d9069e192efc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.6.3-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 06e54779afb7b69b965beca6de0ba602d343a20026c0dd62bc39b642a0fedd37
MD5 bb56cedb2161c17040d923434004c5ad
BLAKE2b-256 21ab32e785731fd7b75642bb3fcecbc3cf4b17a871f47ebba39db8efbf91b224

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xpress-9.6.3-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 2.7 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.15

File hashes

Hashes for xpress-9.6.3-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 98962195f422b126e9cf4e59fb4b750963b0d0b59a8a5db32dbb08e794f2f74b
MD5 ce61700c38e9ba797fc289c67b141e43
BLAKE2b-256 0d2d8e44ef1707808df5ba28b3294635215462b0a97f5802b0d6ee4162ba9a42

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.6.3-cp312-cp312-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 324315f1369032e89b259c89c861eb1406e97b3e8a8d744c31307ebf58d3f89e
MD5 456bd7abbc154ede088f989c8866af9d
BLAKE2b-256 2d12735f8790fbcdf995b54ad1008180a99739e8483f85f9ee5a7bffdc463433

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.6.3-cp312-cp312-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 70f4f1b36bacd6eaf382112719d9fade38fd2d8f2fd931d9576cbdc362f55a8b
MD5 808bf54b8c6abb93140e622584cb2947
BLAKE2b-256 0ca251cc699a0ad0d94fb9592f85677e95d7c13dba0cc5e1a21bda940de0e7e0

See more details on using hashes here.

File details

Details for the file xpress-9.6.3-cp312-cp312-macosx_11_0_x86_64.whl.

File metadata

File hashes

Hashes for xpress-9.6.3-cp312-cp312-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 f361c7ad7e73e1b6846f21647f951a310f5dcbb13e9438dc6cb07aa36f55aa70
MD5 8c2615653866228b4dc26cd45779b134
BLAKE2b-256 7e7691eab334256760479e09359183a4d495478ac22fccafe9445fe13e295895

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.6.3-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3bfadf777a5cf0ddae15638d376599aa550c8607eb7f5578cafac89995a0e661
MD5 21ce865892834b414fc05c686a44d45a
BLAKE2b-256 b95ebd1fb0fa363d7d10f637462b905fe934a87d838a53f6ea3a41d0f5002710

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xpress-9.6.3-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 2.7 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.15

File hashes

Hashes for xpress-9.6.3-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 28cd4b1b9855a1e1cef179dfbc1b7530d1b4cf45540baac140ef7c9c06c4386c
MD5 cddff467da6e96c4525625be9e24f4d2
BLAKE2b-256 dab00860c39ccb6fe6389ef5b1f5b3a0770d2b6590f478967794ff38e342909f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.6.3-cp311-cp311-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 ea80c903a06f06b4be712667538dfd5e135fe1ac9e0f5ea0a0a50da1d6cb2f2e
MD5 90732ea92fa5b6edf90bb3453f55ab98
BLAKE2b-256 5e8080c825ced24a85918be1bb94932a1c4449337552b30a4390707a76f1c77f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.6.3-cp311-cp311-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 bc4171e18a8c1d2dcc43ab9213c625a1c96f4593e7428e751ccfb60157cef894
MD5 597ee031998dde5053ce5f231dd63678
BLAKE2b-256 aaf85d0b9c37c2ba407aad132640bc8f74a9e20c29122cb5bedb10f29a0445fb

See more details on using hashes here.

File details

Details for the file xpress-9.6.3-cp311-cp311-macosx_11_0_x86_64.whl.

File metadata

File hashes

Hashes for xpress-9.6.3-cp311-cp311-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 56c3dba50574c4f15b2a5bd57d3234c99f0ec6dd20ca2e3294d9139922d355c9
MD5 0b35ca74e80bc3c4814759d63f0819e3
BLAKE2b-256 2becc8e74fb3ce5b6139a033da63989e53b82027781922e91a498c59a535b81e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.6.3-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1af8d16c5c2ee44c2d705ec5f33cc486da94be9fc5f91740e8b0797db02892c0
MD5 802f6b5aa0184b15d702f2d864ed5ab0
BLAKE2b-256 41d1d1597f85c6fd8b464a1f78f69d3a1ebc2554e813d0b3c869232a987b0126

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xpress-9.6.3-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 2.7 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.15

File hashes

Hashes for xpress-9.6.3-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 b09786e4b53cf1f6beda7f9b87ed436d6301d9f7933415410f253e51c30832db
MD5 9a398487bd34130fc41f35c3b0e43278
BLAKE2b-256 cb30f6c0e4bfac0b2d1a057874a01aa5d09502a9aad6d849a42d646aefa75877

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.6.3-cp310-cp310-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 dfd64481204788378821c468963237d5aa1a50000b31dd63e331f71a3b5be5d8
MD5 1f3e8e3f4dedb9681f2850bea1608bb6
BLAKE2b-256 27855cfe89ce1a6c3633dbf5b048a95100ab456d2541ed8bdf8e16e8f2bb7059

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.6.3-cp310-cp310-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 b1ac93b6590a4d6ab9e0e04ca9069a36f5360171d7757bd02a06b6c3e36e6ede
MD5 cb7b3c11f165e2c56ca389f018f7f28c
BLAKE2b-256 46dfaf805b1a1cbb4128aa3af8b42c0bc301942caac4d22f2921f9e478bb6f0b

See more details on using hashes here.

File details

Details for the file xpress-9.6.3-cp310-cp310-macosx_11_0_x86_64.whl.

File metadata

File hashes

Hashes for xpress-9.6.3-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 0e91d815f03e8aa93d81066cb70ca312666cfcba4fad1addfa413ca85a420db5
MD5 3658787225d021c13be2b7e3a0097776
BLAKE2b-256 3ac1f8d9a4cbbc8724bf426ff3ab6882e08c1b1b886aea148472bad5a72e9554

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.6.3-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 469886325c80eac6c0ec687774864f4f148885462b13ecad50baa577c4e68b1b
MD5 64fc85afb0adace5334b13a70da11e72
BLAKE2b-256 af8df2caaf9cb380d9cf72d2001205e18ab94f45d591d8a6720bb639c898e4a1

See more details on using hashes here.

File details

Details for the file xpress-9.6.3-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: xpress-9.6.3-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 2.7 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.15

File hashes

Hashes for xpress-9.6.3-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 0e21d373f0279dd476b4120f6a4f56e7c166f7bc5bab20b3a6a67b368cc61aa5
MD5 e03cc2c65037471e6eccb604948d982b
BLAKE2b-256 00cdf3d0fb7c49c800b4b5f231e5445048bc6f7b21c8452cfac5e5ef07faf0bf

See more details on using hashes here.

File details

Details for the file xpress-9.6.3-cp39-cp39-manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for xpress-9.6.3-cp39-cp39-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 ce9d1e2e695c85d30664c36b2d456788cc94fb112d8e71275d22bc42bd7693a1
MD5 1b2061e6dd68e70709257e4fc9c3d5e4
BLAKE2b-256 b0cff7d49aff0d6550ec180247e48a011e9ddf6866f21edd6f754b67d6eaa22e

See more details on using hashes here.

File details

Details for the file xpress-9.6.3-cp39-cp39-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for xpress-9.6.3-cp39-cp39-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 393e2bbe307b2d84935c65acef4cd722460b9510a0468e7eba749140289687de
MD5 18e4fd9d6dcecab747bbc2238f9595f7
BLAKE2b-256 1d03b929bd70d3ff35e7edff312e68baa832c87edecb24b217a5e22f3b4e328b

See more details on using hashes here.

File details

Details for the file xpress-9.6.3-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for xpress-9.6.3-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 732e72555c03c5bf7764e0c8520fa3a7eb907f9eefa4f7b31d5e0f300dd7ce00
MD5 b79ca8f8dce387f5b24dbd3767600809
BLAKE2b-256 509579a4638eb0b0e32c6c42be22029fc6112ce9cb2bfd825d62b1f113b176b7

See more details on using hashes here.

File details

Details for the file xpress-9.6.3-cp39-cp39-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for xpress-9.6.3-cp39-cp39-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 b7a0c88e0af1e75fd9ad1ca04284eba19f2ca1755afa0d1118490fdd664068c4
MD5 60dc8c980e861dac1b9056eb91474b40
BLAKE2b-256 af2672ddec008b94e644e83108a54168a949b590ca34ca915190091fa89dad3a

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 Sentry Error logging StatusPage Status page