Conf int generic#614
Merged
bknueven merged 6 commits intoPyomo:mainfrom Mar 3, 2026
Merged
Conversation
Adds mmw_args() to Config and wires up do_mmw() in generic_cylinders.py so that an MMW confidence interval is computed automatically after the main decomposition algorithm when --mmw-num-batches, --mmw-batch-size, and --mmw-start are supplied. When --mmw-xhat-input-file-name is omitted the best xhat from the wheel is used. Also updates the CI documentation. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Add test_do_mmw_with_file to Test_confint_farmer, calling do_mmw with a pre-written xhat file and asserting the same (std, gap_inner_bound) as test_MMW_running - Add generic_cylinders + MMW CI subprocess test to straight_tests.py - Fix do_mmw: use quick_assign for EF_solver_name fallback; return result Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
If only some of mmw_num_batches, mmw_batch_size, mmw_start are provided, raise a ValueError naming the given and missing options rather than silently treating the request as absent. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
When a multi-stage problem uses --branching-factors instead of --num-scens, _name_lists computes num_scens locally but never stores it in cfg. The bundle code path then fails because bundle_names_creator asserts cfg.num_scens is not None. Fill cfg.num_scens via quick_assign when it is missing but derivable from branching_factors. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.
mmw goes to generic_cylinders (mrp is next)