We consider in this work a class of finite dimensional time-varying linear disturbed systems. The main objective of this work is to studied the optimal control which ensures the remediability of a disturbance of time-varying disturbed systems. The remediability concept consist to find a convenient control which bringing back the corresponding observation of disturbed system to the normal one at the final time. We give firstly some characterisations of compensation and in second party we find a control which annul the output of the system and we show also that the Hilbert Uniqueness Method can be used to solve the optimal control which ensure the remediability. A general approach was given to minimize the linear quadratic problem. Examples and numerical simulations are given.