Skip to contents

C++ implementation for constructing OSQP solver bounds.

Usage

construct_flux_bounds(
  lb_base,
  lb_tail,
  ub_tail,
  ras,
  is_reversible,
  is_irreversible,
  tail_indices,
  medium_indices,
  zeros
)

Arguments

lb_base

NumericVector. Base lower bounds.

lb_tail

NumericVector. Tail lower bounds.

ub_tail

NumericVector. Tail upper bounds.

ras

NumericVector. Reaction activity scores.

is_reversible

LogicalVector. Reversible reaction indicators.

is_irreversible

LogicalVector. Irreversible reaction indicators.

tail_indices

IntegerVector. Tail indices (1-indexed).

medium_indices

IntegerVector. Medium indices (1-indexed).

zeros

NumericVector. Zero vector for steady-state constraint.

Value

List with l (lower bounds) and u (upper bounds) vectors.