parameters: (self, factors, reference)
docstring: Add a factor sum_{i} factor[i].matrix * x_{factor[i].index} =  reference
          to the constraints.
docstring_summary: Add a factor sum_{i} factor[i].matrix * x_{factor[i].index} =  reference
          to the constraints.
docstring_tokens: Add a factor sum_ { i } factor [ i ] . matrix * x_ { factor [ i ] . index } = reference to the constraints .
function: def add_factor_constraint(self, factors, reference):
          '''
          Add a factor sum_{i} factor[i].matrix * x_{factor[i].index} =  reference
          to the constraints.
          '''
          # Add the new rows to the cost matrix.
          self.C = np.vstack([self.C, self.matrix_form_factor(factors)])
          self.d = np.vstack([self.d, reference])
function_tokens: def add_factor_constraint ( self , factors , reference ) : # Add the new rows to the cost matrix. self . C = np . vstack ( [ self . C , self . matrix_form_factor ( factors ) ] ) self . d = np . vstack ( [ self . d , reference ] )