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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12

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

Uploaded CPython 3.12

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

Uploaded CPython 3.12macOS 11.0+ ARM64

xpress-9.5.7-cp312-cp312-macosx_10_13_x86_64.whl (2.3 MB view details)

Uploaded CPython 3.12macOS 10.13+ x86-64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11

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

Uploaded CPython 3.11

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

Uploaded CPython 3.11macOS 11.0+ ARM64

xpress-9.5.7-cp311-cp311-macosx_10_13_x86_64.whl (2.3 MB view details)

Uploaded CPython 3.11macOS 10.13+ x86-64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10

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

Uploaded CPython 3.10

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

Uploaded CPython 3.10macOS 11.0+ ARM64

xpress-9.5.7-cp310-cp310-macosx_10_13_x86_64.whl (2.3 MB view details)

Uploaded CPython 3.10macOS 10.13+ x86-64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9

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

Uploaded CPython 3.9

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.9macOS 10.13+ x86-64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8

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

Uploaded CPython 3.8

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

Uploaded CPython 3.8macOS 11.0+ ARM64

xpress-9.5.7-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.7-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: xpress-9.5.7-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.14

File hashes

Hashes for xpress-9.5.7-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 bd20e4227bbe1905fb09212be968681222e68aba6f515519530b2d8deae758d9
MD5 a550d34ae6320d5cdfa597de04bddaf2
BLAKE2b-256 a3844e90852d4a80c0268895a42984da2a08c4c8993e9f2078c6ce9d1804b1f6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.5.7-cp312-cp312-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 815b887fbae61fa2c0fbbfc4d7de7a20dd6d6d2851edc7af4a5773c36fad0ce1
MD5 9f6e84fe5980ff9d33dd5f6f489f79ec
BLAKE2b-256 52378483b8c5147b8b7aba23e0e1fa7d6d59be4427e5bc56a1750f2698af37dc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.5.7-cp312-cp312-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 6e860556fa086493180c84784e15fc22919b6b208948991af5443306e64e9bfd
MD5 3957a1d214698ba746634f5867933cbc
BLAKE2b-256 7d58b9725a31496083670b3e0c7dbc61720b2d9554a9f94ef6a140fb4e37c151

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.5.7-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7c3b3951594a7b443b5861b0bf5d52892d907b1ee21a7b25125b79dab7d28781
MD5 dc5783b74f0fe6b1465b65c186cef14e
BLAKE2b-256 6f183d9217ecb9a2260ee5ca4178d592d0460c1ffda3a205989cdaf49309aafd

See more details on using hashes here.

File details

Details for the file xpress-9.5.7-cp312-cp312-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for xpress-9.5.7-cp312-cp312-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 8744bb6b9fbd1d57bb5472a3acb4acd97d6aa4de783c72cb2097863be5b50d93
MD5 fd01505240a80f4906eeccc51bf35b66
BLAKE2b-256 c1df1e6c4b50fbd06616cbb5dd0bf49c38aff4157de257495f5e6215b028834e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xpress-9.5.7-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.14

File hashes

Hashes for xpress-9.5.7-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 61910641c989d7bc521039192cc422799373beca7bf580a365002f5bfd3f3a1a
MD5 197476c23d9bd257923fd5081e03aad2
BLAKE2b-256 b9b4c77460debd0a792fe9ab06a8fdca5219fab1696f5c4a09f09e224ceeb274

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.5.7-cp311-cp311-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 e122a1ee1cbb6462220828ed87f560babf2ee74c86a3c10c2e9278a2c98e5847
MD5 646238f9e540830c3730bb8d80118969
BLAKE2b-256 a93dcacb58b23c09f706ba2da0a12399ffef214f3f221531807d308ed9a1944b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.5.7-cp311-cp311-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 8e2b044a1ded44532ae4483ca3ebaf2c9c3b80493dc906484fd4ed87ba74a2e2
MD5 59deaed4b2fd9a2627c28bd23834a537
BLAKE2b-256 56c4c5dd4413088c0af7925d6079c95290c2343d1a42bdffada68961fe6d773c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.5.7-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 19cbd0ac2e75e6192508acb50fbc08c01dae7554cb46c948ed929cdae29bca1d
MD5 212493899e5c3414b3e191705d5b4b0b
BLAKE2b-256 9bcdb4a96eaa9f18278772709d0e852117f7385cc5b45fcf96e667e357dbc2d2

See more details on using hashes here.

File details

Details for the file xpress-9.5.7-cp311-cp311-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for xpress-9.5.7-cp311-cp311-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 147dd28d0bacbb7cf5a05406bbdef2648e4816041160bfe126629633fab56e15
MD5 b5ec7e73bba383cc6957212e270107f4
BLAKE2b-256 76296b1d0cc0a7cc44c2193e65512d016759456489e5e07879c0c3e54459dae3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xpress-9.5.7-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.14

File hashes

