Skip to main content

OptiGen is a tool for automatically generating optimization projects from natural language.

Project description

OptiGen

PyPI Python Versions License

OptiGen Logo

AI-powered optimization modeling assistant built on LangGraph and Deep Agents. OptiGen guides users from problem formulation through schema design to executable solvers.

Quick Start (Usage First)

  1. Install from PyPI:
    pip install optigen
    
  2. Set environment variables (either export them or create a .env in the project root):
    # Required
    ANTHROPIC_API_KEY=your_anthropic_key  # Get your key at: https://console.anthropic.com/settings/keys
    
    # Optional (enables web search tools)
    TAVILY_API_KEY=your_tavily_key
    
    # Optional (tracing)
    LANGSMITH_TRACING=true
    LANGSMITH_API_KEY=your_langsmith_key
    LANGSMITH_PROJECT=optigen
    
  3. Run the CLI:
    optigen
    

Features

  • Problem Formulation (problem_formulator): Clarifies objectives and constraints before any schema or code is produced.
  • Schema & Dataset Design (schema_dataset_designer): Creates request/response JSON schemas and example scenarios to match the agreed objectives/constraints.
  • Solver Generation & Execution (solver_coder): Proposes solver strategies, uses available Python deps, and registers runnable entrypoints aligned to the schemas.
  • Quick Start Mode: Can auto-build initial models for common problem types (e.g., VRP, scheduling, inventory) with transparent assumptions.
  • Tool-Aware Workflow: Uses search (Tavily, optional), code execution, and dependency awareness to keep solutions consistent across steps.

Development (contributing)

Development Installation

For contributing or modifying the source code:

  1. Clone the repo:
    git clone https://github.com/OptigenIO/OptiGen-core.git
    cd OptiGen-core
    
  2. Install in editable mode:
    pip install -e .
    

Development Commands

  • make test - Run unit tests
  • make lint - Run linters and type checkers
  • make format - Format code
  • make help - Show all make commands

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

optigen-0.1.2.tar.gz (59.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

optigen-0.1.2-py3-none-any.whl (70.5 kB view details)

Uploaded Python 3

File details

Details for the file optigen-0.1.2.tar.gz.

File metadata

  • Download URL: optigen-0.1.2.tar.gz
  • Upload date:
  • Size: 59.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for optigen-0.1.2.tar.gz
Algorithm Hash digest
SHA256 853e9a78267a3a6b4f5374a6b17b7afd0c9344555ffbd644d7679d1b52281439
MD5 b1c6a26716d1b34a7ad1b5d16fefcc7f
BLAKE2b-256 da1ecd19c5bf4c55d706ec16ab7c71c3c6c15f963a18e4b7c7cec30e834e6a83

See more details on using hashes here.

Provenance

The following attestation bundles were made for optigen-0.1.2.tar.gz:

Publisher: publish.yml on OptigenIO/OptiGen-core

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file optigen-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: optigen-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 70.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for optigen-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 251fb7f5cfcde274241143ce8fa27804d9428727542130805417b09689876c0c
MD5 c6fb2a943285fbffada922b4189061d5
BLAKE2b-256 23293e97a114e6a3c215784eded141828c6935f9c38ab74fe24920163245d53a

See more details on using hashes here.

Provenance

The following attestation bundles were made for optigen-0.1.2-py3-none-any.whl:

Publisher: publish.yml on OptigenIO/OptiGen-core

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page