gtopt::Planning struct

Represents a complete power planning model.

Public functions

void merge(Planning&& plan)
Merges another planning object into this one.

Public variables

std::optional<Array<HourBlockEntry>> hour_block_map
PlanningOptions options
Simulation simulation
System system

Function documentation

void gtopt::Planning::merge(Planning&& plan)

Merges another planning object into this one.

Parameters
plan The planning object to merge from (will be moved from if it's an rvalue)
Returns Reference to this planning object

This is a unified template method that handles both lvalue and rvalue references. When merging from an rvalue reference, move semantics are used automatically.

Variable documentation

std::optional<Array<HourBlockEntry>> gtopt::Planning::hour_block_map

Optional hour→(stage, block) mapping for downstream hourly reconstruction; not used by the solver, but accepted in the JSON schema so strict-parse cases from ts2gtopt pass. See scripts/ts2gtopt/ts2gtopt.pybuild_hour_block_map.