The present invention discloses a two-stage flow shop rolling production scheduling method, including: obtaining the
processing information of the workshop; calculating the judgment conditions of the
continuous production of the two-stage flow shop according to the
processing information, establishing a
linear programming model by means of 0-1 decision variables, the
linear programming model including an objective function with the goal of minimizing the
completion time and the constraint conditions of the objective function, the constraint conditions of the objective function are set according to the judgment conditions of the
continuous production of the two-stage flow shop; solving the
linear programming model, obtaining the initial scheduling scheme of the
processing sequence of different batches of workpieces in the same
machine to be determined, as the initial parameters of the
Q learning algorithm; updating the reward and punishment table of the
Q learning algorithm according to the semi-finished product inventory generated by different processing sequences of the workpiece, and using the
Q learning algorithm to determine the scheduling scheme with the highest reward and punishment value, so as to determine the processing sequence of the workpiece in each
machine. The present invention can ensure that the work can be uninterrupted when the debugging equipment is frequently switched due to a wide variety of products, thereby reducing the manufacturing cost.