gtopt::CascadeLevelMethod struct

Solver options for one cascade level.

Public static functions

static void merge_solver_opts(std::optional<SolverOptions>& a, const std::optional<SolverOptions>& b)
Layer b's optional fields onto a (creating it when unset).

Public functions

void merge(const CascadeLevelMethod& opts)

Public variables

OptName aperture_chunk_mode
OptInt aperture_chunk_size
OptInt aperture_screen_count
OptBool aperture_seed_basis
OptName aperture_selection_mode
OptName aperture_solve_mode
std::optional<Array<Uid>> apertures
Aperture UIDs for this level (nullopt = inherit, empty = Benders).
std::optional<SolverOptions> backward_solver_options
Backward-pass counterpart of forward_solver_options.
OptReal convergence_tol
Convergence tolerance for this level.
OptName elastic_mode
OptReal elastic_penalty
std::optional<SolverOptions> forward_solver_options
OptInt max_iterations
Maximum iterations for this level.
OptInt min_iterations
Minimum iterations before convergence can be declared.
OptInt num_apertures
OptReal stationary_gap_ceiling
OptReal stationary_tol
OptInt stationary_window

Variable documentation

OptName gtopt::CascadeLevelMethod::aperture_chunk_mode

Aperture task grouping for this level (nullopt = inherit base SDDPOptions::aperture_chunk_mode): "per_scene" (default; all apertures of a scene in one serial task, warm-start reuse, caps parallelism at S tasks), "per_aperture" (one cold task per aperture) or "chunked" (aperture_chunk_size = K per task). Setting a non-chunked mode here drops an inherited K.

OptInt gtopt::CascadeLevelMethod::aperture_chunk_size

Apertures per task for aperture_chunk_mode = "chunked" at this level (nullopt = inherit base SDDPOptions::aperture_chunk_size). Legacy: set alone (without aperture_chunk_mode) the integer still selects the level's mode (deprecated): -1 → per_scene, 1 → per_aperture, K > 1 → chunked K, 0 → default per_scene — unless the inherited mode is already chunked and K > 0, in which case only K changes.

OptInt gtopt::CascadeLevelMethod::aperture_screen_count

Number of dual-shared cuts re-solved exactly under aperture_solve_mode = "screened" for this level (nullopt = inherit base SDDPOptions::aperture_screen_count). Ignored by every other mode.

OptBool gtopt::CascadeLevelMethod::aperture_seed_basis

Seed each iteration's first aperture from the previous iteration's first-aperture basis for this level (nullopt = inherit base SDDPOptions::aperture_seed_basis). Acts for every basis-capable (vertex) mode, i.e. all modes except reduced_cost.

OptName gtopt::CascadeLevelMethod::aperture_selection_mode

Aperture selection rule for this level (nullopt = inherit). One of "head" (default), "stride" / "interleave" / "spread", or "tail" / "last". See SddpOptions::aperture_selection_mode for full semantics.

OptName gtopt::CascadeLevelMethod::aperture_solve_mode

Aperture re-solve mode for this level (nullopt = inherit base SDDPOptions::aperture_solve_mode). Small single-bus levels (warmup / uninodal) win with "warm" (basis reuse across a serial chunk); the large multi-bus levels (transport / full_network) are net-negative under warm-start and should use "reduced_cost" (cold barrier, no crossover) so chunks can be split for parallelism.

OptName gtopt::CascadeLevelMethod::elastic_mode

Elastic-cut mode override for this level (nullopt = inherit base SDDPOptions::elastic_mode). Warmup is typically fine with single_cut while full_network benefits from multi_cut once aperture coverage is broad enough to justify the extra cut rows. String matches the JSON enum spelling.

OptReal gtopt::CascadeLevelMethod::elastic_penalty

Elastic-cut penalty override for this level in $/MWh of elastic-state violation (nullopt = inherit base SDDPOptions::elastic_penalty). Lower at warmup (looser feasibility) and tighter at full_network (penalty must be commensurate with the physical-cost scale).

std::optional<SolverOptions> gtopt::CascadeLevelMethod::forward_solver_options

Forward-pass solver options for this level, layered on the base sddp_options.forward_solver_options with SolverOptions::merge semantics: the OPTIONAL fields this level sets win (tolerances, mip_gap, time_limit, scaling, barrier_solver, mip_lp_algorithm, mip_heuristic_effort, …); algorithm / threads / crossover are not per-level (same as the base merge). nullopt = inherit.

OptInt gtopt::CascadeLevelMethod::num_apertures

First-N selector for this level (nullopt = inherit). See SddpOptions::num_apertures for full semantics — paired with the wettest-first sort applied to Phase::apertures by plp2gtopt, num_apertures = N picks the N wettest per phase at this level.

OptReal gtopt::CascadeLevelMethod::stationary_gap_ceiling

Maximum |gap| for stationary convergence at this level (nullopt = inherit base SDDPOptions::stationary_gap_ceiling). Early cascade levels with reduced apertures have a structural UB underestimate and the gap can sit at +40% on warmup / +25% on uninodal even when Δgap has plateaued; without raising the ceiling here the stationary_tol threshold alone cannot trip convergence. plp2gtopt emits a uniform 50% across all levels.

OptReal gtopt::CascadeLevelMethod::stationary_tol

Stationary-gap tolerance for this level (nullopt = inherit base). Per-level override of SDDPOptions::stationary_tol: plp2gtopt emits looser values for early cascade levels (e.g. 4 % at warmup, 2 % at uninodal) so they can early-exit on a wide stationary plateau without waiting for the strict 1 % tail levels need.

OptInt gtopt::CascadeLevelMethod::stationary_window

Number of consecutive iterations Δgap must stay below stationary_tol before stationary convergence trips (nullopt = inherit base SDDPOptions::stationary_window). Looser early levels can use a shorter window (e.g. 2) to short-circuit on a shallow plateau; the tail level may want a stricter window (e.g. 8) to filter sampling noise.