Resource allocation method and device for production scheduling of photovoltaic modules
The multi-objective optimization algorithm is used to optimize resource allocation in photovoltaic module production scheduling, which solves the problem of low resource allocation efficiency in photovoltaic module production scheduling, achieves more accurate production planning and resource utilization, and reduces the risk of inventory backlog.
Patent Information
- Application Number
- CN202410838124.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-26
- Publication Date
- 2024-09-27
AI Technical Summary
Due to diversified demands in photovoltaic module production scheduling, resource allocation efficiency is low and accuracy is poor, often leading to resource misallocation and waste.
A multi-objective optimization algorithm is used to construct constraint conditions based on the obtained resource supply information and order information, optimize the objective function to determine the configuration strategy of materials and cells, and achieve the best balance between material costs and the gap between supply and demand of cells.
It achieves more accurate production planning, reduces resource waste, improves production efficiency, ensures that the resource allocation of each order approaches the global optimal solution at daily granularity, and reduces the risk of inventory backlog.
Smart Images

Figure CN118709846A
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the technical field of production resource allocation, and in particular, to a resource allocation method, apparatus, computer equipment, computer-readable storage medium, and computer program product for photovoltaic module production scheduling. Background Art
[0002] Photovoltaic modules, which consist of multiple photovoltaic cells and are used to convert solar energy into electrical energy, are the basic units of photovoltaic systems. The diverse demands of the photovoltaic industry, such as the demand for photovoltaic modules of different quantities and / or different powers, make it difficult to schedule the production of photovoltaic modules. Currently, resource allocation based on manual experience is inefficient and has poor accuracy, which often leads to serious resource mismatch and waste.
[0003] It should be noted that the above content is not necessarily prior art, nor is it intended to limit the scope of patent protection of this application. Summary of the invention
[0004] Embodiments of the present application provide a resource allocation method, apparatus, computer equipment, computer-readable storage medium, and computer program product for photovoltaic module production scheduling to solve or alleviate one or more of the technical problems raised above.
[0005] One aspect of an embodiment of the present application provides a resource configuration method for photovoltaic module production scheduling, the method comprising:
[0006] Obtaining supply information of resources and order information of each order within a production scheduling cycle, wherein the production scheduling cycle includes multiple time units, and the resources include multiple materials and multiple levels of battery cells;
[0007] constructing a plurality of constraint conditions according to the supply information and the order information of each order;
[0008] Based on the supply information and the multiple constraints, multiple pre-constructed objective functions are optimized to obtain a target resource allocation strategy for each order, wherein the target resource allocation strategy is used to indicate the material configuration and battery cell configuration of the order in each time unit;
[0009] The multiple objective functions include: a first objective function for calculating material costs, and a second objective function for calculating the gap between supply and demand of battery cells at each level.
[0010] Optionally, the material configuration includes one or more materials and a configuration ratio of each material, and the battery cell configuration includes a range of battery cells covered by each material and a configuration ratio of each range.
[0011] Optionally, the supply information includes a first supply quantity of battery cells at each gear in the production scheduling cycle and a second supply quantity of battery cells at each gear in each time unit;
[0012] According to the supply information and the order information of each order, a plurality of constraint conditions are constructed, including:
[0013] Constructing a first constraint condition according to a first supply quantity of battery cells at each gear in the production scheduling cycle, wherein the first constraint condition is used to limit the consumption quantity of battery cells at each gear in the production scheduling cycle;
[0014] A second constraint condition is constructed according to a second supply amount of the battery cells at each gear in each of the time units, and the second constraint condition is used to limit the consumption amount of the battery cells at each gear in each of the time units.
[0015] Optionally, the order information includes material usage restrictions; and multiple constraints are constructed based on the supply information and the order information of each order, including:
[0016] A third constraint condition is constructed according to the material usage restriction, and the third constraint condition is used to restrict the material configuration.
[0017] Optionally, based on the supply information and the multiple constraints, multiple pre-built objective functions are optimized to obtain a target resource allocation strategy for each order, including:
[0018] Based on the supply information, the first constraint condition and the third constraint condition, an initial resource allocation strategy for each order is obtained, wherein the initial resource allocation strategy is used to indicate the material configuration and battery cell configuration of the order within the production scheduling cycle;
[0019] Based on the initial resource allocation strategy of each order and the second constraint condition, a target resource allocation strategy of each order is obtained.
[0020] Optionally, the order information further includes the required power gear and downshift range of the component; the multiple objective functions further include: a third objective function for calculating the downshift rate, and a fourth objective function for calculating the by-product rate;
[0021] The downshift rate is the proportion of components that are higher than the required power gear and within the downshift range, and the byproduct rate is the proportion of components that are lower than the required power gear and not within the downshift range.
[0022] Optionally, the plurality of constraints are called from a monthly optimization module or a daily optimization module;
[0023] When the monthly optimization module is called, the plurality of constraints include: the maximum number of materials used, the configuration ratio interval of the battery cell gears covered by each material, the maximum by-product rate, the maximum downshift rate, the maximum supply-demand gap of each gear of the battery cell, the available battery cell gear range, the available material range, and the range of the number of battery cell gears used;
[0024] When calling the daily optimization module, the multiple constraints include: the maximum number of switching times of material configuration within the production scheduling cycle, the maximum number of material configuration within the production scheduling cycle, the maximum by-product rate, the maximum downshift rate, the maximum supply and demand gap of each gear of the battery cell, and the maximum daily inventory value of each gear of the battery cell.
[0025] Optionally, the optimizing the pre-built multiple objective functions further includes:
[0026] According to the supply information and the order information of each order, configuring a corresponding priority for each objective function;
[0027] The multiple objective functions are optimized in sequence according to the priority corresponding to each objective function.
[0028] Optionally, the multiple objective functions further include a weighted combination objective function, and the weighted combination objective function is determined by the following operations:
[0029] According to the supply information and the order information of each order, assigning a corresponding weight to each objective function;
[0030] The weighted combination objective function is generated according to the weight corresponding to each objective function.
[0031] Optionally, the plurality of constraint conditions include a plurality of normal constraint conditions without slack variables and a plurality of fuzzy constraint conditions with slack variables;
[0032] Based on the supply information and the multiple constraints, multiple pre-built objective functions are optimized to obtain the target resource allocation strategy for each order, further comprising:
[0033] Based on the supply information, the multiple normal constraints and the multiple fuzzy constraints, the pre-constructed multiple objective functions are optimized to obtain the target resource allocation strategy for each order under the minimum slack value state.
[0034] Another aspect of an embodiment of the present application provides a resource allocation device for photovoltaic assembly production scheduling, the device comprising:
[0035] An acquisition module, used to acquire supply information of resources and order information of each order within a production scheduling cycle, wherein the production scheduling cycle includes multiple time units, and the resources include multiple materials and multiple gears of battery cells;
[0036] A construction module, used for constructing a plurality of constraint conditions according to the supply information and the order information of each order;
[0037] An optimization module, configured to optimize a plurality of pre-constructed objective functions based on the supply information and the plurality of constraints to obtain a target resource allocation strategy for each order, wherein the target resource allocation strategy is used to indicate a material configuration and a battery cell configuration for an order in each of the time units;
[0038] The multiple objective functions include: a first objective function for calculating material costs, and a second objective function for calculating the gap between supply and demand of battery cells at each level.
[0039] Another aspect of an embodiment of the present application provides a computer device, including:
[0040] at least one processor; and
[0041] a memory communicatively coupled to the at least one processor;
[0042] Wherein: the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method as described above.
[0043] Another aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and when the computer instructions are executed by a processor, the method described above is implemented.
[0044] Another aspect of an embodiment of the present application provides a computer program product, including a computer program, which implements the method described above when executed by a processor.
[0045] The above technical solution adopted in the embodiment of the present application may have the following advantages:
[0046] Obtain the supply information of resources within the production scheduling cycle and the order information of each order, and build multiple constraints based on this. Based on the supply information and multiple constraints, a multi-objective optimization algorithm is used to find a target resource allocation strategy for each order that at least achieves the best balance between material costs and the gap between supply and demand of battery cells. Among them, the production scheduling cycle (for example: month) includes multiple time units (for example: day), resources include multiple materials and multiple gears of battery cells, and the target resource allocation strategy is used to indicate the material configuration and battery cell configuration of the order in each time unit. It can be seen that the embodiment of the present application can be optimized by order through a multi-objective optimization algorithm under the premise of given material and battery cell supply, and a resource allocation plan for each order that is close to the global optimal solution of the day granularity can be obtained, thereby achieving more accurate production planning, reducing resource waste and improving production efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] The accompanying drawings exemplarily illustrate the embodiments and constitute a part of the specification, and together with the text description of the specification, are used to explain the exemplary implementation of the embodiments. The embodiments shown are for illustrative purposes only and do not limit the scope of the claims. In all drawings, the same reference numerals refer to similar but not necessarily identical elements.
[0048] Figure 1 A flowchart of a resource configuration method for photovoltaic module production scheduling according to Embodiment 1 of the present application is schematically shown;
[0049] Figure 2 Schematically shows Figure 1 Flow chart of sub-steps of step S104;
[0050] Figure 3 This is an application example diagram according to the first embodiment of the present application;
[0051] Figure 4 A block diagram schematically shows a resource allocation device for photovoltaic module production scheduling according to the second embodiment of the present application; and
[0052] Figure 5 The hardware architecture diagram of the computer device according to the third embodiment of the present application is schematically shown. DETAILED DESCRIPTION
[0053] In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.
[0054] It should be noted that the descriptions involving "first", "second", etc. in the embodiments of the present application are only for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.
[0055] In the description of the present application, it should be understood that the numerical labels before the steps do not indicate the order in which the steps are executed, but are only used to facilitate the description of the present application and to distinguish each step, and therefore should not be understood as a limitation on the present application.
[0056] First, the following terms are explained:
[0057] Photovoltaic module: also known as solar cell module, is one of the main components of photovoltaic system. Photovoltaic module is used to convert sunlight into electrical energy, and its core component is solar cell. Multiple solar cells can form a complete photovoltaic module by connecting and assembling.
[0058] Multi-objective optimization algorithm: used to solve multi-objective optimization problems. In a multi-objective optimization problem, there can be multiple objective functions, each of which represents an optimization direction of the problem, and there may be conflicts between these objective functions, such as maximizing profits and minimizing costs. Multi-objective optimization algorithms aim to find Pareto optimal solutions. A Pareto optimal solution represents a solution, and in a multi-objective optimization problem, no other solution can outperform it in all objective functions. In other words, for a Pareto optimal solution, improving the value of one objective will lead to the deterioration of at least one other objective. The set of Pareto optimal solutions forms a boundary, called the Pareto front. The Pareto front is a specific set of solutions to the problem that includes all Pareto optimal solutions.
[0059] Slack variables: Auxiliary variables used to solve linear programming problems. Slack values are the values of slack variables at a specific solution, indicating the margin of the constraint. A slack value of zero indicates that the constraint has reached its limit and the current constraint is a tight constraint. A positive slack value indicates that the constraint still has margin and the current constraint is a slack constraint / fuzzy constraint.
[0060] CPLEX: solver with multiple built-in solving algorithms, including simplex method, interior point method, cutting plane method, etc. CPLEX can be used to solve mathematical programming problems such as linear programming, integer linear programming, and mixed integer linear programming.
[0061] Mixed Integer Linear Programming (MILP) problem: In MILP, in addition to linear constraints, integer constraints are also included, that is, some or all decision variables need to be integer values. The goal of solving the MILP problem is to find a set of decision variables that minimizes one or more objective functions and satisfies all linear and integer constraints.
[0062] GAP: In the embodiment of the present application, it refers to the supply and demand gap of battery cells at each gear, which can be used to describe the balance degree of the gear ratio of the decision in the actual production scheduling. Too low will lead to delayed order delivery, and too high will lead to waste of resources.
[0063] Secondly, the embodiment of the present application provides a resource allocation technology solution for photovoltaic module production scheduling. In this technical solution: (1) a complete data preprocessing, business simulation, and multi-objective optimization model based on linear programming are set up, and it can adapt to different products and actual business needs, and realize daily, high-efficiency, and optimal resource allocation (such as material allocation and battery cell allocation) for any number of orders; (2) each order uses a resource allocation solution that is close to the global optimal solution of the day granularity to achieve a more accurate production plan, reduce resource mismatch and manpower waste, and achieve production efficiency, resource conservation, and cost savings. Maximize order delivery; (3) By combing the component production scheduling business and upstream and downstream business logic, the component production scheduling is logically abstracted and modeled. Based on the operation optimization technology, under the premise of given material properties and battery supply, the gear configuration ratio and material configuration ratio of each order of the battery cell are optimized, so that the overall battery cell supply and demand gap are minimized, and the downshift rate and by-product rate of each order meet the business needs; (4) Ensure that the battery supply provided every day can meet the usage needs of each order, reduce the risk of inventory backlog, and improve operational flexibility and efficiency. See below for details.
[0064] The technical solutions of the present application are described below through multiple embodiments. It should be noted that these embodiments can be implemented in a variety of different forms and should not be construed as being limited to the embodiments described here.
[0065] Embodiment 1
[0066] Figure 1 The flowchart of the resource configuration method for photovoltaic module production scheduling according to the first embodiment of the present application is schematically shown.
[0067] like Figure 1 As shown, the resource configuration method for photovoltaic module production scheduling may include steps S100 to S104, wherein:
[0068] Step S100, obtaining supply information of resources and order information of each order within a production scheduling cycle, wherein the production scheduling cycle includes a plurality of time units, and the resources include a plurality of materials and a plurality of levels of battery cells.
[0069] Step S102: construct multiple constraint conditions according to the supply information and the order information of each order.
[0070] Step S104, based on the supply information and the multiple constraints, multiple pre-built objective functions are optimized to obtain the target resource allocation strategy for each order, the target resource allocation strategy is used to indicate the material configuration and battery cell configuration of the order in each time unit. The multiple objective functions include: a first objective function for calculating material costs, and a second objective function for calculating the gap between supply and demand of batteries at each level.
[0071] The resource allocation method for photovoltaic module production scheduling provided in this embodiment obtains the supply information of resources and the order information of each order within the production scheduling cycle, and constructs multiple constraints based on this. Based on the supply information and multiple constraints, a multi-objective optimization algorithm is used to find a target resource allocation strategy for each order that at least achieves the best balance between material cost and battery supply and demand gap. Among them, the production scheduling cycle (for example: month) includes multiple time units (for example: day), resources include multiple materials and multiple gears of battery cells, and the target resource allocation strategy is used to indicate the material configuration and battery cell configuration of the order in each time unit. It can be seen that the embodiment of the present application can be optimized by order through a multi-objective optimization algorithm under the premise of given material and battery cell supply, and a resource allocation plan for each order that is close to the global optimal solution of the day granularity can be obtained, thereby achieving more accurate production planning, reducing resource waste and improving production efficiency.
[0072] The following combination Figure 1 , each step in steps S100 to S104 and other optional steps are described in detail.
[0073] Step S100 , obtain supply information of resources and order information of each order within a production scheduling cycle, wherein the production scheduling cycle includes multiple time units, and the resources include multiple materials and multiple levels of battery cells.
[0074] The production scheduling cycle is a time period set by a production unit to implement a production plan, usually in units of days, weeks or months. Within a production scheduling cycle, a production unit (such as a factory) can complete the production tasks of one or more orders in a planned manner. Furthermore, the production scheduling cycle can also be divided into multiple time units, and different orders can be scheduled for execution in different time units. For example, if the production scheduling cycle is 1 month, each day of which can be used as a time unit, and two hundred orders may need to be completed within the production scheduling cycle. For example, order A can be scheduled for production from the 1st to the 25th, and order B can be scheduled for production from the 6th to the 31st. In actual applications, orders can involve various products, such as hardware, electronic products, furniture, etc. The embodiment of the present application takes the order of photovoltaic components as an example to provide a resource allocation method for photovoltaic component scheduling.
[0075] Resources can include multiple materials and multiple levels of cells. Among them, materials can be used to produce cells, and multiple materials can be represented as "V0", "V1", "V2", "V3". The levels of cells produced by each material present a normal distribution, that is, the levels covered by each material must be continuous levels. Levels, also known as efficiency levels, are used to reflect the photoelectric conversion efficiency of cells. The levels of cells can be represented by numbers or letters, such as "C-level", "7-level", or by efficiency percentages, such as "22.60%", "22.70%"... "23.30%". It should be noted that the efficiency levels of cells corresponding to different materials present different normal distributions. In practical applications, when photovoltaic modules are produced using cells of different levels, the power wattage of the resulting photovoltaic modules will present different distributions. For example, when photovoltaic modules are produced using cells of the "22.90%" level, 5.1% of the photovoltaic modules are 530W, 58.4% are 535W, and 36.5% are 540W. When using the "22.70%" gear of the battery cell to produce photovoltaic modules, the photovoltaic modules have 0.8% of 525W, 34.8% of 530W, 63.5% of 535W, and 1.0% of 540W. Among them, different power wattages can be used as different power gears. The distribution ratios of the efficiency gears of the battery cells corresponding to different materials are different, and the distribution ratios of the power wattages of the corresponding photovoltaic modules are also different, that is, each material corresponds to a specific "battery cell gear-module power gear" distribution matrix. In actual applications, there are some materials and some battery cell efficiency gears corresponding to the power wattage distribution ratios of the photovoltaic modules produced that are more in line with the order requirements. Therefore, the embodiment of the present application provides a resource allocation method, which can determine which materials and battery cell gears to use for production for each order, which can better meet business needs. Supply information may include: the inventory of each material, the supply within the production scheduling cycle, and the inventory of each gear of batteries, and the supply within the production scheduling cycle. In this embodiment, by acquiring supply information of resources and allocating resources based on supply capabilities, production can be better planned and demand can be met.
[0076] The order information is used to indicate the production requirements of the order, such as: the required power level of the photovoltaic module, the required quantity of the photovoltaic module, whether to accept multi-material production, whether to specify materials, whether to specify the cell level, etc. In this embodiment, the order information of each order is obtained, and resources can be configured in combination with the actual situation of the order to reduce resource mismatch. In some embodiments, other required data can also be obtained, such as: the "cell level-module power level" distribution matrix corresponding to each material, and the production schedule (which can be used to determine the total output of the order) to facilitate subsequent resource allocation decisions.
[0077] Step S102, construct multiple constraints based on the supply information and the order information of each order.
[0078] As mentioned above, the goal of resource allocation is to determine the most suitable material and battery cell gear for each order to maximize the production of photovoltaic modules that meet the order requirements, thereby improving resource utilization and production efficiency. Based on this discrete decision-making requirement, it can be modeled as an integer linear programming problem and solved using the corresponding method. Specifically: decision objects such as material and battery cell gear can be used as decision variables. In an optional embodiment, the decision variables may include the material configuration and battery cell configuration of each order. Among them, the material configuration is used to indicate which material or materials should be selected for the order, and the configuration ratio (usage ratio) of each material. The battery cell configuration is used to indicate the gear range of the battery cells covered by each material, and the configuration ratio of each gear. In practical applications, the value of the decision variable needs to meet the actual situation and requirements such as resource availability, special order requirements, and cost. Therefore, multiple constraints can be constructed based on the supply information of resources and the order information of each order to limit the value range of the decision variable, define the boundary of the problem and ensure the feasibility of the solution, thereby improving the quality of the solution.
[0079] In an optional embodiment, the supply information may include a first supply quantity (such as a monthly supply quantity) of battery cells at each gear in the production scheduling cycle, and a second supply quantity (a daily supply quantity) of battery cells at each gear in each time unit. Exemplarily, a battery cell to monthly supply table and a battery cell to daily supply table may be obtained to determine the monthly supply quantity and daily supply quantity of battery cells at each gear. Accordingly, step S102 may include:
[0080] Step S200, constructing a first constraint condition according to a first supply quantity of battery cells at each gear in the production scheduling cycle, wherein the first constraint condition is used to limit the consumption quantity of battery cells at each gear in the production scheduling cycle.
[0081] Step S202, constructing a second constraint condition according to a second supply amount of the battery cells at each gear in each of the time units, wherein the second constraint condition is used to limit the consumption amount of the battery cells at each gear in each of the time units.
[0082] Exemplarily, the first constraint condition can be used as an initial state constraint and configured as: the first supply quantity of battery cells at each gear in the production scheduling cycle is greater than 0; the consumption of battery cells at each gear in the production scheduling cycle is ≤ the sum of the first supply quantity of battery cells at each gear and the inventory of battery cells at each gear.
[0083] Exemplarily, the second constraint condition can be configured as: the consumption of the battery cells in each gear of each time unit ≤ the sum of the balance value of the battery cells in each gear of the previous time unit and the second supply value of the battery cells in each gear of the current time unit; the balance value of the battery cells in each gear of each time unit ≥0.
[0084] In this embodiment, constraint conditions are constructed based on the supply information to limit the values of decision variables to not exceed the available resource range, thereby effectively ensuring the feasibility of resource allocation.
[0085] In an optional embodiment, the order information may include: material usage restrictions. Material usage restrictions may include the maximum number of materials used k, the maximum total material cost, unavailable materials, whether to accept multiple materials, whether to specify materials, etc. In actual applications, there are many models of photovoltaic modules. Some models can only use one material, such as P-type photovoltaic modules, and some models allow the use of multiple materials to reduce the by-product rate and downshift rate, such as N-type photovoltaic modules. However, the use of multiple materials will cause additional costs, so the relationship between the number of materials and other indicators needs to be weighed during the production process. And material switching will also bring additional losses, resulting in increased costs. Correspondingly, step S102 may also include: constructing a third constraint condition based on the material usage restriction, and the third constraint condition is used to limit the material configuration.
[0086] Exemplarily, the third constraint can be configured as: if multiple materials are accepted, the material configuration shall specify at most k materials; if multiple materials are not accepted, the number of materials specified by the material configuration shall be 1; the total cost of the material configuration shall not exceed the maximum total material cost; unavailable materials shall not be included in the material configuration; if the order specifies materials, the material configuration shall strictly correspond to the materials specified in the order and the configuration ratio of each material, etc.
[0087] In this embodiment, by constructing constraint conditions based on order information, the selection and use of materials can be optimized, costs can be effectively controlled, and rational resource allocation can be ensured.
[0088] The above embodiments only schematically illustrate the construction of several constraint conditions. In practical applications, more different constraint conditions can be configured based on different optimization stages, optimization goals, etc. to further meet business needs.
[0089] Step S104 Based on the supply information and the multiple constraints, multiple pre-built objective functions are optimized to obtain the target resource allocation strategy for each order, and the target resource allocation strategy is used to indicate the material configuration and battery cell configuration of the order in each time unit. The multiple objective functions include: a first objective function for calculating material costs, and a second objective function for calculating the gap between supply and demand of batteries at each level.
[0090] Multiple objective functions can be set according to actual needs, for example: a first objective function for calculating material costs, a second objective function for calculating the supply and demand gap of each gear battery cell, etc. It can be understood that by minimizing the material cost and the supply and demand gap of each gear battery cell as the optimization goal, it is possible to reduce inventory backlogs, reduce costs and increase efficiency, and provide more efficient and better resource allocation strategies while meeting order requirements. In an optional embodiment, a third objective function for calculating the downshift rate and a fourth objective function for calculating the by-product rate may also be included. Among them, the downshift rate and the by-product rate need to be calculated for the order. The order information also includes the required power gear and downshift range of the component. For example, the required power gear of the component specified in the order is 535W, and photovoltaic components below the required power gear (such as: 525W) cannot be used, that is, they are by-products. If the photovoltaic components exceeding the required power gear are within the downshift range (such as: 540~545W), they can also be downshifted and provided to the order. However, the higher the power gear, the higher the cost, the more downshifts, and the greater the loss. The "cell gear-module power gear" distribution matrix corresponding to each material can be used for the downshift rate and by-product rate of the order under different decision variable values. It should be noted that when photovoltaic modules within the downshift range are used in downshift, the corresponding penalty coefficient can be configured according to their power gear to obtain a more accurate downshift rate. For example, the required power gear is 535W, and the downshift range is 540-545W. Downshifting from 540W to 535W is a downshift of 1 gear, and the penalty coefficient can be set to 1. Downshifting from 545W to 535W is a downshift of 2 gears, and the penalty coefficient can be set to 2.
[0091] Given the supply of materials and cells, multiple objective functions are optimized under multiple constraints to find the target resource allocation strategy for each order. That is, determine how many materials should be selected for each order in the production scheduling cycle, the configuration ratio of each material, the range of cells covered by each material, and the configuration ratio of each gear. This target resource allocation strategy can minimize the overall gap between supply and demand of cells and minimize the cost, and the downshift rate, by-product rate, etc. of the order meet the business needs. It can be seen that the embodiment of the present application sets multiple constraints and multiple objective functions according to the actual situation, and models the decision problem as a mixed integer linear programming problem. Mixed integer linear programming allows some decision variables to be integers (such as which material to choose) and some decision variables to be continuous variables (such as the range of the cell). Mixed integer linear programming can flexibly and accurately simulate large-scale real-world problems and improve decision-making performance, thereby ensuring the accuracy and feasibility of resource allocation strategies. Of course, decision problems can also be modeled as linear programming problems or integer linear programming problems to meet different decision needs. The Pareto optimal solution for each order can be obtained through a solver (CPLEX, Gurobi) or a multi-objective optimization algorithm, and the Pareto optimal solution is determined as the target resource allocation strategy (optimal resource allocation plan) to meet different order requirements and optimize resource allocation as a whole. Among them, the multi-objective optimization algorithm can include genetic algorithm, particle swarm optimization algorithm, annealing algorithm, ant colony optimization algorithm, differential evolution algorithm, etc.
[0092] In order to further improve the accuracy of resource allocation, the above optimization process can also be creatively improved. An exemplary solution is provided below.
[0093] In an optional embodiment, if Figure 2 As shown, step S104 may include:
[0094] Step S300, based on the supply information, the first constraint condition and the third constraint condition, obtaining an initial resource allocation strategy for each order, wherein the initial resource allocation strategy is used to indicate the material configuration and battery cell configuration of the order within the production scheduling cycle;
[0095] Step S302: obtaining a target resource allocation strategy for each order based on the initial resource allocation strategy for each order and the second constraint condition.
[0096] In this embodiment, the linear programming process can be divided into two stages, such as a monthly optimization stage (corresponding to the production scheduling cycle) and a daily optimization stage (corresponding to the time unit). Accordingly, multiple constraints and multiple objective functions can also be divided into a monthly optimization module and a daily optimization module. In some embodiments, they can also be divided into a material optimization module. In order to improve the optimization efficiency, the monthly optimization module can be integrated with the material optimization module and applied together to the first stage, and the daily optimization module is applied to the second stage. The optimization goal of the first stage is the resource configuration of each order to the month. By calling the monthly optimization module and the material optimization module, the optimal material configuration and battery cell configuration of each order can be obtained at the granularity of the month, that is, the initial resource configuration strategy. Based on the optimization results of the first stage, the constraints in the daily optimization module are further considered (such as: the second constraint, the consumption of the battery cells of each gear every day cannot be greater than the supply, the balance value of the battery cells of each gear every day is greater than 0, etc.), and the material configuration and battery cell configuration of the day granularity are solved, that is, the target resource configuration strategy.
[0097] In this embodiment, the optimization process is divided into two stages, and constraints and objective functions are set for the two stages respectively. The optimization can be performed according to the actual needs of each stage, thereby simplifying the optimization scale of each stage and improving the solution efficiency. That is, the optimal material configuration is solved in the monthly optimization stage, and the optimal battery cell configuration for each day is solved in the daily optimization stage. The optimization results of the first stage are used as the input of the second stage, and the solution can be further optimized to improve the quality and feasibility of the final solution, so that it is more in line with the overall goal.
[0098] The following is an illustrative introduction to the constraints and objective functions of the monthly optimization module, daily optimization module, and material optimization module.
[0099] The multiple constraints of the monthly optimization module can be divided into variable constraints, logical constraints, quantity constraints and boundary constraints. Among them, variable constraints are used to limit the value range of variables (such as 0 to 1, etc.), which can include: the by-product rate and downshift rate of the order, and the supply and demand gap of the battery cells in each gear. Logical constraints are used to describe the logical (dependency) relationship between variables, which can include: the sum of the configuration ratios of all gears under any order is 1; if any order uses material m, the sum of the gear configuration ratios of the battery cells covered by m can be greater than 0; any order can select at most k materials; if any order uses material m and gear w, the configuration ratio of w can be greater than 0; any gear w can only use a unique material, and the gears of the battery cells covered by each material must be continuous; the gear range of the battery cells used in each order must be continuous; the configuration ratio of material m and gear w in any order must be within the set range; whether any order uses gear w, etc. Quantity constraints are used to limit the total amount of certain variables, which may include: maximum by-product rate; maximum downshift rate; maximum supply-demand gap of cells in each gear; the final output ratio of the power wattage p required by each order being met by the same level and the ratio of meeting downshift requirements is less than or equal to the power wattage p; the power wattage p required by each order being met by the same level and the ratio of being met by downshift is less than or equal to the demand ratio of power wattage p; if any order uses material m, the sum of the gear configuration ratios of cells corresponding to m is greater than the set value; the proportion of material m used in any order is an integer multiple of 0.1; the number of cell gears used in any order does not exceed the upper and lower limits. Boundary constraints are used for orders with specified materials, and the material configuration ratio needs to meet the order requirements.
[0100] In practical applications, there may be conflicts between multiple objective functions, resulting in no single solution that can meet all objectives at the same time. In order to ensure that a feasible solution is found, slack variables can be introduced in the constraints, and these variables can be adjusted to get as close as possible to each optimization goal to find a feasible resource allocation strategy. For example, slack variables can be configured for the maximum by-product rate, the maximum downshift rate, and the maximum supply and demand gap of each gear battery cell to obtain fuzzy constraints (slack constraints). Constraints that are not configured with slack variables are normal constraints.
[0101] Exemplarily, the maximum byproduct rate can be expressed as: B≤b+B slack , where B is the by-product rate, b is the upper limit of the by-product rate, and B slack is the by-product rate slack variable. The slack value is the value of the slack variable under a specific solution, which is used to measure the margin of the constraint condition. The smaller the value, the higher the quality of the solution. Accordingly, the multiple objective functions of the monthly optimization module may include: minimizing the sum of the slack values of GAP (the gap between the supply and demand of the battery cells at each gear), minimizing the sum of the slack values of the by-product rate (which can be expressed as: minΣB slack, the sum is the sum of the slack values of all orders), minimize the sum of the slack values of the downshift rate, and minimize the number of materials used.
[0102] In this embodiment, optimization is performed based on multiple normal constraints, multiple fuzzy constraints and multiple objective functions of the monthly optimization module to obtain an initial resource allocation strategy under the minimum relaxation value state, which can ensure the feasibility of the resource allocation plan.
[0103] The multiple constraints of the daily optimization module can also be divided into variable constraints, logical constraints, quantity constraints and boundary constraints. Among them, variable constraints can include: the by-product rate and downshift rate of the order, the consumption of the battery cell gear w on the tth day, the ending inventory of each gear on the last day, the total inventory of all gears, and the balance and supply gap of all gears. Logical constraints can include: the sum of the configuration ratios of all gears under any order is 1; the configuration ratio of material m and gear w used in any order must be within the set range; whether any order uses a different configuration strategy on the tth day and the t-1th day (the maximum number of material configuration switches within the production scheduling cycle); each order uses a maximum of n configuration strategies (the maximum number of material configurations within the production scheduling cycle); whether each order uses gear w every day; the gears used by each order every day are continuous. Quantity constraints may include: the balance of the battery cell flow in each gear (the sum of the previous day's inventory / balance and the current day's input minus the current day's consumption equals the current day's inventory / balance); the maximum by-product rate; the maximum downshift rate; the maximum supply-demand gap of the battery cells in each gear; the final output ratio of the power wattage p of each order requirement being less than or equal to the proportion of the same level and the proportion of the downshift requirements being less than or equal to the power wattage p; the proportion of the power wattage p of each order requirement being less than or equal to the proportion of the power wattage p being satisfied by the same level and being satisfied by the downshift requirements; the minimum daily balance of the gear (configurable slack variables), and the maximum gap between the balance and supply of all gears (configurable slack variables). Boundary constraints are used for orders with specified materials, and the configuration ratio of the materials needs to meet the order requirements.
[0104] The multiple objective functions of the daily optimization module may include: minimizing the slack value of the gap between inventory and supply of all gears (daily inventory average - monthly supply average), which can be used to optimize the resource allocation plan for the next production scheduling cycle, minimizing the sum of the daily balance slack values of the gears, minimizing the sum of the by-product rate slack values, minimizing the sum of the downshift rate slack values, etc.
[0105] In this embodiment, optimization is performed based on multiple normal constraints, multiple fuzzy constraints and multiple objective functions of the daily optimization module to obtain the target resource allocation strategy under the minimum relaxation value state, thereby ensuring the feasibility and accuracy of the production plan, reducing resource waste and improving the quality and efficiency of photovoltaic modules.
[0106] As mentioned above, the material optimization module can be integrated with the monthly optimization module to add some quantity constraints, including: each gear selects a unique material in each configuration strategy; whether the material of each configuration strategy is used or not; the number of materials used in each configuration strategy does not exceed k; the range of battery cell gears covered by each material in each configuration material is continuous; if the order does not accept multiple materials, the material selection for each configuration material is the same.
[0107] In this embodiment, some constraints are added for material optimization on the basis of the monthly optimization module, so that the optimal material configuration of each order monthly granularity can be obtained, which simplifies the optimization scale and further improves the optimization efficiency.
[0108] The above embodiments introduce multiple constraints and multiple objective functions at different optimization stages. In practical applications, multiple objective functions can also be improved, such as setting priorities and assigning weights to adapt to situations such as resource constraints. An exemplary solution is provided below.
[0109] In an optional embodiment, a corresponding priority is configured for each objective function based on the supply information and the order information of each order; and the multiple objective functions are optimized in turn based on the priority corresponding to each objective function.
[0110] Exemplarily, the priority of the objective function can be configured according to the supply information of the resources. In the case of limited resources, the priority of the objective function that minimizes the gap between supply and demand of battery cells in each gear can be set to the highest, and the priority of the objective function that minimizes the downshift rate and the by-product rate can be lowered, and then the multiple objective functions are optimized in sequence according to the priority. That is, the supply and demand of battery cells is taken as the main goal to avoid oversupply or undersupply of battery cells in some gears and improve the effective utilization of resources. In some embodiments, the priority of the objective function specified by the order can also be obtained through the order information. It should be noted that the priorities of different objective functions cannot be equal, and the higher the priority of the objective function, the more important it is.
[0111] In this embodiment, by reasonably setting the priority of the objective function, the production process can be effectively managed and optimized under conditions such as limited resources to ensure that the main needs are met while seeking the optimal balance among secondary goals, thereby improving production efficiency and resource utilization.
[0112] In an optional embodiment, the multiple objective functions may also include a weighted combination objective function, which is determined by the following operations: assigning a corresponding weight to each objective function based on the supply information and the order information of each order; and generating the weighted combination objective function based on the weight corresponding to each objective function.
[0113] Exemplarily, a corresponding weight is assigned to each objective function according to the supply information and order information, and then a weighted combination objective function can be obtained by combining them. The monthly optimization module can also include a weighted combination objective function, which can be expressed as: w1*first objective function+w2*second objective function+w3*third objective function+w4*fourth objective function, where w1, w2, w3, and w4 are weight values. Of course, the daily optimization module and the material optimization module can also configure the weighted combination objective function according to the actual situation, which will not be repeated here.
[0114] In this embodiment, the weighted combination of multiple objective functions can provide a more comprehensive and flexible optimization solution when solving complex linear programming problems, which helps to achieve multi-objective optimization and improve decision-making efficiency and accuracy.
[0115] In order to make this application easier to understand, the following Figure 3 An exemplary application is provided.
[0116] S1: Obtain order information and other required data for each order, such as: the battery cell production cycle (month) supply quantity for each gear and the supply quantity for each time unit (day), the benchmark power table for each material (battery cell gear-module power gear distribution matrix), and the production schedule.
[0117] S2: Preprocess the data to obtain the required power level and quantity, downshift range, material usage restrictions, etc. for each order. Through data preprocessing, redundant constraints are removed, constraints are simplified, the range of decision variables is determined, the problem scale is reduced, and efficiency is improved.
[0118] S3: Create decision variables, namely resource allocation strategies, including material configuration and cell configuration. Material configuration is used to indicate which materials should be selected for the order and the configuration ratio of each material. Cell configuration is used to indicate the range of cell positions covered by each material and the configuration ratio of the positions.
[0119] S4: Construct multiple constraints and multiple objective functions, and assign them to the monthly optimization module, daily optimization module, and material optimization module. The constraints include (1) Initial state constraints: Each order must have available materials and battery cell positions. The total supply of batteries in each position cannot be 0 in the current month. (2) Indicator constraints: The downshift rate, by-product rate, and GAP cannot be greater than the set maximum value. (3) Battery cell to day constraints: The battery inventory value (supply-demand) of each day of the month must be greater than 0. (4) Priority constraints: When resources are limited, each indicator (objective function) must be optimized in sequence according to the set priority, and the Pareto optimal solution must be calculated based on the priority.
[0120] S5: The optimization is carried out in two stages. In the first stage, the monthly optimization module and the material optimization module are called, and the optimal solution of the monthly granularity is obtained through the solver: the optimal material configuration and battery cell configuration within the production scheduling cycle. In the second stage, the daily optimization module is called to further consider the daily battery demand cannot be greater than the supply in the Yuesu condition, and the battery cell configuration of each order is obtained. The solver can obtain the Pareto optimal solution through branch and bound method, plane method, heuristic algorithm, and iterative solution. After calculating the optimal solution, it is judged whether the optimal solution function can meet the preset requirements. If not, the solution is solved again until the optimal solution meets the business requirements.
[0121] In this exemplary application: (1) a complete data preprocessing, business simulation, and multi-objective optimization model based on linear programming are set up, and it can adapt to different products and actual business needs, and achieve daily, efficient, and optimal resource allocation (such as material allocation and battery cell allocation) for any number of orders; (2) each order uses a resource allocation solution that is close to the global optimal solution at a daily granularity to achieve a more accurate production plan, reduce resource mismatch and manpower waste, and achieve order delivery with maximum production efficiency, resource conservation, and cost savings; (3) by combing the component production scheduling business and upstream and downstream business logic, the component production scheduling is logically abstracted and modeled, and based on the operations optimization technology, the gear configuration ratio and material configuration ratio of the battery cell of each order are optimized under the premise of given material properties and battery supply, so that the overall battery cell supply and demand gap is minimized, and the downshift rate and by-product rate of each order meet business needs; (4) ensure that the battery supply provided every day can meet the usage needs of each order, reduce the risk of inventory backlog, and improve operational flexibility and efficiency.
[0122] Embodiment 2
[0123] Figure 4 The block diagram of the resource allocation device for photovoltaic module production scheduling according to the second embodiment of the present application is schematically shown. The device can be divided into one or more program modules, one or more program modules are stored in a storage medium, and are executed by one or more processors to complete the embodiment of the present application. The program module referred to in the embodiment of the present application refers to a series of computer program instruction segments that can complete specific functions. The following description will specifically introduce the functions of each program module in this embodiment. Figure 4 As shown, the device 1000 may include: an acquisition module 1100, a construction module 1200, and an optimization module 1300, wherein:
[0124] An acquisition module 1100 is used to acquire supply information of resources and order information of each order within a production scheduling cycle, wherein the production scheduling cycle includes multiple time units, and the resources include multiple materials and multiple levels of battery cells;
[0125] A construction module 1200, configured to construct a plurality of constraint conditions according to the supply information and the order information of each order;
[0126] An optimization module 1300, configured to optimize a plurality of pre-constructed objective functions based on the supply information and the plurality of constraints to obtain a target resource allocation strategy for each order, wherein the target resource allocation strategy is used to indicate a material configuration and a battery cell configuration for an order in each of the time units;
[0127] The multiple objective functions include: a first objective function for calculating material costs, and a second objective function for calculating the gap between supply and demand of battery cells at each level.
[0128] As an optional embodiment, the material configuration includes one or more materials and a configuration ratio of each material, and the battery cell configuration includes a range of battery cells covered by each material and a configuration ratio of each range.
[0129] As an optional embodiment, the supply information includes a first supply quantity of battery cells at each gear in the production scheduling cycle and a second supply quantity of battery cells at each gear in each time unit;
[0130] According to the supply information and the order information of each order, a plurality of constraint conditions are constructed, including:
[0131] Constructing a first constraint condition according to a first supply quantity of battery cells at each gear in the production scheduling cycle, wherein the first constraint condition is used to limit the consumption quantity of battery cells at each gear in the production scheduling cycle;
[0132] A second constraint condition is constructed according to a second supply amount of the battery cells at each gear in each of the time units, and the second constraint condition is used to limit the consumption amount of the battery cells at each gear in each of the time units.
[0133] As an optional embodiment, the order information includes material usage restrictions; based on the supply information and the order information of each order, a plurality of constraints are constructed, including:
[0134] A third constraint condition is constructed according to the material usage restriction, and the third constraint condition is used to restrict the material configuration.
[0135] As an optional embodiment, based on the supply information and the multiple constraints, multiple pre-built objective functions are optimized to obtain a target resource allocation strategy for each order, including:
[0136] Based on the supply information, the first constraint condition and the third constraint condition, an initial resource allocation strategy for each order is obtained, wherein the initial resource allocation strategy is used to indicate the material configuration and battery cell configuration of the order within the production scheduling cycle;
[0137] Based on the initial resource allocation strategy of each order and the second constraint condition, a target resource allocation strategy of each order is obtained.
[0138] As an optional embodiment, the order information further includes the required power gear and downshift range of the component; the multiple objective functions further include: a third objective function for calculating the downshift rate, and a fourth objective function for calculating the by-product rate;
[0139] The downshift rate is the proportion of components that are higher than the required power gear and within the downshift range, and the byproduct rate is the proportion of components that are lower than the required power gear and not within the downshift range.
[0140] As an optional embodiment, the plurality of constraints are called from a monthly optimization module or a daily optimization module;
[0141] When the monthly optimization module is called, the plurality of constraints include: the maximum number of materials used, the configuration ratio interval of the battery cell gears covered by each material, the maximum by-product rate, the maximum downshift rate, the maximum supply-demand gap of each gear of the battery cell, the available battery cell gear range, the available material range, and the range of the number of battery cell gears used;
[0142] When calling the daily optimization module, the multiple constraints include: the maximum number of switching times of material configuration within the production scheduling cycle, the maximum number of material configuration within the production scheduling cycle, the maximum by-product rate, the maximum downshift rate, the maximum supply and demand gap of each gear of the battery cell, and the maximum daily inventory value of each gear of the battery cell.
[0143] As an optional embodiment, the optimizing the pre-built multiple objective functions further includes:
[0144] According to the supply information and the order information of each order, configuring a corresponding priority for each objective function;
[0145] The multiple objective functions are optimized in sequence according to the priority corresponding to each objective function.
[0146] As an optional embodiment, the multiple objective functions further include a weighted combination objective function, and the weighted combination objective function is determined by the following operations:
[0147] According to the supply information and the order information of each order, assigning a corresponding weight to each objective function;
[0148] The weighted combination objective function is generated according to the weight corresponding to each objective function.
[0149] As an optional embodiment, the plurality of constraint conditions include a plurality of normal constraint conditions without slack variables and a plurality of fuzzy constraint conditions with slack variables;
[0150] Based on the supply information and the multiple constraints, multiple pre-built objective functions are optimized to obtain the target resource allocation strategy for each order, further comprising:
[0151] Based on the supply information, the multiple normal constraints and the multiple fuzzy constraints, the pre-constructed multiple objective functions are optimized to obtain the target resource allocation strategy for each order under the minimum slack value state.
[0152] Embodiment 3
[0153] Figure 5 The schematic diagram of the hardware architecture of a computer device 10000 suitable for implementing a resource allocation method for photovoltaic module production scheduling according to the third embodiment of the present application is schematically shown. In some embodiments, the computer device 10000 may be a terminal device such as a smart phone, a wearable device, a tablet computer, a personal computer, a vehicle terminal, a game console, a virtual device, a workbench, a digital assistant, a set-top box, a robot, etc. In other embodiments, the computer device 10000 may be a rack server, a blade server, a tower server, or a cabinet server (including an independent server, or a server cluster composed of multiple servers), etc. Figure 5 As shown, the computer device 10000 includes but is not limited to: a memory 10010, a processor 10020, and a network interface 10030 that can communicate with each other through a system bus. Among them:
[0154] The memory 10010 includes at least one type of computer-readable storage medium, and the readable storage medium includes a flash memory, a hard disk, a multimedia card, a card-type memory (such as an SD or DX memory), a random access memory (RAM), a static random access memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, etc. In some embodiments, the memory 10010 may be an internal storage module of the computer device 10000, such as a hard disk or a memory of the computer device 10000. In other embodiments, the memory 10010 may also be an external storage device of the computer device 10000, such as a plug-in hard disk equipped on the computer device 10000, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. Of course, the memory 10010 may also include both the internal storage module of the computer device 10000 and its external storage device. In this embodiment, the memory 10010 is generally used to store the operating system and various application software installed in the computer device 10000, such as program code of a resource configuration method for photovoltaic module production scheduling, etc. In addition, the memory 10010 can also be used to temporarily store various data that have been output or will be output.
[0155] In some embodiments, the processor 10020 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other chips. The processor 10020 is generally used to control the overall operation of the computer device 10000, such as performing control and processing related to data interaction or communication with the computer device 10000. In this embodiment, the processor 10020 is used to run the program code stored in the memory 10010 or process data.
[0156] The network interface 10030 may include a wireless network interface or a wired network interface, and the network interface 10030 is generally used to establish a communication link between the computer device 10000 and other computer devices. For example, the network interface 10030 is used to connect the computer device 10000 to an external terminal through a network, and to establish a data transmission channel and a communication link between the computer device 10000 and the external terminal. The network may be a wireless or wired network such as an intranet, the Internet, the Global System of Mobile communication (GSM), Wideband Code Division Multiple Access (WCDMA), 4G network, 5G network, Bluetooth, Wi-Fi, etc.
[0157] It should be pointed out that Figure 5 Only a computer device having components 10010 - 10030 is shown, but it should be understood that implementation of all of the components shown is not a requirement, and more or fewer components may alternatively be implemented.
[0158] In this embodiment, the resource configuration method for photovoltaic module production scheduling stored in the memory 10010 can also be divided into one or more program modules and executed by one or more processors (such as processor 10020) to complete the embodiment of the present application.
[0159] Embodiment 4
[0160] An embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the steps of the resource configuration method for photovoltaic module production scheduling in the embodiment are implemented.
[0161] In this embodiment, the computer-readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEP ROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the computer-readable storage medium can be an internal storage unit of a computer device, such as a hard disk or memory of the computer device. In other embodiments, the computer-readable storage medium can also be an external storage device of a computer device, such as a plug-in hard disk equipped on the computer device, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. Of course, the computer-readable storage medium can also include both the internal storage unit of the computer device and its external storage device. In this embodiment, the computer-readable storage medium is generally used to store an operating system and various application software installed on the computer device, such as the program code of the resource configuration method for photovoltaic module production scheduling in the embodiment. In addition, the computer-readable storage medium can also be used to temporarily store various types of data that have been output or are to be output.
[0162] Embodiment 5
[0163] An embodiment of the present application also provides a computer program product, including a computer program, which implements the method in the above embodiment when executed by a processor.
[0164] Obviously, those skilled in the art should understand that the modules or steps of the above-mentioned embodiments of the present application can be implemented by general-purpose computer devices, they can be concentrated on a single computer device, or distributed on a network composed of multiple computer devices, optionally, they can be implemented by executable program codes of computer devices, so that they can be stored in a storage device and executed by the computer device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. In this way, the embodiments of the present application are not limited to any specific combination of hardware and software.
[0165] It should be noted that the above are only preferred embodiments of the present application, and the patent protection scope of the present application is not limited thereto. Any equivalent structure or equivalent process transformation made using the contents of the specification and drawings of the present application, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A resource allocation method for photovoltaic module production scheduling, characterized in that: The method comprises: Obtaining supply information of resources and order information of each order within a production scheduling cycle, wherein the production scheduling cycle includes multiple time units, and the resources include multiple materials and multiple levels of battery cells; constructing a plurality of constraint conditions according to the supply information and the order information of each order; Based on the supply information and the multiple constraints, multiple pre-constructed objective functions are optimized to obtain a target resource allocation strategy for each order, wherein the target resource allocation strategy is used to indicate the material configuration and battery cell configuration of the order in each time unit; The multiple objective functions include: a first objective function for calculating material costs, and a second objective function for calculating the gap between supply and demand of battery cells at each level.
2. The method according to claim 1, characterized in that The material configuration includes one or more materials and a configuration ratio of each material, and the battery cell configuration includes a range of battery cells covered by each material and a configuration ratio of each range.
3. The method according to claim 1, characterized in that The supply information includes a first supply quantity of battery cells at each gear in the production scheduling cycle and a second supply quantity of battery cells at each gear in each time unit; According to the supply information and the order information of each order, a plurality of constraint conditions are constructed, including: Constructing a first constraint condition according to a first supply quantity of battery cells at each gear in the production scheduling cycle, wherein the first constraint condition is used to limit the consumption quantity of battery cells at each gear in the production scheduling cycle; A second constraint condition is constructed according to a second supply amount of the battery cells at each gear in each of the time units, and the second constraint condition is used to limit the consumption amount of the battery cells at each gear in each of the time units.
4. The method according to claim 3, characterized in that The order information includes material usage restrictions; based on the supply information and the order information of each order, a plurality of constraints are constructed, including: A third constraint condition is constructed according to the material usage restriction, and the third constraint condition is used to restrict the material configuration.
5. The method according to claim 4, characterized in that Based on the supply information and the multiple constraints, multiple pre-built objective functions are optimized to obtain target resource allocation strategies for each order, including: Based on the supply information, the first constraint condition and the third constraint condition, an initial resource allocation strategy for each order is obtained, wherein the initial resource allocation strategy is used to indicate the material configuration and battery cell configuration of the order within the production scheduling cycle; Based on the initial resource allocation strategy of each order and the second constraint condition, a target resource allocation strategy of each order is obtained.
6. The method according to claim 1, characterized in that The order information also includes the required power gear and downshift range of the component; the multiple objective functions also include: a third objective function for calculating the downshift rate, and a fourth objective function for calculating the by-product rate; The downshift rate is the proportion of components that are higher than the required power gear and within the downshift range, and the byproduct rate is the proportion of components that are lower than the required power gear and not within the downshift range.
7. The method according to claim 6, characterized in that The plurality of constraints are called from a monthly optimization module or a daily optimization module; When the monthly optimization module is called, the plurality of constraints include: the maximum number of materials used, the configuration ratio interval of the battery cell gears covered by each material, the maximum by-product rate, the maximum downshift rate, the maximum supply-demand gap of each gear of the battery cell, the available battery cell gear range, the available material range, and the range of the number of battery cell gears used; When calling the daily optimization module, the multiple constraints include: the maximum number of switching times of material configuration within the production scheduling cycle, the maximum number of material configuration within the production scheduling cycle, the maximum by-product rate, the maximum downshift rate, the maximum supply and demand gap of each gear of the battery cell, and the maximum daily inventory value of each gear of the battery cell.
8. The method according to any one of claims 1 to 7, characterized in that: The optimizing of the pre-built multiple objective functions also includes: According to the supply information and the order information of each order, configuring a corresponding priority for each objective function; The multiple objective functions are optimized in sequence according to the priority corresponding to each objective function.
9. The method according to any one of claims 1 to 7, characterized in that: The multiple objective functions also include a weighted combination objective function, and the weighted combination objective function is determined by the following operations: According to the supply information and the order information of each order, assigning a corresponding weight to each objective function; The weighted combination objective function is generated according to the weight corresponding to each objective function.
10. The method according to any one of claims 1 to 7, characterized in that: The plurality of constraint conditions include a plurality of normal constraint conditions without slack variables and a plurality of fuzzy constraint conditions with slack variables; Based on the supply information and the multiple constraints, multiple pre-built objective functions are optimized to obtain the target resource allocation strategy for each order, further comprising: Based on the supply information, the multiple normal constraints and the multiple fuzzy constraints, the pre-constructed multiple objective functions are optimized to obtain the target resource allocation strategy for each order under the minimum slack value state.
11. A resource allocation device for photovoltaic module production scheduling, characterized in that: The device comprises: An acquisition module, used to acquire supply information of resources and order information of each order within a production scheduling cycle, wherein the production scheduling cycle includes multiple time units, and the resources include multiple materials and multiple gears of battery cells; A construction module, used for constructing a plurality of constraint conditions according to the supply information and the order information of each order; An optimization module, configured to optimize a plurality of pre-constructed objective functions based on the supply information and the plurality of constraints to obtain a target resource allocation strategy for each order, wherein the target resource allocation strategy is used to indicate a material configuration and a battery cell configuration for an order in each of the time units; The multiple objective functions include: a first objective function for calculating material costs, and a second objective function for calculating the gap between supply and demand of battery cells at each level.
12. A computer device, characterized in that: include: at least one processor; and a memory communicatively connected to the at least one processor; wherein: The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 10.
13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and when the computer instructions are executed by a processor, the method according to any one of claims 1 to 10 is implemented.
14. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 10 are implemented.
Citation Information
Patent Citations
Multi-target production order allocation device and multi-target production order allocation method
CN112070326A
Multi-cycle blending scheduling production scheduling method and system for crude oil storage and transportation
CN113537748A
Scheduling result generation method and device, electronic equipment and readable storage medium
CN114707875A
Production scheduling data processing method and device, medium and electronic equipment
CN115758727A
Project production scheduling method and device
CN117132232A
