--- id: xpress version: "9.9.1" license: unclear license_treatment: unclear maintenance: active --- # xpress — FICO Xpress Optimizer Python interface License: unclear · Maintenance: active · Downloads: 214.4K/mo ## What it is and what it does Xpress is a Python binding to the FICO Xpress Optimizer, a commercial mathematical optimization solver. It lets you define and solve optimization problems—linear, quadratic, conic, and nonlinear, including mixed-integer variants—using Python syntax and NumPy integration. You construct problems by adding variables and constraints, set an objective function, and call optimize() to solve. The package ships with precompiled binaries for modern Python versions and platforms (macOS, Linux, Windows). It includes a community license by default, so you can start solving problems without additional licensing setup. For GPU acceleration of the PDHG linear solver, you can install optional CUDA support. The underlying solver is the FICO Xpress library, which is maintained separately; this package is the Python interface to it. Use it for: - Solve supply-chain optimization, production planning, or resource allocation problems modeled as linear or mixed-integer programs. - Prototype and solve nonlinear optimization problems using Python without switching to a compiled language. - Integrate optimization into data science workflows by combining NumPy arrays with Xpress problem definitions. - Accelerate large-scale linear optimization on GPU-equipped systems using the PDHG solver with CUDA support. - Develop and test optimization algorithms using Xpress callbacks and the Python interface for iterative refinement. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Python interface to the FICO Xpress Optimizer for creating and solving linear, quadratic, conic, and nonlinear optimization problems, including mixed-integer variants. Yes, if you need to solve mathematical optimization problems and have access to or can accept the Xpress license terms. The package is actively maintained, supports modern Python versions, and offers broad problem-class coverage. Install friction is moderate due to compiled binaries, but wheels are widely available. The main caveat is license clarity—review the Xpress Shrinkwrap License Agreement before production deployment, especially for commercial use. ## Install pip install xpress uv add xpress poetry add xpress ## Installing xpress Before you install: Medium install friction due to compiled binary wheels; prebuilt wheels available for Python 3.10–3.14 across macOS (ARM64), Linux (x86_64, ARM64), and Windows. Maintenance is active with a release 42 days ago. Runtime dependency on numpy and xpresslibs (a compiled library package). License in practice: License treatment is unclear; the package is governed by the Xpress Shrinkwrap License Agreement and includes a community license. A copy of the license is stored in LICENSE.txt in the dist-info directory. Users should review the shrinkwrap terms before deployment. Quickstart: pip install xpress import xpress as xp p = xp.problem(name='myexample') x1 = p.addVariable(vartype=xp.integer, name='x1', lb=-10, ub=10) x2 = p.addVariable(name='x2') p.setObjective(x1**2 + 2*x2) p.addConstraint(x1 + 3*x2 >= 4) p.optimize() print(p.getSolution(x1), p.getSolution(x2)) Requires FICO Xpress Optimizer library (xpresslibs); community license is included but commercial use or advanced features may require a separate license. Optional GPU support requires NVIDIA CUDA Runtime 13.0+ and drivers version 580+. Verify before relying: - Whether the community license has restrictions on problem size, solver features, or commercial use. - Performance characteristics and solver algorithm selection for different problem classes. - Support timeline and end-of-life dates for Python 3.10–3.14 versions. ## Package facts - License: not declared (unclear) - Python support: unspecified - Install friction: medium - Maintenance: active - Downloads: 214.4K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags mathematical optimization solver, linear programming python, mixed-integer programming, nonlinear optimization, quadratic programming solver, MILP MIQP solver, conic programming, optimization-solver, mixed-integer-programming, numerical-computing [View on SkillFed](https://skillfed.io/packages/xpress) · [View on PyPI](https://pypi.org/project/xpress/)