A shop scheduling method considering raw material set constraints and multi-machine parallel processing

Through mixed integer programming models and commercial solvers, combined with multiple constraints, a multi-machine parallel processing solution is generated, which solves the problems of raw material supply and multi-machine collaborative work in flexible workshop scheduling, and improves scheduling efficiency and resource utilization.

CN117933684BActive Publication Date: 2024-09-03深圳市链宇技术有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410065811.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-17
Publication Date
2024-09-03
Estimated Expiration
2044-01-17

AI Technical Summary

Technical Problem

The flexible workshop scheduling problem in the existing technology fails to effectively consider the supply of raw materials and parallel processing of multiple machines, resulting in low scheduling efficiency, poor resource utilization, and inability to meet customer needs.

Method used

A mixed integer programming model is used, combined with timeline constraints, raw material constraints, production capacity constraints, downtime period constraints and target penalty constraints, to generate a multi-machine parallel processing plan. The production task arrangement is determined through a commercial solver to ensure that raw materials are available and multiple machines work together. .

Benefits of technology

It improves the efficiency of workshop scheduling, maximizes customer demand, optimizes the utilization of production line resources, and solves the problems of raw material supply and parallel processing of multiple machines.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117933684B
    Figure CN117933684B
Patent Text Reader

Abstract

The present invention relates to the field of product processing, and specifically provides a flexible workshop scheduling method that considers raw material set constraints and multi-machine parallel processing, including: obtaining workshop orders, determining order data and corresponding machines and equipment; wherein the order data includes: product quantity, raw material demand, order deadline and production loss; according to the order data and machines and equipment, setting production variables, processing goals and raw material set constraints, and generating a mixed integer programming model; according to the mixed integer programming model, calling the corresponding commercial solver, performing multi-machine parallel processing scheme optimization, and determining the production task arrangement according to the solved machine allocation scheme. The problem of not considering material supply and multi-machine concurrent processing in the FJSP problem in the prior art is solved, so as to optimize the workshop scheduling efficiency, maximize customer demand satisfaction, and make optimal use of production line resources.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of workshop processing, and in particular to a workshop scheduling method considering raw material set constraints and multi-machine parallel processing. Background Art

[0002] At present, in production and manufacturing management, it is usually necessary to schedule the work tasks of the production workshop and arrange the specified tasks to the specified time period of a certain production equipment in advance for production, so as to ensure that the production arrangement of the workpiece or product meets the delivery requirements of the customer's order, while ensuring the efficient operation of production equipment and personnel and reducing operating costs. Therefore, in the manufacturing industry, production scheduling is a very important link, which directly affects the production and economic benefits of the enterprise.

[0003] The production job scheduling problem (JSP) is an ancient problem of mankind. Since the emergence of production organization, the production job scheduling problem has been a difficult problem. Mathematical algorithms have proved that the production scheduling problem is an NP-Hard problem. A common production workshop scheduling problem is that n jobs are processed on m machines. Each job is processed by a certain machine. The available time of the machine is set according to the shift, and only one job can be processed at the same time.

[0004] The flexible job shop scheduling problem (FJSP) is an extension of the traditional production operation problem. Due to the flexibility of the machine's capabilities, more than one task can be processed. That is, among m machines, j machines can process k types of workpieces. Due to the universality of machine capabilities, the solution space of the problem is multiplied, making it more difficult to solve.

[0005] Currently, heuristic algorithms, intelligent optimization algorithms and precise algorithms can be used to solve flexible workshop scheduling problems.

[0006] 1) Heuristic algorithm: Heuristic algorithm is essentially a set of rules with suggestive properties, which can be used to guide the algorithm search direction. Under the guidance of this rule set, a better solution to the problem can be obtained, but it is not necessarily the optimal solution. Most of the existing heuristic algorithms are based on heuristic rules, which are mostly derived from actual scheduling problems. Heuristic algorithms can find feasible solutions quickly, but the optimization of their solutions is greatly affected by data, and the degree of optimization of the solutions found under certain constraints is not enough to meet business needs;

