from optyx import Variable, Problem
x = Variable("x", lb=0)
solution = Problem().minimize(x**2).subject_to(x >= 1).solve()
print(f"Optyx is working! x* = {solution['x']:.4f}")Optyx is working! x* = 1.0000
August 24, 2026
Install Optyx from PyPI:
Or using uv (recommended for faster installs):
All dependencies are installed automatically.
Optyx uses SciPy’s HiGHS interfaces: scipy.optimize.linprog() for continuous linear programs and scipy.optimize.milp() for linear models containing integer or binary variables. Unsupported SciPy versions are rejected by the package requirements; Optyx does not fall back to legacy simplex implementations.
For contributing or development:
Test that Optyx is installed correctly: