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.

The downloaded package contains: a folder with several examples of usages of the module, with varying degrees of difficulty; a directory license containing the Xpress Community License; and a directory doc with the manual in PDF version---the full HTML documentation for the Xpress Optimizer's library, including the Python interface with its example, is also 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

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.5.8-cp312-cp312-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.12Windows x86-64

xpress-9.5.8-cp312-cp312-manylinux2014_aarch64.whl (1.1 MB view details)

Uploaded CPython 3.12

xpress-9.5.8-cp312-cp312-manylinux1_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.12

xpress-9.5.8-cp312-cp312-macosx_11_0_x86_64.whl (2.3 MB view details)

Uploaded CPython 3.12macOS 11.0+ x86-64

xpress-9.5.8-cp312-cp312-macosx_11_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

xpress-9.5.8-cp311-cp311-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.11Windows x86-64

xpress-9.5.8-cp311-cp311-manylinux2014_aarch64.whl (1.1 MB view details)

Uploaded CPython 3.11

xpress-9.5.8-cp311-cp311-manylinux1_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.11

xpress-9.5.8-cp311-cp311-macosx_11_0_x86_64.whl (2.3 MB view details)

Uploaded CPython 3.11macOS 11.0+ x86-64

xpress-9.5.8-cp311-cp311-macosx_11_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

xpress-9.5.8-cp310-cp310-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.10Windows x86-64

xpress-9.5.8-cp310-cp310-manylinux2014_aarch64.whl (1.1 MB view details)

Uploaded CPython 3.10

xpress-9.5.8-cp310-cp310-manylinux1_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.10

xpress-9.5.8-cp310-cp310-macosx_11_0_x86_64.whl (2.3 MB view details)

Uploaded CPython 3.10macOS 11.0+ x86-64

xpress-9.5.8-cp310-cp310-macosx_11_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

xpress-9.5.8-cp39-cp39-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.9Windows x86-64

xpress-9.5.8-cp39-cp39-manylinux2014_aarch64.whl (1.1 MB view details)

Uploaded CPython 3.9

xpress-9.5.8-cp39-cp39-manylinux1_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.9

xpress-9.5.8-cp39-cp39-macosx_11_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

xpress-9.5.8-cp39-cp39-macosx_10_13_x86_64.whl (2.3 MB view details)

Uploaded CPython 3.9macOS 10.13+ x86-64

xpress-9.5.8-cp38-cp38-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.8Windows x86-64

xpress-9.5.8-cp38-cp38-manylinux2014_aarch64.whl (1.1 MB view details)

Uploaded CPython 3.8

xpress-9.5.8-cp38-cp38-manylinux1_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.8

xpress-9.5.8-cp38-cp38-macosx_11_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

xpress-9.5.8-cp38-cp38-macosx_10_13_x86_64.whl (2.3 MB view details)

Uploaded CPython 3.8macOS 10.13+ x86-64

File details

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

File metadata

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

File hashes

