A new approach is proposed for solving the problem of suppressing nonrandom bounded exogenous disturbances in linear control systems using dynamic output feedback. The approach is based on reducing the problem to a matrix optimization problem with the feedback matrix and the observer matrix as the variables. A gradient method for finding dynamic output feedback is written out and justified. A number of examples are considered.