Skip to content

Conf int generic#614

Merged
bknueven merged 6 commits intoPyomo:mainfrom
DLWoodruff:conf_int_generic
Mar 3, 2026
Merged

Conf int generic#614
bknueven merged 6 commits intoPyomo:mainfrom
DLWoodruff:conf_int_generic

Conversation

@DLWoodruff
Copy link
Copy Markdown
Collaborator

mmw goes to generic_cylinders (mrp is next)

DLWoodruff and others added 6 commits February 24, 2026 16:30
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>
@DLWoodruff DLWoodruff requested a review from bknueven February 27, 2026 19:06
@bknueven bknueven merged commit ecd58d7 into Pyomo:main Mar 3, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants