Fix biofuel site module constraints#133
Conversation
bernalde
left a comment
There was a problem hiding this comment.
Blocking issues: None.
Nonblocking issues: None.
Questions: None.
Tests run and outcomes:
git diff --check origin/main...HEADpassed./home/bernalde/.pixi/bin/pixi run pytest tests/test_biofuel.py tests/test_module_imports.py -v --tb=shortpassed, 72 passed./home/bernalde/.pixi/bin/pixi run testpassed, 288 passed and 1 skipped./home/bernalde/.pixi/bin/pixi run lintpassed. The configured non-blocking full flake8 report still printed existing style findings under--exit-zero.gh pr checks 133shows all CI checks passing.
This PR should be merged as-is based on the reviewed diff and checks. I am authenticated as bernalde, which is also the PR author, so I am submitting this as a COMMENT review rather than APPROVE; an eligible reviewer still needs to approve it.
|
Benchmark evidence from a Gurobi-only biofuel run on this PR branch (2026-05-12). I skipped Command: /home/bernalde/.pixi/bin/pixi run gdplib-benchmark run \
--instances biofuel \
--strategies gdp.bigm gdp.hull gdpopt.loa gdpopt.gloa gdpopt.lbb gdpopt.ric \
--timelimit 300 \
--solver-profile gams-gurobi \
--gams-nlp-solver gurobi \
--gams-mip-solver gurobi \
--gams-minlp-solver gurobi \
--gams-local-minlp-solver gurobi \
--run-id pr133_biofuel_gurobi_300s_20260512 \
--no-skip-existingPreflight passed with GAMS available at
Generated artifacts are local/ignored under:
The solve cases completed, but the benchmark command exited nonzero after writing the results because the optional post-run summary step could not import Important caveat: direct transformed GAMS solves on this PR branch still use the benchmark runner's current direct-solve default Takeaway: GAMS/Gurobi on the direct Hull reformulation is currently the best evidence for this biofuel instance in this run: it found |
33b988e to
f4ecc83
Compare
Summary
biofuelconventional and inactive site disjuncts so theirno_modulesconstraints only reference module variables for the disjunct's own site.biofuelstill reformulates withgdp.bigmandgdp.hull.Tests run
pixi run pytest tests/test_biofuel.py -v --tb=short- passed, 4 passed.pixi run pytest 'tests/test_module_imports.py::TestModelConstruction::test_model_construction[biofuel]' -v --tb=short- passed, 1 passed.pixi run test- passed, 288 passed and 1 skipped.pixi run lint- exited 0 after Black, critical flake8, non-blocking full flake8 report, and typos.git diff --check- passed.Notes
Closes #62