[0007] 2) Intelligent optimization algorithm: As an important research method for solving FJSP problems, intelligent optimization algorithms can be divided into evolutionary algorithms (EA) and swarm intelligence algorithms (SI). Classic EAs include genetic algorithms (GA), evolutionary strategies (ES), genetic programming (GP) and differential evolution (DE). Among the above methods, GA is the most widely and deeply studied and applied. Swarm intelligence algorithms refer to the characteristics of group intelligent behavior exhibited by individuals with simple intelligence through mutual cooperation and organization. By observing the mechanisms of animal groups or certain social behaviors including foraging, hunting, courtship, and flying, researchers have designed corresponding swarm intelligence optimization algorithms. These intelligent algorithms are relatively flexible in solution methods and can quickly find effective solutions, but lack the optimization proof of the problem.

[0008] 3) Exact algorithm: Exact algorithm refers to the algorithm that can find the optimal solution, mainly including branch and bound method, cutting plane method, integer linear programming, mixed linear programming, etc. Exact algorithm is to find the optimal scheduling solution for the scheduling target, rather than the near-optimal solution. The advantage of the exact algorithm is that the result is highly optimized, but because the solution performance is sensitive to the problem scale, the solution speed is slower than heuristic and intelligent algorithms.

[0009] At present, the scheduling algorithm problem of the workshop is generally solved by the Scheduling module in the APS (Advanced Planning Scheduling) product, which generally adopts heuristic and genetic algorithms to solve the actual workshop scheduling problem. However, due to the lack of optimization of the solution, it is impossible to confirm whether the feasible solution is the best.

[0010] Therefore, the flexible workshop scheduling in the prior art has the following technical problems:

[0011] All workpieces and machines are in ready state at time zero. One machine can only process one process at the same time. The same process can only be processed on one machine at the same time and can only be processed once. The constraints on the process processing order are only considered within the same workpiece. Interruptions of the workpiece during processing and machine failures are not considered. The processing priority of each workpiece is the same. Summary of the invention

[0012] The present invention provides a workshop scheduling method taking into account the constraints of raw material uniformity and multi-machine parallel processing, so as to solve the situation in the above-mentioned background technology.

[0013] The present application proposes a workshop scheduling method considering raw material set constraints and multi-machine parallel processing, which is characterized by including:

[0014] Obtain workshop orders, determine order data and corresponding machines and equipment;

[0015] Order data includes: product quantity, raw material requirements, order deadlines, and production losses;

[0016] According to order data and machine equipment, set production variables, processing targets and raw material set constraints to generate a mixed integer programming model;

[0017] According to the mixed integer programming model, the corresponding commercial solver is called to optimize the multi-machine parallel processing plan, and the production task schedule is determined based on the machine allocation plan obtained by the solution.

[0018] Preferably, the mixed integer programming model also includes: timeline constraints, raw material constraints, production capacity constraints, downtime period constraints, relationship constraints, and target penalty constraints.

[0019] Preferably, the timeline constraint comprises the following execution steps:

[0020] Step 1: Pre-set the order processing time and process dimensions of the order;

[0021] The process dimension is the time and space coordinate parameters of different machines and equipment in the process;

[0022] Step 2: Set the start and end time of the order according to the order processing time;

[0023] Step 3: Set the association constraints of different machines and equipment in order start time, end time and process dimensions;

[0024] Step 4: Determine the processing strategy for simultaneous and spatial processing of multiple production lines based on the constraints of the association relationship.

[0025] Preferably, the raw material constraint comprises the following execution steps:

[0026] Obtain the supply quantity and arrival time of different raw materials from raw material suppliers;

[0027] According to the arrival time period, the total start-up volume and total arrival volume of the machinery and equipment corresponding to different raw materials are compared and calculated, and constraints on raw materials without designated suppliers and constraints on raw materials with designated suppliers are set respectively; among them,

[0028] Machinery and equipment have unique start-up time limits based on the arrival time period;

[0029] in,

[0030] Machinery and equipment have unique start-up time limits based on the arrival time period;

[0031] The arrival time period conforms to the following cumulative relationship expression:

[0032]

[0033] Where E0 represents the cost coefficient of order 0; CP o,p,i represents the required quantity of raw material i in process p of order 0; SupplyArrivals represents the array of supply arrival time periods, y o,p,e Indicates whether the process p of order 0 is started during the supply arrival period e (0-1 variable); S i,e Represents the arrival quantity of raw material i in supply arrival period e, period index number e∈SupplyArrivals, {1, 2, 3, …}.

[0034] Preferably, the capacity constraint comprises the following execution steps:

