PR 6/7: Benchmarking infrastructure for scipy vs Pyomo#11
Open
bernalde wants to merge 1 commit intopr/pyomo-optimizersfrom
Open
PR 6/7: Benchmarking infrastructure for scipy vs Pyomo#11bernalde wants to merge 1 commit intopr/pyomo-optimizersfrom
bernalde wants to merge 1 commit intopr/pyomo-optimizersfrom
Conversation
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
This was referenced Mar 3, 2026
48a565d to
bd79668
Compare
3e5b8e4 to
76a65e5
Compare
This PR adds the benchmarking infrastructure for comparing scipy and Pyomo solvers: benchmarks/ directory contents: - adapters.py: Adapter classes for scipy and Pyomo solvers - grid_cli.py: CLI tool for running grid comparison benchmarks - scenarios.py: Test scenario definitions (standard, high resistance, etc.) - schema.py: Result data schema for consistent output - validate.py: Validation utilities for comparing results - grid_analysis.ipynb: Jupyter notebook for analyzing benchmark results - README.md: Documentation for running benchmarks benchmarks/results/: - .gitignore: Ignore large result files - README.md: Documentation for result files - archive/: Historical benchmark results - baseline_*.jsonl: Baseline comparison results Usage: python -m benchmarks.grid_cli --scenario baseline_Tsh --grid 3x3 python -m benchmarks.grid_cli --scenario baseline_Pch --grid 5x5 --solver pyomo This enables systematic comparison of scipy and Pyomo optimizer performance across different scenarios and parameter grids.
4367219 to
f5b43a7
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Systematic comparison framework for scipy vs Pyomo optimizers. CLI tool (
grid_cli.py) generates parameter sweeps across product resistance, heat transfer coefficients, and operating conditions. Compares objective values, solve times, and constraint satisfaction. Includes Jupyter notebook for visualization and analysis.PR 6 of 7 in the Pyomo integration series.
Changes
benchmarks/adapters.py— Scipy/Pyomo adapter layerbenchmarks/grid_cli.py— CLI for running benchmark gridsbenchmarks/scenarios.py— Predefined test scenariosbenchmarks/schema.py— Result schema definitionbenchmarks/validate.py— Result validationbenchmarks/grid_analysis.ipynb— Analysis notebookbenchmarks/README.md— Benchmark documentationbenchmarks/results/— Reference results and .gitignoreUsage
PR Chain
Testing
No new pytest tests — benchmarks are standalone scripts. Results directory is gitignored.