def _f_ieqcons(x_full, k_params):
 x_params = x_full[:k_params]
 x_added = x_full[k_params:]
 return np.append((x_params + x_added), (x_added - x_params))

def _f_ieqcons ( x_full , k_params ) : x_params = x_full [ : k_params ] x_added = x_full [ k_params : ] return np . append ( ( x_params + x_added ) , ( x_added - x_params ) )
the inequality constraints .