WO2022087962A1 - Simulation-based closed-loop aps scheduling optimization method and system, and storage medium - Google Patents

Simulation-based closed-loop aps scheduling optimization method and system, and storage medium Download PDF

Info

Publication number
WO2022087962A1
WO2022087962A1 PCT/CN2020/124827 CN2020124827W WO2022087962A1 WO 2022087962 A1 WO2022087962 A1 WO 2022087962A1 CN 2020124827 W CN2020124827 W CN 2020124827W WO 2022087962 A1 WO2022087962 A1 WO 2022087962A1
Authority
WO
WIPO (PCT)
Prior art keywords
scheduling
aps
simulation
particle swarm
rule
Prior art date
Application number
PCT/CN2020/124827
Other languages
French (fr)
Chinese (zh)
Inventor
廖梓博
郁彦彬
Original Assignee
西门子股份公司
西门子(中国)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 西门子股份公司, 西门子(中国)有限公司 filed Critical 西门子股份公司
Priority to PCT/CN2020/124827 priority Critical patent/WO2022087962A1/en
Priority to CN202080106382.XA priority patent/CN116529741A/en
Publication of WO2022087962A1 publication Critical patent/WO2022087962A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling

Definitions

  • the present application relates to the field of digitization, in particular to a simulation-based closed-loop advanced planning and scheduling software (APS) scheduling optimization method, system and storage medium.
  • APS advanced planning and scheduling software
  • Opcenter APS (previously known as "Preactor APS") was developed specifically to meet this requirement as an advanced planning and scheduling software solution for generating achievable production plans by balancing demand and capacity.
  • Opcenter APS provides users with professional production data management methods and simple and efficient production scheduling rules.
  • the embodiments of the present invention propose a simulation-based closed-loop APS scheduling optimization method on the one hand, and a simulation-based closed-loop APS scheduling optimization system and a computer-readable storage medium on the other hand, so as to provide more feasible scheduling scheme.
  • a simulation-based closed-loop APS scheduling optimization method proposed in the embodiment of the present invention includes: determining an APS rule selected for scheduling; determining a weight configuration set for the selected APS rule; according to the weight configuration of the APS rule, Generate a scheduling Gantt chart; export the order sequence corresponding to the scheduling Gantt chart; load the order sequence and the obtained preset simulation model configuration data into the basic simulation model of the factory design simulation software to obtain scheduling simulation model; run the scheduling simulation model, and evaluate to obtain key performance indicator data; export the key performance indicator data as the simulation result; determine whether the simulation result meets the needs, and if so, output the corresponding scheduling Gantt chart ; otherwise, return to the step of selecting APS rules for scheduling.
  • the determining the weight configuration set for the selected APS rule includes: using a comprehensive particle swarm optimization algorithm to set the weight configuration for the selected APS rule; the comprehensive particle swarm optimization algorithm is in the basic particle swarm optimization algorithm. Improvement is made on the basis of the iterative optimization process.
  • the fitness value is calculated according to the key performance indicator data to determine the optimal position experienced by the particle itself and the optimal position experienced by the particle swarm.
  • the optimal position of the particle itself is evaluated and processed, and the mutation operation of the genetic algorithm is used to evaluate and update the optimal position of the particle swarm, dynamically adjust the inertia weight value, and finally update the next-generation particle swarm.
  • the setting of the weight configuration for the selected APS rule by using the comprehensive particle swarm optimization algorithm includes: assigning an initial weight to the selected APS rule, and performing particle encoding on the initial weight; Initialize the weight of the APS to obtain the current particle swarm; decode the current particle swarm to obtain the current weight configuration of the APS rule, and determine the current weight configuration as the weight configuration set for the selected APS rule; After executing the step of running the scheduling simulation model and evaluating and obtaining key performance indicator data, the step further includes: acquiring the key performance indicator data, and calculating a fitness value according to the key performance indicator data to determine the particle itself experienced The optimal position experienced by the particle swarm and the optimal position experienced by the particle swarm; determine whether the maximum number of iterations has been reached?
  • the simulated annealing algorithm is used to evaluate the optimal position experienced by the particle itself, and the mutation operation of the genetic algorithm is used to evaluate and update the optimal position experienced by the particle swarm;
  • the optimal The particle swarm corresponding to the position is used as the current example swarm, and the operation of decoding the current particle swarm to obtain the current weight configuration of the APS rule is returned to execute.
  • the determining the APS rule to be selected for the schedule includes: selecting the rule required for the current schedule based on the existing rules and/or added custom rules of the advanced planning and scheduling software.
  • the simulation-based closed-loop APS scheduling optimization system proposed in the embodiment of the present invention includes: at least one memory and at least one processor, wherein: the at least one memory is used to store a computer program; the at least one processor is used to call the A computer program stored in at least one memory causes the device to perform corresponding operations, the operations comprising: determining an APS rule selected for scheduling; determining a weight configuration set for the selected APS rule; weighting according to the APS rule configure and generate a scheduling Gantt chart; export the order sequence corresponding to the scheduling Gantt chart; load the order sequence and the acquired preset simulation model configuration data into the basic simulation model of the factory design simulation software to obtain the scheduling run the scheduling simulation model, and evaluate to obtain key performance indicator data; export the key performance indicator data as the simulation result; judge whether the simulation result meets the needs, and if so, output the corresponding scheduling plan special graph; otherwise, go back to executing the step of selecting APS rules for the schedule.
  • the determining the weight configuration set for the selected APS rule includes: using a comprehensive particle swarm optimization algorithm to set the weight configuration for the selected APS rule; the comprehensive particle swarm optimization algorithm is in the basic particle swarm optimization algorithm. Improvement is made on the basis of the iterative optimization process.
  • the fitness value is calculated according to the key performance indicator data to determine the optimal position experienced by the particle itself and the optimal position experienced by the particle swarm.
  • the optimal position of the particle itself is evaluated and processed, and the mutation operation of the genetic algorithm is used to evaluate and update the optimal position of the particle swarm, dynamically adjust the inertia weight value, and finally update the next-generation particle swarm.
  • the setting of the weight configuration for the selected APS rule by using the comprehensive particle swarm optimization algorithm includes: assigning an initial weight to the selected APS rule, and performing particle encoding on the initial weight; Initialize the weight of the APS to obtain the current particle swarm; decode the current particle swarm to obtain the current weight configuration of the APS rule, and determine the current weight configuration as the weight configuration set for the selected APS rule; After executing the step of running the scheduling simulation model and evaluating and obtaining key performance indicator data, the step further includes: acquiring the key performance indicator data, and calculating a fitness value according to the key performance indicator data to determine the particle itself experienced The optimal position experienced by the particle swarm and the optimal position experienced by the particle swarm; determine whether the maximum number of iterations has been reached?
  • the simulated annealing algorithm is used to evaluate the optimal position experienced by the particle itself, and the mutation operation of the genetic algorithm is used to evaluate and update the optimal position experienced by the particle swarm;
  • the optimal The particle swarm corresponding to the position is used as the current example swarm, and the operation of decoding the current particle swarm to obtain the current weight configuration of the APS rule is returned to execute.
  • the determining the APS rule to be selected for the schedule includes: selecting the rule required for the current schedule based on the existing rules and/or added custom rules of the advanced planning and scheduling software.
  • the simulation-based closed-loop APS scheduling optimization system proposed in the embodiment of the present invention includes: an advanced planning and scheduling software module; a factory design simulation simulation software module; and a simulation-based scheduling module, which is constructed as a component object model COM component, Integrate into the advanced planning and scheduling software module through a COM interface, connect to the plant design simulation software module through the COM interface of the plant design simulation software module, and perform the following operations: determine the APS rule; determine the weight configuration of the selected APS rule; generate a scheduling Gantt chart according to the weight configuration of the APS rule; derive the order sequence corresponding to the scheduling Gantt chart; The simulation model configuration data is loaded into the basic simulation model of the factory design simulation simulation software module to obtain a scheduling simulation model; run the scheduling simulation model, and evaluate to obtain key performance indicator data; use the key performance indicator data as the simulation Deriving the result; judging whether the simulation result meets the requirement, if yes, outputting the corresponding scheduling Gantt chart; otherwise, returning to the step of selecting an APS rule for scheduling
  • the determining the weight configuration of the selected APS rule includes: using a comprehensive particle swarm optimization algorithm to set a weight configuration for the selected APS rule; the comprehensive particle swarm optimization algorithm is based on the basic particle swarm optimization algorithm.
  • the fitness value is calculated according to the key performance indicator data to determine the optimal position experienced by the particle itself and the optimal position experienced by the particle swarm, and the simulated annealing algorithm is used for each obtained particle.
  • the best position itself is evaluated and processed, and the mutation operation of the genetic algorithm is used to evaluate and update the best position of the particle swarm, dynamically adjust the inertia weight value, and finally update the next generation of particle swarm.
  • the simulation-based scheduling module includes: a scheduling sub-module and a simulation sub-module; wherein the scheduling sub-module is used to determine the APS rule selected for scheduling, and determine the weight of the selected APS rule configuration; according to the weight configuration of the APS rules, generate a scheduling Gantt chart; export the order sequence corresponding to the scheduling Gantt chart to the database; and obtain the simulation results based on the order sequence from the database; judge the Whether the simulation result meets the requirements, if yes, output the corresponding scheduling Gantt chart; otherwise, return to execute the operation of selecting APS rules for scheduling; the simulation submodule is used to load the order sequence from the database and preset simulation model configuration data, and load the ordered sequence and the simulation model configuration data into the basic simulation model of the factory design simulation software to obtain a scheduling simulation model; run the scheduling simulation model, and evaluating to obtain key performance indicator data; and storing the key performance indicator data in the database as a simulation result.
  • the simulation-based scheduling module further includes: an optimization algorithm sub-module; configured to set a weight configuration for the selected APS rule by using a comprehensive particle swarm optimization algorithm, and provide the weight configuration to the scheduling sub-module Module; the integrated particle swarm optimization algorithm is improved on the basis of the basic particle swarm optimization algorithm, and in the iterative optimization process, the fitness value is calculated according to the key performance indicator data to determine the optimal position experienced by the particle itself and the particle swarm experience.
  • the optimal position of the particle swarm is evaluated and processed by the simulated annealing algorithm, and the optimal position of the particle swarm is evaluated and updated by the mutation operation of the genetic algorithm, and the inertia weight value is dynamically adjusted, and the final update is generated.
  • Next-generation particle populations configured to set a weight configuration for the selected APS rule by using a comprehensive particle swarm optimization algorithm, and provide the weight configuration to the scheduling sub-module Module; the integrated particle swarm optimization algorithm is improved on the basis of the basic particle swarm optimization
  • the optimization algorithm sub-module assigns initial weights to the selected APS rules, and performs particle encoding on the initial weights; initializes the weights after particle encoding to obtain the current particle swarm; The current particle swarm is decoded to obtain the current weight configuration of the APS rule, and the current weight configuration is provided to the scheduling sub-module; the key performance indicator data evaluated by the simulation sub-module is obtained, and The performance index data calculates the fitness value to determine the optimal position experienced by the particle itself and the optimal position experienced by the particle swarm; determine whether the maximum number of iterations has been reached?
  • the simulated annealing algorithm is used to evaluate the optimal position experienced by the particle itself, and the mutation operation of the genetic algorithm is used to evaluate and update the optimal position experienced by the particle swarm;
  • the optimal The particle swarm corresponding to the position is used as the current example swarm, and the operation of decoding the current particle swarm to obtain the current weight configuration of the APS rule is returned to execute.
  • the simulation-based scheduling module further includes: an APS rule configuration module for determining the rules required for the current scheduling based on the existing rules and/or added custom rules of the advanced planning and scheduling software.
  • the computer-readable storage medium proposed in the embodiment of the present invention stores a computer program thereon; the computer program can be executed by a processor and implements the above simulation-based closed-loop APS scheduling optimization method.
  • the scheduling scheme generated based on the advanced planning and scheduling software can be simulated by the factory design simulation software. Create a corresponding scheduling simulation model, and run the scheduling simulation model to obtain the KPI data of the simulation results. Based on the KPI data, it can be judged whether the corresponding scheduling scheme meets the requirements, so that a more feasible scheduling scheme can be provided.
  • FIG. 1 is an exemplary flowchart of a simulation-based closed-loop APS scheduling optimization method in an embodiment of the present invention.
  • FIG. 2 is a schematic diagram of a framework structure of a simulation-based closed-loop APS scheduling optimization system according to an embodiment of the present invention.
  • FIG. 3 is a schematic flowchart of a simulation-based closed-loop APS scheduling optimization method based on the framework shown in FIG. 2 in an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of a function dialog of the SSM in an example of the present invention.
  • FIG. 5 is a schematic diagram of the configuration of the APS rule base in an example of the present invention.
  • FIG. 6 is a schematic diagram of a process of creating a simulation model in an example of the present invention.
  • FIG. 7 is a schematic diagram of an automatic optimization process of APS rule weight assignment in an example of the present invention.
  • FIG. 8 is an exemplary structural diagram of a simulation-based closed-loop APS scheduling optimization system in an embodiment of the present invention.
  • Opcenter APS like other industrial APS software, does not have an optimization algorithm for scheduling, but provides a set of APS rules to generate a scheduling Gantt chart. It is necessary to manually adjust and optimize the results according to personal experience, which makes Opcenter APS still have some shortcomings, especially in some complex production scenarios, there are the following two problems: 1. It is difficult to verify and evaluate the planning and scheduling results given by Opcenter APS 2. There is no mature Opcenter APS algorithm to optimize the rule-based scheduling scheme.
  • the first problem above makes the scheduling results of Opcenter APS infeasible or poorly executed in the actual production process, and rescheduling always costs extra.
  • the second problem comes from the rule-based scheduling algorithm provided by Opcenter APS. APS rules enable very fast scheduling, but are not user-oriented. As a result, users often cannot find a good way to assess their quality, see if the schedule is in line with production requirements, or if a better solution can be found. Therefore, Opcenter APS needs a feasible method to optimize the APS rules and verify the scheduling results for different user target requirements.
  • KPI Key Performance Indicators
  • the charts may include "utilization" charts representing the utilization of production resources, etc.
  • the reports may include order KPIs related to time and cost.
  • this embodiment of the present invention it is considered to provide a simulation-based closed-loop APS scheduling optimization solution.
  • This solution considers replacing the data model with the model in plant design simulation software such as Plant Simulation to simulate planned production and calculate KPI statistics; and consider developing an optimization algorithm in Opcenter APS to optimize APS rules.
  • a simulation-based Scheduling Module can be provided for integrating advanced planning and scheduling software such as Opcenter APS and plant design simulation software such as Plant Simulation to realize a simulation-based closed-loop APS scheduling optimization scheme.
  • advanced planning and scheduling software such as Opcenter APS
  • plant design simulation software such as Plant Simulation
  • Provide the scheduling scheme based on advanced planning and scheduling software such as Opcenter APS to the simulation model generated based on plant design simulation software such as Plant Simulation for verification obtain the corresponding KPI data according to the simulation results, and judge whether the scheduling scheme meets the requirements based on the KPI data.
  • a simulation-based closed-loop APS scheduling optimization method can be shown in Figure 1, which includes the following steps:
  • Step S101 determining the APS rule selected for the schedule.
  • Step S102 determining the weight configuration set for the selected APS rule.
  • Step S103 generating a scheduling Gantt chart according to the weight configuration of the APS rule.
  • Step S104 derive the order sequence corresponding to the scheduling Gantt chart.
  • Step S105 load the order sequence and the acquired preset simulation model configuration data into the basic simulation model of the factory design simulation software to obtain a scheduling simulation model.
  • Step S106 running the scheduling simulation model, and evaluating to obtain key performance indicator data.
  • Step S107 exporting the key performance indicator data as a simulation result.
  • step S108 it is judged whether the simulation result meets the requirements, if yes, step S109 is performed; otherwise, step S101 is returned to.
  • Step S109 output the corresponding scheduling Gantt chart.
  • the optimal iterative algorithm can be used to find the optimal weight of each APS rule in the schedule, and the KPI data obtained by simulation can be optimized accordingly when finding the final weight. calculate.
  • a comprehensive particle swarm optimization algorithm can be provided that sets a weight configuration for selected APS rules.
  • the comprehensive particle swarm optimization algorithm is improved on the basis of the basic particle swarm optimization algorithm.
  • the fitness value is calculated according to the key performance indicator data to determine the optimal position experienced by the particle itself and the optimal position experienced by the particle swarm.
  • the optimal position of the particle swarm is evaluated and processed by the simulated annealing algorithm, and the optimal position of the particle swarm is evaluated and updated by the mutation operation of the genetic algorithm, and the inertia weight value is dynamically adjusted, and finally the next generation particle is generated. population.
  • FIG. 2 is a schematic diagram of a framework structure of a simulation-based closed-loop APS scheduling optimization system according to an embodiment of the present invention.
  • the advanced planning and scheduling software is Opcenter APS and the factory design simulation software is Plant Simulation is used as an example for description.
  • the framework structure is divided into three layers: application layer 1, service layer 2 and data layer 3.
  • Application Layer 1 represents the integration of Opcenter APS 10 and Plant Simulation20.
  • an SSM 30 is provided, and the SSM 30 is constructed as a Component Object Model (COM, Component Object Model) component, which is integrated into the Opcenter APS 10 through the COM interface, and is integrated into the Opcenter APS 10 through the COM interface of the Plant Simulation20.
  • the interface is connected to Plant Simulation20, thereby obtaining the simulation-based closed-loop APS scheduling optimization system in the embodiment of the present invention.
  • COM Component Object Model
  • the service layer 2 includes three parts: the scheduling sub-module 31 formed by the SSM 30 using the APS framework and the application programming interface (API), the SSM 30 using the framework and API of the Plant Simulation 20 to form a simulation sub-module including a high-precision simulation model 321. 32 and the optimization algorithm sub-module 33 provided by the SSM 30.
  • the scheduling sub-module 31 formed by the SSM 30 using the APS framework and the application programming interface (API)
  • API application programming interface
  • the SSM 30 using the framework and API of the Plant Simulation 20 to form a simulation sub-module including a high-precision simulation model 321.
  • 32 and the optimization algorithm sub-module 33 provided by the SSM 30 are three parts: the scheduling sub-module 31 formed by the SSM 30 using the APS framework and the application programming interface (API), the SSM 30 using the framework and API of the Plant Simulation 20 to form a simulation sub-module including a high-precision simulation model 321. 32 and the optimization algorithm sub-module 33 provided by the S
  • the scheduling sub-module 31 includes an APS rule base 311 and a scheduler 312 .
  • the APS rule base 311 includes various APS rules, which not only include the built-in rules of Opcenter APS, but also include user-defined rules.
  • the scheduler 312 is the scheduling engine that performs the scheduling process.
  • the optimization algorithm sub-module 33 is used to schedule the corresponding rules currently selected in the APS rule base 311, and assign an initial weight to each rule, perform an encoding operation 331 on the assigned initial weight, and generate an iterative Initial weight assignments for particle populations.
  • the weight assignment particles are decoded 332 and provided to the scheduling sub-module 31 for simulation verification by the simulation sub-module 32, and the KPI data reported by the simulation sub-module 32 are received 322 , iteratively optimize each weight assignment according to the KPI data, perform decoding operation 332 on the final weight assignment after the iteration, and provide the decoded weight assignment to the scheduling sub-module 31 to generate an optimal scheduling scheme.
  • the data required for operations in this process comes from data layer 3.
  • the data layer 3 includes the data sources of all the modules of the above-mentioned service layer 2. Basically, it is a SQL Server database 40 serving Opcenter APS 10, which contains resource data 41, product data 42, inventory data 43, order data 44, etc., which are necessary for scheduling and simulation. On this basis, the database also stores scheduling result data (such as order sequence, etc.) 45 and simulation model configuration data 46, which are required for simulation.
  • both the scheduling input/output data and the data required for the simulation are stored in the same database, and a standard data table template can be used.
  • Data Layer 3 can also be applied to possible scenarios such as MRP (Material Requirements Planning), MPS (Master Production Planning), SCM (Supply Chain Management).
  • FIG. 3 is a schematic flowchart of a simulation-based closed-loop APS scheduling optimization method based on the framework shown in FIG. 2 in an embodiment of the present invention. As shown in FIG. 3 , the method mainly involves the interaction between the scheduling sub-module 31 , the simulation sub-module 32 and the optimization algorithm sub-module 33 .
  • the following operations may be included on the scheduling sub-module 31 side:
  • Step S401 import scheduling data.
  • the scheduling data is the data input required for scheduling, such as order, resource, process and other related data.
  • Step S402 setting an optimization target.
  • the optimization goal is also the scheduling goal, for example, whether all orders are delivered or the finished product inventory is the lowest, and/or the work-in-process inventory is the lowest, and/or some orders are processed in advance, and/or the inventory is within a range internal, and/or lowest cost, etc.
  • Step S403 determining the APS rule selected for the schedule.
  • FIG. 4 is a schematic diagram of a function dialog box of the SSM 30 in an example of the present invention. It can be seen that an APS rule configuration module 34 may be specifically included on the SSM 30 side.
  • Opcenter APS 10 provides some built-in APS rules, such as by the shortest delivery time (EDD), shortest processing time (SPT), lowest critical ratio (CR), first in first out (FIFO) and other rules.
  • EDD shortest delivery time
  • SPT shortest processing time
  • CR lowest critical ratio
  • FIFO first in first out
  • the APS rule base further extends the rules such as Shortest Relaxation Time (STR), Last In First Out (LIFO), Least Number of Operations (LOPNR), etc.
  • the APS rule configuration module 34 presents these rules to the user, and the user selects the required rules.
  • the rules library is also available for users to define and add custom rules by setting properties for each production order and adding those properties to the library as new rules for order sorting.
  • FIG. 5 shows a schematic diagram of the configuration of the APS rule base in an example.
  • the right side is a part of the rules in the presented Opcenter APS rule base, and the user can perform three operations through the APS rule configuration module 34: the first operation 341: add a custom rule; the second operation 342: select the selected For the required rules, EDD, LIFO, and LOPNR are selected on the right side of FIG. 5 ; the third operation 343 : assign weights to the selected rules, such as 1, 2, and 3 in the boxes on the right side of FIG. 5 .
  • step S404 is performed after this step, and if automatic scheduling is selected, step S405 is performed.
  • Step S404 accept the weight configuration of the APS rule by the user.
  • Step S405 accept the weight configuration of the APS rule by the optimization algorithm sub-module 33.
  • the weight configuration of the APS rules by the optimization algorithm submodule 33 refers to that the SSM 30 utilizes the optimization algorithm submodule 33 to automatically configure the weights of the APS rules, and continuously searches for the best APS scheduling sequence for the configured weights through scheduling and simulation.
  • Autoscheduling is designed for planners who are faced with new production scenarios or changing goals and do not know how to choose APS rule weights. Therefore, simulating the closed-loop scheduling optimization scheme helps users to verify the scheduling results and automatically optimize the APS rules. For the specific process, please refer to steps 501 to 509 below.
  • step S406 a scheduling scheme is generated according to the weight configuration of the APS rule, that is, a scheduling Gantt chart is obtained.
  • the processing sequence of each order and its corresponding processing station and processing time are reflected in the scheduling Gantt chart.
  • the total score of each order can be calculated according to the following formula (1) according to the weight configuration of the APS rules.
  • V fcfs the initial priority score of each order, the value of the first order is 1, the value of the first order is 2, and so on;
  • V edd the initial delivery time score of each order, the value of the order with the earliest delivery date is 1, the value of the order with the second earliest delivery date is 2, and so on;
  • V spt the initial processing time score of each order, the value of the order with the shortest processing time is 1, the value of the order with the second shortest processing time is 2, and so on;
  • V str The initial slack time score for each order, the order with the shortest remaining time has a value of 1, the order with the second shortest remaining time has a value of 2, and so on.
  • W fcfs , W edd , W spt , and W str are weight values.
  • the score of each order determines the entire order sequence and ultimately the scheduling result.
  • Step S407 based on the scheduling scheme, derive the corresponding order sequence, and store the order sequence in a database (DB, Database).
  • DB Database
  • Step S411, extract the simulation result from the database.
  • Step S412 it is judged whether the simulation result satisfies the requirement, if yes, execute step S413; otherwise, return to execute step S403.
  • Step S413 output the corresponding scheduling scheme.
  • the scheduling sub-module 31 is mainly used to determine the APS rule selected for scheduling, and determine the weight configuration of the selected APS rule; generate a scheduling Gantt chart according to the weight configuration of the APS rule; derive the corresponding scheduling Gantt
  • the order sequence of the special diagram is stored in the database; and the simulation result based on the order sequence is obtained from the database; it is judged whether the simulation result meets the needs, and if so, the corresponding scheduling Gantt chart is output; Describes the operation of scheduling the selection of APS rules.
  • step S408 the simulation sub-module 32 loads simulation-related data and creates a scheduling simulation model.
  • the loading of the simulation-related data includes: step S4081, loading the simulation model configuration data; step S4082, loading the simulation model; and step S4083, loading the order sequence.
  • the simulation model can be quickly created as shown in FIG. 6 .
  • Various methods may be used through the COM interface, and the specific process may include: First, the SSM 30 loads the basic simulation model through the LoadModel() method. There are a series of SimTalk methods and ODBC connection objects in the basic simulation model, which are remotely controlled by the ExecuteSimTalk() method, which can read data from the Opcenter APS database, and then automatically create and run the relevant production line simulation model. In addition, the order sequence generated by the scheduling sub-module 31 is also loaded into the current production line simulation model and distributed to each production station.
  • simulation model configuration data is also loaded in this way, which can be entered by the user from the SSM 30 integrated into Opcenter APS 10 and stored in the database.
  • Simulation model configuration data may include settings for workstation processing time, workstation mean time to failure (MTTF), yield, logistics rules, and more. This results in a high-precision model, and each time by changing production-related data in Opcenter APS10, a new model can be quickly created to run the simulation. Then after the simulation triggers the SimulationFinished event, the SSM finally receives the KPI data through the GetValue() method.
  • Step S409 running the scheduling simulation model and evaluating the simulated KPI data.
  • the KPI data obtained in this step may be fed back to the optimization algorithm sub-module 33 .
  • step S410 the KPI data is exported and stored in the database DB as the simulation result.
  • the simulation sub-module 32 is mainly used to load the order sequence and the preset simulation model configuration data from the database, and load the order sequence and the simulation model configuration data into the basic simulation model of Plant Simulation , obtain a scheduling simulation model; run the scheduling simulation model, and evaluate to obtain key performance indicator data; store the key performance indicator data as a simulation result in the database.
  • the scheduling optimization problem is based on discrete scenarios, and in this application, it is considered to guide the weight configuration of APS rules based on KPI results.
  • the optimization algorithm of the group optimization algorithm (SG-DPSO).
  • the SG-DPSO is iteratively optimized based on the particle swarm optimization (PSO, Particle swarm optimization), and in the iterative optimization process, the SA algorithm and the GA algorithm are combined to complete the optimization of the weight configuration.
  • PSO particle swarm optimization
  • the initialization of PSO is a group of random particles (random solutions), and then the optimal solution is found through iteration.
  • the particle updates itself by tracking two "extremes", namely the optimal position Pbest experienced by the particle itself and the optimal position Gbest experienced by the particle swarm. After finding these two optimal solutions, the particle updates its velocity and position.
  • the reason for using the PSO algorithm is that the result of each iteration can guide the particle's fitness value to get better by updating the particle's velocity and position.
  • the SA algorithm is used to process the current optimal particle position
  • the mutation operation of the GA algorithm is used to process and update the global optimal position of the particle population, thereby avoiding the generation of local optimal solutions.
  • fitness values are calculated from the KPI data to determine Pbest and Gbest.
  • the specific implementation may include the following steps:
  • Step S501 Determine the APS rule selected by the scheduling sub-module 31 side through the COM interface, assign an initial weight to the APS rule, and perform particle coding on the initial weight.
  • FIG. 7 shows a schematic diagram of an automatic optimization process of APS rule weight assignment.
  • the APS rule combination includes: the selected four kinds of rules: EDD, FIFO, STR and SPT, a correspondingly encoded possible particle should be like "1342", and the number of each position represents each The weight value of the rule, the maximum value indicates that the relevant rule has the highest weight.
  • the scheduling sub-module 31 can calculate the total score of each production order according to the weight values of different APS rules.
  • Step S502 Initialize the weight after particle encoding to obtain the current particle swarm.
  • Step S503 decode the current particle swarm to obtain the current weight configuration of the APS rule, and provide the current weight configuration of the APS rule to the scheduling sub-module 31 through the COM interface, and the scheduling sub-module 31 will perform the step S404. Accept the weight configuration of the APS rule by the optimization algorithm sub-module 33 .
  • step S504 the KPI data fed back by the simulation sub-module 32 after step S408 is received through the COM interface, and the fitness value is calculated according to the KPI data to determine Pbest and Gbest.
  • Step S505 determine whether the maximum number of iterations has been reached? If yes, go to step S509; otherwise, go to step S506, and adjust the inertia weight value updated by the particle position according to the number of iterations.
  • Step S506 using a simulated annealing algorithm to evaluate Pbest.
  • Step S507 using the mutation operation of the genetic algorithm to evaluate and update the Gbest.
  • step S508 a new generation of the current particle swarm is generated, and then step S503 is performed.
  • step S509 the particle swarm corresponding to Gbest is selected as the current example swarm, and then step S503 is executed.
  • the optimization algorithm sub-module 33 is mainly used to set the weight configuration for the selected APS rule by using the comprehensive particle swarm optimization algorithm, and provide the weight configuration to the scheduling sub-module; the comprehensive particle swarm optimization algorithm is used in the basic particle swarm optimization Improvements are made on the basis of the optimization algorithm.
  • the fitness value is calculated according to the key performance indicator data to determine the optimal position experienced by the particle itself and the optimal position experienced by the particle swarm.
  • the optimal position of the particle itself is evaluated and processed, and the mutation operation of the genetic algorithm is used to evaluate and update the optimal position of the particle swarm, dynamically adjust the inertia weight value, and finally update the next-generation particle swarm.
  • a simulation-based closed-loop APS scheduling optimization system in an embodiment of the present invention may include: an advanced planning and scheduling software module, a factory design simulation software module, and a simulation-based scheduling module 30, which is constructed as a component object model COM component, integrated into the high-level planning and scheduling software module through a COM interface, and connected to the plant design simulation software module through the COM interface of the plant design simulation software module module, and perform the following operations: determine the APS rule selected for scheduling; determine the weight configuration of the selected APS rule; generate a scheduling Gantt chart according to the weight configuration of the APS rule; export the corresponding scheduling Gantt chart order sequence; load the order sequence and the acquired preset simulation model configuration data into the basic simulation model of the factory design simulation simulation software module to obtain a scheduling simulation model; run the scheduling simulation model, and evaluate to obtain the key performance indicator data; exporting the key performance indicator data as the simulation result; judging whether the simulation result meets the requirements, if so, output the
  • FIG. 8 is a schematic structural diagram of another simulation-based closed-loop APS scheduling optimization system in an embodiment of the present invention, and the apparatus can be used to implement the methods shown in FIG. 1 and FIG. 3 , or implement the system shown in FIG. 2 .
  • the system may include: at least one memory 81 , at least one processor 82 and at least one display 83 .
  • some other components, such as communication ports, etc., may also be included. These components communicate via bus 84 .
  • At least one memory 81 is used to store computer programs.
  • the computer program can be understood as including each module of the simulation-based closed-loop APS scheduling optimization system shown in FIG. 2 .
  • the at least one memory 81 may also store an operating system and the like. Operating systems include but are not limited to: Android operating system, Symbian operating system, Windows operating system, Linux operating system, and so on.
  • At least one display 83 is used to display a scheduling Gantt chart or the like.
  • At least one processor 82 is configured to call a computer program stored in at least one memory 81 to execute the simulation-based closed-loop APS scheduling optimization method described in the embodiments of the present invention.
  • At least one processor 82 is configured to invoke a computer program stored in at least one memory 81 to cause the apparatus to perform corresponding operations.
  • the operations may include: determining an APS rule selected for scheduling; determining a weight configuration set for the selected APS rule; generating a scheduling Gantt chart according to the weight configuration of the APS rule; exporting a corresponding scheduling Gantt chart order sequence; load the order sequence and the obtained preset simulation model configuration data into the basic simulation model of Plant Simulation to obtain a scheduling simulation model; run the scheduling simulation model, and evaluate and obtain KPI data;
  • the KPI data is derived as the simulation result; it is judged whether the simulation result meets the requirements, and if so, the corresponding scheduling Gantt chart is output; otherwise, the step of selecting APS rules for scheduling is returned to.
  • the determining the weight configuration set for the selected APS rule includes: using a comprehensive particle swarm optimization algorithm to set the weight configuration for the selected APS rule; the comprehensive particle swarm optimization algorithm is in the basic particle swarm optimization algorithm. Improvement is made on the basis of the iterative optimization process.
  • the fitness value is calculated according to the key performance indicator data to determine the optimal position experienced by the particle itself and the optimal position experienced by the particle swarm.
  • the optimal position of the particle itself is evaluated and processed, and the mutation operation of the genetic algorithm is used to evaluate and update the optimal position of the particle swarm, dynamically adjust the inertia weight value, and finally update the next-generation particle swarm.
  • the setting of the weight configuration for the selected APS rule by using the comprehensive particle swarm optimization algorithm includes: assigning an initial weight to the selected APS rule, and performing particle encoding on the initial weight; Initialize the weight of the APS to obtain the current particle swarm; decode the current particle swarm to obtain the current weight configuration of the APS rule, and determine the current weight configuration as the weight configuration set for the selected APS rule; After executing the step of running the scheduling simulation model and evaluating and obtaining key performance indicator data, the step further includes: acquiring the key performance indicator data, and calculating a fitness value according to the key performance indicator data to determine the particle itself experienced The optimal position experienced by the particle swarm and the optimal position experienced by the particle swarm; determine whether the maximum number of iterations has been reached?
  • the simulated annealing algorithm is used to evaluate the optimal position experienced by the particle itself, and the mutation operation of the genetic algorithm is used to evaluate and update the optimal position experienced by the particle swarm;
  • the optimal The particle swarm corresponding to the position is taken as the current example swarm, and the operation of decoding the current particle swarm to obtain the current weight configuration of the APS rule is returned to be executed.
  • the determining the APS rule to be selected for the schedule includes: selecting the rule required for the current schedule based on the existing rules and/or added custom rules of the advanced planning and scheduling software.
  • the scheduling scheme generated based on Opcenter APS can create a corresponding scheduling simulation model through Plant Simulation, and by running the scheduling scheme
  • the process simulation model can obtain the KPI data of the simulation results. Based on the KPI data, it can be judged whether the corresponding scheduling scheme meets the requirements, so that a more feasible scheduling scheme can be provided.

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Strategic Management (AREA)
  • Economics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Educational Administration (AREA)
  • Game Theory and Decision Science (AREA)
  • Development Economics (AREA)
  • Marketing (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

A simulation-based closed-loop APS scheduling optimization method and system, and a storage medium. The method comprises: determining APS rules selected for scheduling (101); determining weight configuration set for the selected APS rules (102); generating a scheduling Gantt chart according to the weight configuration of the APS rules (103); deriving an order sequence corresponding to the scheduling Gantt chart (104); loading the order sequence and obtained preset simulation model configuration data into a basic simulation model of a factory design simulation software to obtain a scheduling simulation model (105); running the scheduling simulation model and evaluating to acquire key performance indicator data (106); exporting the key performance indicator data as simulation results (107); determining whether the simulation results meet needs (108); if yes, outputting the corresponding scheduling Gantt chart (109); otherwise, returning to the step of selecting the APS rules for scheduling. The present method can provide a more feasible scheduling solution for factory production.

Description

基于仿真的闭环APS调度优化方法、系统及存储介质Simulation-based closed-loop APS scheduling optimization method, system and storage medium 技术领域technical field
本申请涉及数字化领域,特别是一种基于仿真的闭环高级计划和调度软件(APS)调度优化方法、系统及存储介质。The present application relates to the field of digitization, in particular to a simulation-based closed-loop advanced planning and scheduling software (APS) scheduling optimization method, system and storage medium.
背景技术Background technique
目前,工业企业正在探索更智能、更高效的生产计划和调度方法。一个最优的生产计划要求以最低的成本满足生产需求和约束条件。Opcenter APS(以前称为“Preactor APS”)作为一种高级计划和调度软件解决方案专为满足这一要求而开发,用于通过平衡需求和产能来生成能够完成的生产计划。Opcenter APS为用户提供了专业的生产数据管理方法和简单高效的生产调度规则。Currently, industrial companies are exploring smarter and more efficient methods of production planning and scheduling. An optimal production plan requires meeting production requirements and constraints at the lowest cost. Opcenter APS (previously known as "Preactor APS") was developed specifically to meet this requirement as an advanced planning and scheduling software solution for generating achievable production plans by balancing demand and capacity. Opcenter APS provides users with professional production data management methods and simple and efficient production scheduling rules.
发明内容SUMMARY OF THE INVENTION
有鉴于此,本发明实施例中一方面提出了一种基于仿真的闭环APS调度优化方法,另一方面提出了一种基于仿真的闭环APS调度优化系统和计算机可读存储介质,用以提供更加可行的调度方案。In view of this, the embodiments of the present invention propose a simulation-based closed-loop APS scheduling optimization method on the one hand, and a simulation-based closed-loop APS scheduling optimization system and a computer-readable storage medium on the other hand, so as to provide more feasible scheduling scheme.
本发明实施例中提出的一种基于仿真的闭环APS调度优化方法,包括:确定为排程选择的APS规则;确定为所选择的APS规则设置的权重配置;根据所述APS规则的权重配置,生成调度甘特图;导出对应所述调度甘特图的订单序列;将所述订单序列以及获取的预先设置的仿真模型配置数据加载到工厂设计模拟仿真软件的基本仿真模型中,得到排程仿真模型;运行所述排程仿真模型,并评估得到关键绩效指标数据;将所述关键绩效指标数据作为仿真结果导出;判断所述仿真结果是否满足需要,如果是,则输出对应的调度甘特图;否则,返回执行所述为排程选择APS规则的步骤。A simulation-based closed-loop APS scheduling optimization method proposed in the embodiment of the present invention includes: determining an APS rule selected for scheduling; determining a weight configuration set for the selected APS rule; according to the weight configuration of the APS rule, Generate a scheduling Gantt chart; export the order sequence corresponding to the scheduling Gantt chart; load the order sequence and the obtained preset simulation model configuration data into the basic simulation model of the factory design simulation software to obtain scheduling simulation model; run the scheduling simulation model, and evaluate to obtain key performance indicator data; export the key performance indicator data as the simulation result; determine whether the simulation result meets the needs, and if so, output the corresponding scheduling Gantt chart ; otherwise, return to the step of selecting APS rules for scheduling.
在一个实施方式中,所述确定为所选择的APS规则设置的权重配置包括:采用综合粒子群优化算法对所选择的APS规则设置权重配置;所述综合粒子群优化算法在基本粒子群优化算法的基础上进行改进,其在迭代优化过程中根据关键绩效指标数据计算适应度值以确定粒子本身经历过的最优位置和粒子群经历过的最优位置,并采用模拟退火算法对每次得到的粒子本身最佳位置进行评价处理,采用遗传算法的变异操作对粒子群最佳位置 进行评价更新,动态调节惯性权重值,最终更新产生下一代粒子种群。In one embodiment, the determining the weight configuration set for the selected APS rule includes: using a comprehensive particle swarm optimization algorithm to set the weight configuration for the selected APS rule; the comprehensive particle swarm optimization algorithm is in the basic particle swarm optimization algorithm. Improvement is made on the basis of the iterative optimization process. In the iterative optimization process, the fitness value is calculated according to the key performance indicator data to determine the optimal position experienced by the particle itself and the optimal position experienced by the particle swarm. The optimal position of the particle itself is evaluated and processed, and the mutation operation of the genetic algorithm is used to evaluate and update the optimal position of the particle swarm, dynamically adjust the inertia weight value, and finally update the next-generation particle swarm.
在一个实施方式中,所述采用综合粒子群优化算法对所选择的APS规则设置权重配置包括:为所选择的APS规则分配初始权重,并对所述初始权重进行粒子编码;对进行粒子编码后的权重进行初始化,得到当前粒子群;对所述当前粒子群进行解码,得到所述APS规则的当前权重配置,并将所述当前权重配置确定为为所选择的APS规则设置的权重配置;在执行所述运行所述排程仿真模型,并评估得到关键绩效指标数据的步骤之后,进一步包括:获取所述关键绩效指标数据,并根据所述关键绩效指标数据计算适应度值以确定粒子本身经历过的最优位置和粒子群经历过的最优位置;判断是否到达最大迭代次数?在未到达最大迭代次数时,采用模拟退火算法对所述粒子本身经历过的最优位置进行评价处理,并采用遗传算法的变异操作对所述粒子群经历过的最优位置进行评价更新;产生新一代的当前粒子群,并返回执行所述对所述当前粒子群进行解码,得到所述APS规则的当前权重配置的操作;在到达最大迭代次数时,将所述粒子群经历过的最优位置对应的粒子群作为当前例子群,并返回执行所述对所述当前粒子群进行解码,得到所述APS规则的当前权重配置的操作。In one embodiment, the setting of the weight configuration for the selected APS rule by using the comprehensive particle swarm optimization algorithm includes: assigning an initial weight to the selected APS rule, and performing particle encoding on the initial weight; Initialize the weight of the APS to obtain the current particle swarm; decode the current particle swarm to obtain the current weight configuration of the APS rule, and determine the current weight configuration as the weight configuration set for the selected APS rule; After executing the step of running the scheduling simulation model and evaluating and obtaining key performance indicator data, the step further includes: acquiring the key performance indicator data, and calculating a fitness value according to the key performance indicator data to determine the particle itself experienced The optimal position experienced by the particle swarm and the optimal position experienced by the particle swarm; determine whether the maximum number of iterations has been reached? When the maximum number of iterations is not reached, the simulated annealing algorithm is used to evaluate the optimal position experienced by the particle itself, and the mutation operation of the genetic algorithm is used to evaluate and update the optimal position experienced by the particle swarm; A new generation of the current particle swarm, and return to perform the operation of decoding the current particle swarm to obtain the current weight configuration of the APS rule; when the maximum number of iterations is reached, the optimal The particle swarm corresponding to the position is used as the current example swarm, and the operation of decoding the current particle swarm to obtain the current weight configuration of the APS rule is returned to execute.
在一个实施方式中,所述确定为排程选择的APS规则包括:基于高级计划和调度软件已有的规则和/或添加的自定义规则选择当前排程所需的规则。In one embodiment, the determining the APS rule to be selected for the schedule includes: selecting the rule required for the current schedule based on the existing rules and/or added custom rules of the advanced planning and scheduling software.
本发明实施例中提出的基于仿真的闭环APS调度优化系统,包括:至少一个存储器和至少一个处理器,其中:所述至少一个存储器用于存储计算机程序;所述至少一个处理器用于调用所述至少一个存储器中存储的计算机程序使所述装置执行对应的操作,所述操作包括:确定为排程选择的APS规则;确定为所选择的APS规则设置的权重配置;根据所述APS规则的权重配置,生成调度甘特图;导出对应所述调度甘特图的订单序列;将所述订单序列以及获取的预先设置的仿真模型配置数据加载到工厂设计模拟仿真软件的基本仿真模型中,得到排程仿真模型;运行所述排程仿真模型,并评估得到关键绩效指标数据;将所述关键绩效指标数据作为仿真结果导出;判断所述仿真结果是否满足需要,如果是,则输出对应的调度甘特图;否则,返回执行所述为排程选择APS规则的步骤。The simulation-based closed-loop APS scheduling optimization system proposed in the embodiment of the present invention includes: at least one memory and at least one processor, wherein: the at least one memory is used to store a computer program; the at least one processor is used to call the A computer program stored in at least one memory causes the device to perform corresponding operations, the operations comprising: determining an APS rule selected for scheduling; determining a weight configuration set for the selected APS rule; weighting according to the APS rule configure and generate a scheduling Gantt chart; export the order sequence corresponding to the scheduling Gantt chart; load the order sequence and the acquired preset simulation model configuration data into the basic simulation model of the factory design simulation software to obtain the scheduling run the scheduling simulation model, and evaluate to obtain key performance indicator data; export the key performance indicator data as the simulation result; judge whether the simulation result meets the needs, and if so, output the corresponding scheduling plan special graph; otherwise, go back to executing the step of selecting APS rules for the schedule.
在一个实施方式中,所述确定为所选择的APS规则设置的权重配置包括:采用综合粒子群优化算法对所选择的APS规则设置权重配置;所述综合粒子群优化算法在基本粒子群优化算法的基础上进行改进,其在迭代优化过程中根据关键绩效指标数据计算适应度值以确定粒子本身经历过的最优位置和粒子群经历过的最优位置,并采用模拟退火算法对每次得到的粒子本身最佳位置进行评价处理,采用遗传算法的变异操作对粒子群最佳位 置进行评价更新,动态调节惯性权重值,最终更新产生下一代粒子种群。In one embodiment, the determining the weight configuration set for the selected APS rule includes: using a comprehensive particle swarm optimization algorithm to set the weight configuration for the selected APS rule; the comprehensive particle swarm optimization algorithm is in the basic particle swarm optimization algorithm. Improvement is made on the basis of the iterative optimization process. In the iterative optimization process, the fitness value is calculated according to the key performance indicator data to determine the optimal position experienced by the particle itself and the optimal position experienced by the particle swarm. The optimal position of the particle itself is evaluated and processed, and the mutation operation of the genetic algorithm is used to evaluate and update the optimal position of the particle swarm, dynamically adjust the inertia weight value, and finally update the next-generation particle swarm.
在一个实施方式中,所述采用综合粒子群优化算法对所选择的APS规则设置权重配置包括:为所选择的APS规则分配初始权重,并对所述初始权重进行粒子编码;对进行粒子编码后的权重进行初始化,得到当前粒子群;对所述当前粒子群进行解码,得到所述APS规则的当前权重配置,并将所述当前权重配置确定为为所选择的APS规则设置的权重配置;在执行所述运行所述排程仿真模型,并评估得到关键绩效指标数据的步骤之后,进一步包括:获取所述关键绩效指标数据,并根据所述关键绩效指标数据计算适应度值以确定粒子本身经历过的最优位置和粒子群经历过的最优位置;判断是否到达最大迭代次数?在未到达最大迭代次数时,采用模拟退火算法对所述粒子本身经历过的最优位置进行评价处理,并采用遗传算法的变异操作对所述粒子群经历过的最优位置进行评价更新;产生新一代的当前粒子群,并返回执行所述对所述当前粒子群进行解码,得到所述APS规则的当前权重配置的操作;在到达最大迭代次数时,将所述粒子群经历过的最优位置对应的粒子群作为当前例子群,并返回执行所述对所述当前粒子群进行解码,得到所述APS规则的当前权重配置的操作。In one embodiment, the setting of the weight configuration for the selected APS rule by using the comprehensive particle swarm optimization algorithm includes: assigning an initial weight to the selected APS rule, and performing particle encoding on the initial weight; Initialize the weight of the APS to obtain the current particle swarm; decode the current particle swarm to obtain the current weight configuration of the APS rule, and determine the current weight configuration as the weight configuration set for the selected APS rule; After executing the step of running the scheduling simulation model and evaluating and obtaining key performance indicator data, the step further includes: acquiring the key performance indicator data, and calculating a fitness value according to the key performance indicator data to determine the particle itself experienced The optimal position experienced by the particle swarm and the optimal position experienced by the particle swarm; determine whether the maximum number of iterations has been reached? When the maximum number of iterations is not reached, the simulated annealing algorithm is used to evaluate the optimal position experienced by the particle itself, and the mutation operation of the genetic algorithm is used to evaluate and update the optimal position experienced by the particle swarm; A new generation of the current particle swarm, and return to perform the operation of decoding the current particle swarm to obtain the current weight configuration of the APS rule; when the maximum number of iterations is reached, the optimal The particle swarm corresponding to the position is used as the current example swarm, and the operation of decoding the current particle swarm to obtain the current weight configuration of the APS rule is returned to execute.
在一个实施方式中,所述确定为排程选择的APS规则包括:基于高级计划和调度软件已有的规则和/或添加的自定义规则选择当前排程所需的规则。In one embodiment, the determining the APS rule to be selected for the schedule includes: selecting the rule required for the current schedule based on the existing rules and/or added custom rules of the advanced planning and scheduling software.
本发明实施例中提出的基于仿真的闭环APS调度优化系统,包括:高级计划和调度软件模块;工厂设计模拟仿真软件模块;和基于仿真的调度模块,其被构造为一个组件对象模型COM组件,通过COM接口集成到所述高级计划和调度软件模块中,并通过所述工厂设计模拟仿真软件模块的COM接口连接到所述工厂设计模拟仿真软件模块,并执行如下操作:确定为排程选择的APS规则;确定所选择的APS规则的权重配置;根据所述APS规则的权重配置,生成调度甘特图;导出对应所述调度甘特图的订单序列;将所述订单序列以及获取的预先设置的仿真模型配置数据加载到工厂设计模拟仿真软件模块的基本仿真模型中,得到排程仿真模型;运行所述排程仿真模型,并评估得到关键绩效指标数据;将所述关键绩效指标数据作为仿真结果导出;判断所述仿真结果是否满足需要,如果是,则输出对应的调度甘特图;否则,返回执行所述为排程选择APS规则的步骤。The simulation-based closed-loop APS scheduling optimization system proposed in the embodiment of the present invention includes: an advanced planning and scheduling software module; a factory design simulation simulation software module; and a simulation-based scheduling module, which is constructed as a component object model COM component, Integrate into the advanced planning and scheduling software module through a COM interface, connect to the plant design simulation software module through the COM interface of the plant design simulation software module, and perform the following operations: determine the APS rule; determine the weight configuration of the selected APS rule; generate a scheduling Gantt chart according to the weight configuration of the APS rule; derive the order sequence corresponding to the scheduling Gantt chart; The simulation model configuration data is loaded into the basic simulation model of the factory design simulation simulation software module to obtain a scheduling simulation model; run the scheduling simulation model, and evaluate to obtain key performance indicator data; use the key performance indicator data as the simulation Deriving the result; judging whether the simulation result meets the requirement, if yes, outputting the corresponding scheduling Gantt chart; otherwise, returning to the step of selecting an APS rule for scheduling.
在一个实施方式中,所述确定所选择的APS规则的权重配置包括:采用综合粒子群优化算法对所选择的APS规则设置权重配置;所述综合粒子群优化算法在基本粒子群优化算法的基础上进行改进,其在迭代优化过程中根据关键绩效指标数据计算适应度值以确定粒子本身经历过的最优位置和粒子群经历过的最优位置,并采用模拟退火算法对每次得 到的粒子本身最佳位置进行评价处理,采用遗传算法的变异操作对粒子群最佳位置进行评价更新,动态调节惯性权重值,最终更新产生下一代粒子种群。In one embodiment, the determining the weight configuration of the selected APS rule includes: using a comprehensive particle swarm optimization algorithm to set a weight configuration for the selected APS rule; the comprehensive particle swarm optimization algorithm is based on the basic particle swarm optimization algorithm. In the iterative optimization process, the fitness value is calculated according to the key performance indicator data to determine the optimal position experienced by the particle itself and the optimal position experienced by the particle swarm, and the simulated annealing algorithm is used for each obtained particle. The best position itself is evaluated and processed, and the mutation operation of the genetic algorithm is used to evaluate and update the best position of the particle swarm, dynamically adjust the inertia weight value, and finally update the next generation of particle swarm.
在一个实施方式中,所述基于仿真的调度模块包括:调度子模块和仿真子模块;其中,所述调度子模块用于确定为排程选择的APS规则,并确定所选择的APS规则的权重配置;根据所述APS规则的权重配置,生成调度甘特图;导出对应所述调度甘特图的订单序列到数据库中;并从所数据库中获取基于所述订单序列的仿真结果;判断所述仿真结果是否满足需要,如果是,则输出对应的调度甘特图;否则,返回执行所述为排程选择APS规则的操作;所述仿真子模块用于从所述数据库中加载所述订单序列以及预先设置的仿真模型配置数据,并将所述所订单序列和所述仿真模型配置数据加载到工厂设计模拟仿真软件的基本仿真模型中,得到排程仿真模型;运行所述排程仿真模型,并评估得到关键绩效指标数据;将所述关键绩效指标数据作为仿真结果存储到所述数据库中。In one embodiment, the simulation-based scheduling module includes: a scheduling sub-module and a simulation sub-module; wherein the scheduling sub-module is used to determine the APS rule selected for scheduling, and determine the weight of the selected APS rule configuration; according to the weight configuration of the APS rules, generate a scheduling Gantt chart; export the order sequence corresponding to the scheduling Gantt chart to the database; and obtain the simulation results based on the order sequence from the database; judge the Whether the simulation result meets the requirements, if yes, output the corresponding scheduling Gantt chart; otherwise, return to execute the operation of selecting APS rules for scheduling; the simulation submodule is used to load the order sequence from the database and preset simulation model configuration data, and load the ordered sequence and the simulation model configuration data into the basic simulation model of the factory design simulation software to obtain a scheduling simulation model; run the scheduling simulation model, and evaluating to obtain key performance indicator data; and storing the key performance indicator data in the database as a simulation result.
在一个实施方式中,所述基于仿真的调度模块进一步包括:优化算法子模块;用于采用综合粒子群优化算法对所选择的APS规则设置权重配置,将所述权重配置提供给所述调度子模块;所述综合粒子群优化算法在基本粒子群优化算法的基础上进行改进,其在迭代优化过程中根据关键绩效指标数据计算适应度值以确定粒子本身经历过的最优位置和粒子群经历过的最优位置,并采用模拟退火算法对每次得到的粒子本身最佳位置进行评价处理,采用遗传算法的变异操作对粒子群最佳位置进行评价更新,动态调节惯性权重值,最终更新产生下一代粒子种群。In one embodiment, the simulation-based scheduling module further includes: an optimization algorithm sub-module; configured to set a weight configuration for the selected APS rule by using a comprehensive particle swarm optimization algorithm, and provide the weight configuration to the scheduling sub-module Module; the integrated particle swarm optimization algorithm is improved on the basis of the basic particle swarm optimization algorithm, and in the iterative optimization process, the fitness value is calculated according to the key performance indicator data to determine the optimal position experienced by the particle itself and the particle swarm experience. The optimal position of the particle swarm is evaluated and processed by the simulated annealing algorithm, and the optimal position of the particle swarm is evaluated and updated by the mutation operation of the genetic algorithm, and the inertia weight value is dynamically adjusted, and the final update is generated. Next-generation particle populations.
在一个实施方式中,所述优化算法子模块为所选择的APS规则分配初始权重,并对所述初始权重进行粒子编码;对进行粒子编码后的权重进行初始化,得到当前粒子群;对所述当前粒子群进行解码,得到所述APS规则的当前权重配置,并将所述当前权重配置提供给所述调度子模块;获取所述仿真子模块评估得到的关键绩效指标数据,并根据所述关键绩效指标数据计算适应度值以确定粒子本身经历过的最优位置和粒子群经历过的最优位置;判断是否到达最大迭代次数?在未到达最大迭代次数时,采用模拟退火算法对所述粒子本身经历过的最优位置进行评价处理,并采用遗传算法的变异操作对所述粒子群经历过的最优位置进行评价更新;产生新一代的当前粒子群,并返回执行所述对所述当前粒子群进行解码,得到所述APS规则的当前权重配置的操作;在到达最大迭代次数时,将所述粒子群经历过的最优位置对应的粒子群作为当前例子群,并返回执行所述对所述当前粒子群进行解码,得到所述APS规则的当前权重配置的操作。In one embodiment, the optimization algorithm sub-module assigns initial weights to the selected APS rules, and performs particle encoding on the initial weights; initializes the weights after particle encoding to obtain the current particle swarm; The current particle swarm is decoded to obtain the current weight configuration of the APS rule, and the current weight configuration is provided to the scheduling sub-module; the key performance indicator data evaluated by the simulation sub-module is obtained, and The performance index data calculates the fitness value to determine the optimal position experienced by the particle itself and the optimal position experienced by the particle swarm; determine whether the maximum number of iterations has been reached? When the maximum number of iterations is not reached, the simulated annealing algorithm is used to evaluate the optimal position experienced by the particle itself, and the mutation operation of the genetic algorithm is used to evaluate and update the optimal position experienced by the particle swarm; A new generation of the current particle swarm, and return to perform the operation of decoding the current particle swarm to obtain the current weight configuration of the APS rule; when the maximum number of iterations is reached, the optimal The particle swarm corresponding to the position is used as the current example swarm, and the operation of decoding the current particle swarm to obtain the current weight configuration of the APS rule is returned to execute.
在一个实施方式中,所述基于仿真的调度模块进一步包括:APS规则配置模块,用于 基于高级计划和调度软件已有的规则和/或添加的自定义规则确定当前排程所需的规则。In one embodiment, the simulation-based scheduling module further includes: an APS rule configuration module for determining the rules required for the current scheduling based on the existing rules and/or added custom rules of the advanced planning and scheduling software.
本发明实施例中提出的计算机可读存储介质,其上存储有计算机程序;所述计算机程序能够被一处理器执行并实现如上所述的基于仿真的闭环APS调度优化方法。The computer-readable storage medium proposed in the embodiment of the present invention stores a computer program thereon; the computer program can be executed by a processor and implements the above simulation-based closed-loop APS scheduling optimization method.
从上述方案中可以看出,由于本发明实施例中将高级计划和调度软件和工厂设计模拟仿真软件集成在一起,使得基于高级计划和调度软件生成的排程调度方案可以通过工厂设计模拟仿真软件创建对应的排程仿真模型,通过运行该排程仿真模型可以得到仿真结果的KPI数据,基于该KPI数据可以判断对应的排程调度方案是否满足要求,从而可以提供更加可行的调度方案。It can be seen from the above scheme that, since the advanced planning and scheduling software and the factory design simulation software are integrated in the embodiment of the present invention, the scheduling scheme generated based on the advanced planning and scheduling software can be simulated by the factory design simulation software. Create a corresponding scheduling simulation model, and run the scheduling simulation model to obtain the KPI data of the simulation results. Based on the KPI data, it can be judged whether the corresponding scheduling scheme meets the requirements, so that a more feasible scheduling scheme can be provided.
进一步地,通过采用综合粒子群优化算法对排程所选择的APS规则进行自动的权重分配,可以使得那些面对新的生产场景或变化的生产需求,不知道该如何选择APS规则权重的生产计划人员能够准确高效地完成排程。Further, by using the comprehensive particle swarm optimization algorithm to automatically assign the weights to the APS rules selected by the scheduling, those who face new production scenarios or changing production requirements do not know how to choose the production plan with the weight of the APS rules. Personnel can complete the schedule accurately and efficiently.
附图说明Description of drawings
下面将通过参照附图详细描述本发明的优选实施例,使本领域的普通技术人员更清楚本发明的上述及其它特征和优点,附图中:The above-mentioned and other features and advantages of the present invention will be more apparent to those of ordinary skill in the art by describing the preferred embodiments of the present invention in detail below with reference to the accompanying drawings, in which:
图1为本发明实施例中一种基于仿真的闭环APS调度优化方法的示例性流程图。FIG. 1 is an exemplary flowchart of a simulation-based closed-loop APS scheduling optimization method in an embodiment of the present invention.
图2为本发明实施例中一种基于仿真的闭环APS调度优化系统的框架结构示意图。FIG. 2 is a schematic diagram of a framework structure of a simulation-based closed-loop APS scheduling optimization system according to an embodiment of the present invention.
图3为本发明实施例中基于图2所示框架的一种基于仿真的闭环APS调度优化方法的流程示意图。FIG. 3 is a schematic flowchart of a simulation-based closed-loop APS scheduling optimization method based on the framework shown in FIG. 2 in an embodiment of the present invention.
图4为本发明一个例子中SSM的功能对话框的示意图。FIG. 4 is a schematic diagram of a function dialog of the SSM in an example of the present invention.
图5为本发明一个例子中APS规则库配置的示意图。FIG. 5 is a schematic diagram of the configuration of the APS rule base in an example of the present invention.
图6为本发明一个例子中创建仿真模型的过程示意图。FIG. 6 is a schematic diagram of a process of creating a simulation model in an example of the present invention.
图7为本发明一个例子中APS规则权重分配自动优化过程的示意图。FIG. 7 is a schematic diagram of an automatic optimization process of APS rule weight assignment in an example of the present invention.
图8为本发明实施例中基于仿真的闭环APS调度优化系统的示例性结构图。FIG. 8 is an exemplary structural diagram of a simulation-based closed-loop APS scheduling optimization system in an embodiment of the present invention.
其中,附图标记如下:Among them, the reference numerals are as follows:
Figure PCTCN2020124827-appb-000001
Figure PCTCN2020124827-appb-000001
Figure PCTCN2020124827-appb-000002
Figure PCTCN2020124827-appb-000002
Figure PCTCN2020124827-appb-000003
Figure PCTCN2020124827-appb-000003
具体实施方式Detailed ways
本发明实施例中,考虑到目前为止,高级计划和调度软件如Opcenter APS也像其他工业APS软件一样,没有优化算法来进行调度,而是提供一套APS规则来生成调度甘特图,计划人员需要根据个人经验手动调整和优化结果,这使得Opcenter APS还存在一些不足,特别是在一些复杂的生产场景中,存在如下两个问题:1、难以验证和评估Opcenter APS给出的计划和调度结果;2、目前还没有成熟的Opcenter APS算法来优化基于规则的调度方案。In the embodiment of the present invention, considering that up to now, advanced planning and scheduling software such as Opcenter APS, like other industrial APS software, does not have an optimization algorithm for scheduling, but provides a set of APS rules to generate a scheduling Gantt chart. It is necessary to manually adjust and optimize the results according to personal experience, which makes Opcenter APS still have some shortcomings, especially in some complex production scenarios, there are the following two problems: 1. It is difficult to verify and evaluate the planning and scheduling results given by Opcenter APS 2. There is no mature Opcenter APS algorithm to optimize the rule-based scheduling scheme.
上述第一个问题使得Opcenter APS的调度结果在实际生产过程中不太可行或者执行效果差,且重新排程总是要付出额外的成本。第二个问题来自Opcenter APS提供的基于规则的调度算法。APS规则实现了非常快速的调度,但其不是面向用户需求的。因此,用户通常无法找到一个好的方法来评估其质量,看看调度是否符合生产要求,也不知道是否能找到更好的解决方案。因此,Opcenter APS需要一种可行的方法来优化所述APS规则并验证针对不同用户目标需求的调度结果。The first problem above makes the scheduling results of Opcenter APS infeasible or poorly executed in the actual production process, and rescheduling always costs extra. The second problem comes from the rule-based scheduling algorithm provided by Opcenter APS. APS rules enable very fast scheduling, but are not user-oriented. As a result, users often cannot find a good way to assess their quality, see if the schedule is in line with production requirements, or if a better solution can be found. Therefore, Opcenter APS needs a feasible method to optimize the APS rules and verify the scheduling results for different user target requirements.
针对第一个问题,目前有些研究中,考虑提供一种计算器,用于根据甘特图中的当前调度结果基于数学模型生成通过各种图表或报告显示的关键绩效指标(KPI,Key Performance Indicator)统计信息。其中,图表可包括表示生产资源利用率的“利用率”图表等,报告可包括与时间和成本相关的订单KPI。使用KPI统计数据,用户可以快速评估调度结果并进行调整。In response to the first question, some studies are currently considering providing a calculator for generating key performance indicators (KPI, Key Performance Indicators) displayed through various charts or reports based on a mathematical model based on the current scheduling results in the Gantt chart. )Statistics. Among them, the charts may include "utilization" charts representing the utilization of production resources, etc., and the reports may include order KPIs related to time and cost. Using KPI statistics, users can quickly evaluate scheduling results and make adjustments.
针对第二个问题,目前有些学术研究中,考虑利用各种启发式算法,如遗传算法(GA),粒子群优化算法(PSO),蚁群算法(AG)和模拟退火算法(SA)求解最佳订单调度序列。但是所有这些智能算法都需要大量的计算资源和时间。在一些复杂的生产场景中,这种智能算法无法找到全局最优解,只能找到局部最优解。另一方面,优化算法必须逐个开发。因此,在实际生产中很难应用不同的场景。For the second problem, in some academic studies, various heuristic algorithms, such as genetic algorithm (GA), particle swarm optimization (PSO), ant colony algorithm (AG) and simulated annealing algorithm (SA), are considered to solve the most Optimal order scheduling sequence. But all these smart algorithms require a lot of computing resources and time. In some complex production scenarios, this intelligent algorithm cannot find the global optimal solution, but can only find the local optimal solution. On the other hand, optimization algorithms have to be developed one by one. Therefore, it is difficult to apply different scenarios in actual production.
为此,本发明实施例中,考虑提供一种基于仿真的闭环APS调度优化解决方案。该解决方案中考虑用工厂设计模拟仿真软件如Plant Simulation中的模型代替数据模型来模拟计划生产,并计算KPI统计数据;并且,考虑在Opcenter APS中开发一种优化算法来 优化APS规则。Therefore, in this embodiment of the present invention, it is considered to provide a simulation-based closed-loop APS scheduling optimization solution. This solution considers replacing the data model with the model in plant design simulation software such as Plant Simulation to simulate planned production and calculate KPI statistics; and consider developing an optimization algorithm in Opcenter APS to optimize APS rules.
具体地,可提供一种基于仿真的调度模块(Simulation-based Scheduling Module,SSM),用于集成高级计划和调度软件如Opcenter APS和工厂设计模拟仿真软件如Plant Simulation,实现一种基于仿真的闭环APS调度优化方案。将基于高级计划和调度软件如Opcenter APS制定的调度方案提供给基于工厂设计模拟仿真软件如Plant Simulation生成的仿真模型进行检验,根据仿真结果得到对应的KPI数据,基于该KPI数据判断调度方案是否满足要求。例如,可如图1所示的基于仿真的闭环APS调度优化方法,其包括如下步骤:Specifically, a simulation-based Scheduling Module (SSM) can be provided for integrating advanced planning and scheduling software such as Opcenter APS and plant design simulation software such as Plant Simulation to realize a simulation-based closed-loop APS scheduling optimization scheme. Provide the scheduling scheme based on advanced planning and scheduling software such as Opcenter APS to the simulation model generated based on plant design simulation software such as Plant Simulation for verification, obtain the corresponding KPI data according to the simulation results, and judge whether the scheduling scheme meets the requirements based on the KPI data. Require. For example, a simulation-based closed-loop APS scheduling optimization method can be shown in Figure 1, which includes the following steps:
步骤S101,确定为排程选择的APS规则。Step S101, determining the APS rule selected for the schedule.
步骤S102,确定为所选择的APS规则设置的权重配置。Step S102, determining the weight configuration set for the selected APS rule.
步骤S103,根据所述APS规则的权重配置,生成调度甘特图。Step S103, generating a scheduling Gantt chart according to the weight configuration of the APS rule.
步骤S104,导出对应所述调度甘特图的订单序列。Step S104, derive the order sequence corresponding to the scheduling Gantt chart.
步骤S105,将所述订单序列以及获取的预先设置的仿真模型配置数据加载到工厂设计模拟仿真软件的基本仿真模型中,得到排程仿真模型。Step S105, load the order sequence and the acquired preset simulation model configuration data into the basic simulation model of the factory design simulation software to obtain a scheduling simulation model.
步骤S106,运行所述排程仿真模型,并评估得到关键绩效指标数据。Step S106, running the scheduling simulation model, and evaluating to obtain key performance indicator data.
步骤S107,将所述关键绩效指标数据作为仿真结果导出。Step S107, exporting the key performance indicator data as a simulation result.
步骤S108,判断所述仿真结果是否满足需要,如果是,则执行步骤S109;否则,返回执行步骤S101。In step S108, it is judged whether the simulation result meets the requirements, if yes, step S109 is performed; otherwise, step S101 is returned to.
步骤S109,输出对应的调度甘特图。Step S109, output the corresponding scheduling Gantt chart.
进一步地,还可以在基于高级计划和调度软件制定调度方案时,采用优化迭代算法找到排程中各APS规则的最优权重,且在寻找最终权重时可根据仿真得到的KPI数据进行相应地优化计算。例如,可提供一种综合粒子群优化算法,对所选择的APS规则设置权重配置。该综合粒子群优化算法在基本粒子群优化算法的基础上进行改进,其在迭代优化过程中根据关键绩效指标数据计算适应度值以确定粒子本身经历过的最优位置和粒子群经历过的最优位置,并采用模拟退火算法对每次得到的粒子本身最佳位置进行评价处理,采用遗传算法的变异操作对粒子群最佳位置进行评价更新,动态调节惯性权重值,最终更新产生下一代粒子种群。Further, when the scheduling plan is formulated based on the advanced planning and scheduling software, the optimal iterative algorithm can be used to find the optimal weight of each APS rule in the schedule, and the KPI data obtained by simulation can be optimized accordingly when finding the final weight. calculate. For example, a comprehensive particle swarm optimization algorithm can be provided that sets a weight configuration for selected APS rules. The comprehensive particle swarm optimization algorithm is improved on the basis of the basic particle swarm optimization algorithm. In the iterative optimization process, the fitness value is calculated according to the key performance indicator data to determine the optimal position experienced by the particle itself and the optimal position experienced by the particle swarm. The optimal position of the particle swarm is evaluated and processed by the simulated annealing algorithm, and the optimal position of the particle swarm is evaluated and updated by the mutation operation of the genetic algorithm, and the inertia weight value is dynamically adjusted, and finally the next generation particle is generated. population.
为使本发明的目的、技术方案和优点更加清楚,以下举实施例对本发明进一步详细说明。In order to make the objectives, technical solutions and advantages of the present invention clearer, the following examples are used to further describe the present invention in detail.
图2为本发明实施例中一种基于仿真的闭环APS调度优化系统的框架结构示意图。该实施例中,以高级计划和调度软件为Opcenter APS,工厂设计模拟仿真软件为Plant Simulation的情况为例进行描述。如图2所示,该框架结构分为三层:应用层1、服务层2和数据层3。FIG. 2 is a schematic diagram of a framework structure of a simulation-based closed-loop APS scheduling optimization system according to an embodiment of the present invention. In this embodiment, a case where the advanced planning and scheduling software is Opcenter APS and the factory design simulation software is Plant Simulation is used as an example for description. As shown in Figure 2, the framework structure is divided into three layers: application layer 1, service layer 2 and data layer 3.
应用层1代表Opcenter APS 10和Plant Simulation20的集成。具体地,本发明实施例中,设置有一个SSM 30,该SSM 30被构造为一个组件对象模型(COM,Component Object Model)组件,通过COM接口集成到Opcenter APS 10中,并通过Plant Simulation20的COM接口连接到Plant Simulation20中,从而得到本发明实施例中的基于仿真的闭环APS调度优化系统。 Application Layer 1 represents the integration of Opcenter APS 10 and Plant Simulation20. Specifically, in the embodiment of the present invention, an SSM 30 is provided, and the SSM 30 is constructed as a Component Object Model (COM, Component Object Model) component, which is integrated into the Opcenter APS 10 through the COM interface, and is integrated into the Opcenter APS 10 through the COM interface of the Plant Simulation20. The interface is connected to Plant Simulation20, thereby obtaining the simulation-based closed-loop APS scheduling optimization system in the embodiment of the present invention.
服务层2包括三个部分:分别是SSM 30利用APS框架和应用程序接口(API)形成的调度子模块31、SSM 30利用Plant Simulation20的框架和API形成的包括高精度仿真模型321的仿真子模块32和SSM 30提供的优化算法子模块33。The service layer 2 includes three parts: the scheduling sub-module 31 formed by the SSM 30 using the APS framework and the application programming interface (API), the SSM 30 using the framework and API of the Plant Simulation 20 to form a simulation sub-module including a high-precision simulation model 321. 32 and the optimization algorithm sub-module 33 provided by the SSM 30.
调度子模块31中包括APS规则库311和调度器312。APS规则库311中包括各种APS规则,这些规则不仅包括Opcenter APS的内置规则,也包括用户自定义的规则。调度器312是执行调度过程的调度引擎。The scheduling sub-module 31 includes an APS rule base 311 and a scheduler 312 . The APS rule base 311 includes various APS rules, which not only include the built-in rules of Opcenter APS, but also include user-defined rules. The scheduler 312 is the scheduling engine that performs the scheduling process.
在服务层2,优化算法子模块33用于通过调度APS规则库311中当前选择的相应规则,并为每个规则分配初始权重,对分配的初始权重进行编码操作331,并生成用于迭代的初始权重分配粒子种群。为了对每个权重分配进行验证和评估,会将所述权重分配粒子进行解码操作332,并提供给调度子模块31进而由仿真子模块32进行仿真验证,并接收仿真子模块32报告的KPI数据322,根据所述KPI数据对每个权重分配进行迭代优化,迭代结束后对最后的权重分配进行解码操作332,将解码后的权重分配提供给调度子模块31,生成最优调度方案。该过程中操作所需的数据来自数据层3。In the service layer 2, the optimization algorithm sub-module 33 is used to schedule the corresponding rules currently selected in the APS rule base 311, and assign an initial weight to each rule, perform an encoding operation 331 on the assigned initial weight, and generate an iterative Initial weight assignments for particle populations. In order to verify and evaluate each weight assignment, the weight assignment particles are decoded 332 and provided to the scheduling sub-module 31 for simulation verification by the simulation sub-module 32, and the KPI data reported by the simulation sub-module 32 are received 322 , iteratively optimize each weight assignment according to the KPI data, perform decoding operation 332 on the final weight assignment after the iteration, and provide the decoded weight assignment to the scheduling sub-module 31 to generate an optimal scheduling scheme. The data required for operations in this process comes from data layer 3.
数据层3中包括上述服务层2所有模块的数据源。基本上,它是为Opcenter APS 10服务的SQL Server数据库40,其中包含资源数据41、产品数据42、库存数据43、订单数据44等,这些数据是调度和仿真所必需的。在此基础上,该数据库还存储了调度结果数据(如订单序列等)45、仿真模型配置数据46,这些数据是仿真所需的。The data layer 3 includes the data sources of all the modules of the above-mentioned service layer 2. Basically, it is a SQL Server database 40 serving Opcenter APS 10, which contains resource data 41, product data 42, inventory data 43, order data 44, etc., which are necessary for scheduling and simulation. On this basis, the database also stores scheduling result data (such as order sequence, etc.) 45 and simulation model configuration data 46, which are required for simulation.
本实施例中,调度输入/输出数据和仿真所需的数据都存储在同一个数据库中,并可使用标准的数据表模板。从订单调度到模拟生产,数据层3还可以应用于MRP(物料需求计划)、MPS(主生产计划)、SCM(供应链管理)等可能的场景。In this embodiment, both the scheduling input/output data and the data required for the simulation are stored in the same database, and a standard data table template can be used. From order scheduling to simulated production, Data Layer 3 can also be applied to possible scenarios such as MRP (Material Requirements Planning), MPS (Master Production Planning), SCM (Supply Chain Management).
图3为本发明实施例中基于图2所示框架的一种基于仿真的闭环APS调度优化方法 的流程示意图。如图3所示,该方法主要涉及调度子模块31、仿真子模块32和优化算法子模块33三个模块之间的交互。3 is a schematic flowchart of a simulation-based closed-loop APS scheduling optimization method based on the framework shown in FIG. 2 in an embodiment of the present invention. As shown in FIG. 3 , the method mainly involves the interaction between the scheduling sub-module 31 , the simulation sub-module 32 and the optimization algorithm sub-module 33 .
具体地,在调度子模块31侧可包括如下操作:Specifically, the following operations may be included on the scheduling sub-module 31 side:
步骤S401,导入调度数据。Step S401, import scheduling data.
本步骤中,调度数据为排程所需要的数据输入,如订单、资源、工艺等相关的数据。In this step, the scheduling data is the data input required for scheduling, such as order, resource, process and other related data.
步骤S402,设置优化目标。Step S402, setting an optimization target.
本步骤中,优化目标也即排程目标,例如,所有订单都完成交付还是成品库存最低,和/或在制品的库存最低,和/或某些订单提前加工,和/或库存在一个范围之内,和/或成本最低等。In this step, the optimization goal is also the scheduling goal, for example, whether all orders are delivered or the finished product inventory is the lowest, and/or the work-in-process inventory is the lowest, and/or some orders are processed in advance, and/or the inventory is within a range internal, and/or lowest cost, etc.
步骤S403,确定为排程选择的APS规则。Step S403, determining the APS rule selected for the schedule.
本步骤中,可由用户选择所需的APS规则,或者根据预先配置选择所需的APS规则。具体实现时,可如图4所示,图4示出了本发明一个例子中SSM 30的功能对话框的示意图。可见,在SSM 30侧可具体包括一个APS规则配置模块34。Opcenter APS 10提供了一些内置的APS规则,如按最短交货期(EDD)、最短加工时间(SPT)、关键比率最低(CR)、先进先出(FIFO)等规则。此外,除了内置规则,APS规则库进一步扩展了规则,如松弛时间最短(STR)、后进先出(LIFO)、最少操作数(LOPNR)等。该APS规则配置模块34通过将这些规则呈现给用户,由用户通过选择所需的规则。当然,该规则库还可供用户定义和添加自定义规则,这可通过设置每个生产订单的属性并将这些属性作为订单排序的新规则添加到库中来实现。图5示出了一个例子中,APS规则库配置的示意图。如图5所示,右侧是呈现的Opcenter APS规则库中的部分规则,用户可通过APS规则配置模块34执行三种操作:第一操作341:添加自定义规则;第二操作342:选择所需要的规则,如图5右侧选中了EDD、LIFO和LOPNR;第三操作343:为所选择的规则分配权重,如图5右侧方框内的1、2和3。In this step, the user can select the required APS rule, or select the required APS rule according to the pre-configuration. In a specific implementation, it can be shown in FIG. 4 , which is a schematic diagram of a function dialog box of the SSM 30 in an example of the present invention. It can be seen that an APS rule configuration module 34 may be specifically included on the SSM 30 side. Opcenter APS 10 provides some built-in APS rules, such as by the shortest delivery time (EDD), shortest processing time (SPT), lowest critical ratio (CR), first in first out (FIFO) and other rules. Furthermore, in addition to the built-in rules, the APS rule base further extends the rules such as Shortest Relaxation Time (STR), Last In First Out (LIFO), Least Number of Operations (LOPNR), etc. The APS rule configuration module 34 presents these rules to the user, and the user selects the required rules. Of course, the rules library is also available for users to define and add custom rules by setting properties for each production order and adding those properties to the library as new rules for order sorting. FIG. 5 shows a schematic diagram of the configuration of the APS rule base in an example. As shown in Figure 5, the right side is a part of the rules in the presented Opcenter APS rule base, and the user can perform three operations through the APS rule configuration module 34: the first operation 341: add a custom rule; the second operation 342: select the selected For the required rules, EDD, LIFO, and LOPNR are selected on the right side of FIG. 5 ; the third operation 343 : assign weights to the selected rules, such as 1, 2, and 3 in the boxes on the right side of FIG. 5 .
其中,关于为所选择的规则分配权重的第三操作341,本实施例可有两种实现方案。一种是人工调度,即用户手动为所选择的APS规则分配权重,然后调用仿真模型对调度方案进行验证。这种方式适用于有经验的计划员和需要进行快速规划和验证的人员。如果是采用人工调度的方案,则本步骤之后执行步骤S404,如果是选择自动调度,则执行步骤S405。Among them, regarding the third operation 341 of assigning weights to the selected rules, there may be two implementation solutions in this embodiment. One is manual scheduling, that is, the user manually assigns weights to the selected APS rules, and then invokes the simulation model to verify the scheduling scheme. This approach is suitable for experienced planners and those who need quick planning and verification. If the manual scheduling scheme is adopted, step S404 is performed after this step, and if automatic scheduling is selected, step S405 is performed.
步骤S404,接受用户对APS规则的权重配置。Step S404, accept the weight configuration of the APS rule by the user.
步骤S405,接受优化算法子模块33对APS规则的权重配置。Step S405, accept the weight configuration of the APS rule by the optimization algorithm sub-module 33.
其中,优化算法子模块33对APS规则的权重配置指的是SSM 30利用优化算法子模块33对APS规则进行自动权重配置,并对所配置的权重通过调度和仿真不断寻找最佳APS调度序列。自动调度是为那些面对新的生产场景或变化的目标,不知道该如何选择APS规则权重的计划人员而设计的。因此,仿真闭环调度优化方案有助于用户验证调度结果和自动优化APS规则。具体过程可参见下方的步骤501至步骤509。Wherein, the weight configuration of the APS rules by the optimization algorithm submodule 33 refers to that the SSM 30 utilizes the optimization algorithm submodule 33 to automatically configure the weights of the APS rules, and continuously searches for the best APS scheduling sequence for the configured weights through scheduling and simulation. Autoscheduling is designed for planners who are faced with new production scenarios or changing goals and do not know how to choose APS rule weights. Therefore, simulating the closed-loop scheduling optimization scheme helps users to verify the scheduling results and automatically optimize the APS rules. For the specific process, please refer to steps 501 to 509 below.
步骤S406,根据APS规则的权重配置,生成调度方案,即得到调度甘特图。在调度甘特图中体现了每个订单的加工顺序及其对应的加工工站和加工时间。In step S406, a scheduling scheme is generated according to the weight configuration of the APS rule, that is, a scheduling Gantt chart is obtained. The processing sequence of each order and its corresponding processing station and processing time are reflected in the scheduling Gantt chart.
本步骤中,可根据APS规则的权重配置按照下式(1)计算出每个订单的总分。In this step, the total score of each order can be calculated according to the following formula (1) according to the weight configuration of the APS rules.
S sum=(V fcfs×W fcfs+V edd×W edd+V spt×W spt+V str×W str)/(W fcfs+W edd+W spt+W str)    (1) S sum = (V fcfs ×W fcfs +V edd ×W edd +V spt ×W spt +V str ×W str )/(W fcfs +W edd +W spt +W str ) (1)
S sum:每个订单的总分; S sum : the total score of each order;
V fcfs:每个订单的初始优先级分值,第一个订单的值为1,第一个订单的值为2,以此类推; V fcfs : the initial priority score of each order, the value of the first order is 1, the value of the first order is 2, and so on;
V edd:每个订单的初始交货期分值,交货期最早的订单的值为1,交货期第二早的订单的值为2,以此类推; V edd : the initial delivery time score of each order, the value of the order with the earliest delivery date is 1, the value of the order with the second earliest delivery date is 2, and so on;
V spt:每个订单的初始加工时间分值,加工时间最短的订单的值为1,加工时间第二短的订单的值为2,以此类推; V spt : the initial processing time score of each order, the value of the order with the shortest processing time is 1, the value of the order with the second shortest processing time is 2, and so on;
V str:每个订单的初始松弛时间分值,剩余时间最短的订单的值为1,剩余时间第二短的订单的值为2,以此类推。 V str : The initial slack time score for each order, the order with the shortest remaining time has a value of 1, the order with the second shortest remaining time has a value of 2, and so on.
W fcfs、W edd、W spt、W str为权重值。 W fcfs , W edd , W spt , and W str are weight values.
每一个订单的得分决定了整个订单序列,最终决定了调度结果。The score of each order determines the entire order sequence and ultimately the scheduling result.
步骤S407,基于所述调度方案,导出对应的订单序列,将所述订单序列存储到数据库(DB,Database)中。Step S407, based on the scheduling scheme, derive the corresponding order sequence, and store the order sequence in a database (DB, Database).
步骤S411,从数据库中提取仿真结果。Step S411, extract the simulation result from the database.
步骤S412,判断所述仿真结果是否满足需要,如果是,则执行步骤S413;否则,返回执行步骤S403。Step S412, it is judged whether the simulation result satisfies the requirement, if yes, execute step S413; otherwise, return to execute step S403.
步骤S413,输出对应的调度方案。Step S413, output the corresponding scheduling scheme.
可见,调度子模块31主要用于确定为排程选择的APS规则,并确定所选择的APS规 则的权重配置;根据所述APS规则的权重配置,生成调度甘特图;导出对应所述调度甘特图的订单序列到数据库中;并从所数据库中获取基于所述订单序列的仿真结果;判断所述仿真结果是否满足需要,如果是,则输出对应的调度甘特图;否则,返回执行所述为排程选择APS规则的操作。It can be seen that the scheduling sub-module 31 is mainly used to determine the APS rule selected for scheduling, and determine the weight configuration of the selected APS rule; generate a scheduling Gantt chart according to the weight configuration of the APS rule; derive the corresponding scheduling Gantt The order sequence of the special diagram is stored in the database; and the simulation result based on the order sequence is obtained from the database; it is judged whether the simulation result meets the needs, and if so, the corresponding scheduling Gantt chart is output; Describes the operation of scheduling the selection of APS rules.
在仿真子模块32侧可包括如下操作:The following operations may be included on the side of the simulation sub-module 32:
步骤S408,仿真子模块32加载仿真相关数据,并创建排程仿真模型。其中,加载仿真相关数据包括:步骤S4081,加载仿真模型配置数据;步骤S4082,加载仿真模型;步骤S4083,加载订单序列。In step S408, the simulation sub-module 32 loads simulation-related data and creates a scheduling simulation model. The loading of the simulation-related data includes: step S4081, loading the simulation model configuration data; step S4082, loading the simulation model; and step S4083, loading the order sequence.
本步骤S408中,仿真模型可如图6所示快速创建。通过COM接口可以使用各种方法,具体过程可包括:首先,SSM 30通过LoadModel()方法加载基本仿真模型。在基本仿真模型中有一系列SimTalk方法和ODBC连接对象,它们由ExecuteSimTalk()方法远程控制,该方法可以从Opcenter APS数据库读取数据,然后自动创建和运行相关的生产线仿真模型。此外,调度子模块31生成的订单序列也被加载到当前生产线仿真模型中并分配给每个生产工站。为了校准模型,还通过这种方式加载仿真模型配置数据,仿真模型配置数据可由用户从集成到Opcenter APS 10中的SSM 30输入并存储在数据库中。仿真模型配置数据可包括工作站处理时间、工作站平均故障时间(MTTF)、良品率、物流规则等的设置。这样就可以得到一个高精度的模型,每次通过改变Opcenter APS10中与生产相关的数据,就可以快速创建一个新的模型来运行仿真。然后在模拟触发SimulationFinished事件后,SSM最终通过GetValue()方法接收KPI数据。图6中的第一界面61和第二界面62只是用于示意性的表示模型创建所承载的一个示例,其并不用于限定实际的应用界面,且不影响本发明技术方案的实施,因此其上的具体内容被模糊处理。In this step S408, the simulation model can be quickly created as shown in FIG. 6 . Various methods may be used through the COM interface, and the specific process may include: First, the SSM 30 loads the basic simulation model through the LoadModel() method. There are a series of SimTalk methods and ODBC connection objects in the basic simulation model, which are remotely controlled by the ExecuteSimTalk() method, which can read data from the Opcenter APS database, and then automatically create and run the relevant production line simulation model. In addition, the order sequence generated by the scheduling sub-module 31 is also loaded into the current production line simulation model and distributed to each production station. In order to calibrate the model, simulation model configuration data is also loaded in this way, which can be entered by the user from the SSM 30 integrated into Opcenter APS 10 and stored in the database. Simulation model configuration data may include settings for workstation processing time, workstation mean time to failure (MTTF), yield, logistics rules, and more. This results in a high-precision model, and each time by changing production-related data in Opcenter APS10, a new model can be quickly created to run the simulation. Then after the simulation triggers the SimulationFinished event, the SSM finally receives the KPI data through the GetValue() method. The first interface 61 and the second interface 62 in FIG. 6 are only an example carried by the creation of a schematic representation model, which are not used to limit the actual application interface, and do not affect the implementation of the technical solution of the present invention, so they are not used to limit the actual application interface. The specific content above is obfuscated.
步骤S409,运行所述排程仿真模型并评估得到仿真的KPI数据。Step S409, running the scheduling simulation model and evaluating the simulated KPI data.
本实施例中,若前述的APS规则的权重由优化算法子模块33自动配置,则本步骤中可将得到的KPI数据反馈给优化算法子模块33。In this embodiment, if the weights of the aforementioned APS rules are automatically configured by the optimization algorithm sub-module 33 , the KPI data obtained in this step may be fed back to the optimization algorithm sub-module 33 .
步骤S410,将所述KPI数据作为仿真结果导出存储到数据库DB中。In step S410, the KPI data is exported and stored in the database DB as the simulation result.
可见,仿真子模块32主要用于从所述数据库中加载所述订单序列以及预先设置的仿真模型配置数据,并将所述所订单序列和所述仿真模型配置数据加载到Plant Simulation的基本仿真模型中,得到排程仿真模型;运行所述排程仿真模型,并评估得到关键绩效指标数据;将所述关键绩效指标数据作为仿真结果存储到所述数据库中。It can be seen that the simulation sub-module 32 is mainly used to load the order sequence and the preset simulation model configuration data from the database, and load the order sequence and the simulation model configuration data into the basic simulation model of Plant Simulation , obtain a scheduling simulation model; run the scheduling simulation model, and evaluate to obtain key performance indicator data; store the key performance indicator data as a simulation result in the database.
在优化算法子模块33侧可包括如下操作:The following operations may be included on the side of the optimization algorithm sub-module 33:
本实施例中,考虑到调度优化问题是基于离散场景的,而本申请中考虑基于KPI结果来指导APS规则的权重配置,本实施例中,优化算法子模块33可采用一种称为综合粒子群优化算法(SG-DPSO)的优化算法。该SG-DPSO基于粒子群优化算法(PSO,Particle swarm optimization)进行迭代优化,并在迭代优化过程中结合SA算法和GA算法共同来完成权重配置的优化。其中,PSO的初始化为一群随机粒子(随机解),然后通过迭代找到最优解。在每一次的迭代中,粒子通过跟踪两个“极值”,即粒子本身经历过的最优位置Pbest和粒子群经历过的最优位置Gbest,来更新自己。在找到这两个最优解后,粒子更新自己的速度和位置。使用PSO算法的原因是每次迭代的结果都可以通过更新粒子的速度和位置来引导粒子的适应度值变得更好。同时,利用SA算法对当前自身的最佳粒子位置进行处理,并利用GA算法变异操作处理更新粒子种群的全局最优位置,从而避免局部最优解的产生。此外,根据KPI数据计算适应度值以确定Pbest和Gbest。具体实现时,可包括如下步骤:In this embodiment, considering that the scheduling optimization problem is based on discrete scenarios, and in this application, it is considered to guide the weight configuration of APS rules based on KPI results. The optimization algorithm of the group optimization algorithm (SG-DPSO). The SG-DPSO is iteratively optimized based on the particle swarm optimization (PSO, Particle swarm optimization), and in the iterative optimization process, the SA algorithm and the GA algorithm are combined to complete the optimization of the weight configuration. Among them, the initialization of PSO is a group of random particles (random solutions), and then the optimal solution is found through iteration. In each iteration, the particle updates itself by tracking two "extremes", namely the optimal position Pbest experienced by the particle itself and the optimal position Gbest experienced by the particle swarm. After finding these two optimal solutions, the particle updates its velocity and position. The reason for using the PSO algorithm is that the result of each iteration can guide the particle's fitness value to get better by updating the particle's velocity and position. At the same time, the SA algorithm is used to process the current optimal particle position, and the mutation operation of the GA algorithm is used to process and update the global optimal position of the particle population, thereby avoiding the generation of local optimal solutions. Furthermore, fitness values are calculated from the KPI data to determine Pbest and Gbest. The specific implementation may include the following steps:
步骤S501,通过COM接口确定调度子模块31侧选择的APS规则,为所述APS规则分配初始权重,对所述初始权重进行粒子编码。Step S501: Determine the APS rule selected by the scheduling sub-module 31 side through the COM interface, assign an initial weight to the APS rule, and perform particle coding on the initial weight.
例如,图7示出了一个APS规则权重分配自动优化过程的示意图。如图7所示,该APS规则组合中包括:所选择的EDD、FIFO、STR和SPT四种规则,相应地编码后的一个可能的粒子应该像“1342”,每个位置的数量代表每个规则的权重值,最大值表示相关规则的权重最高。解码后,调度子模块31可根据不同APS规则的权重值计算出每个生产订单的总分。For example, FIG. 7 shows a schematic diagram of an automatic optimization process of APS rule weight assignment. As shown in Figure 7, the APS rule combination includes: the selected four kinds of rules: EDD, FIFO, STR and SPT, a correspondingly encoded possible particle should be like "1342", and the number of each position represents each The weight value of the rule, the maximum value indicates that the relevant rule has the highest weight. After decoding, the scheduling sub-module 31 can calculate the total score of each production order according to the weight values of different APS rules.
步骤S502,对进行粒子编码后的权重进行初始化,得到当前粒子群。Step S502: Initialize the weight after particle encoding to obtain the current particle swarm.
步骤S503,对所述当前粒子群进行解码,得到所述APS规则的当前权重配置,并通过COM接口将所述APS规则的当前权重配置提供给调度子模块31,由调度子模块31在步骤S404接受优化算法子模块33对APS规则的权重配置。Step S503, decode the current particle swarm to obtain the current weight configuration of the APS rule, and provide the current weight configuration of the APS rule to the scheduling sub-module 31 through the COM interface, and the scheduling sub-module 31 will perform the step S404. Accept the weight configuration of the APS rule by the optimization algorithm sub-module 33 .
步骤S504,通过COM接口接收仿真子模块32在步骤S408之后反馈的KPI数据,并根据所述KPI数据计算适应度值以确定Pbest和Gbest。In step S504, the KPI data fed back by the simulation sub-module 32 after step S408 is received through the COM interface, and the fitness value is calculated according to the KPI data to determine Pbest and Gbest.
步骤S505,判断是否到达最大迭代次数?如果是,则执行步骤S509;否则,执行步骤S506,并根据迭代次数调整粒子位置更新的惯性权重值。Step S505, determine whether the maximum number of iterations has been reached? If yes, go to step S509; otherwise, go to step S506, and adjust the inertia weight value updated by the particle position according to the number of iterations.
步骤S506,采用模拟退火算法对Pbest进行评价处理。Step S506, using a simulated annealing algorithm to evaluate Pbest.
步骤S507,采用遗传算法的变异操作对Gbest进行评价更新。Step S507, using the mutation operation of the genetic algorithm to evaluate and update the Gbest.
步骤S508,产生新一代的当前粒子群,之后执行步骤S503。In step S508, a new generation of the current particle swarm is generated, and then step S503 is performed.
步骤S509,选择Gbest对应的粒子群作为当前例子群,之后执行步骤S503。In step S509, the particle swarm corresponding to Gbest is selected as the current example swarm, and then step S503 is executed.
可见,优化算法子模块33主要用于采用综合粒子群优化算法对所选择的APS规则设置权重配置,将所述权重配置提供给所述调度子模块;所述综合粒子群优化算法在基本粒子群优化算法的基础上进行改进,其在迭代优化过程中根据关键绩效指标数据计算适应度值以确定粒子本身经历过的最优位置和粒子群经历过的最优位置,并采用模拟退火算法对每次得到的粒子本身最佳位置进行评价处理,采用遗传算法的变异操作对粒子群最佳位置进行评价更新,动态调节惯性权重值,最终更新产生下一代粒子种群。It can be seen that the optimization algorithm sub-module 33 is mainly used to set the weight configuration for the selected APS rule by using the comprehensive particle swarm optimization algorithm, and provide the weight configuration to the scheduling sub-module; the comprehensive particle swarm optimization algorithm is used in the basic particle swarm optimization Improvements are made on the basis of the optimization algorithm. In the iterative optimization process, the fitness value is calculated according to the key performance indicator data to determine the optimal position experienced by the particle itself and the optimal position experienced by the particle swarm. The optimal position of the particle itself is evaluated and processed, and the mutation operation of the genetic algorithm is used to evaluate and update the optimal position of the particle swarm, dynamically adjust the inertia weight value, and finally update the next-generation particle swarm.
可见,如图2至图7中所示,本发明实施例中的一种基于仿真的闭环APS调度优化系统可包括:高级计划和调度软件模块、工厂设计模拟仿真软件模块和基于仿真的调度模块30,其被构造为一个组件对象模型COM组件,通过COM接口集成到所述高级计划和调度软件模块中,并通过所述工厂设计模拟仿真软件模块的COM接口连接到所述工厂设计模拟仿真软件模块,并执行如下操作:确定为排程选择的APS规则;确定所选择的APS规则的权重配置;根据所述APS规则的权重配置,生成调度甘特图;导出对应所述调度甘特图的订单序列;将所述订单序列以及获取的预先设置的仿真模型配置数据加载到工厂设计模拟仿真软件模块的基本仿真模型中,得到排程仿真模型;运行所述排程仿真模型,并评估得到关键绩效指标数据;将所述关键绩效指标数据作为仿真结果导出;判断所述仿真结果是否满足需要,如果是,则输出对应的调度甘特图;否则,返回执行所述为排程选择APS规则的步骤。It can be seen that, as shown in FIGS. 2 to 7 , a simulation-based closed-loop APS scheduling optimization system in an embodiment of the present invention may include: an advanced planning and scheduling software module, a factory design simulation software module, and a simulation-based scheduling module 30, which is constructed as a component object model COM component, integrated into the high-level planning and scheduling software module through a COM interface, and connected to the plant design simulation software module through the COM interface of the plant design simulation software module module, and perform the following operations: determine the APS rule selected for scheduling; determine the weight configuration of the selected APS rule; generate a scheduling Gantt chart according to the weight configuration of the APS rule; export the corresponding scheduling Gantt chart order sequence; load the order sequence and the acquired preset simulation model configuration data into the basic simulation model of the factory design simulation simulation software module to obtain a scheduling simulation model; run the scheduling simulation model, and evaluate to obtain the key performance indicator data; exporting the key performance indicator data as the simulation result; judging whether the simulation result meets the requirements, if so, output the corresponding scheduling Gantt chart; otherwise, return to execute the described selection APS rule for scheduling step.
图8为本发明实施例中又一种基于仿真的闭环APS调度优化系统的结构示意图,该装置可用于实施图1和图3中所示的方法,或实现图2中所示的系统。如图8所示,该系统可包括:至少一个存储器81、至少一个处理器82和至少一个显示器83。此外,还可以包括一些其它组件,例如通信端口等。这些组件通过总线84进行通信。FIG. 8 is a schematic structural diagram of another simulation-based closed-loop APS scheduling optimization system in an embodiment of the present invention, and the apparatus can be used to implement the methods shown in FIG. 1 and FIG. 3 , or implement the system shown in FIG. 2 . As shown in FIG. 8 , the system may include: at least one memory 81 , at least one processor 82 and at least one display 83 . In addition, some other components, such as communication ports, etc., may also be included. These components communicate via bus 84 .
其中,至少一个存储器81用于存储计算机程序。在一个实施方式中,该计算机程序可以理解为包括图2所示的基于仿真的闭环APS调度优化系统的各个模块。此外,至少一个存储器81还可存储操作系统等。操作系统包括但不限于:Android操作系统、Symbian操作系统、Windows操作系统、Linux操作系统等等。Among them, at least one memory 81 is used to store computer programs. In one embodiment, the computer program can be understood as including each module of the simulation-based closed-loop APS scheduling optimization system shown in FIG. 2 . In addition, the at least one memory 81 may also store an operating system and the like. Operating systems include but are not limited to: Android operating system, Symbian operating system, Windows operating system, Linux operating system, and so on.
至少一个显示器83用于显示调度甘特图等。At least one display 83 is used to display a scheduling Gantt chart or the like.
至少一个处理器82用于调用至少一个存储器81中存储的计算机程序,执行本发明实施 例中所述的基于仿真的闭环APS调度优化方法。At least one processor 82 is configured to call a computer program stored in at least one memory 81 to execute the simulation-based closed-loop APS scheduling optimization method described in the embodiments of the present invention.
具体地,至少一个处理器82用于调用至少一个存储器81中存储的计算机程序使所述装置执行对应的操作。所述操作可包括:确定为排程选择的APS规则;确定为所选择的APS规则设置的权重配置;根据所述APS规则的权重配置,生成调度甘特图;导出对应所述调度甘特图的订单序列;将所述订单序列以及获取的预先设置的仿真模型配置数据加载到Plant Simulation的基本仿真模型中,得到排程仿真模型;运行所述排程仿真模型,并评估得到KPI数据;将所述KPI数据作为仿真结果导出;判断所述仿真结果是否满足需要,如果是,则输出对应的调度甘特图;否则,返回执行所述为排程选择APS规则的步骤。Specifically, at least one processor 82 is configured to invoke a computer program stored in at least one memory 81 to cause the apparatus to perform corresponding operations. The operations may include: determining an APS rule selected for scheduling; determining a weight configuration set for the selected APS rule; generating a scheduling Gantt chart according to the weight configuration of the APS rule; exporting a corresponding scheduling Gantt chart order sequence; load the order sequence and the obtained preset simulation model configuration data into the basic simulation model of Plant Simulation to obtain a scheduling simulation model; run the scheduling simulation model, and evaluate and obtain KPI data; The KPI data is derived as the simulation result; it is judged whether the simulation result meets the requirements, and if so, the corresponding scheduling Gantt chart is output; otherwise, the step of selecting APS rules for scheduling is returned to.
在一个实施方式中,所述确定为所选择的APS规则设置的权重配置包括:采用综合粒子群优化算法对所选择的APS规则设置权重配置;所述综合粒子群优化算法在基本粒子群优化算法的基础上进行改进,其在迭代优化过程中根据关键绩效指标数据计算适应度值以确定粒子本身经历过的最优位置和粒子群经历过的最优位置,并采用模拟退火算法对每次得到的粒子本身最佳位置进行评价处理,采用遗传算法的变异操作对粒子群最佳位置进行评价更新,动态调节惯性权重值,最终更新产生下一代粒子种群。In one embodiment, the determining the weight configuration set for the selected APS rule includes: using a comprehensive particle swarm optimization algorithm to set the weight configuration for the selected APS rule; the comprehensive particle swarm optimization algorithm is in the basic particle swarm optimization algorithm. Improvement is made on the basis of the iterative optimization process. In the iterative optimization process, the fitness value is calculated according to the key performance indicator data to determine the optimal position experienced by the particle itself and the optimal position experienced by the particle swarm. The optimal position of the particle itself is evaluated and processed, and the mutation operation of the genetic algorithm is used to evaluate and update the optimal position of the particle swarm, dynamically adjust the inertia weight value, and finally update the next-generation particle swarm.
在一个实施方式中,所述采用综合粒子群优化算法对所选择的APS规则设置权重配置包括:为所选择的APS规则分配初始权重,并对所述初始权重进行粒子编码;对进行粒子编码后的权重进行初始化,得到当前粒子群;对所述当前粒子群进行解码,得到所述APS规则的当前权重配置,并将所述当前权重配置确定为为所选择的APS规则设置的权重配置;在执行所述运行所述排程仿真模型,并评估得到关键绩效指标数据的步骤之后,进一步包括:获取所述关键绩效指标数据,并根据所述关键绩效指标数据计算适应度值以确定粒子本身经历过的最优位置和粒子群经历过的最优位置;判断是否到达最大迭代次数?在未到达最大迭代次数时,采用模拟退火算法对所述粒子本身经历过的最优位置进行评价处理,并采用遗传算法的变异操作对所述粒子群经历过的最优位置进行评价更新;产生新一代的当前粒子群,并返回执行所述对所述当前粒子群进行解码,得到所述APS规则的当前权重配置的操作;在到达最大迭代次数时,将所述粒子群经历过的最优位置对应的粒子群作为当前例子群,并返回执行所述对所述当前粒子群进行解码,得到所述APS规则的当前权重配置的操作。In one embodiment, the setting of the weight configuration for the selected APS rule by using the comprehensive particle swarm optimization algorithm includes: assigning an initial weight to the selected APS rule, and performing particle encoding on the initial weight; Initialize the weight of the APS to obtain the current particle swarm; decode the current particle swarm to obtain the current weight configuration of the APS rule, and determine the current weight configuration as the weight configuration set for the selected APS rule; After executing the step of running the scheduling simulation model and evaluating and obtaining key performance indicator data, the step further includes: acquiring the key performance indicator data, and calculating a fitness value according to the key performance indicator data to determine the particle itself experienced The optimal position experienced by the particle swarm and the optimal position experienced by the particle swarm; determine whether the maximum number of iterations has been reached? When the maximum number of iterations is not reached, the simulated annealing algorithm is used to evaluate the optimal position experienced by the particle itself, and the mutation operation of the genetic algorithm is used to evaluate and update the optimal position experienced by the particle swarm; A new generation of the current particle swarm, and return to perform the operation of decoding the current particle swarm to obtain the current weight configuration of the APS rule; when the maximum number of iterations is reached, the optimal The particle swarm corresponding to the position is taken as the current example swarm, and the operation of decoding the current particle swarm to obtain the current weight configuration of the APS rule is returned to be executed.
在一个实施方式中,所述确定为排程选择的APS规则包括:基于高级计划和调度软件已有的规则和/或添加的自定义规则选择当前排程所需的规则。In one embodiment, the determining the APS rule to be selected for the schedule includes: selecting the rule required for the current schedule based on the existing rules and/or added custom rules of the advanced planning and scheduling software.
从上述方案中可以看出,由于本发明实施例中将Opcenter APS和Plant Simulation集 成在一起,使得基于Opcenter APS生成的排程调度方案可以通过Plant Simulation创建对应的排程仿真模型,通过运行该排程仿真模型可以得到仿真结果的KPI数据,基于该KPI数据可以判断对应的排程调度方案是否满足要求,从而可以提供更加可行的调度方案。It can be seen from the above scheme that since Opcenter APS and Plant Simulation are integrated in the embodiment of the present invention, the scheduling scheme generated based on Opcenter APS can create a corresponding scheduling simulation model through Plant Simulation, and by running the scheduling scheme The process simulation model can obtain the KPI data of the simulation results. Based on the KPI data, it can be judged whether the corresponding scheduling scheme meets the requirements, so that a more feasible scheduling scheme can be provided.
进一步地,通过采用综合粒子群优化算法对排程所选择的APS规则进行自动的权重分配,可以使得那些面对新的生产场景或变化的生产需求,不知道该如何选择APS规则权重的生产计划人员能够完成排程。Further, by using the comprehensive particle swarm optimization algorithm to automatically assign the weights to the APS rules selected by the scheduling, those who face new production scenarios or changing production requirements do not know how to choose the production plan with the weight of the APS rules. Personnel can complete the schedule.
以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the scope of the present invention. within the scope of protection.

