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
x1 = xp.var(vartype=xp.integer, name='x1', lb=-10, ub=10)
x2 = xp.var(name='x2')
p = xp.problem(x1, x2,            # variables of the problem
               x1**2 + 2*x2,      # single expression is taken as the objective function
               x1 + 3*x2 >= 4,    # one or more constraints
               name='myexample')  # problem name (optional)
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-2024

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.3.0-cp311-cp311-win_amd64.whl (55.7 MB view details)

Uploaded CPython 3.11Windows x86-64

xpress-9.3.0-cp311-cp311-manylinux2014_aarch64.whl (16.7 MB view details)

Uploaded CPython 3.11

xpress-9.3.0-cp311-cp311-manylinux1_x86_64.whl (72.8 MB view details)

Uploaded CPython 3.11

xpress-9.3.0-cp311-cp311-macosx_13_0_x86_64.whl (47.8 MB view details)

Uploaded CPython 3.11macOS 13.0+ x86-64

xpress-9.3.0-cp311-cp311-macosx_13_0_arm64.whl (13.3 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

xpress-9.3.0-cp310-cp310-win_amd64.whl (55.7 MB view details)

Uploaded CPython 3.10Windows x86-64

xpress-9.3.0-cp310-cp310-manylinux2014_aarch64.whl (16.7 MB view details)

Uploaded CPython 3.10

xpress-9.3.0-cp310-cp310-manylinux1_x86_64.whl (72.8 MB view details)

Uploaded CPython 3.10

xpress-9.3.0-cp310-cp310-macosx_13_0_x86_64.whl (47.8 MB view details)

Uploaded CPython 3.10macOS 13.0+ x86-64

xpress-9.3.0-cp310-cp310-macosx_13_0_arm64.whl (13.3 MB view details)

Uploaded CPython 3.10macOS 13.0+ ARM64

xpress-9.3.0-cp39-cp39-win_amd64.whl (55.7 MB view details)

Uploaded CPython 3.9Windows x86-64

xpress-9.3.0-cp39-cp39-manylinux2014_aarch64.whl (16.7 MB view details)

Uploaded CPython 3.9

xpress-9.3.0-cp39-cp39-manylinux1_x86_64.whl (72.8 MB view details)

Uploaded CPython 3.9

xpress-9.3.0-cp39-cp39-macosx_13_0_x86_64.whl (47.8 MB view details)

Uploaded CPython 3.9macOS 13.0+ x86-64

xpress-9.3.0-cp39-cp39-macosx_13_0_arm64.whl (13.3 MB view details)

Uploaded CPython 3.9macOS 13.0+ ARM64

xpress-9.3.0-cp38-cp38-win_amd64.whl (55.7 MB view details)

Uploaded CPython 3.8Windows x86-64

xpress-9.3.0-cp38-cp38-manylinux2014_aarch64.whl (16.7 MB view details)

Uploaded CPython 3.8

xpress-9.3.0-cp38-cp38-manylinux1_x86_64.whl (72.9 MB view details)

Uploaded CPython 3.8

xpress-9.3.0-cp38-cp38-macosx_13_0_x86_64.whl (47.8 MB view details)

Uploaded CPython 3.8macOS 13.0+ x86-64

xpress-9.3.0-cp38-cp38-macosx_13_0_arm64.whl (13.3 MB view details)

Uploaded CPython 3.8macOS 13.0+ ARM64

xpress-9.3.0-cp37-cp37m-win_amd64.whl (55.7 MB view details)

Uploaded CPython 3.7mWindows x86-64

xpress-9.3.0-cp37-cp37m-manylinux2014_aarch64.whl (16.7 MB view details)

Uploaded CPython 3.7m

xpress-9.3.0-cp37-cp37m-manylinux1_x86_64.whl (72.8 MB view details)

Uploaded CPython 3.7m

xpress-9.3.0-cp37-cp37m-macosx_13_0_x86_64.whl (47.8 MB view details)

Uploaded CPython 3.7mmacOS 13.0+ x86-64

File details

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

File metadata

  • Download URL: xpress-9.3.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 55.7 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for xpress-9.3.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 13da74b2c8c582c1c0e4abf161001fcd1f73a0b078bcc868f7db04f70950188f
MD5 1ffd0d307d11e3cbc8d4d97889fff55b
BLAKE2b-256 c15373c45ec9507b77ab882bbea2be3d48d3b61891bd0b3efcc241baa3111400

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.3.0-cp311-cp311-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 ab7b847a461847fa35e23ba9fc211290fb3dbe4e7ecc2a7ec19bbf50fa6340b1
MD5 d5a5761cb249366ea8477ffacfc6c947
BLAKE2b-256 a4dc93198349e988caee01b59c624fedab73ca24b8168b79a6f7bb04818c955c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.3.0-cp311-cp311-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 b742d2cab18dd3d54a4c190c59385bf8eaa7f7ae81f75f61ef95c063a79d3d26
MD5 71e8b0fa76338e74f39192e3633cc9d9
BLAKE2b-256 30e3a4ea65a4a2b65d60df36c24a1313e274fefffb4adde4506dcc0037f07213

See more details on using hashes here.

File details

Details for the file xpress-9.3.0-cp311-cp311-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for xpress-9.3.0-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 cc5b8afa0840bd43e994209cbbe730347f1bf9abb12166d017f2f1930b6a266a
MD5 c1954b681e6df5c3f2f4f7b01dd5dc19
BLAKE2b-256 39ccb614adc1e97899327ef1067493e93d0c28b440461bbec0e0c9eab267569f

See more details on using hashes here.

File details

Details for the file xpress-9.3.0-cp311-cp311-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for xpress-9.3.0-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 b3c1e5de348683f7bdbfe40acfd588347a45fe46185f60a8d3a04eb1568abaf6
MD5 3d673eadced40211c3ff8f4e6b71cb8b
BLAKE2b-256 2fd18be677a2b144485d7fb4aba75742ec09b71ed5749e53dde058b4e91b16aa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xpress-9.3.0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 55.7 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for xpress-9.3.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 e89197078661bc686587f556882eda21b650cec6d5edf3500700483adb056d08
MD5 3dd777bd00dc1140c0011c8f9aea0f94
BLAKE2b-256 9303b23bfc0841d808aa596259ee22dae674a2131ccf0c8ae2227f475831ca67

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.3.0-cp310-cp310-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 77e2cf9c7743d607f7dcbaa25768ee238bbee843252fd1d4eda71ff7da2c5881
MD5 2ef0ebaa35f38d0ea12261d3403d757c
BLAKE2b-256 d3cb25af8025bd2a10b6398949d3e4406facaf1f4a6c2e9f30d97579c3667e62

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.3.0-cp310-cp310-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 ad280d75cd4c8cf9c57e67c76cf7605544acb15840a1a167a0017d64a5637f0b
MD5 4581526f4b866b3ff78e68f72bda1db2
BLAKE2b-256 1e10aa68b372b0d736c763cd53d83adf77af1c20b7e5f5e167e338700a2a4263

See more details on using hashes here.

File details

Details for the file xpress-9.3.0-cp310-cp310-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for xpress-9.3.0-cp310-cp310-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 73fce0306a5cd07b264b49ee1abc8711dd2aadd83d7582381da66ca98eef8a6f
MD5 15c3756346871749a2194e66d6ff2a5a
BLAKE2b-256 19717dbc5609875eed39692b6e07c65997956c9ec5c17a8616c624ad94f22fc6

See more details on using hashes here.

File details

Details for the file xpress-9.3.0-cp310-cp310-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for xpress-9.3.0-cp310-cp310-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 940d738f1e3c55dac4944107d9ef30c0f774707019b9f31decd4de9598891ac7
MD5 7bc49b299e33575ae3552952ce212b39
BLAKE2b-256 0f481d64990fdb8efcd1530f4da9da2a84a705ade11c9dec71079983f0e169e9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xpress-9.3.0-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 55.7 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for xpress-9.3.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 4bdd9fa466d340e5f319fe700312fb0b6819d46d7bb76d7b5069fa10e7880db1
MD5 7898f762a67d638a4e4fd87f8c9b48a0
BLAKE2b-256 59d86a6595b3641463565047578f92a9784a28c9e961b7b57393b1ddab7c9678

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.3.0-cp39-cp39-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 191ea515c1d969dad324df90825bf8cc49c0f535da15f22d61733704e0332a14
MD5 22dad64d303cf8b4d0efc677013c44ae
BLAKE2b-256 6d7997f5df34b749cb1b9517de586c0bd82792a7fa171cf95d9c04ba1f8bc9b5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.3.0-cp39-cp39-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 bac78662233b21bd1d0f327cd41f84cc8528bf5b9d956cdd15173504ae75da39
MD5 3b77cd9e1fb3a8b7127368ba353fd178
BLAKE2b-256 ef7c216af62cd48122765b5e3c7bb14d7217ea865eaced59579fc274ad15e4ab

See more details on using hashes here.

File details

Details for the file xpress-9.3.0-cp39-cp39-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for xpress-9.3.0-cp39-cp39-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 b8a636f6679e8d672b2e1be6ca69f92e65f1ccc5de194c4b211f34cb8f804dc7
MD5 bcb3f6f29ec8f3186db7c2e1034878d2
BLAKE2b-256 145a5b575ce79bd7098c107a2baf0243ea60df387c0161e0fb1104e050f3bdb7

See more details on using hashes here.

File details

Details for the file xpress-9.3.0-cp39-cp39-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for xpress-9.3.0-cp39-cp39-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 de4c0908179b090c0d31471fde2ad418313ccd0e7f4eafba738b100a9b72cfd1
MD5 46182ab19ac687b4a23971d48a57a4b9
BLAKE2b-256 97b60d745ff344f5ce2652f2745d3d3c4978c27ae22db555d9727093bf78c445

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xpress-9.3.0-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 55.7 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for xpress-9.3.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 b61fe1c4c119761cdff1c8da0355ac52002f37f610ab770b5386be6c28f250da
MD5 0280a317ec5158f6d80cac379fac109b
BLAKE2b-256 86f9c619e65705d593563f49a174a613c4719b19a657fca8581d14ecd9d04dd4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.3.0-cp38-cp38-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 889f4c41ca08cd040dbab66eb41b99df8914cd660b8df26243ee96061c750259
MD5 d321ddec09403d9fec01bc280463cada
BLAKE2b-256 fc03ba93ce290878fff12d94e156b8e60318dac457e8d57a7a36f2adf24cff80

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.3.0-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 43cc37dfb9273a7ba9bbf9086ed698d08903477aa48480ef02733147ad2fff3d
MD5 b21fcbd06b51acc21756d9acaf1b26a8
BLAKE2b-256 17d341e6147da04c1b3e862d99b6f26e04cf2ae518b029dae11b4c4416066842

See more details on using hashes here.

File details

Details for the file xpress-9.3.0-cp38-cp38-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for xpress-9.3.0-cp38-cp38-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 0661acd92413300893035439edeea04b1caa86e6899a8b9c950d47f18a0bde69
MD5 81edd32fb0555d1a7fba308db0969150
BLAKE2b-256 fe94a4d7ab2e7d18d2765955684fd1ae658660587cc4965d8297e1da536cd42b

See more details on using hashes here.

File details

Details for the file xpress-9.3.0-cp38-cp38-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for xpress-9.3.0-cp38-cp38-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 f3aabda82c7d112959853e80375002fc60f189f7dcda4a378902b8e728ddaec9
MD5 575b7fc5ec6ec6713b1c426bed1e2d8a
BLAKE2b-256 c4c2609a2b1e3f87500d046d6ce8c3386f9138273b227ed7fe0cd4818897268d

See more details on using hashes here.

File details

Details for the file xpress-9.3.0-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: xpress-9.3.0-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 55.7 MB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for xpress-9.3.0-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 20ae2376023d75e166047008d8b3b16e7cedb6f41162e354f549c135e277e65e
MD5 6be19d6ef450d31518f82b1aaada8f44
BLAKE2b-256 2d9b7e70949147ee82af4a66335cbb4463dd2ed935a214aef4791ba34b4158f7

See more details on using hashes here.

File details

Details for the file xpress-9.3.0-cp37-cp37m-manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for xpress-9.3.0-cp37-cp37m-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 4f56b03b16d72cc90001cc214a1cb17fc7e07ff49b20189cfd247a86cf4fda20
MD5 6ecc4bee9ac441ed116b5ab6c8527f67
BLAKE2b-256 5cf7657d491baac3af31b33ecae545d78b801070864e47c525de326dbb32b9e7

See more details on using hashes here.

File details

Details for the file xpress-9.3.0-cp37-cp37m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for xpress-9.3.0-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 e1fcf573dbeeb25622fa654abd19d46ca1eb4856382b597d96e8623f8979e2df
MD5 4a108b6cb99f8811220167c5d01c1788
BLAKE2b-256 3f1e359c25494c33ab5c0ac589f0e114b9b4f93b0f5d30dcc083300c90975260

See more details on using hashes here.

File details

Details for the file xpress-9.3.0-cp37-cp37m-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for xpress-9.3.0-cp37-cp37m-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 6fb5bf88e6d8cbf23aef5d7d607755679ab98757f7ea67d15e63712f89d588c8
MD5 78f66eb266af5c46e109080612adfcdd
BLAKE2b-256 83c0ba13453bce97f78dc6eb7827fe93dc8b86ad49e4ea0c9a001f0f4c75424a

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