[0035] Obtain the production capacity information of different machines and equipment, and determine the time dimension of production of different machines and equipment;

[0036] Time dimension, unify the production capacity information of different machines and equipment.

[0037] Preferably, the downtime period constraint comprises the following execution steps:

[0038] Traverse the downtime and processing time of different machines and equipment, arrange them in sequence, determine whether there is time overlap, and set the first downtime constraint;

[0039] Traverse all the processes of the order, determine whether the raw material arrival time period is within the processing cycle of any machine equipment in the processing order, and set the second downtime constraint.

[0040] Preferably, the relationship constraint comprises the following execution steps:

[0041] Get the processing time of any machine in the order in the current process, whether the current process occupies the machine's occupancy variable and the over-limit value of the constraint variable. When the following formula is met, execute the relationship constraint:

[0042] m r,o,p,u ≤bigM×useR r,o,p,u

[0043] Among them, o represents the order; p represents the process; r represents the machine; u represents the processing time; m r,o,p,u represents the total processing quantity of process p of order o on machine r during processing period u; bigM represents the over-limit value of the constraint variable range; useRr,o,p,u A 0 / 1 control variable indicating whether process p of order o on machine r is processed during processing period u;

[0044] When the relational constraints are met, the start and finish time of the order on any machine satisfies the following constraints:

[0045]

[0046] Among them, the order start and completion time is expressed in m r,o,p,u Convert to time length tz r,o,p,u , constituting a constraint; startR r,o,p,u represents the start time of process p of order o on machine r in processing period u; tz r,o,p,u Downtimes represents the processing time of process p of order o on machine r in processing period u; r,a represents the downtime of machine r in the idle capacity period a; length; endR r,o,p,u represents the end time of process p of order o on machine r in processing period u; y r,o,p,a Indicates whether the empty capacity period a falls within the processing time of process p of order o on machine r, a 0-1 variable.

[0047] Preferably, the target penalty constraint includes:

[0048] According to the order data, preset order exception categories and set corresponding exception parameters; among them,

[0049] Order exception categories include: out-of-stock orders, early production of orders, and delayed completion of orders;

[0050] Construct an objective function for order product switching based on abnormal parameters;

[0051] According to the objective function, set the restriction rules for product switching; among them,

[0052] The restriction rules are limits on capacity loss due to product switching;

[0053] Based on the restriction rules, determine the target punishment constraint mechanism.

[0054] Preferably, the calling of the corresponding commercial solver includes:

[0055] Determine business modeling information based on a mixed integer programming model;

[0056] According to the business modeling information, through the general layer mathematical modeling, the corresponding commercial solver is matched on the remote solver server;

[0057] Determine the solution information based on commercial solvers.

[0058] Preferably, the commercial solvers include: gurobi solver, ortools solver, mindopt solver and Shanshu COPT solver.

[0059] The beneficial effects of this application are:

[0060] This application solves the problem in the prior art that material supply and concurrent processing of multiple machines are not considered in the FJSP problem, so as to optimize the efficiency of workshop scheduling, maximize the satisfaction of customer needs, and make the best use of production line resources.

[0061] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the written description and the accompanying drawings.

[0062] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:

[0064] Figure 1 A method flow chart of a workshop scheduling method considering raw material complete set constraints and multi-machine parallel processing in an embodiment of the present invention;

[0065] Figure 2 The figure is a flowchart of the calling process of the commercial solver in the embodiment of the present invention.

[0066] Figure 3 This is a flowchart of calling a commercial solver in an embodiment of the present invention. DETAILED DESCRIPTION

[0067] The preferred embodiments of the present invention are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.

[0068] The present application proposes a workshop scheduling method considering raw material set constraints and multi-machine parallel processing, which is characterized by including:

[0069] Obtain workshop orders, determine order data and corresponding machines and equipment;

[0070] Order data includes: product quantity, raw material requirements, order deadlines, and production losses;

[0071] According to order data and machine equipment, set production variables, processing targets and raw material set constraints to generate a mixed integer programming model;

[0072] According to the mixed integer programming model, the corresponding commercial solver is called to optimize the multi-machine parallel processing plan, and the production task schedule is determined based on the machine allocation plan obtained by the solution.

[0073] The principle of the above technical solution is:

