Metadata-Version: 2.5
Name: ceris
Version: 0.1.0
Summary: Solve LP and MIP optimization models over the Ceris API — one call, no account.
Project-URL: Homepage, https://ceris.fyi
Project-URL: Documentation, https://ceris.fyi/docs/
Author: Ceris
License-Expression: MIT
Keywords: highs,linear-programming,mip,optimization,solver
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Science/Research
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Scientific/Engineering :: Mathematics
Requires-Python: >=3.9
Requires-Dist: requests>=2.28
Description-Content-Type: text/markdown

# ceris

Solve LP and MIP optimization models over the [Ceris](https://ceris.fyi) API. No account, no API key.

```bash
pip install ceris
```

```python
import ceris

result = ceris.solve("model.lp")   # path to a .lp/.mps file, or LP text directly
print(result.status)               # "optimal"
print(result.objective_value)
print(result.solution)             # {"x": 4.0, "y": 0.0}
```

Infeasible models come back with the conflicting constraints named:

```python
if result.status == "infeasible":
    print(result.iis["message"])   # "Constraints 'c_low' and 'c_high' cannot all be satisfied together."
```

Limits: HiGHS solver, 60 s per solve, 100k non-zeros, 5 MB request, ~10 solves/min/IP. Free while in beta.

Full docs: https://ceris.fyi/docs/