Claims (15)

  1. 基于仿真的闭环高级计划和调度软件(APS)调度优化方法,其特征在于,包括:The simulation-based closed-loop advanced planning and scheduling software (APS) scheduling optimization method is characterized by comprising:
    确定为排程选择的APS规则(S101);Determine the APS rule selected for the schedule (S101);
    确定为所选择的APS规则设置的权重配置(S102);Determine the weight configuration set for the selected APS rule (S102);
    根据所述APS规则的权重配置,生成调度甘特图(S103);According to the weight configuration of the APS rule, a scheduling Gantt chart is generated (S103);
    导出对应所述调度甘特图的订单序列(S104);Deriving an order sequence corresponding to the scheduling Gantt chart (S104);
    将所述订单序列以及获取的预先设置的仿真模型配置数据加载到工厂设计模拟仿真软件的基本仿真模型中,得到排程仿真模型(S105);Loading the order sequence and the acquired preset simulation model configuration data into the basic simulation model of the factory design simulation software to obtain a scheduling simulation model (S105);
    运行所述排程仿真模型,并评估得到关键绩效指标数据(S106);Running the scheduling simulation model, and evaluating to obtain key performance indicator data (S106);
    将所述关键绩效指标数据作为仿真结果导出(S107);Exporting the key performance indicator data as a simulation result (S107);
    判断所述仿真结果是否满足需要(S108),如果是,则输出对应的调度甘特图(S109);否则,返回执行所述为排程选择APS规则的步骤。It is judged whether the simulation result meets the requirements (S108), and if so, the corresponding scheduling Gantt chart is output (S109); otherwise, it returns to execute the step of selecting an APS rule for scheduling.
  2. 根据权利要求1所述的基于仿真的闭环APS调度优化方法,其特征在于,所述确定为所选择的APS规则设置的权重配置(S102)包括:The simulation-based closed-loop APS scheduling optimization method according to claim 1, wherein the determining the weight configuration (S102) set for the selected APS rule comprises:
    采用综合粒子群优化算法对所选择的APS规则设置权重配置;所述综合粒子群优化算法在基本粒子群优化算法的基础上进行改进,其在迭代优化过程中根据关键绩效指标数据计算适应度值以确定粒子本身经历过的最优位置和粒子群经历过的最优位置,并采用模拟退火算法对每次得到的粒子本身最佳位置进行评价处理,采用遗传算法的变异操作对粒子群最佳位置进行评价更新,动态调节惯性权重值,最终更新产生下一代粒子种群。A comprehensive particle swarm optimization algorithm is used to set the weight configuration for the selected APS rules; the comprehensive particle swarm optimization algorithm is improved on the basis of the basic particle swarm optimization algorithm, and it calculates the fitness value according to the key performance indicator data in the iterative optimization process Determine the optimal position experienced by the particle itself and the optimal position experienced by the particle swarm, and use the simulated annealing algorithm to evaluate the optimal position of the particle itself, and use the mutation operation of the genetic algorithm to optimize the particle swarm. The position is evaluated and updated, the inertia weight value is dynamically adjusted, and finally the next generation particle population is generated by the update.
  3. 根据权利要求2所述的基于仿真的闭环APS调度优化方法,其特征在于,所述采用综合粒子群优化算法对所选择的APS规则设置权重配置包括:The simulation-based closed-loop APS scheduling optimization method according to claim 2, wherein the setting of the weight configuration for the selected APS rules by using a comprehensive particle swarm optimization algorithm comprises:
    为所选择的APS规则分配初始权重,并对所述初始权重进行粒子编码;assigning initial weights to the selected APS rules, and performing particle encoding on the initial weights;
    对进行粒子编码后的权重进行初始化,得到当前粒子群;Initialize the weights after particle encoding to get the current particle swarm;
    对所述当前粒子群进行解码,得到所述APS规则的当前权重配置,并将所述当前权重配置确定为为所选择的APS规则设置的权重配置;Decoding the current particle swarm to obtain the current weight configuration of the APS rule, and determining the current weight configuration as the weight configuration set for the selected APS rule;
    在执行所述运行所述排程仿真模型,并评估得到关键绩效指标数据(S106)的步骤之后,进一步包括:获取所述关键绩效指标数据,并根据所述关键绩效指标数据计算适应度值以确定粒子本身经历过的最优位置和粒子群经历过的最优位置;After executing the step of running the scheduling simulation model and evaluating and obtaining key performance indicator data (S106), the method further includes: acquiring the key performance indicator data, and calculating a fitness value according to the key performance indicator data to obtain the key performance indicator data. Determine the optimal position experienced by the particle itself and the optimal position experienced by the particle swarm;
    判断是否到达最大迭代次数?在未到达最大迭代次数时,采用模拟退火算法对所述粒子本身经历过的最优位置进行评价处理,并采用遗传算法的变异操作对所述粒子群经 历过的最优位置进行评价更新;产生新一代的当前粒子群,并返回执行所述对所述当前粒子群进行解码,得到所述APS规则的当前权重配置的操作;Determine whether the maximum number of iterations has been reached? When the maximum number of iterations is not reached, the simulated annealing algorithm is used to evaluate the optimal position experienced by the particle itself, and the mutation operation of the genetic algorithm is used to evaluate and update the optimal position experienced by the particle swarm; A new generation of the current particle swarm, and returns to perform the operation of decoding the current particle swarm to obtain the current weight configuration of the APS rule;
    在到达最大迭代次数时,将所述粒子群经历过的最优位置对应的粒子群作为当前例子群,并返回执行所述对所述当前粒子群进行解码,得到所述APS规则的当前权重配置的操作。When the maximum number of iterations is reached, take the particle swarm corresponding to the optimal position experienced by the particle swarm as the current example swarm, and return to perform the decoding of the current particle swarm to obtain the current weight configuration of the APS rule operation.
  4. 根据权利要求1至3中任一项所述的基于仿真的闭环APS调度优化方法,其特征在于,所述确定为排程选择的APS规则(S101)包括:基于高级计划和调度软件已有的规则和/或添加的自定义规则选择当前排程所需的规则。The simulation-based closed-loop APS scheduling optimization method according to any one of claims 1 to 3, wherein the determining the APS rule (S101) selected for scheduling comprises: based on existing advanced planning and scheduling software Rules and/or Added Custom Rules Select the rules required for the current schedule.
  5. 基于仿真的闭环高级计划和调度软件(APS)调度优化系统,其特征在于,包括:至少一个存储器(81)和至少一个处理器(82),其中:The simulation-based closed-loop advanced planning and scheduling software (APS) scheduling optimization system is characterized by comprising: at least one memory (81) and at least one processor (82), wherein:
    所述至少一个存储器(81)用于存储计算机程序;the at least one memory (81) is used to store computer programs;
    所述至少一个处理器(82)用于调用所述至少一个存储器(81)中存储的计算机程序使所述装置执行对应的操作,所述操作包括:The at least one processor (82) is configured to invoke a computer program stored in the at least one memory (81) to cause the apparatus to perform corresponding operations, the operations comprising:
    确定为排程选择的APS规则;Determine the APS rules selected for the schedule;
    确定为所选择的APS规则设置的权重配置;Determine the weight configuration set for the selected APS rule;
    根据所述APS规则的权重配置,生成调度甘特图;generating a scheduling Gantt chart according to the weight configuration of the APS rule;
    导出对应所述调度甘特图的订单序列;Deriving an order sequence corresponding to the scheduling Gantt chart;
    将所述订单序列以及获取的预先设置的仿真模型配置数据加载到工厂设计模拟仿真软件的基本仿真模型中,得到排程仿真模型;Loading the order sequence and the obtained preset simulation model configuration data into the basic simulation model of the factory design simulation software to obtain a scheduling simulation model;
    运行所述排程仿真模型,并评估得到关键绩效指标数据;Running the scheduling simulation model and evaluating the key performance indicator data;
    将所述关键绩效指标数据作为仿真结果导出;exporting the key performance indicator data as simulation results;
    判断所述仿真结果是否满足需要,如果是,则输出对应的调度甘特图;否则,返回执行所述为排程选择APS规则的步骤。It is judged whether the simulation result satisfies the requirement, and if so, the corresponding scheduling Gantt chart is output; otherwise, it returns to execute the step of selecting an APS rule for scheduling.
  6. 根据权利要求5所述的基于仿真的闭环APS调度优化系统,其特征在于,The simulation-based closed-loop APS scheduling optimization system according to claim 5, wherein,
    所述确定为所选择的APS规则设置的权重配置包括:The weight configuration determined to be set for the selected APS rule includes:
    采用综合粒子群优化算法对所选择的APS规则设置权重配置;所述综合粒子群优化算法在基本粒子群优化算法的基础上进行改进,其在迭代优化过程中根据关键绩效指标数据计算适应度值以确定粒子本身经历过的最优位置和粒子群经历过的最优位置,并采用模拟退火算法对每次得到的粒子本身最佳位置进行评价处理,采用遗传算法的变异操作 对粒子群最佳位置进行评价更新,动态调节惯性权重值,最终更新产生下一代粒子种群。A comprehensive particle swarm optimization algorithm is used to set the weight configuration for the selected APS rules; the comprehensive particle swarm optimization algorithm is improved on the basis of the basic particle swarm optimization algorithm, and it calculates the fitness value according to the key performance indicator data in the iterative optimization process Determine the optimal position experienced by the particle itself and the optimal position experienced by the particle swarm, and use the simulated annealing algorithm to evaluate the optimal position of the particle itself, and use the mutation operation of the genetic algorithm to optimize the particle swarm. The position is evaluated and updated, the inertia weight value is dynamically adjusted, and finally the next generation particle population is generated by the update.
  7. 根据权利要求6所述的基于仿真的闭环APS调度优化系统,其特征在于,所述采用综合粒子群优化算法对所选择的APS规则设置权重配置包括:The simulation-based closed-loop APS scheduling optimization system according to claim 6, characterized in that, the use of a comprehensive particle swarm optimization algorithm to set a weight configuration for the selected APS rules comprises:
    为所选择的APS规则分配初始权重,并对所述初始权重进行粒子编码;assigning initial weights to the selected APS rules, and performing particle encoding on the initial weights;
    对进行粒子编码后的权重进行初始化,得到当前粒子群;Initialize the weights after particle encoding to get the current particle swarm;
    对所述当前粒子群进行解码,得到所述APS规则的当前权重配置,并将所述当前权重配置确定为为所选择的APS规则设置的权重配置;Decoding the current particle swarm to obtain the current weight configuration of the APS rule, and determining the current weight configuration as the weight configuration set for the selected APS rule;
    在执行所述运行所述排程仿真模型,并评估得到关键绩效指标数据的步骤之后,进一步包括:获取所述关键绩效指标数据,并根据所述关键绩效指标数据计算适应度值以确定粒子本身经历过的最优位置和粒子群经历过的最优位置;After executing the step of running the scheduling simulation model and evaluating and obtaining key performance indicator data, the method further includes: acquiring the key performance indicator data, and calculating a fitness value according to the key performance indicator data to determine the particle itself The optimal position experienced and the optimal position experienced by the particle swarm;
    判断是否到达最大迭代次数?在未到达最大迭代次数时,采用模拟退火算法对所述粒子本身经历过的最优位置进行评价处理,并采用遗传算法的变异操作对所述粒子群经历过的最优位置进行评价更新;产生新一代的当前粒子群,并返回执行所述对所述当前粒子群进行解码,得到所述APS规则的当前权重配置的操作;Determine whether the maximum number of iterations has been reached? When the maximum number of iterations is not reached, the simulated annealing algorithm is used to evaluate the optimal position experienced by the particle itself, and the mutation operation of the genetic algorithm is used to evaluate and update the optimal position experienced by the particle swarm; A new generation of the current particle swarm, and returns to perform the operation of decoding the current particle swarm to obtain the current weight configuration of the APS rule;
    在到达最大迭代次数时,将所述粒子群经历过的最优位置对应的粒子群作为当前例子群,并返回执行所述对所述当前粒子群进行解码,得到所述APS规则的当前权重配置的操作。When the maximum number of iterations is reached, take the particle swarm corresponding to the optimal position experienced by the particle swarm as the current example swarm, and return to perform the decoding of the current particle swarm to obtain the current weight configuration of the APS rule operation.
  8. 根据权利要求5至7中任一项所述的基于仿真的闭环APS调度优化系统,其特征在于,所述确定为排程选择的APS规则包括:基于高级计划和调度软件已有的规则和/或添加的自定义规则选择当前排程所需的规则。The simulation-based closed-loop APS scheduling optimization system according to any one of claims 5 to 7, wherein the determining the APS rule selected for scheduling comprises: based on the existing rules of advanced planning and scheduling software and/or Or add custom rules to select the rules required for the current schedule.
  9. 基于仿真的闭环高级计划和调度软件(APS)调度优化系统,其特征在于,包括:The simulation-based closed-loop advanced planning and scheduling software (APS) scheduling optimization system is characterized in that it includes:
    高级计划和调度软件模块;Advanced planning and scheduling software modules;
    工厂设计模拟仿真软件模块;和plant design simulation software modules; and
    基于仿真的调度模块(30),其被构造为一个组件对象模型COM组件,通过COM接口集成到所述高级计划和调度软件模块中,并通过所述工厂设计模拟仿真软件模块的COM接口连接到所述工厂设计模拟仿真软件模块,并执行如下操作:A simulation-based scheduling module (30), which is structured as a component object model COM component, is integrated into the high-level planning and scheduling software module through a COM interface, and is connected to the plant design simulation software module through a COM interface of the simulation software module The factory design simulates the simulation software module, and performs the following operations:
    确定为排程选择的APS规则;Determine the APS rules selected for the schedule;
    确定所选择的APS规则的权重配置;Determine the weight configuration of the selected APS rule;
    根据所述APS规则的权重配置,生成调度甘特图;generating a scheduling Gantt chart according to the weight configuration of the APS rule;
    导出对应所述调度甘特图的订单序列;Deriving an order sequence corresponding to the scheduling Gantt chart;
    将所述订单序列以及获取的预先设置的仿真模型配置数据加载到工厂设计模拟仿真软件模块的基本仿真模型中,得到排程仿真模型;Loading the order sequence and the acquired preset simulation model configuration data into the basic simulation model of the factory design simulation simulation software module to obtain a scheduling simulation model;
    运行所述排程仿真模型,并评估得到关键绩效指标数据;Running the scheduling simulation model and evaluating the key performance indicator data;
    将所述关键绩效指标数据作为仿真结果导出;exporting the key performance indicator data as simulation results;
    判断所述仿真结果是否满足需要,如果是,则输出对应的调度甘特图;否则,返回执行所述为排程选择APS规则的步骤。It is judged whether the simulation result satisfies the requirement, and if so, the corresponding scheduling Gantt chart is output; otherwise, it returns to execute the step of selecting an APS rule for scheduling.
  10. 根据权利要求9所述的基于仿真的闭环APS调度优化系统,其特征在于,所述确定所选择的APS规则的权重配置包括:The simulation-based closed-loop APS scheduling optimization system according to claim 9, wherein the determining the weight configuration of the selected APS rule comprises:
    采用综合粒子群优化算法对所选择的APS规则设置权重配置;所述综合粒子群优化算法在基本粒子群优化算法的基础上进行改进,其在迭代优化过程中根据关键绩效指标数据计算适应度值以确定粒子本身经历过的最优位置和粒子群经历过的最优位置,并采用模拟退火算法对每次得到的粒子本身最佳位置进行评价处理,采用遗传算法的变异操作对粒子群最佳位置进行评价更新,动态调节惯性权重值,最终更新产生下一代粒子种群。A comprehensive particle swarm optimization algorithm is used to set the weight configuration for the selected APS rules; the comprehensive particle swarm optimization algorithm is improved on the basis of the basic particle swarm optimization algorithm, and it calculates the fitness value according to the key performance indicator data in the iterative optimization process Determine the optimal position experienced by the particle itself and the optimal position experienced by the particle swarm, and use the simulated annealing algorithm to evaluate the optimal position of the particle itself, and use the mutation operation of the genetic algorithm to optimize the particle swarm. The position is evaluated and updated, the inertia weight value is dynamically adjusted, and finally the next generation particle population is generated by the update.
  11. 根据权利要求9所述的基于仿真的闭环APS调度优化系统,其特征在于,所述基于仿真的调度模块(30)包括:调度子模块(31)和仿真子模块(32);其中,The simulation-based closed-loop APS scheduling optimization system according to claim 9, wherein the simulation-based scheduling module (30) comprises: a scheduling sub-module (31) and a simulation sub-module (32); wherein,
    所述调度子模块(31)用于确定为排程选择的APS规则,并确定所选择的APS规则的权重配置;根据所述APS规则的权重配置,生成调度甘特图;导出对应所述调度甘特图的订单序列到数据库中;并从所数据库中获取基于所述订单序列的仿真结果;判断所述仿真结果是否满足需要,如果是,则输出对应的调度甘特图;否则,返回执行所述为排程选择APS规则的操作;The scheduling submodule (31) is used to determine the APS rule selected for scheduling, and determine the weight configuration of the selected APS rule; generate a scheduling Gantt chart according to the weight configuration of the APS rule; derive the corresponding scheduling The order sequence of the Gantt chart is stored in the database; and the simulation result based on the order sequence is obtained from the database; it is judged whether the simulation result meets the needs, and if so, the corresponding scheduling Gantt chart is output; otherwise, return to execute The described operation of selecting APS rules for scheduling;
    所述仿真子模块(32)用于从所述数据库中加载所述订单序列以及预先设置的仿真模型配置数据,并将所述所订单序列和所述仿真模型配置数据加载到工厂设计模拟仿真软件模块的基本仿真模型中,得到排程仿真模型;运行所述排程仿真模型,并评估得到关键绩效指标数据;将所述关键绩效指标数据作为仿真结果存储到所述数据库中。The simulation submodule (32) is used for loading the order sequence and preset simulation model configuration data from the database, and loading the order sequence and the simulation model configuration data into factory design simulation software In the basic simulation model of the module, a scheduling simulation model is obtained; the scheduling simulation model is run, and key performance indicator data is obtained by evaluation; and the key performance indicator data is stored in the database as a simulation result.
  12. 根据权利要求11所述的基于仿真的闭环APS调度优化系统,其特征在于,所述基于仿真的调度模块(30)进一步包括:优化算法子模块(33);用于采用综合粒子群优化算法对所选择的APS规则设置权重配置,将所述权重配置提供给所述调度子模块(31);The simulation-based closed-loop APS scheduling optimization system according to claim 11, wherein the simulation-based scheduling module (30) further comprises: an optimization algorithm sub-module (33); The selected APS rule sets a weight configuration, and provides the weight configuration to the scheduling sub-module (31);
    所述综合粒子群优化算法在基本粒子群优化算法的基础上进行改进,其在迭代优化 过程中根据关键绩效指标数据计算适应度值以确定粒子本身经历过的最优位置和粒子群经历过的最优位置,并采用模拟退火算法对每次得到的粒子本身最佳位置进行评价处理,采用遗传算法的变异操作对粒子群最佳位置进行评价更新,动态调节惯性权重值,最终更新产生下一代粒子种群。The comprehensive particle swarm optimization algorithm is improved on the basis of the basic particle swarm optimization algorithm. In the iterative optimization process, the fitness value is calculated according to the key performance indicator data to determine the optimal position experienced by the particle itself and the value experienced by the particle swarm. The optimal position, and the simulated annealing algorithm is used to evaluate the optimal position of the particle itself, and the mutation operation of the genetic algorithm is used to evaluate and update the optimal position of the particle swarm, dynamically adjust the inertia weight value, and finally update the next generation. particle population.
  13. 根据权利要求12所述的基于仿真的闭环APS调度优化系统,其特征在于,所述优化算法子模块(33)为所选择的APS规则分配初始权重,并对所述初始权重进行粒子编码;对进行粒子编码后的权重进行初始化,得到当前粒子群;对所述当前粒子群进行解码,得到所述APS规则的当前权重配置,并将所述当前权重配置提供给所述调度子模块(31);获取所述仿真子模块(32)评估得到的关键绩效指标数据,并根据所述关键绩效指标数据计算适应度值以确定粒子本身经历过的最优位置和粒子群经历过的最优位置;判断是否到达最大迭代次数?在未到达最大迭代次数时,采用模拟退火算法对所述粒子本身经历过的最优位置进行评价处理,并采用遗传算法的变异操作对所述粒子群经历过的最优位置进行评价更新;产生新一代的当前粒子群,并返回执行所述对所述当前粒子群进行解码,得到所述APS规则的当前权重配置的操作;在到达最大迭代次数时,将所述粒子群经历过的最优位置对应的粒子群作为当前例子群,并返回执行所述对所述当前粒子群进行解码,得到所述APS规则的当前权重配置的操作。The simulation-based closed-loop APS scheduling optimization system according to claim 12, wherein the optimization algorithm sub-module (33) assigns initial weights to the selected APS rules, and performs particle encoding on the initial weights; The weights after particle encoding are initialized to obtain the current particle swarm; the current particle swarm is decoded to obtain the current weight configuration of the APS rule, and the current weight configuration is provided to the scheduling sub-module (31) Obtain the KPI data obtained by the evaluation of the simulation submodule (32), and calculate the fitness value according to the KPI data to determine the optimal position experienced by the particle itself and the optimal position experienced by the particle swarm; Determine whether the maximum number of iterations has been reached? When the maximum number of iterations is not reached, the simulated annealing algorithm is used to evaluate the optimal position experienced by the particle itself, and the mutation operation of the genetic algorithm is used to evaluate and update the optimal position experienced by the particle swarm; A new generation of the current particle swarm, and return to perform the operation of decoding the current particle swarm to obtain the current weight configuration of the APS rule; when the maximum number of iterations is reached, the optimal The particle swarm corresponding to the position is used as the current example swarm, and the operation of decoding the current particle swarm to obtain the current weight configuration of the APS rule is returned to execute.
  14. 根据权利要求9至13中任一项所述的基于仿真的闭环APS调度优化系统,其特征在于,所述基于仿真的调度模块(30)进一步包括:APS规则配置模块(34),用于基于高级计划和调度软件已有的规则和/或添加的自定义规则确定当前排程所需的规则。The simulation-based closed-loop APS scheduling optimization system according to any one of claims 9 to 13, wherein the simulation-based scheduling module (30) further comprises: an APS rule configuration module (34) for Rules already existing in the advanced planning and scheduling software and/or custom rules added to determine the rules required for the current schedule.
  15. 计算机可读存储介质,其上存储有计算机程序;其特征在于,所述计算机程序能够被一处理器执行并实现如权利要求1至4中所述的基于仿真的闭环高级计划和调度软件(APS)调度优化方法。A computer-readable storage medium on which a computer program is stored; characterized in that the computer program can be executed by a processor and implements simulation-based closed-loop advanced planning and scheduling software (APS) as described in claims 1 to 4 ) scheduling optimization method.