[0074] As attached Figure 1 As shown, this application is mainly used in the process of workshop production to set the constraints of flexible workshop production, so as to achieve the optimal scheduling of workshop production;

[0075] In this process, the application first obtains order information, collects and analyzes production order data and raw material supply data.

[0076] This data includes information such as the number of orders, delivery date, product type, type and quantity of raw materials required, etc. It is also necessary to collect machine performance parameters such as processing capacity and processing time.

[0077] In traditional technology, mixed integer programming models are also used. This application also considers mixed integer programming models, but integrates the constraints of raw material completeness. It is a mathematical optimization model that realizes production scheduling decisions within the workshop through linear programming of continuous variables.

[0078] In the field of workshop scheduling, the traditional mixed integer programming model sets inventory constraints, demand matching constraints, and procurement and transportation time window constraints, thereby building a MIP model for the workshop. It is a technical solution that can partially achieve the function of raw material set constraints. In the traditional concept, the main reason why the mixed integer programming model does not use raw material set constraints is that in the traditional workshop production process, it is impossible to control multiple intelligent machines and equipment through a set of systems to achieve large-scale integrated workshop production scheduling. Today, with the rapid development of AI technology, this application is mainly used in intelligent control systems based on AI platforms to achieve multi-machine parallel processing based on AI technology.

[0079] In terms of raw material set constraints, this application realizes the construction of a mixed integer programming model by setting variables, processing goals and raw material set constraints to achieve the purpose of mixed overall planning and processing. In this process, it is necessary to consider the supply of raw materials and the priority of orders. Therefore, the raw material set constraint is set to ensure that during the production process, a complete raw material procurement plan is established to ensure that the required raw materials can arrive at the same time, taking into account factors such as the inventory situation of raw materials, procurement cycle, and supplier's supply capacity. Production orders are classified and sorted according to the demand for raw materials.

[0080] In traditional technical solutions, since there is no constraint on the completeness of raw materials and parallel processing of multiple machines, each machine can only process one process at the same time. However, the present application allows multiple machines to process in parallel, so when a machine has two or more operating functions, it can implement multiple processes at the same time. The same process can be processed multiple times on a machine at the same time. If an interruption occurs during the processing, other processes can be automatically scheduled to be carried out to realize the sorting of process processing priorities. At the same time, machine failures can be ignored. In the case of multiple machines in parallel, when a machine fails, the process in progress can be implemented by another machine, realizing intelligent process sorting.

[0081] For orders of the same type, they can be arranged according to priority, and for orders of different types, they can be coordinated according to actual conditions. Finally, the constructed model is solved by the solver to determine the overall production task plan.

[0082] The beneficial effects of the above technical solution are:

[0083] It solves the problem of not considering material supply and concurrent processing of multiple machines in the existing technology when solving the FJSP problem, so as to optimize the efficiency of workshop scheduling, maximize the satisfaction of customer needs, and make the best use of production line resources.

[0084] As an optional embodiment of the present application, the raw material set constraint includes: timeline constraint, raw material constraint, production capacity constraint, downtime period constraint, relationship constraint, and target penalty constraint.

[0085] Timeline constraints are used when executing processes. A workpiece must complete all its predecessor processes before it can enter the subsequent process. For machine operations, processing tasks must comply with the first-come-first-served (FCFS) principle or other priority rules and cannot be performed earlier or later than the specified time window.

[0086] The raw material constraint is equivalent to the raw material set constraint, but it guarantees that the necessary raw materials are in place and available when a certain task is performed. Factors such as material arrival time, inventory level, and consumption rate are taken into account to ensure that all relevant raw materials are ready before starting a specific task.

[0087] Capacity constraints represent the maximum production capacity of a machine or work center. This constraint ensures that no more work is scheduled than the machine can handle per unit time, including consideration of the capacity limit of a single machine and the coordination capabilities of multiple machines.

[0088] Downtime constraints are used to specify certain time periods during which a machine or production line may not be able to operate normally, such as maintenance, unplanned fault repair, etc. These constraints require avoiding these unavailable periods when formulating scheduling plans.

[0089] Relationship constraints are used to determine the logical dependencies between tasks, such as the relationship between pre-processing and post-processing, the association between previous and next processes in the process route, etc. Such constraints ensure that tasks are performed in the correct order and combination, and do not allow violations of process flow or technical requirements.

[0090] The target penalty constraint takes into account the penalty or reward mechanism for delays, early completion, etc. in actual applications, and these cost or benefit factors can be incorporated into the objective function as constraints. For example, if early completion may result in additional storage costs, and late completion requires a penalty, the corresponding penalty term can be added to the model to guide the solver to minimize undesirable situations when seeking the optimal solution.

[0091] As an optional embodiment of the present application, the timeline constraint includes the following execution steps:

[0092] Step 1: Pre-set the order processing time and process dimensions of the order;

[0093] The process dimension is the time and space coordinate parameters of different machines and equipment in the process;

[0094] Step 2: Set the start and end time of the order according to the order processing time;

[0095] Step 3: Set the association constraints of different machines and equipment in order start time, end time and process dimensions;

[0096] Step 4: Determine the processing strategy for simultaneous and spatial processing of multiple production lines based on the constraints of the association relationship.

[0097] The principle and beneficial effects of the above technical solution are:

[0098] When this application is implemented, the order processing time including the start time, end time and the corresponding process time will be considered. The process dimension is used to determine the priority ranking of any process of the workpiece in each processing process in the task, so it is a time-space coordinate parameter, including time and the corresponding machine. The timeline constraint and the relationship constraint are related, so based on the associated relationship constraint, when multiple machines are processing in parallel, the synchronous parallel processing strategy of multiple production lines in the same space and time will be determined.

[0099] In specific implementation, this application will set a timeline constraint mechanism through the order processing time and process dimensions. This mechanism includes the following constraint information:

[0100] The start time of the same order cannot be earlier than the end time and must comply with the following formula:

[0101] end o >start o -(1-use o )×bigM

[0102] The start time of the same process cannot be earlier than the end time

[0103] end o,p >start o,p -(1-use o )×bigM

[0104] The start time of the subsequent process of the same order cannot be earlier than the end time of the previous process

[0105] Assume that process p' in order o is the subsequent process of process p:

[0106] start o,p ≥end o,p

[0107] The relationship between order start / end time and process start / end time

[0108] This constraint restricts the order to either process all operations or none of them:

[0109] start o =start o,firstp

[0110] end o =end o,lastp .

[0111] As an optional embodiment of the present application, the raw material constraint includes the following execution steps:

[0112] Obtain the supply quantity and arrival time of different raw materials from raw material suppliers;

[0113] According to the arrival time period, the total start-up volume and total arrival volume of the machinery and equipment corresponding to different raw materials are compared and calculated, and constraints on raw materials without designated suppliers and constraints on raw materials with designated suppliers are set respectively; among them,

[0114] Machinery and equipment have unique start time limits based on the time period of arrival.

[0115] in,

[0116] Machinery and equipment have unique start-up time limits based on the arrival time period;

[0117] The arrival time period conforms to the following cumulative relationship expression. In specific implementation, it is necessary to examine whether the total start-up quantity of material i in each supply arrival period is less than or equal to the total arrival quantity of material i:

[0118]

[0119] Where E0 represents the cost coefficient of order 0; CP o,p,i represents the required quantity of raw material i in process p of order 0; SupplyArrivals represents the array of supply arrival time periods, y o,p,e Indicates whether the process p of order 0 is started during the supply arrival period e (0-1 variable); S i,e Represents the arrival quantity of raw material i in supply arrival period e, period index number e∈SupplyArrivals, {1, 2, 3, …}.

[0120] The principle and beneficial effects of the above technical solution are:

[0121] Raw material constraints are designed to ensure that the supply quantity and arrival time of different raw materials from raw material suppliers can be calculated synchronously with the start-up volume of machinery and equipment and the total amount of goods to be produced. Therefore, in this process, unspecified supplier raw material constraints and designated supplier raw material constraints are also required to ensure that raw materials can be delivered quickly and accurately.

[0122] During the specific implementation process, the constraints of raw materials need to be considered. The order can only be started when all the raw materials are complete, which conforms to the following mathematical formula:

[0123] No constraints on raw materials from designated suppliers:

[0124]

[0125] Raw material constraints with designated suppliers:

[0126]

[0127] As an optional embodiment of the present application, the capacity constraint includes the following execution steps:

[0128] Obtain the production capacity information of different machines and equipment, and determine the time dimension of production of different machines and equipment;

