gtopt::Stage struct

Investment period grouping consecutive time blocks.

Each stage:

  • References count_block consecutive blocks starting at first_block
  • Applies an optional discount_factor to all costs incurred in this period (present-value discounting)
  • Can be individually deactivated for scenario analysis

Public static variables

static constexpr std::string_view class_name

Public functions

auto is_active() const -> constexpr auto noexcept

Public variables

OptBool active
Activation status (default: active)
Size count_block
OptReal discount_factor
Present-value cost multiplier for this stage [p.u.].
Size first_block
0-based index of the first block in this stage [dimensionless]
std::optional<MonthType> month
OptName name
Optional human-readable label.
Uid uid
Unique identifier.

Variable documentation

Size gtopt::Stage::count_block

Number of consecutive blocks in this stage [dimensionless]

std::optional<MonthType> gtopt::Stage::month

Calendar month for this stage. Used for seasonal parameter lookups (e.g., irrigation schedules).