PCT/CN2020/124827 2020-10-29 2020-10-29 Simulation-based closed-loop aps scheduling optimization method and system, and storage medium WO2022087962A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2020/124827 WO2022087962A1 (en) 2020-10-29 2020-10-29 Simulation-based closed-loop aps scheduling optimization method and system, and storage medium
CN202080106382.XA CN116529741A (en) 2020-10-29 2020-10-29 Closed loop APS scheduling optimization method, system and storage medium based on simulation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/124827 WO2022087962A1 (en) 2020-10-29 2020-10-29 Simulation-based closed-loop aps scheduling optimization method and system, and storage medium

Publications (1)

Publication Number Publication Date
WO2022087962A1 true WO2022087962A1 (en) 2022-05-05

Family

ID=81381761

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/124827 WO2022087962A1 (en) 2020-10-29 2020-10-29 Simulation-based closed-loop aps scheduling optimization method and system, and storage medium

Country Status (2)

Country Link
CN (1) CN116529741A (en)
WO (1) WO2022087962A1 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115431174A (en) * 2022-09-05 2022-12-06 昆山市恒达精密机械工业有限公司 Method and system for medium plate grinding control
CN115562074A (en) * 2022-10-29 2023-01-03 福州大学 Simulation system and method for rapidly generating optimal planned path of unmanned aerial vehicle
CN115952696B (en) * 2023-03-13 2023-05-23 武汉益模科技股份有限公司 Tool full life cycle management method based on simulation prediction and cost model
CN116227890A (en) * 2023-05-05 2023-06-06 安元科技股份有限公司 Scheduling and dispatching method and system supporting production change
CN116307636A (en) * 2023-05-17 2023-06-23 彼图科技(青岛)有限公司 Intelligent regulation and control method and system for intelligent tool cabinet terminal
CN116523262A (en) * 2023-06-02 2023-08-01 深圳普菲特信息科技股份有限公司 Intelligent planning method, system and medium for production plan based on big data
CN117455208A (en) * 2023-12-25 2024-01-26 苏州特铭精密科技有限公司 Injection molding production scheduling optimization method and system based on artificial intelligence

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070288283A1 (en) * 2006-06-09 2007-12-13 Devshop Inc. Method for project management
US20110078171A1 (en) * 2009-09-29 2011-03-31 Sap Ag Marketing project filter search tools
CN105488602A (en) * 2014-09-19 2016-04-13 上海宝信软件股份有限公司 Multi-process scheduling method for improving contract demand rate by utilizing aggregate production rule
CN111177897A (en) * 2019-12-16 2020-05-19 北京航天智造科技发展有限公司 Production line production process data docking and simulation model rapid modeling method and system under cloud manufacturing mode
CN111652463A (en) * 2020-04-18 2020-09-11 北京智通云联科技有限公司 APS (active pixel System) recursive system, method and equipment based on fractal self-similarity principle

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070288283A1 (en) * 2006-06-09 2007-12-13 Devshop Inc. Method for project management
US20110078171A1 (en) * 2009-09-29 2011-03-31 Sap Ag Marketing project filter search tools
CN105488602A (en) * 2014-09-19 2016-04-13 上海宝信软件股份有限公司 Multi-process scheduling method for improving contract demand rate by utilizing aggregate production rule
CN111177897A (en) * 2019-12-16 2020-05-19 北京航天智造科技发展有限公司 Production line production process data docking and simulation model rapid modeling method and system under cloud manufacturing mode
CN111652463A (en) * 2020-04-18 2020-09-11 北京智通云联科技有限公司 APS (active pixel System) recursive system, method and equipment based on fractal self-similarity principle

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115431174A (en) * 2022-09-05 2022-12-06 昆山市恒达精密机械工业有限公司 Method and system for medium plate grinding control
CN115431174B (en) * 2022-09-05 2023-11-21 昆山市恒达精密机械工业有限公司 Method and system for controlling grinding of middle plate
CN115562074A (en) * 2022-10-29 2023-01-03 福州大学 Simulation system and method for rapidly generating optimal planned path of unmanned aerial vehicle
CN115952696B (en) * 2023-03-13 2023-05-23 武汉益模科技股份有限公司 Tool full life cycle management method based on simulation prediction and cost model
CN116227890A (en) * 2023-05-05 2023-06-06 安元科技股份有限公司 Scheduling and dispatching method and system supporting production change
CN116307636A (en) * 2023-05-17 2023-06-23 彼图科技(青岛)有限公司 Intelligent regulation and control method and system for intelligent tool cabinet terminal
CN116307636B (en) * 2023-05-17 2023-08-04 彼图科技(青岛)有限公司 Intelligent regulation and control method and system for intelligent tool cabinet terminal
CN116523262A (en) * 2023-06-02 2023-08-01 深圳普菲特信息科技股份有限公司 Intelligent planning method, system and medium for production plan based on big data
CN116523262B (en) * 2023-06-02 2023-12-22 深圳普菲特信息科技股份有限公司 Intelligent planning method, system and medium for production plan based on big data
CN117455208A (en) * 2023-12-25 2024-01-26 苏州特铭精密科技有限公司 Injection molding production scheduling optimization method and system based on artificial intelligence
CN117455208B (en) * 2023-12-25 2024-03-12 苏州特铭精密科技有限公司 Injection molding production scheduling optimization method and system based on artificial intelligence