[0129] Time dimension, unify the production capacity information of different machines and equipment.

[0130] In terms of capacity constraints, traditional capacity constraints are limits on the amount of work that can be completed by a work center or machine in a unit of time. This constraint ensures that when formulating a scheduling plan, the maximum production capacity of the machine or production line will not be exceeded.

[0131] However, this application should be a workshop scheduling method for parallel processing of multiple machines. In addition to the traditional capacity constraints, it is also necessary to comply with the parallel operation of multiple machines. Therefore, the time dimension is determined, and the capacity of different machines and equipment is unified from the time dimension to ensure that the capacity of different machines and equipment is unified in the same time dimension, and there will be no capacity asynchrony, resulting in substandard capacity. The capacity unification in the time dimension means that in the time dimension, the workpiece functions of the synchronous and parallel machines and equipment may be different, but the work done is the same in mathematical definition.

[0132] As an optional embodiment of the present application, the downtime period constraint includes the following execution steps:

[0133] Traverse the downtime and processing time of different machines and equipment, arrange them in sequence, determine whether there is time overlap, and set the first downtime constraint;

[0134] Traverse all the processes of the order, determine whether the raw material arrival time period is within the processing cycle of any machine equipment in the processing order, and set the second downtime constraint.

[0135] The principle of the above technical solution is:

[0136] There are two types of downtime constraints: Constraint 1:

[0137] The start and end time of any process cannot fall within any empty downtime period (that is, the downtime period cannot partially overlap with the processing period, either completely covering it or completely outside it), traversing all machines r,

[0138] Iterate through all downtime periods a:

[0139] {Traverse all start r,o,p Need to meet the start r,o,p ≤Downtimes r,a,start or start r,o,p ≤Downtimes r,a,end ;

[0140] Traverse all the ends r,o,p Need to meet end r,o,p ≤Downtimes r,a,start or end r,o,p ≤Downtimes r,a,end}

[0141] (Consider the scenario of use=0, start=H, end=0)

[0142] The corresponding mathematical expression is:

[0143] Define auxiliary 0-1 variables: u r,o,p,a

[0144] start r,o,p -Downtimes r,a,start ≤bigM×u r,o,p,a

[0145]

[0146] Define auxiliary 0-1 variable: v r,o,p,a

[0147] end r,o,p -Downtimes r,a,start ≤bigM×u r,o,p,a

[0148]

[0149] Constraint 2:

[0150] Defined a 0-1 variable y r,o,p,a It indicates whether the downtime period a falls within the processing cycle of process p of processing order o on machine r, and the same process p can contain multiple downtime periods between the start and end.

[0151] Traverse all machines r traverse all downtime periods a traverse all processes p of order o on production line r if

[0152] start r,o,p ≤Downtimes r,a,start and end r,o,p ≥Downtimes r,a,end Then there is y r,o,p,a =1;

[0153] The corresponding mathematical expression is:

[0154] start r,o,p -Downtimes r,a,start ≤bigM×(1-y r,o,p,a )

[0155]

[0156] The relationship between the start and completion time of a process and the processing quantity:

[0157] m r,o,p,u ≤bigM×useR r,o,p,μ constraint

[0158] m r,o,p,u ≥round(Do,p ÷maxResUse o,p )×use r,o,p,u

[0159]

[0160]

[0161] To facilitate output, define the variable m r,o,p

[0162]

[0163] As an optional embodiment of the present application, the relationship constraint includes the following execution steps:

[0164] Get the processing time of any machine in the order in the current process, whether the current process occupies the machine's occupancy variable and the over-limit value of the constraint variable. When the following formula is met, execute the relationship constraint:

[0165] m r,o,p,u ≤bigM×useR r,o,p,u

[0166] Among them, o represents the order; p represents the process; r represents the machine; u represents the processing time; m r,o,p,u represents the total processing quantity of process p of order o on machine r during processing period u; bigM represents the over-limit value of the constraint variable range; useR r,o,p,u A 0 / 1 control variable indicating whether process p of order o on machine r is processed during processing period u;

[0167] When the relational constraints are met, the start and finish time of the order on any machine satisfies the following constraints:

[0168]

