This control system is used to flatten the flat-top of the amplitude and ph
ase macro-pulses of the high power klystron output. This is of critical imp
ortance in improving the electron beam quality for FEL and other applicatio
ns. The self-adaptive feed-forward control system is adopted to stabilize t
he RF power supply for the LINAC, which utilizes linearization and matrix a
lgebra to simplify the computation. The system is operational and some expe
rimental results have been obtained, which demonstrate that the system is e
ffective to improve the beam quality.