A permanent magnet system for 35GHz gyroklystron operating at second harmonic was designed and manufactured by using Optimization Algorithm and the Finite Elements Method. The axial magnet field strength of plat region is about 0.7 T, and satisfies certain configure accurately even at the cathode region.