[0169] Among them, the order start and completion time is expressed in m r,o,p,u Convert to time length tz r,o,p,u , constituting a constraint; startR r,o,p,u represents the start time of process p of order o on machine r in processing period u; tz r,o,p,u Downtimes represents the processing time of process p of order o on machine r in processing period u; r,a represents the downtime of machine r in the idle capacity period a; length; endR r,o,p,u represents the end time of process p of order o on machine r in processing period u; y r,o,p,a Indicates whether the empty capacity period a falls within the processing time of process p of order o on machine r, a 0-1 variable.

[0170] As an optional embodiment of the present application, the target penalty constraint includes:

[0171] According to the order data, preset order exception categories and set corresponding exception parameters; among them,

[0172] Order exception categories include: out-of-stock orders, early production of orders, and delayed completion of orders;

[0173] Construct an objective function for order product switching based on abnormal parameters;

[0174] According to the objective function, set the restriction rules for product switching; among them,

[0175] The restriction rules are limits on capacity loss due to product switching;

[0176] Based on the restriction rules, determine the target punishment constraint mechanism.

[0177] The principle of the above technical solution is:

[0178] In order to process order tasks with the smallest gap and the fastest speed, this application first processes the constraints of the variables in the objective function, and determines whether the order is out of stock, whether the order is produced in advance, whether the order is delayed in completion, etc. during the order production process; among them,

[0179] The mathematical expression for judging whether an order is produced in advance is:

[0180] T o -F o -end r,o ≥(1-early r,o,l )×(-bigM)+1

[0181] T o -F o -end r,o ≤arly r,o,l ×bigM

[0182] The mathematical expression for determining the advance output duration is:

[0183] earlyDur r,o =(T o -F o -end r,o )÷(24*6)×early r,o,l

[0184] The mathematical expression for determining whether the completion is delayed is:

[0185] lateDur r,o =(endr,o -T o )÷(24*6)×late r,o,l

[0186] In this process, the capacity loss is also calculated, and the mathematical expression is as follows:

[0187] start r,j’,u -end r,j’,u-1 -P2≥(1-y r,j,j’,u )×(-bigM)

[0188] The machining gap will also be judged to reduce the machining gap:

[0189]

[0190] As an optional embodiment of the present application, calling the corresponding commercial solver includes:

[0191] Determine business modeling information based on a mixed integer programming model;

[0192] According to the business modeling information, through the general layer mathematical modeling, the corresponding commercial solver is matched on the remote solver server;

[0193] Determine the solution information based on the commercial solver.

[0194] The principle of the above technical solution is:

[0195] As attached Figure 2 and attached Figure 3 As shown, the mathematical solver in the present application and the present invention realizes the decoupling adaptation of the specific commercial / free version of the solver, can adapt to a variety of solvers in the industry, can be dynamically selected based on the scale and requirements of the problem, and is plug-and-play. In this process, through business modeling, the work order data, inventory data, demand plan, and resource data are integrated into the overall order business data, and then the commercial solver is called through the mixed integer programming model to realize information output and determine each person's respective business information.

[0196] Preferably, the commercial solvers include: gurobi solver, ortools solver and mindopt solver.

[0197] In this application, when using the gurobi solver, the calculation speed is fast, because Gurobi is a high-performance mathematical optimization solver that supports various types of optimization problems such as linear programming (LP), mixed integer programming (MIP), quadratic programming (QP), quadratic constrained programming (QCP), etc. It has a powerful algorithm, so the calculation speed is faster; in this application, when using the ortools solver, it has a multi-directional information optimization mode, because the ortools solver provides a highly flexible modeling framework, and users can use a variety of model constructions to achieve multi-directional information decision-making optimization. In this application, when using the mindopt solver, it is more suitable for the field of e-commerce logistics.

