Skip to main content

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

Metadata

Release files for OptiGen 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for OptiGen 0.1.2
File Size Uploaded
optigen-0.1.2.tar.gz 59.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for OptiGen 0.1.2
File Interpreter ABI Platform
optigen-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 130.1 kB

Release files / optigen-0.1.2.tar.gz

Download URL optigen-0.1.2.tar.gz
Size 59.6 kB
Tags Source
SHA-256 checksum
How to use checksums
853e9a78267a3a6b4f5374a6b17b7afd0c9344555ffbd644d7679d1b52281439
BLAKE2b-256 checksum
How to use checksums
da1ecd19c5bf4c55d706ec16ab7c71c3c6c15f963a18e4b7c7cec30e834e6a83
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 4, 2026.

Transparency log

Release files / optigen-0.1.2-py3-none-any.whl

Download URL optigen-0.1.2-py3-none-any.whl
Size 70.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
251fb7f5cfcde274241143ce8fa27804d9428727542130805417b09689876c0c
BLAKE2b-256 checksum
How to use checksums
23293e97a114e6a3c215784eded141828c6935f9c38ab74fe24920163245d53a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 4, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page