Also Published As

Publication number Publication date
CN116529741A (en) 2023-08-01

Similar Documents

Publication Publication Date Title
WO2022087962A1 (en) Simulation-based closed-loop aps scheduling optimization method and system, and storage medium
Stock-Williams et al. Automated daily maintenance planning for offshore wind farms
Phanden et al. Integration of process planning and scheduling: a state-of-the-art review
Pergher et al. Integrating simulation and FITradeoff method for scheduling rules selection in job-shop production systems
Ko et al. External partner selection using tabu search heuristics in distributed manufacturing
EP1862956A1 (en) Systems and methods for assignment generation in a value flow environment
Stevenson et al. Aggregate load-oriented workload control: A review and a re-classification of a key approach
Ahmed et al. Multi project scheduling and material planning using Lagrangian relaxation algorithm
Hwang et al. Integrated procedure of balancing and sequencing for mixed-model assembly lines: a multi-objective evolutionary approach
US20090228309A1 (en) Method and system for optimizing business process management using mathematical programming techniques
US20130144679A1 (en) Simulation and Visualization for Project Planning and Management
TWI788650B (en) Method for semiconductor processing scheduling, system for semiconductor processing scheduling and non-temporary computer-readable storage medium
Bae et al. Planning of business process execution in Business Process Management environments
Huang et al. A simulation study of CONWIP assembly with multi-loop in mass production, multi-products and low volume and OKP environments
Ge et al. Dynamic staffing and rescheduling in software project management: A hybrid approach
EP1628250A1 (en) A methof of automatically modelling a relationship between a configurable product and a plurality of components of the configurable products as a bill of materials, a computer system for automatically modelling a relationship between configurable product and a plurality of components of the configurable product as a bill of materials
Batkovskiy et al. Developing intelligent decision support systems in multi-criteria problems of administrative-territorial formations infrastructure projects assessment
Li et al. Order assignment and scheduling under processing and distribution time uncertainty
Kia A genetic algorithm to integrate a comprehensive dynamic cellular manufacturing system with aggregate planning decisions
JP2020201781A (en) Plan creation support system and plan creation support method
Kandemir et al. Work process improvement through simulation optimization of task assignment and mental workload
Krenczyk et al. Semi-automatic simulation model generation of virtual dynamic networks for production flow planning
Vass et al. Exact and meta-heuristic approaches for the production leveling problem
CN116911800A (en) Engineering project management system and method, electronic equipment and storage medium
CN115660593A (en) One-stop enterprise management system based on cloud platform

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20959125

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 202080106382.X

Country of ref document: CN

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20959125

Country of ref document: EP

Kind code of ref document: A1