OptiGen is a tool for automatically generating optimization projects from natural language.
Project description
OptiGen
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)
- Install from PyPI:
pip install optigen
- Set environment variables (either export them or create a
.envin 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
- 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:
- Clone the repo:
git clone https://github.com/OptigenIO/OptiGen-core.git cd OptiGen-core
- Install in editable mode:
pip install -e .
Development Commands
make test- Run unit testsmake lint- Run linters and type checkersmake format- Format codemake help- Show all make commands
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
853e9a78267a3a6b4f5374a6b17b7afd0c9344555ffbd644d7679d1b52281439
|
|
| MD5 |
b1c6a26716d1b34a7ad1b5d16fefcc7f
|
|
| BLAKE2b-256 |
da1ecd19c5bf4c55d706ec16ab7c71c3c6c15f963a18e4b7c7cec30e834e6a83
|
Provenance
The following attestation bundles were made for optigen-0.1.2.tar.gz:
Publisher:
publish.yml on OptigenIO/OptiGen-core
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
optigen-0.1.2.tar.gz -
Subject digest:
853e9a78267a3a6b4f5374a6b17b7afd0c9344555ffbd644d7679d1b52281439 - Sigstore transparency entry: 790619572
- Sigstore integration time:
-
Permalink:
OptigenIO/OptiGen-core@2022eb7212da87689841d05ec814867a81031d37 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/OptigenIO
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@2022eb7212da87689841d05ec814867a81031d37 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
251fb7f5cfcde274241143ce8fa27804d9428727542130805417b09689876c0c
|
|
| MD5 |
c6fb2a943285fbffada922b4189061d5
|
|
| BLAKE2b-256 |
23293e97a114e6a3c215784eded141828c6935f9c38ab74fe24920163245d53a
|
Provenance
The following attestation bundles were made for optigen-0.1.2-py3-none-any.whl:
Publisher:
publish.yml on OptigenIO/OptiGen-core
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
optigen-0.1.2-py3-none-any.whl -
Subject digest:
251fb7f5cfcde274241143ce8fa27804d9428727542130805417b09689876c0c - Sigstore transparency entry: 790619580
- Sigstore integration time:
-
Permalink:
OptigenIO/OptiGen-core@2022eb7212da87689841d05ec814867a81031d37 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/OptigenIO
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@2022eb7212da87689841d05ec814867a81031d37 -
Trigger Event:
push
-
Statement type: