ActivityKeys

Type Alias ActivityKeys 

Source
pub type ActivityKeys = KeysWithOffset<(AssetRef, TimeSliceSelection)>;
Expand description

Indicates the asset ID and time slice covered by each activity constraint

Aliased Type§

pub struct ActivityKeys {
    offset: usize,
    keys: Vec<(AssetRef, TimeSliceSelection)>,
}

Fields§

§offset: usize

Row 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<(AssetRef, TimeSliceSelection)>

Keys for each constraint row. The number of keys equals the number of rows covered starting at offset.