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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13

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

Uploaded CPython 3.13

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

Uploaded CPython 3.13macOS 11.0+ x86-64

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

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12

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

Uploaded CPython 3.12

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

Uploaded CPython 3.12macOS 11.0+ x86-64

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11

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

Uploaded CPython 3.11

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

Uploaded CPython 3.11macOS 11.0+ x86-64

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10

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

Uploaded CPython 3.10

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

Uploaded CPython 3.10macOS 11.0+ x86-64

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9

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

Uploaded CPython 3.9

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

Uploaded CPython 3.9macOS 11.0+ ARM64

xpress-9.7.2-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.7.2-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: xpress-9.7.2-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.7.2-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 14ff672198f41ca9974d8076114f75015bd50f938355fc864c2e52e4349990f4
MD5 22a31fd0406effecbc9c6c368055da99
BLAKE2b-256 8964ea004764788ffe91e0b9d3fa15963abace34220200e1d1799ad4d2fe5fe8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.7.2-cp313-cp313-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 0aea8b2c687c35672c1103967f083fe1ebc098579d9e7e686b25d51b9871253e
MD5 775aa5519ff11bfddda304bb0156a821
BLAKE2b-256 9e25ac9b1fbaa8bc2b14778f095f3c050e58d86b4db427d93f1fa9ffdcd21559

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.7.2-cp313-cp313-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 1675107ddad1718b1db9e45a76cc422538fb47d5b91becf3c6ffd98df170f817
MD5 35f54638c90709a7adef6ab030f327eb
BLAKE2b-256 2a3749ac1314127c88bf673e65e7c8cee2cc0d1b2f0445090dc4a7648e82b297

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.7.2-cp313-cp313-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 6315091c19f858bf3def8f6008108d5f6b899995d31662d615d754cbceabc530
MD5 e46d364b7481bc6b7aa374a6c156e311
BLAKE2b-256 d20ef6f39e61909abab39c0cc179e7e03048195e9f18da347e52f2d2053abbd1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.7.2-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0e7818adef18cf8827a4e3c7fe962ec4355326030513007d7dd90fb9ece55cbd
MD5 28051136f9fde6907f9c6c3fb0ea4079
BLAKE2b-256 615df6b6bfcb5efec69be33eb051dc479606d90fd0afc42bb0cf660eb6ea4086

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xpress-9.7.2-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.7.2-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 36093d4dbd76946d4e7c920fc51428ce1962598861716f3214d85ce0a1697d1e
MD5 347090b8e50256ca15297c2704f0b6d2
BLAKE2b-256 aa892da6e7aa2399d87b602ccb424b2608354f5006cd3486d4fb6ed8df49c5dd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.7.2-cp312-cp312-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 c157e2f8757ed5b9732e7e6984dc8d9619801f7df6076403065dc8ebabc94f3b
MD5 c391e92676259f0e5488b1dc958b0c8b
BLAKE2b-256 7c0355a144879f63847c390b07d49e4c157a95606de7f537c06638738347c87a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.7.2-cp312-cp312-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 1da14a5a8e30d5d528763531f7c7cf9129263b1b1ae77273d7ac426242e675a8
MD5 aa5602b83454e5e73876aeb137f87896
BLAKE2b-256 b0dee32d04401a37a232d2e280bfd532b2576c609da964358274c761a7fd3a17

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.7.2-cp312-cp312-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 49237af355ed9bac3da58ea7d3a1add20766408270b6a8deded1f4bfa9f604ff
MD5 a55d5de232616e79716e0b413be80850
BLAKE2b-256 d2fed9621c64b009327a3a9f592b53068ff6aa4b5405e64d1e9962b736efd231

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.7.2-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 35cc862578017447afa60de562b27d5b98d5af2df669d6f8592bd17a04bf10aa
MD5 7d7dc287b644b0941410d1e3a7c4bfc4
BLAKE2b-256 b9f0ca10df2b6695b752271d06a3b9e3c918d96acd8b1892a1d7ec379618b7ec

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xpress-9.7.2-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.7.2-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 6b180972cdb8fe0a25fb28101d347cd0f8482c8db87eb66a8ff043cf3f136e7f
MD5 d17a016359413a3630c9e625fd09a9d0
BLAKE2b-256 cf61f9c5c68d3f49e6158df5432c17ebb2b582b297c747c4cdc1755e9943ec0e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.7.2-cp311-cp311-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 4e1e8ac3b477656ebc23a6260ad6893501a372757fc033f7f049f1618956d13c
MD5 951125be2c77fa19b974d398ecb278c5
BLAKE2b-256 60e7d36e5fda80319282ee54a84124be9005506e4f410f65a08e4f6bce8dfbf6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.7.2-cp311-cp311-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 04977dd5e98eeab533a27d6be2b814fa97c6dd2ae48616d411918de9b342e59d
MD5 287228b2a1be221bb5461570fa7fad86
BLAKE2b-256 02b9408b4ab6c912f781a802bce053e3013762bd0e360f849ac32a204fe662ae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.7.2-cp311-cp311-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 81d620d55260222dac6971732e83047d06b548c64aadebf2c8cff4fda8b09986
MD5 dea3342fc2ac96e8828090601372131c
BLAKE2b-256 0c0b69fe28630eef8cc0a26adf222f42a0957b948383af1e32f70babff5e38da

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.7.2-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8803236a43760082d372b48ce22adf7e385d8535ec24b590ab1c44091dc1eefc
MD5 f30585d015a790acbce9a3bc511f94a9
BLAKE2b-256 d816cb99d5892a8353ae1aa8d9ee5d1a079fc7dff9c6ba24f2b4d6585d0fd516

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xpress-9.7.2-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.7.2-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 56ff10f0f0bbc593953613727319a4a746abd5757f18a6d47b0f74f9b777b1df
MD5 ae5fd978849e3d6d4b857ed41a2f7c2e
BLAKE2b-256 e864081d84f0cfc0f8a7bca7b9212310055eef58d38632059c43e0e0d71522f3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.7.2-cp310-cp310-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 8d9632e22026275ef64372ba7fb74724cfc3b12df1130a7b30b6fc10cd25cc5a
MD5 7883d06053d2b7909716b8fdd0cc825e
BLAKE2b-256 f918700b845640c6c0ba1b833c1d43d284376bec10d75b1b84558a0c1252fc11

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.7.2-cp310-cp310-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 45dee5afc1a283213f1a6bd83aac588312d9957eb2d9f18718a5e05f42536e41
MD5 3bed0e086c35dd573891c387929b8945
BLAKE2b-256 2e677ae6e1834cf2308f6e905dbd8c1fedba2178eebaff783ff003a5ebac2551

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.7.2-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 75ce3f40b08eee649f79138345b95fd1f2a74e16b029d307901f38e42bdf3c27
MD5 ab308ed2a404f6f72080319026b2b82e
BLAKE2b-256 1a82675206040cd653769e4e7802a8a3cde19ffb44d6367f01b02657f8284749

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.7.2-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d5b5b9124062951fdc76c87288b2918af8f27c0970df8dadfe2ed39babe6636e
MD5 4bee958b75c6c4733dcb1f5b28e5edc8
BLAKE2b-256 94c3040e9513b07ffec32c3db37260feca16a0b9e9d2d045315a830184099d12

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xpress-9.7.2-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.7.2-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 9dcc8da94d904f5da3cd0e74e14c6e189477185e337712fb1a0bff3f53ba9502
MD5 192f43aaf70606a20071db204997e170
BLAKE2b-256 b814d67f815fb9bdb27efd4ffcba3d523a8e3f03148b5f3934600bd026276bb3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.7.2-cp39-cp39-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 e95c2d27a4f9570cf0e59c791774e2e35e2ddd6aab9b2845659312fe036f3f38
MD5 7a470034da680a96b3d9731a85460a62
BLAKE2b-256 2e16017e0f0116a1fee5b6a4c195e8d5a6b53c9746bbd91dc93bae72201fe758

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.7.2-cp39-cp39-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 cbc138999122b9a5511221a8ad6f7857ab987e5f359c0b647280bff3d05b0ba3
MD5 7a45fd7396cfb1ca332529b7c1a44339
BLAKE2b-256 f7780c41558658e205174ccba70cdd4c0fe82c38bbf06663f53e261999f1d92b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.7.2-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 84b83536a02b17bed8dd497073ae89f584a4d32b86f2a698ddc2d6849fc0d5d1
MD5 3504454a98164ea0f031041d50579302
BLAKE2b-256 fda8b79de01ccd966a4470432e471ccf74795050f6e0a1ee55f5ccc0d33aaf2d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.7.2-cp39-cp39-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 38dd671520b1ed1522d29a171764e677d88baf9ebff8dfc4f664fd0f8b06b90a
MD5 a86c32420376d7a02badd1965a26844b
BLAKE2b-256 d1fa9fb7be9ca76191d1bf984827561524f051b6c9901e09d083e83d9547d047

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