Aimed at the optimization of cutting parameters problem in numerical control (NC) programming and NC simulation, according to the most optimization idea, the NC milling mathematical model was built. The cutting parameters by MATLAB tools and a hybrid genetic algorithm (GA) combined by genetic algorithms and simulated annealing (SA) were optimized. By using experiments, it verifies the feasibility and the improvement of the efficiency of CNC machining, as well as reducing cost.