pub type CommodityBalanceKeys = KeysWithOffset<(CommodityID, RegionID, TimeSliceSelection)>;Expand description
Indicates the commodity ID and time slice selection covered by each commodity balance constraint
Aliased Type§
pub struct CommodityBalanceKeys {
offset: usize,
keys: Vec<(CommodityID, RegionID, TimeSliceSelection)>,
}Fields§
§offset: usizeRow offset in the solver’s row ordering corresponding to the first key in keys.
This offset is used to index into the solver duals vector when mapping dual
values back to the stored keys.
keys: Vec<(CommodityID, RegionID, TimeSliceSelection)>Keys for each constraint row. The number of keys equals the number of rows
covered starting at offset.