fn bound_row_index(
        &self,
        j: usize,
        bound_type: BoundDirection,
    ) -> Option<usize> {
        debug_assert!(j < self.nr_columns());

        match bound_type {
            BoundDirection::Lower => None,
            BoundDirection::Upper => match self.column_type(j) {
                ColumnType::Normal(j) => {
                    self.non_slack_variable_index_to_bound_index[j]
                        .map(|index| self.nr_constraints() + index)
                },
                ColumnType::RangeSlack(j) => {
                    Some(self.constraint_group_start_index(5) + j)
                },
                _ => None,
            }
        }
    }
/// Index of row that represents a bound.
Index of row that represents a bound.
Index of row that represents a bound .
fn bound_row_index(
        &self,
        j: usize,
        bound_type: BoundDirection,
    ) -> Option<usize> {
        debug_assert!(j < self.nr_columns());
        match bound_type {
            BoundDirection::Lower => None,
            BoundDirection::Upper => match self.column_type(j) {
                ColumnType::Normal(j) => {
                    self.non_slack_variable_index_to_bound_index[j]
                        .map(|index| self.nr_constraints() + index)
                },
                ColumnType::RangeSlack(j) => {
                    Some(self.constraint_group_start_index(5) + j)
                },
                _ => None,
            }
        }
    }
fn bound_row_index ( & self , j : usize , bound_type : BoundDirection , ) -> Option < usize > { debug_assert ! ( j self nr_columns ( ) ) ; match bound_type { BoundDirection :: Lower => None , BoundDirection :: Upper => match self . column_type ( j ) { ColumnType :: Normal ( j ) => { self . non_slack_variable_index_to_bound_index [ j ] . map ( | index | self . nr_constraints ( ) + index ) } , ColumnType :: RangeSlack ( j ) => { Some ( self . constraint_group_start_index ( 5 ) + j ) } , _ => None , } } }
Index of row that represents a bound.
Index of row that represents a bound .
&self
j
usize
bound_type
BoundDirection
&self
j
usize
bound_type
BoundDirection