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-2024
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
File details
Details for the file xpress-9.5.0-cp312-cp312-win_amd64.whl
.
File metadata
- Download URL: xpress-9.5.0-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/4.0.2 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef688c41a48d87aa79eb2d043798e158840cdc18803f6bb52fd41ebab939157e |
|
MD5 | d24555bdb18ed5e9cb5e54ed53e21050 |
|
BLAKE2b-256 | da727beadbc30636e878b1caecc3c9ef50d819e90f05b257ba666554f513f02d |
File details
Details for the file xpress-9.5.0-cp312-cp312-manylinux2014_aarch64.whl
.
File metadata
- Download URL: xpress-9.5.0-cp312-cp312-manylinux2014_aarch64.whl
- Upload date:
- Size: 2.3 MB
- Tags: CPython 3.12
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95194bc6e0033e358c3719a136c6cd229884e970474faabea32d0b7ed39bf1b8 |
|
MD5 | 65228e6e6c6c58c904e8867cd4106c87 |
|
BLAKE2b-256 | 25a857650d043e6997c3658a96127054ff2aeb67f9632c3cb6e6a80ff8c4000e |
File details
Details for the file xpress-9.5.0-cp312-cp312-manylinux1_x86_64.whl
.
File metadata
- Download URL: xpress-9.5.0-cp312-cp312-manylinux1_x86_64.whl
- Upload date:
- Size: 2.4 MB
- Tags: CPython 3.12
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b168a03e2c4c160d73b6c369c29b5d244295201d88a31ab45c39daf3a6db08d |
|
MD5 | 372d4d3183f7bd985f921aeb9a0f217d |
|
BLAKE2b-256 | 9ea3d79dc6900c7f9790f5dc932ee73037c12f51b621f5a4d6c0f6ced38a38bd |
File details
Details for the file xpress-9.5.0-cp312-cp312-macosx_11_0_arm64.whl
.
File metadata
- Download URL: xpress-9.5.0-cp312-cp312-macosx_11_0_arm64.whl
- Upload date:
- Size: 2.3 MB
- Tags: CPython 3.12, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1978c19fd8dca9919bff97609c2da278247383972d2cd98e5b1d8ffd1a15d83 |
|
MD5 | 28a60822f1bd2ffd5137a6d7221a8ce6 |
|
BLAKE2b-256 | e9a8add5f9a699b67d298ff2caf0e25714511f14b600e335179d3de4c3e1649f |
File details
Details for the file xpress-9.5.0-cp312-cp312-macosx_10_13_x86_64.whl
.
File metadata
- Download URL: xpress-9.5.0-cp312-cp312-macosx_10_13_x86_64.whl
- Upload date:
- Size: 2.4 MB
- Tags: CPython 3.12, macOS 10.13+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0389867d0a9f10a8346b3a260aee738c5f9ea085216566f1e7be985bc3ba8cc5 |
|
MD5 | f0d1d3bc65a511c79a9086292f22b7ee |
|
BLAKE2b-256 | d000107e09a0d009f76e12ec30633e1a1bbc9fa90504544131002bee5271e6e8 |
File details
Details for the file xpress-9.5.0-cp311-cp311-win_amd64.whl
.
File metadata
- Download URL: xpress-9.5.0-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/4.0.2 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48456ec917b5dff2029f31a98cc11053b682f3d195140f350646f79e5568bb54 |
|
MD5 | 08d6fdd39de42a82f57e091de1113ced |
|
BLAKE2b-256 | c1faef51afc1887f289816a80f42cfa295b1dbadec8db9fb671d1e71ae245768 |
File details
Details for the file xpress-9.5.0-cp311-cp311-manylinux2014_aarch64.whl
.
File metadata
- Download URL: xpress-9.5.0-cp311-cp311-manylinux2014_aarch64.whl
- Upload date:
- Size: 2.3 MB
- Tags: CPython 3.11
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a69738665b942bf810f283521cd8a8087f44276cf35145c296eafb50cc8adc55 |
|
MD5 | 18e8f134a1a81653f04d208bc9b05019 |
|
BLAKE2b-256 | 0d786218f605bfef424973e5c55b4bb9c5dd35f37fe8e733f94ee07910e38e48 |
File details
Details for the file xpress-9.5.0-cp311-cp311-manylinux1_x86_64.whl
.
File metadata
- Download URL: xpress-9.5.0-cp311-cp311-manylinux1_x86_64.whl
- Upload date:
- Size: 2.4 MB
- Tags: CPython 3.11
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8deea1dd808b5599ec544f59b5d63f21b44a792efcbaf2b07bd927ac7ae35ea2 |
|
MD5 | 89e71a298ff64a7e3d5bb44c3d3cb930 |
|
BLAKE2b-256 | 6c7096a6adb665c48e0dcf4042b8788d5ad8182aee61e6397868b14ec589e68a |
File details
Details for the file xpress-9.5.0-cp311-cp311-macosx_11_0_arm64.whl
.
File metadata
- Download URL: xpress-9.5.0-cp311-cp311-macosx_11_0_arm64.whl
- Upload date:
- Size: 2.3 MB
- Tags: CPython 3.11, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | af640316af14754d013d6167ed8f685d16a9a5a384091878ef8eaee3fa41f2c4 |
|
MD5 | 87f3e34bbaefd0121f7f41e38b3ad7c7 |
|
BLAKE2b-256 | f9061e207787a942ba42ce314677834ceb24eed233326c8845a8ee3531301805 |
File details
Details for the file xpress-9.5.0-cp311-cp311-macosx_10_13_x86_64.whl
.
File metadata
- Download URL: xpress-9.5.0-cp311-cp311-macosx_10_13_x86_64.whl
- Upload date:
- Size: 2.4 MB
- Tags: CPython 3.11, macOS 10.13+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | de200b7785f8085e54c1d1be4e22272a24a21b784afdd895be9244289f6b3067 |
|
MD5 | 63ffad81e1872dc6cd0a6b9a9c9d14fb |
|
BLAKE2b-256 | 4bdf9c9668f32034b89ef29609a91b784a33954be2108e51348b3d9668f26f9e |
File details
Details for the file xpress-9.5.0-cp310-cp310-win_amd64.whl
.
File metadata
- Download URL: xpress-9.5.0-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/4.0.2 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 391870ba4c9ee0a3840a5fd7e22759c8ba5c8da26461402ae461622adc3aec38 |
|
MD5 | 2574ad87a5fbf716638dcb1ff485123e |
|
BLAKE2b-256 | cd9e360741f13271dd55db23ef48e0773a34e9ec659316b03ee57fa743922631 |
File details
Details for the file xpress-9.5.0-cp310-cp310-manylinux2014_aarch64.whl
.
File metadata
- Download URL: xpress-9.5.0-cp310-cp310-manylinux2014_aarch64.whl
- Upload date:
- Size: 2.3 MB
- Tags: CPython 3.10
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 828e5954c2fc12a47ed855c25eeece95366968a982f64b36b5eb322e29ddf539 |
|
MD5 | 082293ea944e5a58eb56d23e5e327259 |
|
BLAKE2b-256 | 68df12afc390709fd8f16a52ea8b2b0b7b620e7beec6b520b54b38e4b1512a11 |
File details
Details for the file xpress-9.5.0-cp310-cp310-manylinux1_x86_64.whl
.
File metadata
- Download URL: xpress-9.5.0-cp310-cp310-manylinux1_x86_64.whl
- Upload date:
- Size: 2.4 MB
- Tags: CPython 3.10
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54d8ae4da58af7a83d166b4b6092badc36e6c9cf5476830bdb4445bcb6ef2938 |
|
MD5 | 6e1a2e67bf9ee57a3ea95b87940ba1fa |
|
BLAKE2b-256 | 946983015ba4568e59dbddfe3e55c4b92a0fc2d10481900b88eee6c85a843953 |
File details
Details for the file xpress-9.5.0-cp310-cp310-macosx_11_0_arm64.whl
.
File metadata
- Download URL: xpress-9.5.0-cp310-cp310-macosx_11_0_arm64.whl
- Upload date:
- Size: 2.3 MB
- Tags: CPython 3.10, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 24fc8a5e07552e5c32dca3dfb790bd9881fdfef4972359e0d72bd1b7e16f0f19 |
|
MD5 | c58dfa3d2e11d0b05565cdaa23c9eed4 |
|
BLAKE2b-256 | b65ba87b7d0759157a67e57d8851b535b7543b331b33557834b7242ceda49a08 |
File details
Details for the file xpress-9.5.0-cp310-cp310-macosx_10_13_x86_64.whl
.
File metadata
- Download URL: xpress-9.5.0-cp310-cp310-macosx_10_13_x86_64.whl
- Upload date:
- Size: 2.4 MB
- Tags: CPython 3.10, macOS 10.13+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0fd130c08ba60b6f3a0be12ff641d73b971d678d4b9a339fd681028ab3856c8 |
|
MD5 | 74f6d5a48bf41f709a9ba2c08e5d2593 |
|
BLAKE2b-256 | 9591046f2d3d196efa033e354590a603aa7eb7ae21bd9d33a8469c7f0837ab22 |
File details
Details for the file xpress-9.5.0-cp39-cp39-win_amd64.whl
.
File metadata
- Download URL: xpress-9.5.0-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/4.0.2 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2509328f49ceda60d3751c5993e0e4fafd4e331864f09ec37675879d17587ae |
|
MD5 | 51b6f0f2fd68a7c9713426a197f3a754 |
|
BLAKE2b-256 | fd7248936f5d358f383479b97eb4c210a2821edd4338c238e6ab85d656824e7f |
File details
Details for the file xpress-9.5.0-cp39-cp39-manylinux2014_aarch64.whl
.
File metadata
- Download URL: xpress-9.5.0-cp39-cp39-manylinux2014_aarch64.whl
- Upload date:
- Size: 2.3 MB
- Tags: CPython 3.9
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 85c24a5a5f98361be79e4dc5dd6ce4cfec7112119793ca409155aebbb96042db |
|
MD5 | 00a5a31da889802e38abc787cb420cda |
|
BLAKE2b-256 | bcc0a06d39f487b8576df84b9a53663d442441439ef8464bde48cef6f06dd19c |
File details
Details for the file xpress-9.5.0-cp39-cp39-manylinux1_x86_64.whl
.
File metadata
- Download URL: xpress-9.5.0-cp39-cp39-manylinux1_x86_64.whl
- Upload date:
- Size: 2.4 MB
- Tags: CPython 3.9
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb8044018cac0c73783ede7ec083819d869483a37b40f6b75afb885b425845e8 |
|
MD5 | 090d54a43db7529150ea9b57ed16a7ea |
|
BLAKE2b-256 | 604a2b60b2be44b53169daf96503099a91a285d95ebe32f0e3a67d13b8aef567 |
File details
Details for the file xpress-9.5.0-cp39-cp39-macosx_11_0_arm64.whl
.
File metadata
- Download URL: xpress-9.5.0-cp39-cp39-macosx_11_0_arm64.whl
- Upload date:
- Size: 2.3 MB
- Tags: CPython 3.9, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | acf1dec5af734e573f4e847f9949779a6cbccd56dfa599dc7a0e3ed5eb1147ff |
|
MD5 | 49a91417397a50fbd1cc38dc8b5d39b6 |
|
BLAKE2b-256 | ccaad9fe356e9b527a9e05d654c30c04ca0f03d9ed3d73053bb2421c87bb4765 |
File details
Details for the file xpress-9.5.0-cp39-cp39-macosx_10_13_x86_64.whl
.
File metadata
- Download URL: xpress-9.5.0-cp39-cp39-macosx_10_13_x86_64.whl
- Upload date:
- Size: 2.4 MB
- Tags: CPython 3.9, macOS 10.13+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7c4f1782ebbc898f77ae628c5c4d0d1590d35d60761021caaad06d82e4759f1 |
|
MD5 | fbc99220343b10609f97200de334d097 |
|
BLAKE2b-256 | 744c5f288ad57e5dd9092f9a8803e1b219156a875e86df95dd1777985be2ad14 |
File details
Details for the file xpress-9.5.0-cp38-cp38-win_amd64.whl
.
File metadata
- Download URL: xpress-9.5.0-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/4.0.2 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26a9eaf0c50c55d62f5e2e71b550a1a55a5fc4ba62e9a4cc05a186b30f66765d |
|
MD5 | 858d973539abca3a8e6ce5bde869611f |
|
BLAKE2b-256 | c9d5f5df2430d9a9395b6f8a117498454c0cf960382b2e368b95896dd074a165 |
File details
Details for the file xpress-9.5.0-cp38-cp38-manylinux2014_aarch64.whl
.
File metadata
- Download URL: xpress-9.5.0-cp38-cp38-manylinux2014_aarch64.whl
- Upload date:
- Size: 2.3 MB
- Tags: CPython 3.8
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8109862677a18e4ee7f371bab7c93e68d21f8a13fe44a03bddaefe5b4dae1a01 |
|
MD5 | aa99bd7a97b41e6caa380e432c655c53 |
|
BLAKE2b-256 | 39cbf8c6b094e5492646668c2bdf17c4044891f1638ee36330a7bd33dadd3574 |
File details
Details for the file xpress-9.5.0-cp38-cp38-manylinux1_x86_64.whl
.
File metadata
- Download URL: xpress-9.5.0-cp38-cp38-manylinux1_x86_64.whl
- Upload date:
- Size: 2.4 MB
- Tags: CPython 3.8
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee664018bc63c1d0dc7117483c46b48ff8bdbad57ab4edc0685d9a88f8d06a15 |
|
MD5 | 49b676679183e313e9553fd592068024 |
|
BLAKE2b-256 | 9c0e11a6ace5613867c0035e8290937abded6b94e8bd744dfd0e5faf5a1a4c23 |
File details
Details for the file xpress-9.5.0-cp38-cp38-macosx_11_0_arm64.whl
.
File metadata
- Download URL: xpress-9.5.0-cp38-cp38-macosx_11_0_arm64.whl
- Upload date:
- Size: 2.3 MB
- Tags: CPython 3.8, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41a09d78bc783342a64aba3960b5e0028b6ed79c04e58113bdbed02ab09875db |
|
MD5 | 1947f18ca6f282fad40bf410057a0b63 |
|
BLAKE2b-256 | 0f954065810a914ac56b0b3d418fcdf088338fb84e28c283aff00916cf06d498 |
File details
Details for the file xpress-9.5.0-cp38-cp38-macosx_10_13_x86_64.whl
.
File metadata
- Download URL: xpress-9.5.0-cp38-cp38-macosx_10_13_x86_64.whl
- Upload date:
- Size: 2.4 MB
- Tags: CPython 3.8, macOS 10.13+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e236380716086ec5587222c304fef3af8bed2e260549208df6c823ea0e1061c |
|
MD5 | 7c0550d7a2bc645e79816b67823f6be4 |
|
BLAKE2b-256 | 0e3da198376ad19d2c7bd2730e4b9e7f36e41f8eac76ea3db38eeadc1355d1ae |