[0198] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A workshop scheduling method considering raw material set constraints and multi-machine parallel processing, characterized in that: include: Obtain workshop orders, determine order data and corresponding machines and equipment; Order data includes: product quantity, raw material requirements, order deadlines, and production losses; According to the order data and machine equipment, production variables, processing targets and raw material set constraints are set to generate a mixed integer programming model; the mixed integer programming model also includes: timeline constraints, raw material constraints, production capacity constraints, downtime constraints, association constraints, and target penalty constraints; wherein the raw material constraints include the following execution steps: Obtain the supply quantity and arrival time of different raw materials from raw material suppliers; According to the arrival time period, the total start-up volume and total arrival volume of the machinery and equipment corresponding to different raw materials are compared and calculated, and constraints on raw materials without designated suppliers and constraints on raw materials with designated suppliers are set respectively; among them, Machinery and equipment have unique start times based on the time period of arrival; The arrival time period conforms to the following cumulative relationship expression: in, Indicates order Cost coefficient of Indicates order Process Raw materials Quantity of demand; An array representing the arrival time slots of the supply, Indicates order Process Is it during the supply arrival period? On start, 0-1 variable; Indicates the supply arrival period Raw materials Arrival quantity, time period index number ; According to the mixed integer programming model, the corresponding commercial solver is called to optimize the multi-machine parallel processing plan, and the production task schedule is determined based on the machine allocation plan obtained by the solution.

2. A workshop scheduling method considering raw material set constraints and multi-machine parallel processing as claimed in claim 1, characterized in that: The timeline constraint includes the following execution steps: Step 1: Pre-set the order processing time and process dimensions of the order; The process dimension is the time and space coordinate parameters of different machines and equipment in the process; Step 2: Set the start and end time of the order according to the order processing time; Step 3: Set the association constraints of different machines and equipment in order start time, end time and process dimensions; Step 4: Determine the processing strategy for simultaneous and spatial processing of multiple production lines based on the constraints of the association relationship.

3. A workshop scheduling method considering raw material set constraints and multi-machine parallel processing as claimed in claim 1, characterized in that: The capacity constraint includes the following execution steps: Obtain the production capacity information of different machines and equipment, and determine the time dimension of production of different machines and equipment; Time dimension, unify the production capacity information of different machines and equipment.

4. A workshop scheduling method considering raw material set constraints and multi-machine parallel processing as claimed in claim 1, characterized in that: The downtime period constraint comprises the following execution steps: Traverse the downtime and processing time of different machines and equipment, arrange them in sequence, determine whether there is time overlap, and set the first downtime constraint; Traverse all the processes of the order, determine whether the raw material arrival time period is within the processing cycle of any machine equipment in the processing order, and set the second downtime constraint.

5. The method for shop scheduling considering raw material set constraints and multi-machine parallel processing as claimed in claim 1, characterized in that: The relationship constraint includes the following execution steps: Get the processing time of any machine in the order in the current process, whether the current process occupies the machine's occupancy variable and the over-limit value of the constraint variable. When the following formula is met, execute the relationship constraint: in, Indicates an order; Indicates the process; It means machine; Indicates the processing period; Indicates the machine Place an order Process During processing Total processing quantity at time; Indicates the out-of-limit value of the constraint variable range; Indicates the machine Place an order Process During processing 0 / 1 control variable for whether to process or not; When the relational constraints are met, the start and finish time of the order on any machine satisfies the following constraints: The order start and completion time is determined by Convert to time length , constituting constraints; It indicates that the process p of the processing order o on the machine r is in the processing period The start time of It indicates that the process p of the processing order o on the machine r is in the processing period The processing time; Indicates the machine During empty capacity period downtime; ; It indicates that the process p of the processing order o on the machine r is in the processing period End time of Indicates the empty capacity period Whether it falls on the machine Place an order Process The internal processing time, 0-1 variable.

6. A workshop scheduling method considering raw material set constraints and multi-machine parallel processing as claimed in claim 1, characterized in that: The target penalty constraints include: According to the order data, preset order exception categories and set corresponding exception parameters; among them, Order exception categories include: out-of-stock orders, early production of orders, and delayed completion of orders; Construct an objective function for order product switching based on abnormal parameters; According to the objective function, set the restriction rules for product switching; among them, The restriction rules are limits on capacity loss due to product switching; Based on the restriction rules, determine the target punishment constraint mechanism.

7. A workshop scheduling method considering raw material set constraints and multi-machine parallel processing as claimed in claim 1, characterized in that: The commercial solvers corresponding to the calls include: Determine business modeling information based on a mixed integer programming model; According to the business modeling information, through the general layer mathematical modeling, the corresponding commercial solver is matched on the remote solver server; Determine the solution information based on the commercial solver.

8. The method for shop scheduling considering raw material set constraints and multi-machine parallel processing as claimed in claim 1, characterized in that: The commercial solvers include: gurobi solver, ortools solver, mindopt solver and Shanshu COPT solver.