Hashes for xpress-9.5.7-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 ce3f62b26bc181619ef20b83d11540fb28c813ddc45a60fbc7fbc62942f22a42
MD5 754f71299029f439d054c154c2ba9efe
BLAKE2b-256 00ea1fdfeebba9407ce665976adabdd00720c479f1fbf66922cb7920faf6f3f9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.5.7-cp310-cp310-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 bf7fd379d37400f82b94f23764cf5e612a489674ddf122fb170afcf9f2a654aa
MD5 7c1e382fd064f9452010e241bb89073c
BLAKE2b-256 b8d98361eaeb7d8c274b14ee89171b7b21616e0a89ac1c41beace709142d5a9e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.5.7-cp310-cp310-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 ab0a85f47e67b14b25bba44f589398375d2330e4d658a90874c401a2b499ba82
MD5 bd770239418aa24799e233718c7e8b86
BLAKE2b-256 09848d0d470cba67c01ce3d591e2b06b4aaf836ee83bb10073dde29f780bf94f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.5.7-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b6317f5d2f6c8dfbe25842785019351203aaa288b1107c179fdde9658522d289
MD5 878e4bcdad6747da504a2f864d36dd88
BLAKE2b-256 63f687d4d3b776510da8730b43bcb2b3da1aead89f8114f4513cf731e3255f94

See more details on using hashes here.

File details

Details for the file xpress-9.5.7-cp310-cp310-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for xpress-9.5.7-cp310-cp310-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 68faa355b5c0b2a87018bffedd9958702514061f21e296f534202215b53a606b
MD5 155f53e1a914a1215d75f807a9c10e01
BLAKE2b-256 e468d071292ae8ba853e9d4037b595700d8491646b138839e2f47797ce91bb95

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xpress-9.5.7-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.14

File hashes

Hashes for xpress-9.5.7-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 d2581ca9658d5a15747d281e347a697b0b5de5e6a354b27913d9c3ce1016c484
MD5 740e2cac373d64ca11f6b743fe382db6
BLAKE2b-256 1065c155d50c250c88bb9351dd25a1ce887a5f2e7fe14bc7986c567dd496b577

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.5.7-cp39-cp39-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 06a7b708c236757726a2fd82f631ad59abce6d63129c771932b94ab97993381f
MD5 86e7952329eaedcc09a8149fa89278b2
BLAKE2b-256 c3179ac6d8b06bd19d0ec9a5e708008d5ff73db158ebb44cdf2c5f41bb2c6a20

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.5.7-cp39-cp39-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 1ded015a74d22c6a223b6e647b0e081f1c58b90e620c2bd4e5de4c957ebdf164
MD5 9a37cf857e80f60d3b75fc521c3294d0
BLAKE2b-256 73a5c746f548868fb3061244007f0fe04098630df499c83dc605cb418b134e1e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.5.7-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2025a9a2b1886bbf12fefaeb3fcc5ed29d018c011ff51df1e415275e80a73425
MD5 6d3f946e8a4e8498167b39b740580962
BLAKE2b-256 a1f1a59a770db627d08b21954138ce385797857b4f07ce83ff314437d4739887

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.5.7-cp39-cp39-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 90173622870549f4e737daa1e1a8b7970476b8c1813f62d39080574c618fc66a
MD5 d656dd477855edec2f68f1ebf27b3dec
BLAKE2b-256 d96d88abde8455ddde7964c591b165c034d54a98a8628939817851f3eff8bce0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xpress-9.5.7-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.14

File hashes

Hashes for xpress-9.5.7-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 6ccb0e090450df58266a4cb50e60c1a605c9af400bb61d2f223a715ae177fc92
MD5 d05514cd582c0e379959003d613339b8
BLAKE2b-256 2c504b18c09087494169d9d2089d039fc2909e15f13c0c67455153c87fcbbae1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.5.7-cp38-cp38-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 17445b2905560ed7ae5717e47203e960c0387197d0d7e95eb4ae65f62bc2f50e
MD5 623afd5624a707c760599abc40085f1d
BLAKE2b-256 5ff39bbed6d5fbe212c2ebf5c7c8039e4698737af8c8343171efe669f36d91bb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.5.7-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 bbcea460eeaf6c10071005be1eb847b09c14090d30faa9a382bac03b3cbcaa23
MD5 d54cb9a9338c2a9b18235f48684c8754
BLAKE2b-256 e1de18f9a6eb2baf42042da2aca63f273ef7cbc4ab63f053054eaab4bfee9d17

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.5.7-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b82e5d7843d44f0c2a20fece10b2b8efed5d4e174d29094e26040bf314c8c888
MD5 56bdf603e4fe7b7f56cfaa2a6b9f7d60
BLAKE2b-256 62e6b789f318ce2fbeac07994cfcad222208e25e6603187599d0ebb13cddc07f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.5.7-cp38-cp38-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 e779ca36d5579ccebdb37cb67d78fa3c0cf1c019a0aaf7eaf7786286e33e7de3
MD5 894abe10f71510d49f14a3ae853cc0a4
BLAKE2b-256 4716b733a598dfa8efb2e0a25601d007734b81d377da9988d603c8711740faf1

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