CommitmentRunInfo struct
#include <gtopt/domain_rules.hpp>
One commitment unit's status (u) columns in chronological order, with the matching block durations and the unit's min-up/min-down times (hours). The domain input a run-length rule needs — built by the SystemLP::resolve hook (one entry per (scenario, commitment) with a run-length limit). status_cols[t] is a RAW column index; durations[t] is the block duration [h] of that period (parallel arrays).
Public variables
- std::vector<Uid> block_uids
- std::vector<double> durations
- double initial_status
- double min_down_hours
- double min_up_hours
- std::vector<int> shutdown_cols
- std::vector<int> startup_cols
- std::vector<int> status_cols
- Uid uid
Variable documentation
std::vector<Uid> gtopt:: CommitmentRunInfo:: block_uids
Block UIDs parallel to status_cols — the block half of the semantic (generator, block) seed key. Empty when no external seed is in play.
double gtopt:: CommitmentRunInfo:: initial_status
Unit status just before the first block (u[-1]); the first period's logic row uses it as u_prev. 0 = initially off, 1 = initially on.
std::vector<int> gtopt:: CommitmentRunInfo:: startup_cols
Startup (v) and shutdown (w) RAW column indices, parallel to status_cols (same chronological block ordering). An entry is < 0 when that block has no v/w column (the CommitmentLogicRule skips it).
Uid gtopt:: CommitmentRunInfo:: uid
UID of the generator this commitment belongs to. Together with the per-block block_uids, it is the semantic (generator, block) key an external-commitment seed (SeedCommitmentRule) matches on — so a seed from another day / another tool lines up by identity, not raw column index. unknown_uid when unset (the seed rule then skips the unit).