Hashes for xpress-9.5.8-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 2007191f18d1f77b9b1d5a6c4374eb3a6bdf1a17c90398047ecde577cbe5686f
MD5 b85dda0e779ae2c33629c504df403e51
BLAKE2b-256 068e1161f6a06f6615153bb9267758c08d882fcda8b0a390ceaada19c3b0c569

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.5.8-cp312-cp312-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 74a69b9c3b6b14cbec6c3a8eb3121f172761ece26b02d4af0bc1e08f286cdc40
MD5 7b88a1457f7a4eb947702e621549f736
BLAKE2b-256 220e5306a54f6fc5f5bab02de35293e09036cc6f46d2178ed33b55205d999235

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.5.8-cp312-cp312-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 99e7723e22dee599de9ee6c9d9a878cddf0a572a74b099e90b6e89a03dc3aa40
MD5 bda68b7b51baf5791694a14c97181ece
BLAKE2b-256 ddead1d900ec265645377d53d214518a2bc21df77016f821fc4c51594057e301

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.5.8-cp312-cp312-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 a6e9326e2277d7316e0abafb1d9c8d669357cc1aad91421970b3e72813845f4f
MD5 5ab61847cc846f5b5225627579717bd8
BLAKE2b-256 bc89cfd234d2d8598f469121a69ca5b98c93115c4f5c5478d37bacc1a1632276

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.5.8-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2a568fa190b052b32d32b08295f03026ba8613ca59af9545cc6aedc2afe78902
MD5 abb5f4c60e8603ad3cca9cdcb078fbde
BLAKE2b-256 c735ebbdc9e701ca6517497a6e7e5eeed8cdbfcbb3715c579caded64a55454e0

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for xpress-9.5.8-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 c2af2e97a8b76502fc79dded388a90a08b16e56d328610f992188e5b996298c5
MD5 2ee307001d7c2776352a8ffe57030654
BLAKE2b-256 31464d28c6107130f1bff1529da51f3c491e077aeb1aa23e14d29a5905b54a6a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.5.8-cp311-cp311-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 97cf0290ad8839d70dd108404972ffffb566623ddacea56106c1ec2219b49343
MD5 3561caf3dfb8a90498fac820544e83be
BLAKE2b-256 8e1de635588dbaa69fd9eae1026f9db9698b4c37aa379430f5526eeb4d374b0a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.5.8-cp311-cp311-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 cc2cd624ed56ef64ee1167ea917323efefedebf1cf37b4a2fa7d51a6e867d7ab
MD5 64a4e554775a3996feb38e2ba1ab4890
BLAKE2b-256 68cbee813c9f52dbe3ede5282a83214711f6cf69557a5cf05952f2981248659a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.5.8-cp311-cp311-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 25210b4a1addbc13e6f2cdc8a755e17a94bd2d8335378665a20f80716f92693e
MD5 c8fdc09cc3d6247813bd9bc53ec0c19a
BLAKE2b-256 0ae065724e6e860eb3903ab53216e6f4a643ea3d455cfc1c85d39b956b433609

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.5.8-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 027dde26ab4495ef02565411356e8b83ba7194dc5a7b1ae95a930d1645acc379
MD5 78c4001a47220e42bb2b65027d2d5512
BLAKE2b-256 1a6cd12bfdb78e0c82e0fe9ac84ef158dd74804874a71abaca49e9a9cb096b43

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for xpress-9.5.8-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 6ab63e424d690b3c90e274e330170b814ef6ea5ae6897cbdaaed8aee07a5d22d
MD5 9f15456085d49518e607285f714e245f
BLAKE2b-256 5ace06c01bca176934e5ded09f32824a441b09ca29ecbfab93889a1f3e936a60

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.5.8-cp310-cp310-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 554f13573cf81ed6c63143c207865d5bd3be85a643f306932b06d40cbb6fcccb
MD5 e24f2d0edf9d666a5ebe613513278185
BLAKE2b-256 be21f6688596a5ec0b18be3020ddd5f65291a8366904da408d5bb39a3721f813

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.5.8-cp310-cp310-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 83e55fba227149e5d0a7d7a631ab9c8aa66caa7810e15b962ecc2445e1356db0
MD5 4ddc22fd078f5c4466e8be69c8dd706f
BLAKE2b-256 ece46f7834dc05e19e6f289508f1ecb24656c409aa0b2a09009b40ecc99fbc7a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.5.8-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 3a064b8f775e1c8b26eea0703326700a173f3deb7c96e6bbd4a49abbaf1f2990
MD5 9abf474b304e318f55a3e608f3b7f227
BLAKE2b-256 a6820428d3784f7c41aef60d7f3b937416e8ac227e5a099936ccba48d8851ee6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.5.8-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1cad96e33493f08ec5f5178148619fb10a06711abc26aeb475377ad7ee9002e3
MD5 400af4a052851202555bec1884a9e32e
BLAKE2b-256 a66bb12aaa20faa27efa7033cda2f61e8422e10628b83253b89ad9e915a3de91

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for xpress-9.5.8-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 e6c6b8de80334f0cb39767f86cf4299750cbd61aea30c08e087c24f36c1ec77c
MD5 9318f2af12e7c07bae1457d41113e7c4
BLAKE2b-256 0363b9d903b8d0b48893d7270077e44e3562bee966f61e7c2619b0f1332648f0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.5.8-cp39-cp39-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 6d98e987081260b59e4c7f64a1a7d7bf6499e03c2bce1e036b5d3be3e803bbb7
MD5 4b5f7e21070df6ec1758ad4d358c50c6
BLAKE2b-256 b0481f6f8c16b715c0bebcab41373e686cea958539fb7c8de185686f0ed352c6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.5.8-cp39-cp39-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 2448f0fe31839b45d513680ba13d54166f6671e72d4be3773f18f8085d603912
MD5 738fb6ed30c661e7f869d8b30c8e05f4
BLAKE2b-256 b00760cb8e744a00c76ed3d386bcc281988d5673e8df5850c9221e64add34f09

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.5.8-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cc371d7c68faa8402ecdad00d502bd86cbb8abd3fd828be94acb48dc60d57708
MD5 92915516c65f2d02dcc188232d02d409
BLAKE2b-256 6d8fabfb3cf199526867848fff67765e18729d66c86a471a5d2a0a56c90f75fb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.5.8-cp39-cp39-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 fc0f2446a73a3fcef929102425e9d3a4fa9501054e36ab884b1c586c2684c044
MD5 d8a52eab92dd43880915598e66319042
BLAKE2b-256 651d480a97048401b03180415e9911f01921d180415bf3eabb74579b5005fda7

