sddp_aperture_drops.hpp file
Cross-iteration bookkeeping of dropped (infeasible) apertures.
When an aperture LP of the SDDP backward pass is infeasible (or times out / is abandoned / ends non-optimal), solve_apertures_for_phase drops it and renormalises the expected cut over the remaining apertures. On a model without relatively complete recourse (e.g. a hard efin with no efin_cost) the same aperture is dropped on every iteration: the cut never carries the feasibility signal, the LB freezes, and the bounds describe a rescaled (typically wetter) distribution instead of the declared one (issue #551).
ApertureDropTracker records every aperture solve and drop per (scene, phase, aperture) and per iteration so the solver can
- escalate ONE "persistent aperture infeasibility" warning per triple once it has been dropped in
warn_afterconsecutive iterations; - report the per-iteration drop count (
SDDPIterationResult:: apertures_dropped); - refuse to declare convergence on an iteration whose backward pass dropped apertures; and
- print an end-of-run aperture summary (
summary(),log_aperture_summary).
Thread-safe: record is called concurrently from the per-scene backward-pass tasks.
Namespaces
- namespace gtopt
Classes
- struct gtopt::ApertureDrop
- One dropped aperture of a (scene, phase) cell.
- struct gtopt::ApertureDropCount
- (uid, drop count) entry of the summary's top lists.
- struct gtopt::ApertureDropRecord
- What
ApertureDropTracker::recordlearned from one cell's drops. - class gtopt::ApertureDropTracker
- struct gtopt::ApertureIterationCounts
- Aperture solve / drop counts of one iteration.
- struct gtopt::ApertureSummary
- End-of-solve aperture statistics (
ApertureDropTracker::summary()). - struct gtopt::PersistentApertureDrop