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

Uploaded CPython 3.12Windows x86-64

xpress-9.4.0-cp312-cp312-manylinux2014_aarch64.whl (17.8 MB view details)

Uploaded CPython 3.12

xpress-9.4.0-cp312-cp312-manylinux1_x86_64.whl (68.5 MB view details)

Uploaded CPython 3.12

xpress-9.4.0-cp312-cp312-macosx_13_0_x86_64.whl (46.1 MB view details)

Uploaded CPython 3.12macOS 13.0+ x86-64

xpress-9.4.0-cp312-cp312-macosx_13_0_arm64.whl (13.7 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

xpress-9.4.0-cp311-cp311-win_amd64.whl (56.6 MB view details)

Uploaded CPython 3.11Windows x86-64

xpress-9.4.0-cp311-cp311-manylinux2014_aarch64.whl (17.8 MB view details)

Uploaded CPython 3.11

xpress-9.4.0-cp311-cp311-manylinux1_x86_64.whl (68.5 MB view details)

Uploaded CPython 3.11

xpress-9.4.0-cp311-cp311-macosx_13_0_x86_64.whl (46.1 MB view details)

Uploaded CPython 3.11macOS 13.0+ x86-64

xpress-9.4.0-cp311-cp311-macosx_13_0_arm64.whl (13.7 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

xpress-9.4.0-cp310-cp310-win_amd64.whl (56.6 MB view details)

Uploaded CPython 3.10Windows x86-64

xpress-9.4.0-cp310-cp310-manylinux2014_aarch64.whl (17.8 MB view details)

Uploaded CPython 3.10

xpress-9.4.0-cp310-cp310-manylinux1_x86_64.whl (68.5 MB view details)

Uploaded CPython 3.10

xpress-9.4.0-cp310-cp310-macosx_13_0_x86_64.whl (46.1 MB view details)

Uploaded CPython 3.10macOS 13.0+ x86-64

xpress-9.4.0-cp310-cp310-macosx_13_0_arm64.whl (13.7 MB view details)

Uploaded CPython 3.10macOS 13.0+ ARM64

xpress-9.4.0-cp39-cp39-win_amd64.whl (56.6 MB view details)

Uploaded CPython 3.9Windows x86-64

xpress-9.4.0-cp39-cp39-manylinux2014_aarch64.whl (17.8 MB view details)

Uploaded CPython 3.9

xpress-9.4.0-cp39-cp39-manylinux1_x86_64.whl (68.5 MB view details)

Uploaded CPython 3.9

xpress-9.4.0-cp39-cp39-macosx_13_0_x86_64.whl (46.1 MB view details)

Uploaded CPython 3.9macOS 13.0+ x86-64

xpress-9.4.0-cp39-cp39-macosx_13_0_arm64.whl (13.7 MB view details)

Uploaded CPython 3.9macOS 13.0+ ARM64

xpress-9.4.0-cp38-cp38-win_amd64.whl (56.6 MB view details)

Uploaded CPython 3.8Windows x86-64

xpress-9.4.0-cp38-cp38-manylinux2014_aarch64.whl (17.8 MB view details)

Uploaded CPython 3.8

xpress-9.4.0-cp38-cp38-manylinux1_x86_64.whl (68.5 MB view details)

Uploaded CPython 3.8

xpress-9.4.0-cp38-cp38-macosx_13_0_x86_64.whl (46.1 MB view details)

Uploaded CPython 3.8macOS 13.0+ x86-64

xpress-9.4.0-cp38-cp38-macosx_13_0_arm64.whl (13.7 MB view details)

Uploaded CPython 3.8macOS 13.0+ ARM64

File details

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

File metadata

  • Download URL: xpress-9.4.0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 56.6 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.9

File hashes

Hashes for xpress-9.4.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 7c5edc6c0c57afe574518b93de316f5cd52546815c4b87ae83891b4e9d172dba
MD5 9d98f0bbdf5d2f252b9cc947793242f1
BLAKE2b-256 60c880fd91f685bb3c1551b0d20dbe969bfcd8b3858ed0d786f018872c9d41c8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.4.0-cp312-cp312-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 4a124ea10e49360314417818a32aaa809d69ddf113cc225229a96368de67b677
MD5 eeae13cd6ddc2ab3a388f3d1e9b9ba2c
BLAKE2b-256 5fd6f7cd13d9e4f94d949e4e2c6962b4b4aeb898bddded8102e391f4bfd83cc0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.4.0-cp312-cp312-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 6301a9b7ccf33922ce7f3be9b6febffaf0363d9774757c1542128260ce4ce0a1
MD5 b6356bbb23eff82907560c6a6255b9f9
BLAKE2b-256 d5eab02c534a9709919d90521ad846b9777d50eb4140da2a85ef3426835118ed

See more details on using hashes here.

File details

Details for the file xpress-9.4.0-cp312-cp312-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for xpress-9.4.0-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 6e5e00846a1b0d462808253c87f98c8dc21145cc99998ab778c9529699fe3507
MD5 60b5638491eced2e3916f75ba9dc1299
BLAKE2b-256 88ea3b4018c9e505da73ef29513f1f1b20184bc132623fc97a5ae13382ecc289

See more details on using hashes here.

File details

Details for the file xpress-9.4.0-cp312-cp312-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for xpress-9.4.0-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 8ecdd6638e8ead51da67fbac335f4b13164b16b309b47853fd6be614e9021ad1
MD5 67c6fdfea3b6d90c55190580b15a41ba
BLAKE2b-256 f4cb50ca2e7ccd8693c3b87c05e10dc760c879eaa66e76f3bae7812eebbdbb60

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for xpress-9.4.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d36663371a20fac13d8931d4dcf1935ad68c7c48814fb15d416d8bf8e62f60ed
MD5 8379a9c7f85faa42dbd8ea284298770c
BLAKE2b-256 e919ff5a90e297ad39f62c76b49b31f4a6581ca203a6182fe64563302cf7ede4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.4.0-cp311-cp311-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 8eff455ec4050cc77601ca15541f4dbcf6d0008cb54c96af7c3d8ae9247d2f46
MD5 a0558c6e6289ab3e75446dcfc1395c8a
BLAKE2b-256 58366d7eb28bbfcf930eca6464aa21820bc548bb40ac34516508b583460e1a6b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.4.0-cp311-cp311-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 b59033d00a60cdbdf047b91033c8e343681c8772c06d17ae007d4d7b38b83d5f
MD5 2025b1156dd55b7f469586560c3619d7
BLAKE2b-256 18ded9071bfc1e9e5a6991aa1314613d29b2bb0d372c84c751dc614bb4b91b0b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.4.0-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 969bdc85f86114f621a6eb36b542d5a650ce3f3525012968c26433c02412df49
MD5 bdc8cb1dbe922e2eeb6c21a3242eb0a2
BLAKE2b-256 f87f519309d163ecda0794740aeedf3cd1586f2c49a260c84d763e5f540cbf7d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.4.0-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 e19337748d4b39588ad31d1ae4f9d6b40efb35d5d85f96edf8ee5294b99e27aa
MD5 7cfedb6cc54ab1fe4313a84fab3f4fc9
BLAKE2b-256 e62300610c01a3cb1b9de106fd9c623e698b7048412661262d61b7a2bdadb5ff

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for xpress-9.4.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 4e25f849e3dbb9aafee8b32435c7e73e00b6d035f429a4f2a61bb42650156ea8
MD5 5347a22f5e038056f0289e36a9f6e32b
BLAKE2b-256 de6e3b96edbd5950866e5dd3cb80055c306d25eb7c18d3861e9f121b5d7c4284

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.4.0-cp310-cp310-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 4e92d99642bb26d5f7ff29123cb77bdcaedd797ace2e13de05b4f8deaf915118
MD5 e855e2f1613b42d1adfc9bdff5a6a2f5
BLAKE2b-256 918cfb1838926ca1ef4543334dacaa7f91ab6852bef3447fc61270934f75d64d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.4.0-cp310-cp310-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 83c96407a901120a15f60ffd78e7d39158bdd413160b510f6e939d8c497158a5
MD5 aec20581e54053a098e9f84d8a1b370f
BLAKE2b-256 edc2eb6764d5310c51e82969a0ea99c63ec767fc76f82cd0f42906965eb96937

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.4.0-cp310-cp310-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 e3b626bac6497cbd2a3e72d9d6870c5d3731bb650eb7b1dc6c90c85e1286f4fb
MD5 a85df6722f70fe317d92bef1606e032e
BLAKE2b-256 00bcdde1ce8cf36367dffd76054d8c130ff8b429d471c4543a42fa6c2f0beaf3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.4.0-cp310-cp310-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 4bcc7f83a800c3f3bc68bfd7b7e69fa8afd1387e7e76cbbbdceee330b5171196
MD5 3a964a2db5083150c45a33c38fb72415
BLAKE2b-256 eb29179722d0528dacca993414f7f1b325c39d353515e7b5f9853e9bf28ed24e

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for xpress-9.4.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 092da55d7d2dc7417910375239055052991975fd0cd5a3ce9697e7069ee50501
MD5 d3b1a03b6e4e797863565d2d965d7640
BLAKE2b-256 2891014aa868b8ebe7a7caca08469c669944e88cebedcbc1bbc189df58d9339b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.4.0-cp39-cp39-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 f4a995b042cc2ab34bea112233a5581548c6eab98e1688fb27e4a09a4c14a08a
MD5 470864ab1ecd2f874ae03488106664ec
BLAKE2b-256 219dd6b9a1d9666b602ae8996e016c546c298a92d50f9dbd5ddf2efb785fea98

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.4.0-cp39-cp39-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 c91ae0337bd8a94fe93292ffff261d20a81299810578dfb6f1351a3d53796772
MD5 7f01b8b7ba7430f679af01fbd0b1f207
BLAKE2b-256 c3dbcf00e92fef92562af041f5eff58135944fba1c5ab09600f900eb8119fc40

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.4.0-cp39-cp39-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 96e9cd7085942d500391fe01d38b29441582ff92666c9bff290a3dc5eb8afa6d
MD5 700d83e1a8b2a128d3f73f0bc0534de3
BLAKE2b-256 52a9388b60b978a2b8365b956d2f88446ff18b2536cedce24136b25bbe8d18be

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.4.0-cp39-cp39-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 2021a72fce3dd3fe2b380c42ae549a9153a45ddeef618f41e9fd154435e35e2b
MD5 966302b29ab218268cd66e0547383e7d
BLAKE2b-256 7a366fa71cc7b24d9d13a5b1440b66e18d90d5c2b61571caf769c1b1fd4e4f17

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for xpress-9.4.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 d2bed3207308b34a8aa1270abdd2e5985ffc63c026e2d32786a6ccaece50928b
MD5 875f95331b3ebc7034f56f682e6387d1
BLAKE2b-256 3229c076fd12d6bbca8e806d167b3fd4f2ea01ec810bf6ee0ee2a2295d22230c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.4.0-cp38-cp38-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 4053e1e450ad02f18377c3ebfbb132b4fe0359424385ab8a6b36a9f47fc3604f
MD5 f1935263b5cafcfa9457193db8288beb
BLAKE2b-256 6db2016ce201017593a40ec4f3b3b069266ed05366c0620e8d586f9eb8b11063

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.4.0-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 607613bd0529a373627d437b63967d8ad0149d991ecf035b2d629093bd4844a0
MD5 1fccccf1498f628f3a4d6649e5f425e1
BLAKE2b-256 a5dfd2f09c9badfb30275c50cb173de7c60e6d2d43d1292485826d58472ead05

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.4.0-cp38-cp38-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 67cd3cc506444f9a93b689720c3328e910c0e9f3bdc9e78e1241b5039d9f5dee
MD5 10f62b716bf98bbe254e413fd7387232
BLAKE2b-256 7ccb4e7f3d94977d0fec81aa08ec93e0c1651e3a5f3c68d866c69edf635bd0be

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xpress-9.4.0-cp38-cp38-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 f8c7c4a4ff8bbec9ec7e49b0284935a159953123ccaabc11c6f672b9c48710bd
MD5 51cfd013be03f7d4b30eb78af3e0634b
BLAKE2b-256 095eb884b6e1cb8a17e49743f5a2c45eb49d1fdd26f63baaeb1de26c86fbcf3c

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