The invention relates to a workshop resource scheduling method based on a heuristic optimization algorithm, which comprises the following production scheduling steps: receiving input data, and inputting the data into the algorithm; setting constraint conditions for screening output results; the method also includes that the algorithm calculates the received data and outputs a result; the algorithm supports input of various constraint conditions, and the constraint conditions comprise minimum waiting time, minimum overdue tasks, priority priority and forced guarantee priority, wherein the constraint condition is a digital quantity, the value range is 1-5, and the default value is 3. According to the method, submitted data are processed by using a genetic algorithm, and a group of locally optimal solutions are obtained under certain constraint conditions; the delivery time accuracy is improved, the consumed resources are reduced, the time required by an enterprise to specify a production plan is reduced, and the production efficiency of the enterprise is improved.