gtopt::BlockLP class

Public static variables

static std::string_view ClassName
static std::string_view DurationName
Block duration attribute name (hours).

Constructors, destructors, conversion operators

BlockLP() defaulted
BlockLP(Block pblock, BlockIndex block_index = BlockIndex {unknown_index}) explicit constexpr noexcept

Public functions

auto commitment_cell() const -> OptInt noexcept
Commitment cell label (unset = no explicit binary grid).
auto duration() const -> double noexcept
auto index() const -> BlockIndex noexcept
auto time() const -> OptReal noexcept
Explicit node time inside the stage period [h] (unset = midpoint).
auto uid() const -> BlockUid noexcept

Variable documentation

static std::string_view gtopt::BlockLP::ClassName

Class name exposed to user-constraint expressions as the singleton scalar block.duration — the duration (hours) of the block being assembled. Unlike stage.duration (the whole-stage total), this varies per block, so it lets a per-block balance scale a rate term by Δt, e.g. ... + generator('g').generation * block.duration = 0.