Text this: Optimization of distributed control discrete systems under the quadratic quality criterion