Metadata-Version: 2.4
Name: optpilot
Version: 0.2.0
Summary: Versioned experiments for evaluating and improving candidate solutions
Author: OptPilot contributors
License-Expression: Apache-2.0
Project-URL: Homepage, https://github.com/MINDS-THU/OptPilot
Project-URL: Repository, https://github.com/MINDS-THU/OptPilot.git
Project-URL: Issues, https://github.com/MINDS-THU/OptPilot/issues
Keywords: optimization,experiments,evaluation,evidence,benchmarking
Classifier: Intended Audience :: Science/Research
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Scientific/Engineering
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: jsonschema>=4
Requires-Dist: PyYAML>=6.0
Requires-Dist: referencing>=0.30
Requires-Dist: tomli>=2; python_version < "3.11"
Provides-Extra: docs
Requires-Dist: mkdocs>=1.6; extra == "docs"
Requires-Dist: mkdocs-material>=9.5; extra == "docs"
Provides-Extra: examples
Requires-Dist: job-shop-lib>=1.7.0; extra == "examples"
Requires-Dist: stable-baselines3<3,>=2.3; extra == "examples"
Dynamic: license-file

# OptPilot

An optimization score is useful only when you can tell what produced it. The candidate, objective, evaluation cases, metric and run conditions all shape the result. Change one of them and a score may no longer support a fair comparison.

OptPilot makes those conditions explicit and keeps them with the observations, failures and evidence from each run. Review freezes the selected project versions before execution. The resulting record lets you inspect what was measured, compare candidates under shared conditions, and resume interrupted work without losing completed trials.

OptPilot Core is an open-source Python package and CLI for versioned experiments. Define the evaluation in `optpilot.experiment.yaml`, review the exact input versions, and use the CLI to run the evaluation and inspect its evidence.

Use Python 3.10 or newer to install Core. The first experiment walks through a comparison and shows how to trace a score to its inputs. [Installation](docs/installation.md) · [First experiment](docs/getting-started.md)

The [factory dispatch example](catalog/asteria_factory/) compares three rules in a simulated three-floor production facility on matched random seeds. It reports throughput and on-time delivery separately.

## What OptPilot records

- The exact saved versions selected for evaluation, so later source edits do not silently change a reviewed experiment.
- Per-trial inputs, metric values, failures and supporting evidence. A measured zero remains distinct from a missing score or failed attempt.
- Repetitions, retries and generated candidates under the same reviewed conditions. An interrupted run can resume with its original identity and completed trials.
- Resource requirements, reservations and usage receipts when an experiment needs registered resources.

The experiment author chooses representative cases and a grading contract that measures the intended objective.

## Execution options

Run trusted Python graders locally or on a registered SSH worker, use Harbor for Docker-backed agent evaluations, or record operator measurements. Core can also import external results with explicit bindings to reviewed versions and retain the source job and trial identities. [Choosing a runner](docs/capabilities.md)

## Learn more

[Project website](https://minds-thu.github.io/OptPilot/) · [Technical documentation](https://minds-thu.github.io/OptPilot/reference/) · [First experiment](docs/getting-started.md) · [Experiment model](docs/concepts.md) · [Configuration](docs/configuration.md) · [Contributing](docs/development.md)
