is not entirely linear in ν i given the inclusion of the |ν i | term. However, this problem can be recast as a linear problem by assigning separate variables ν i when the reference species participates as a reactant rather than a product (while taking care of the proper sign of these variables in the constraints). The minimization procedure ensures that no reference species will participate as both a reactant and a product.