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.

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

Uploaded CPython 3.12Windows x86-64

xpress-9.4.6-cp312-cp312-manylinux2014_aarch64.whl (1.0 MB view details)

Uploaded CPython 3.12

xpress-9.4.6-cp312-cp312-manylinux1_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.12

xpress-9.4.6-cp312-cp312-macosx_11_0_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.12macOS 11.0+ x86-64

xpress-9.4.6-cp312-cp312-macosx_11_0_arm64.whl (2.0 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

xpress-9.4.6-cp311-cp311-win_amd64.whl (2.1 MB view details)

Uploaded CPython 3.11Windows x86-64

xpress-9.4.6-cp311-cp311-manylinux2014_aarch64.whl (1.0 MB view details)

Uploaded CPython 3.11

xpress-9.4.6-cp311-cp311-manylinux1_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.11

xpress-9.4.6-cp311-cp311-macosx_11_0_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.11macOS 11.0+ x86-64

xpress-9.4.6-cp311-cp311-macosx_11_0_arm64.whl (2.0 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

xpress-9.4.6-cp310-cp310-win_amd64.whl (2.1 MB view details)

Uploaded CPython 3.10Windows x86-64

xpress-9.4.6-cp310-cp310-manylinux2014_aarch64.whl (1.0 MB view details)

Uploaded CPython 3.10

xpress-9.4.6-cp310-cp310-manylinux1_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.10

xpress-9.4.6-cp310-cp310-macosx_11_0_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.10macOS 11.0+ x86-64

xpress-9.4.6-cp310-cp310-macosx_11_0_arm64.whl (2.0 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

xpress-9.4.6-cp39-cp39-win_amd64.whl (2.1 MB view details)

Uploaded CPython 3.9Windows x86-64

xpress-9.4.6-cp39-cp39-manylinux2014_aarch64.whl (1.0 MB view details)

Uploaded CPython 3.9

xpress-9.4.6-cp39-cp39-manylinux1_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.9

xpress-9.4.6-cp39-cp39-macosx_11_0_arm64.whl (2.0 MB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

xpress-9.4.6-cp39-cp39-macosx_10_13_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.9macOS 10.13+ x86-64

xpress-9.4.6-cp38-cp38-win_amd64.whl (2.1 MB view details)

Uploaded CPython 3.8Windows x86-64

xpress-9.4.6-cp38-cp38-manylinux2014_aarch64.whl (1.0 MB view details)

Uploaded CPython 3.8

xpress-9.4.6-cp38-cp38-manylinux1_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.8

xpress-9.4.6-cp38-cp38-macosx_11_0_arm64.whl (2.0 MB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

xpress-9.4.6-cp38-cp38-macosx_10_13_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.8macOS 10.13+ x86-64

File details

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

File metadata

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

File hashes

Hashes for xpress-9.4.6-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 453a01c09e7a441348429343996c55e6f7d7a75e832374cf2cb6291ceb1b8712
MD5 375b4adb105487b617a5c715c095643a
BLAKE2b-256 ce7d73becb489e3803af5d304b0842c170923bf561d6ce1c759d49a5d67f3a42

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.4.6-cp312-cp312-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 46c3b2a158bcd4bdfd09646b7c5d2e23d93bb111d51c07c0bb535a8ed729478a
MD5 4f587f5c5b6466b6e65dc237ac217a19
BLAKE2b-256 d937ee5cf5f50be7fdd0695a01c10abd63cec7c878964808c9fa839c714a105f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.4.6-cp312-cp312-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 91a3a2aed4599d9acd1054e93c430a42e27c8091628c3c2a23940aed9c4a6859
MD5 e1b2a9f09d7ef38c77fd44991f92df30
BLAKE2b-256 904581bc2fd68014c7b6077bc56aa8791bab064dd12dc42fa3775280127c9887

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.4.6-cp312-cp312-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 6802ef229d38ea178357bf71f2f9b69fd36d549c56dcdcc0a1627f14482e6314
MD5 a4e0d9bba3b85007709506d6bf4a7865
BLAKE2b-256 75d0813d7d01bb14bfb136033b3fe7004e430af3a0e10d93e655fa7fd81f4ece

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.4.6-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e334fbc19af33256f479d19a4ffcc96b6a3b23cc9f5d22d77c820ca86f947c02
MD5 61971434dfcb25702dfea78f91c3ceca
BLAKE2b-256 5ed2c4a175de962eda832c656b3e32771426f9ef61305d7c8036a21bc67565ec

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for xpress-9.4.6-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 a0db36c07feb07b6535f690d0272b44e0acbd5f559d27d2505d7e5ddc88bc48a
MD5 0ccdc9cbc4268bbcf2876ea389326be8
BLAKE2b-256 2186ad04b19684a115eca7a793436dc610b6c12b28eef52840dacb841857e0ff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.4.6-cp311-cp311-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 02c66613f7de5df60a7397d508195131da4e461ef063e246129fc86f5e11a3e6
MD5 283c7c8d2b1a393e11e95b84f803d22b
BLAKE2b-256 9bcbe75c2758e5d637e5748b69ad75f5e749249235a1cf38b11e2c3394276dc9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.4.6-cp311-cp311-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 52d5f3c3310ea46f5500f7ae8a62d6237bfeeed9f1c9970de654e1e5566fa3d1
MD5 526038f75cd50f24af49f51a4f9e8074
BLAKE2b-256 ff7e49ef85ea2cca0560df726cf1f4263a5ebc46c66a64f71d1184d869e6430d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.4.6-cp311-cp311-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 ac40c7d04a7f56e5f4f92d92b2dc6a952209b5d6f9ddb30b328d17e8de4f52c9
MD5 85e99201f9be112ca299bd839d87a500
BLAKE2b-256 4866adeaa7777d2747cb2062fc377565086b657d9b5cb8e23c5a12e9b28bc1f0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.4.6-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 85c0c9ac300e5ba188fab036fe9818960bfca235ade1d8bd563bffafd7e7168b
MD5 12331e4fe7453d6bd053676e3aac4581
BLAKE2b-256 4e817ac47826731fbdd57bd120ff5edb7d2dec86d91920ff5d006b4859f46e24

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for xpress-9.4.6-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 9b1c16a8233e5586e07f5d0b62dcf6d49150cde55671ebdac4bb20accb4dc018
MD5 cc96abacf589fdb5b6b5abe7c6ed83d2
BLAKE2b-256 c505f1ca7ec77d18249794ec9754ef4d15c4309fad01ef97fc6192777aec1f31

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.4.6-cp310-cp310-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 83e06c441d30f20711501077ed67cb3f83376ddcf1b6a2ae3effd1442845a41e
MD5 67c1315f100d50c681aaf7522bc2c367
BLAKE2b-256 7c7964a9f275d5ecf37c1ccc5bcb472f4505a7db31d022e39d91a8b3aea70d42

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.4.6-cp310-cp310-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 12895c5c5ae68fcadddd6ba1f6c1dc946b5d604a38a0cb346c045a57273b0841
MD5 5d82397e1d7223840c83a98f567be2e8
BLAKE2b-256 23af8da547eae40c018ac5fad6153aa54fb457bef9d6390f8142a91d20aff806

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.4.6-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 a33fd65cf4e9a12ff99d05e4c7bc2b7a59a5997729cddc76aaa26dd498d4530e
MD5 d7f967a917265eda89a73990ac2aeeef
BLAKE2b-256 b1215e62225174160dad4b3de0591b7f3cad38031c1b27d98f629fd55ecbfdce

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.4.6-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 98112d0fff3d4d43d1058300c8060d754957234d1db023fcfe10a5f58d4c0d3d
MD5 795ad6a4f41b566b0e1d3781c5acc596
BLAKE2b-256 c8dabb0dd1d841a0b37e60240a85644c195c331432b65a42725051fc38548552

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for xpress-9.4.6-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 3e7eab8ddea72dcd71ca9f61504fb87706e1bff6aadaaf71ef04172085877199
MD5 5f4ab2081b807e8ab210f5b785a44afb
BLAKE2b-256 e20212b914799b5190adfb71729a64496a7cee98a701b28950fee8d4618b2020

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.4.6-cp39-cp39-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 52752fb892c529706a1da49a0b8c920f4db8593423a96d40c66e6e6be50a59ee
MD5 a81e227e3bb5f6dec248b76f04a64319
BLAKE2b-256 850ae5780cc3746144be190a2ef7c417d86ee540c0a1c4e7a0be83d23f2c9552

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.4.6-cp39-cp39-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 65bf2a136fefb5e2c5a8ebbbe79aba1ccb94da4447f8e30dce104fa2a6a59f00
MD5 c89f69b583a87b9116398d2f45425a86
BLAKE2b-256 2033cac891a3828fd3b9c235dec12e2ee20761ab647d45e446dcd341ce1961ca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.4.6-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a7cb4753b63f5ca9aa6fdc625db904826a952610416ad93631de244852c802ab
MD5 c92181ef383fe4accba67b4631e11424
BLAKE2b-256 517c287687d42732bb47d0f2caa7babfcfcd16196a13944f2b90b8a7d224c96e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.4.6-cp39-cp39-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 f3d6d5a675bebba8d038d5efca2000934cdd3f0198b377718794ee6885061334
MD5 09c40190d68827e9e487c4c5cd07f2bd
BLAKE2b-256 3c794a32e876446694608dbd65a5646ed34ece5424ccd5539f663bae8bcb8481

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for xpress-9.4.6-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 a562e4aabe9fb1003f96060d44d34d109f3553ea9b2045970cf563772fce592e
MD5 2938010e385a2f6c77a560538220efd4
BLAKE2b-256 ad8e6ae962bc27fc4acf6ccaa23190bae2c8b7a400b24406cbd619f1073cba63

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.4.6-cp38-cp38-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 7ba8c4a39a06e91dc22dc819a702285e5c21d620273ea149608c644c2c76692a
MD5 c2986024722baab17bc017edaff4c62f
BLAKE2b-256 2e3bb2b8175a6fa5e4b34cbfd86b5ac08201aa5dd1ae1fe3477553e3726da5ba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.4.6-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 fea23ae2c8568bae60aa4c9b1fc1f6f791cb600e111ce5f8204cd420ec3b0702
MD5 87d5a6fe52c9313ce9683a2ba32cbccf
BLAKE2b-256 41f2ee0bd256ece300372fb4f6230ddb3a7e9e09e54c726b888b3df23854f293

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.4.6-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6d631c08bf22f5b7ea8cbc64631216865d14a9c75bd15468dfd9d2749b8832a5
MD5 68c50423308e7d7ceec17059736d15e3
BLAKE2b-256 de179b797e29d3dab4970fffbb8c797e44a5e469a800090a4305368573266a98

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.4.6-cp38-cp38-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 0f2748163457b60775b6054aae35bc53f06387a2bcc0967a17c30ad8af6e50a1
MD5 7f48d76dd956ebdb073439473b22a9bd
BLAKE2b-256 59827fc3f200fa2ede089df219635eb4c46ee98619c1d51b35ac9cf52b5a6148

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