β€œIt is often said that if something can be described, then it can be automated.
The problem is that describing something is a very complex matter.”

Rhetor

Rhetor Logo Rethor is an Integrated Modelling Environment for modelling and solving mixed-integer linear programming problems. Rhetor supports a subset of the Optimisation Programming Language (OPL) syntax and it is built on pyopl, a Python library for parsing and solving OPL-like mathematical programming models using Gurobi or Scipy (Highs). Rhetor integrates GenAI features to support and automate the modelling process.

Installation & start

Install:

pip install rhetor

Start Rhetor:

python -m pyopl

To enable GenAI features, set at least one of the following environment variables before starting Rhetor:

  • OPENAI_API_KEY β€” for OpenAI models
  • GEMINI_API_KEY β€” for Google Gemini
or install and run ollama locally.

Example (macOS / bash):

export OPENAI_API_KEY="sk-..."
Valid XHTML 1.0!