See more details on using hashes here.

File details

Details for the file xpress-9.5.8-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: xpress-9.5.8-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 2.3 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for xpress-9.5.8-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 dc0fd99f5de693d7bf9581fc59be7276d3a66d6d559123c9ac5c73a0d174c661
MD5 731e2b114b526114990648328ff909fb
BLAKE2b-256 16d4738d989b9cdafb158c3ea511f3f692407c0a763ef84ed9f401d6b8ab9585

See more details on using hashes here.

File details

Details for the file xpress-9.5.8-cp38-cp38-manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for xpress-9.5.8-cp38-cp38-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 f8e911e674981c25646742110b44753b5dc86d947ac1597b5c5cda2d17054b98
MD5 a7987c7266d9e3a3fc9a386bb77edf2b
BLAKE2b-256 f8996be05230dc6a12b6fc6143a34ecab6a520ea89d4a78197dd97d0b000ddec

See more details on using hashes here.

File details

Details for the file xpress-9.5.8-cp38-cp38-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for xpress-9.5.8-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 c2f2b63128bae54c63c086a9788915567629cc99486b7920c164971e0d21bead
MD5 6da0d4e117f2ea697401d68a92929fe7
BLAKE2b-256 9df46fe2719caedb9665a2a787142754790a61dc8d38f8d558e8f7e24e32d98f

See more details on using hashes here.

File details

Details for the file xpress-9.5.8-cp38-cp38-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for xpress-9.5.8-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2dabf4cef97e1ee15aa4672d7747f2b998117c496ab6a64d4823cd3599fcf4ee
MD5 820830549e9c0cec1d9ee824b0771831
BLAKE2b-256 1559c6cc65af29e6dddb020d7a6274bfa92be3fd80c55ea297d01347e89d645a

See more details on using hashes here.

File details

Details for the file xpress-9.5.8-cp38-cp38-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for xpress-9.5.8-cp38-cp38-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 1874ec0f942f92a9de37b77b1438328559c74f569bcbe9cf932cd6f231973abe
MD5 0c722a41c5bc0e8b81ebf50bb6a505d1
BLAKE2b-256 3d0fffe6efd95bfca40a988d711e456d1ffa65a6ae1098ab886e7360c80929b7

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