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
February 8, 2026
Install Optyx from PyPI:
Or using uv (recommended for faster installs):
All dependencies are installed automatically.
Optyx uses the HiGHS solver (via scipy.optimize.linprog) for linear programs, which requires SciPy ≥ 1.6.0. If you have an older version, Optyx will fall back to the simplex method with a warning.
For best performance, we recommend SciPy ≥ 1.11 which includes the latest HiGHS improvements.
For contributing or development:
Test that Optyx is installed correctly: