Method and apparatus for determining production calendar, electronic device, and storage medium

By automatically determining and adjusting the production calendar, the problems of low decision-making efficiency and insufficient flexibility caused by manual operation are solved, enabling rapid response and resource optimization in production planning.

CN122288147APending Publication Date: 2026-06-26BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
BEIJING XIAOMI MOBILE SOFTWARE CO LTD
Filing Date
2024-12-24
Publication Date
2026-06-26

AI Technical Summary

Technical Problem

In existing technologies, the generation and adjustment of production calendars rely on manual operation, resulting in a large workload and low efficiency in decision-making. This makes it difficult to respond quickly and flexibly to market demand fluctuations and urgent orders, leading to a mismatch between production plans and actual production results.

Method used

By obtaining the first working hours of the target resources, the initial production calendar is determined, and the daily working hours are adjusted based on the capacity loss time. The production calendar is automatically matched and optimized to meet the production needs of the target production line within the target time period.

Benefits of technology

It enables automatic adjustment of the production calendar without manual intervention, improving the accuracy and flexibility of production planning, enabling rapid response to changes in market demand, and reducing adjustment time and resource waste.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122288147A_ABST
    Figure CN122288147A_ABST
Patent Text Reader

Abstract

This disclosure relates to a method, apparatus, electronic device, and storage medium for determining a production calendar. The method for determining a production calendar includes: acquiring target resources required to produce a target product during a target time period; determining a target production line corresponding to the target resources and determining a first working duration, the first working duration representing the time required for the target production line to produce the target resources within the target time period; determining a production calendar matching the first working duration as an initial production calendar; determining time-influencing factors corresponding to the production of the target resources by the target production line within the first working duration, and determining the capacity loss duration corresponding to the target production line based on the time-influencing factors; adjusting the daily working durations recorded in the initial production calendar so that a second working duration obtained after adjusting the daily working duration becomes the first working duration, thereby obtaining a target production calendar, where the second working duration is the difference between the total working duration and the capacity loss duration of the initial production calendar. This disclosure improves the accuracy of the production calendar.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of intelligent manufacturing, and in particular to a method, apparatus, electronic device, and storage medium for determining a production calendar. Background Technology

[0002] A production calendar, also known as a plant calendar or work calendar, is a time management tool used to determine the production plan and scheduling of a product production line.

[0003] In related technologies, production calendars are primarily generated by production personnel. However, manually generating and adjusting production calendars in these technologies suffers from problems such as a large workload and low efficiency in decision-making. Summary of the Invention

[0004] To overcome the problems existing in the related technologies, this disclosure provides a method, apparatus, electronic device and storage medium for determining a production calendar.

[0005] According to a first aspect of the present disclosure, a method for determining a production calendar is provided, comprising: acquiring target resources required to produce a target product during a target time period, wherein the resources are produced by a production line, and different resources correspond to different production lines; determining a target production line corresponding to the target resource, and determining a first working duration, the first working duration representing the time required for the target production line to produce the target resource within the target time period; determining a production calendar matching the first working duration as an initial production calendar, wherein the production calendar records the production day of the production resource of the production line and the daily working duration of the production day; determining the time-influencing factors corresponding to the production of the target resource by the target production line within the first working duration, and determining the capacity loss duration corresponding to the target production line based on the time-influencing factors; adjusting the daily working duration recorded in the initial production calendar, such that a second working duration obtained after adjusting the daily working duration is the first working duration, thereby obtaining a target production calendar, wherein the second working duration is the difference between the total working duration and the capacity loss duration of the initial production calendar.

[0006] In one embodiment, determining the production calendar that matches the first working duration as the initial production calendar includes: selecting the production calendar with the highest matching degree to the first working duration from the calendar rule pool as the initial production calendar, wherein the calendar rule pool records production calendars corresponding to different working durations.

[0007] In one embodiment, selecting the production calendar with the highest matching degree with the first working duration from the calendar rule pool includes: determining the total working duration of the production calendars in the calendar rule pool; selecting the production calendar in the calendar rule pool whose total working duration is greater than or equal to the first working duration and whose duration difference is the smallest, as the production calendar with a high matching degree with the first working duration, wherein the duration difference is the difference between the total working duration in the calendar rule pool and the first working duration.

[0008] In one embodiment, adjusting the daily working hours recorded in the initial production calendar so that the second working hours obtained after the adjustment are the first working hours to obtain a target production calendar includes: responding to the second working hours being less than the first working hours, using the difference between the first working hours and the second working hours as an added duration; increasing the daily working hours of the initial production calendar based on the added duration so that the second working hours obtained based on the initial production calendar with the added daily working hours are the first working hours; and using the initial production calendar with the added daily working hours as the target production calendar.

[0009] In one embodiment, adjusting the daily working hours recorded in the initial production calendar so that the second working hours obtained after the adjustment are the first working hours to obtain a target production calendar includes: responding to the second working hours being greater than the first working hours, using the difference between the second working hours and the first working hours as a reduction period; reducing the daily working hours of the initial production calendar based on the reduction period so that the second working hours obtained based on the initial production calendar after the reduction are the first working hours; and using the initial production calendar after the reduction as the target production calendar.

[0010] In one embodiment, adjusting the daily working hours recorded in the initial production calendar so that the second working hours obtained after adjusting the daily working hours are the first working hours, and obtaining the target production calendar, includes: in response to the second working hours being the same as the first working hours, using the initial production calendar as the target production calendar.

[0011] In one embodiment, the production calendar also records shift information, which represents a time period within a production day; determining the total working time of the production calendar in the calendar rule pool includes: determining the target shift information of the target line, which represents the time period for producing the target resource within a production day; and using the duration of the production calendar in the calendar rule pool for the target shift as the total working time of the production calendar in the calendar rule pool.

[0012] According to a second aspect of the present disclosure, a production calendar determination apparatus is provided, comprising: an acquisition unit, configured to acquire target resources required for producing a target product during a target time period, wherein the resources are produced by a production line, and different resources correspond to different production lines; a processing unit, configured to determine the target production line corresponding to the target resource, determine a first working duration, determine a production calendar matching the first working duration as an initial production calendar, determine a duration influencing factor corresponding to the production of the target resource by the target production line within the first working duration, and determine a capacity loss duration corresponding to the target production line based on the duration influencing factor, wherein the first working duration characterizes the duration required for the target production line to produce the target resource during the target time period, and the production calendar records the production day of the production resource and the daily working duration of the production day; and a determination unit, configured to adjust the daily working duration recorded in the initial production calendar, such that a second working duration obtained after adjusting the daily working duration is the first working duration, thereby obtaining a target production calendar, wherein the second working duration is the difference between the total working duration and the capacity loss duration of the initial production calendar.

[0013] In one embodiment, the processing unit determines the production calendar that matches the first working duration as the initial production calendar in the following way: selecting the production calendar with the highest matching degree with the first working duration from the calendar rule pool as the initial production calendar, wherein the calendar rule pool records production calendars corresponding to different working durations.

[0014] In one embodiment, the processing unit selects the production calendar with the highest matching degree with the first working duration from the calendar rule pool in the following manner: determining the total working duration of the production calendars in the calendar rule pool; selecting the production calendar in the calendar rule pool whose total working duration is greater than or equal to the first working duration and whose duration difference is the smallest, as the production calendar with a high matching degree with the first working duration, wherein the duration difference is the difference between the total working duration in the calendar rule pool and the first working duration.

[0015] In one embodiment, the determining unit adjusts the daily working hours recorded in the initial production calendar in the following manner, so that the second working hour obtained after adjusting the daily working hours becomes the first working hour, thereby obtaining a target production calendar: in response to the second working hour being less than the first working hour, the difference between the first working hour and the second working hour is used as an added time; based on the added time, the daily working hours of the initial production calendar are increased, so that the second working hour obtained based on the initial production calendar with the increased daily working hours becomes the first working hour; the initial production calendar with the increased daily working hours is used as the target production calendar.

[0016] In one embodiment, the determining unit adjusts the daily working hours recorded in the initial production calendar in the following manner, so that the second working hour obtained after adjusting the daily working hours becomes the first working hour, thereby obtaining a target production calendar: in response to the second working hour being greater than the first working hour, the difference between the second working hour and the first working hour is used as the reduction period; based on the reduction period, the daily working hours of the initial production calendar are reduced, so that the second working hour obtained based on the initial production calendar after reducing the daily working hours becomes the first working hour; and the initial production calendar after reducing the daily working hours is used as the target production calendar.

[0017] In one embodiment, the determining unit adjusts the daily working hours recorded in the initial production calendar in the following manner, so that the second working hours obtained after adjusting the daily working hours are the first working hours, thereby obtaining a target production calendar: in response to the second working hours being the same as the first working hours, the initial production calendar is used as the target production calendar.

[0018] In one embodiment, the production calendar also records shift information, which represents a time period within a production day; the processing unit determines the total working time of the production calendar in the calendar rule pool in the following manner: determining the target shift information of the target line, which represents the time period for producing the target resource within a production day; and using the duration of the production calendar in the calendar rule pool for the target shift as the total working time of the production calendar in the calendar rule pool.

[0019] According to a third aspect of the present disclosure, a production calendar determining apparatus is provided, comprising:

[0020] A processor; a memory for storing processor-executable instructions; wherein the processor is configured to execute the production calendar determination method described in the first aspect or any embodiment of the first aspect.

[0021] According to a fourth aspect of the present disclosure, a storage medium is provided, the storage medium storing instructions that, when executed by a processor of a terminal, can perform the method described in the first aspect or any embodiment of the first aspect.

[0022] The technical solutions provided by the embodiments of this disclosure can include the following beneficial effects: In the embodiments of this disclosure, by characterizing the first working time required for the target production line to produce the target resource within the target time period, a production calendar matching the first working time is determined as the initial production calendar, thereby realizing the selection of a production calendar matching the working time required for the target production line to produce the target resource. Furthermore, by adjusting the daily working time in the selected initial target production calendar based on a second working time that additionally characterizes the capacity loss time corresponding to the target production line, the total working time of the adjusted target production calendar can meet the first working time requirement, enabling the target production calendar to accurately schedule the production activities of the target production line to produce the target resource within the target time period.

[0023] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description

[0024] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.

[0025] Figure 1 This is a flowchart illustrating a method for determining a production calendar according to an exemplary embodiment.

[0026] Figure 2 This is a flowchart illustrating a method for determining an initial production calendar according to an exemplary embodiment.

[0027] Figure 3 This is a flowchart illustrating a method for determining the production calendar with the highest matching degree according to an exemplary embodiment.

[0028] Figure 4 This is a flowchart illustrating a method for determining a target production calendar according to an exemplary embodiment.

[0029] Figure 5 This is a flowchart illustrating a method for determining a target production calendar according to an exemplary embodiment.

[0030] Figure 6 This is a flowchart illustrating a method for determining the total working hours of a production calendar according to an exemplary embodiment.

[0031] Figure 7 This is a schematic diagram illustrating input data according to an exemplary embodiment.

[0032] Figure 8 This is a schematic diagram illustrating a production calendar modeling of a line body according to an exemplary embodiment.

[0033] Figure 9 This is a schematic diagram illustrating a calendar evaluation method according to an exemplary embodiment.

[0034] Figure 10 This is a schematic diagram illustrating a calendar evaluation method according to an exemplary embodiment.

[0035] Figure 11 This is a schematic diagram illustrating the addition of duration to an initial production calendar according to an exemplary embodiment.

[0036] Figure 12 This is a schematic diagram illustrating the reduction of time in an initial production calendar according to an exemplary embodiment.

[0037] Figure 13 This is a block diagram illustrating a production calendar determination device according to an exemplary embodiment.

[0038] Figure 14 This is a block diagram illustrating a determination apparatus for producing a calendar according to an exemplary embodiment.

[0039] Figure 15 This is a block diagram illustrating a device for determining a calendar production process according to an exemplary embodiment. Detailed Implementation

[0040] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure.

[0041] In the accompanying drawings, the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The described embodiments are some, but not all, of the embodiments of this disclosure. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain this disclosure, and should not be construed as limiting this disclosure. All other embodiments obtained by those skilled in the art based on the embodiments of this disclosure without inventive effort are within the scope of protection of this disclosure. The embodiments of this disclosure will be described in detail below with reference to the accompanying drawings.

[0042] The method for determining the production calendar provided in this disclosure is mainly applied to smart manufacturing scenarios. For example, it can be applied to scenarios where production planning is carried out in the smart manufacturing industry based on the production calendar.

[0043] Intelligent manufacturing is based on next-generation information technologies such as the Internet of Things, big data, and cloud computing. It runs through all aspects of manufacturing activities, including design, production, management, and service. It has functional characteristics such as self-sensing, self-learning, self-decision-making, self-execution, and self-adaptation. It is an advanced production method that achieves many lean goals such as improving production quality and reliability, improving production efficiency and energy utilization efficiency, and reducing operating costs and delivery cycles.

[0044] With the deep integration of information technology and manufacturing, intelligent manufacturing has achieved remarkable results. Typical sectors such as 3C manufacturing are accelerating their shift towards digitalization and intelligence, forming new, replicable, and scalable intelligent manufacturing models. 3C products are an abbreviation for three categories of electronic products: computers, communications, and consumer electronics. However, the manufacturing industry is currently still in a stage of coexistence of mechanization, electrification, automation, and digitalization, and is still quite far from entering the digitalization stage. Furthermore, there are imbalances in development across different regions, industries, and enterprises; the maturity of key common technologies and models is not high; and there is an insufficient supply of solutions for digitalizing intelligent manufacturing.

[0045] For example, in the field of advanced planning and scheduling, there are related technologies such as System Applications and Products in Data Processing (SAP), Enterprise Resource Planning (ERP), and Manufacturing Execution System (MES).

[0046] In the aforementioned related technologies, a production calendar is not used for product production planning. For example, a production line operates 24 hours a day by default, and time is represented by integer units, such as years, to determine the available man-hours for the line within a given time period. A production line (also called a production line or production line) is characterized by manpower, equipment, tools, etc., used to complete a specific process or function. When a production activity is received, the available man-hours for the line within a given time period are compared with the man-hours required for the line to generate the necessary output during the production activity. However, the aforementioned related technologies cannot accurately plan the production of the line within a given time period. Furthermore, the lack of precise planning for the production of the line within a given time period leads to a mismatch between planned and actual production results (output), making the production plan unfeasible in actual production scenarios and resulting in a lack of universality in production planning.

[0047] Therefore, related technologies propose using a production calendar for production planning. The production calendar is a core component of production planning (also known as production schedule). It details the production schedule, including start and end times, line uptime, and equipment maintenance, ensuring that all production tasks proceed according to plan and improving production line efficiency and stability.

[0048] However, in the process of planning production lines based on production calendars, there are various calendar states, including normal working hours, rest days, holidays, time off in lieu, overtime, and line maintenance. Production planning needs to consider different calendar states to formulate high-quality, efficient, and accurate planning results. Therefore, related technologies provide an Advanced Planning and Scheduling (APS) system, which arranges production activities (also known as production scheduling) based on the calendar states in the production calendar.

[0049] For 3C products, represented by terminals, the characteristics of rapid product updates, a wide variety of products, and large fluctuations in market demand are as follows: production is mainly scheduled using a make-to-order (MTO) model.

[0050] However, the APS systems in related technologies primarily rely on fixed production calendars for task scheduling. While this improves the stability of production lines, it also presents challenges in adjusting production activities to cope with market demand fluctuations, unforeseen events, or urgent orders. For example, when a production line faces tight deadlines, the fixed production calendar's shift schedules cannot plan how to adjust production activities to ensure on-time completion. Furthermore, in these technologies, adjusting production activities requires manual intervention within the APS system to update daily work status and shift durations for all production lines. Therefore, the aforementioned technical solutions using fixed production calendars for scheduling and manual adjustments suffer from the inability to quickly and flexibly adjust the production calendar, leading to production lines operating on fixed calendar shifts failing to meet production demands. Moreover, manual adjustments result in a large decision-making workload and low efficiency, making calendar adjustments difficult and time-consuming.

[0051] In view of this, the present disclosure provides a method for determining a production calendar. In this method, no manual operation is required to determine a production calendar that matches the duration required for the production of the target resource on the production line during the target period. The matching production calendar is then adjusted to obtain a production calendar that enables the target line to complete the production of the target resource.

[0052] Figure 1 This is a flowchart illustrating a method for determining a production calendar according to an exemplary embodiment, such as... Figure 1 As shown, it includes the following steps.

[0053] In step S11, the target resources required to produce the target product during the target time period are obtained.

[0054] In this embodiment of the disclosure, resources are produced through production lines, and different resources correspond to different production lines.

[0055] In this embodiment of the disclosure, the target product may include one or more target resources. One target resource may correspond to one or more target production lines, which are used to produce or process the corresponding target resource.

[0056] In step S12, the target line body corresponding to the target resource is determined, and the first working duration is determined.

[0057] In this embodiment of the disclosure, the first working duration represents the time required for the target production line to produce the target resource within the target time period.

[0058] In step S13, a production calendar that matches the first working duration is determined as the initial production calendar.

[0059] In this embodiment of the disclosure, the production calendar records the production day of the production resources of the production line, as well as the daily working hours of that production day. The production day represents the date on the production calendar when the production line begins producing production resources.

[0060] In this embodiment of the disclosure, the production calendar may also include non-production days, during which the production line does not produce resources.

[0061] In this embodiment of the disclosure, daily working hours characterize the duration of resource production on a production day.

[0062] In step S14, the duration influencing factors corresponding to the production of target resources by the target line within the first working time are determined, and the capacity loss duration corresponding to the target line is determined based on the duration influencing factors.

[0063] In this embodiment of the disclosure, the duration-influencing factors represent factors that, during the production of target resources, lead to a decrease in the production capacity of the target line and consequently an increase in the production time of the target line.

[0064] In step S15, the daily working hours recorded in the initial production calendar are adjusted so that the second working hours obtained after the adjustment become the first working hours, thus obtaining the target production calendar.

[0065] In this embodiment, the second working duration is the difference between the total working duration of the initial production calendar and the capacity loss duration. By combining the first working duration with the additional time required for the target line to produce the target resources due to capacity loss, the second working duration is obtained, enabling the second working duration to accurately characterize the working duration for the target line to produce the target resources within the target time period.

[0066] In this embodiment of the disclosure, after calculating the capacity loss of the initial production calendar, there are instances where the working hours for production within the target time period according to the initial production calendar may not be sufficient to complete the production of the target resources on time. Therefore, it is necessary to adjust the daily working hours in the initial production calendar to obtain the target production calendar. This ensures that the adjusted target production line can complete the production of the target resources within the target time period according to the target production calendar.

[0067] In this embodiment, a production calendar matching the first working time required for the target production line to produce the target resource within a target time period is determined as the initial production calendar, thereby enabling the selection of a production calendar matching the working time required for the target production line to produce the target resource. Furthermore, by adjusting the daily working time in the selected initial target production calendar based on a second working time that additionally represents the capacity loss time corresponding to the target production line, the total working time of the adjusted target production calendar is made to meet the first working time requirement. This allows the target production calendar to accurately schedule the production activities of the target production line in producing the target resource within the target time period.

[0068] In this embodiment of the disclosure, the first working duration can be determined based on the inventory level and production usage of the target resources. The inventory level of the target resources represents the quantity of resources already stored, and the production usage represents the quantity of target resources required to produce the target product.

[0069] In this embodiment of the disclosure, after determining the first working duration and the target time period, an initial production calendar can be determined based on the first working duration and the target time period. Alternatively, a preset number of production calendars can be set, and the production calendar with the highest matching degree to the first working duration can be selected as the initial production calendar.

[0070] In this embodiment of the disclosure, the process of determining the initial production calendar is described below by selecting the production calendar with the highest matching degree to the first working duration.

[0071] Figure 2 This is a flowchart illustrating a method for determining an initial production calendar according to an exemplary embodiment, such as... Figure 2 As shown, it includes the following steps.

[0072] In step S21, the first working duration is determined.

[0073] In step S22, the production calendar with the highest matching degree with the first working duration is selected from the calendar rule pool and used as the initial production calendar.

[0074] In this embodiment of the disclosure, the calendar rule pool records production calendars corresponding to different work durations. The calendar rule pool may record one or more production calendars. The corresponding work durations of the production calendars in the calendar rule pool may differ for different target time periods.

[0075] In this embodiment of the disclosure, by matching the production calendars in the calendar rule pool with the first working duration, the production calendar with the highest matching degree is used as the initial production calendar, thereby achieving the selection of production calendars in the calendar rule pool that can meet the first working duration. This enables the preliminary determination of the production calendar for scheduling the production of target resources for the target production line within the target time period.

[0076] In this embodiment of the disclosure, the production calendar with the highest matching degree with the first working time can be determined based on the total working time of the production calendars in the calendar rule pool.

[0077] Figure 3 This is a flowchart illustrating a method for determining the production calendar with the highest matching degree according to an exemplary embodiment, such as... Figure 3 As shown, it includes the following steps.

[0078] In step S31, the total working time for producing calendars in the calendar rule pool is determined.

[0079] In this embodiment of the disclosure, the total working time of the production calendars in the calendar rule pool can be determined by the production days included in each production calendar during the target time period and the corresponding working hours of each production calendar.

[0080] In step S32, the production calendar with the total working hours greater than or equal to the first working hours and the smallest time difference in the calendar rule pool is selected as the production calendar with a high degree of matching with the first working hours.

[0081] In this embodiment of the disclosure, by selecting a production calendar in the calendar rule pool whose total working time is greater than or equal to the first working time, the production calendar that can meet the requirement of completing the production of the target resource within the target time period for the first working time is determined.

[0082] In this embodiment of the disclosure, the duration difference is the difference between the total working time in the calendar rule pool and the first working time.

[0083] In this embodiment of the disclosure, after determining a production calendar whose total working time is greater than or equal to a first working time, the production calendar with the smallest time difference can be selected as the initial production calendar. This avoids a situation where the total working time of the determined initial production calendar differs too much from the first working time, leading to wasted working time for the target production line according to the existing working time of the initial production calendar, and consequently wasting the production line's working resources and costs.

[0084] In this embodiment of the disclosure, when the second working time is less than the first working time, the target production calendar can be obtained by increasing the daily working time recorded in the initial production calendar so that the second working time obtained after adjusting the daily working time becomes the first working time.

[0085] Figure 4 This is a flowchart illustrating a method for determining a target production calendar according to an exemplary embodiment, such as... Figure 4 As shown, it includes the following steps.

[0086] In step S41, in response to the second working time being less than the first working time, the difference between the first working time and the second working time is used as the added time.

[0087] In this embodiment of the disclosure, the second working duration is less than the first working duration, indicating that the target production line cannot complete the production of the target resource within the target time period according to the initial production calendar. That is, the target production line produces the target resource according to the initial production calendar, but the date of completion of the target resource production exceeds the last date of the target time period.

[0088] In this embodiment of the disclosure, in order to enable the target production line to complete the production of the target resource within the target time period after calculating the capacity loss, the additional time required for the initial production calendar to complete the production of the target resource within the target time period can be determined by calculating the additional time.

[0089] In step S42, the daily working hours of the initial production calendar are increased based on the increased duration, so that the second working hours obtained from the initial production calendar after increasing the daily working hours become the first working hours.

[0090] In this embodiment of the disclosure, the daily working hours of the initial production calendar can be increased to increase the total working hours of the initial production calendar, and the second working hours of the initial production calendar after increasing the daily working hours become the first working hours, so that the target production line can complete the production of the target resources within the target time period.

[0091] In step S43, the initial production calendar after increasing the daily working hours is used as the target production calendar.

[0092] In this embodiment of the disclosure, by increasing the daily working hours of the initial production calendar, when the second working hours are less than the first working hours, the daily working hours recorded in the initial production calendar are adjusted so that the adjusted target production calendar can meet the first working hours required to produce the target resources after comprehensive capacity loss, thereby realizing flexible adjustment of the initial production calendar.

[0093] In this embodiment of the disclosure, if it is determined that the second working time is greater than or equal to the first working time, the daily working time of the initial production calendar can be reduced for the case where the second working time is greater than the first working time, thereby reducing the resource redundancy and waste in the production process of the target line.

[0094] Figure 5 This is a flowchart illustrating a method for determining a target production calendar according to an exemplary embodiment, such as... Figure 5 As shown, it includes the following steps.

[0095] In step S51, in response to the second working time being greater than the first working time, the difference between the second working time and the first working time is used as the reduction time.

[0096] In this embodiment of the disclosure, the second working duration is longer than the first working duration, indicating that the target production line can complete the production of the target resource ahead of schedule within the target time period according to the initial production calendar. That is, the target production line produces the target resource according to the initial production calendar, and the date of completion of the target resource production is before the last date of the target time period.

[0097] In this embodiment of the disclosure, in order to avoid overcapacity caused by the target production line, the reduction time can be calculated to determine the time reduction required for the initial production calendar to reasonably complete the production of the target resources within the target time period.

[0098] In step S52, based on the reduced duration, the daily working hours of the initial production calendar are reduced so that the second working hours obtained from the initial production calendar after reducing the daily working hours become the first working hours.

[0099] In this embodiment of the disclosure, the daily working hours of the initial production calendar can be reduced, thereby reducing the total working hours of the initial production calendar and preventing the initial production calendar from completing the production of the target resource on the last date of the target period. This also prevents the target production line from completing the production of the target resource within the target period and avoids cost waste.

[0100] In step S53, the initial production calendar after reducing daily working hours is used as the target production calendar.

[0101] In this embodiment of the disclosure, by reducing the daily working hours of the initial production calendar, when the second working hours are longer than the first working hours, the daily working hours recorded in the initial production calendar are adjusted so that the adjusted target production calendar can meet the first working hours required to produce the target resources after comprehensive capacity loss and there will be no idle days on the production line, thus realizing flexible adjustment of the initial production calendar.

[0102] In this embodiment of the disclosure, in response to the second working duration being the same as the first working duration, the initial production calendar is used as the target production calendar. If it is detected that after calculating the capacity loss of the working duration in the initial production calendar, the second working duration is the same as the first working duration, that is, the target production line can complete the production of the target resource on the last date of the target period according to the initial production calendar, then it is determined that there is no need to adjust the initial production calendar, and the initial production calendar is used as the target production calendar.

[0103] In this embodiment, the production calendar also records shift information, which represents the time period within a production day. The total working hours of the production calendar in the calendar planning pool are determined using the shift information, thus enabling the creation of corresponding production calendars for production with shift requirements.

[0104] Figure 6 This is a flowchart illustrating a method for determining the total working hours of a production calendar according to an exemplary embodiment, such as... Figure 6 As shown, it includes the following steps.

[0105] In step S61, the target shift information of the target line is determined.

[0106] In this embodiment of the disclosure, the target shift information represents the time period during which the target resources are produced on a production day. The time period refers to the time intervals of each date included within the target time period.

[0107] In step S62, the duration of the calendar produced in the calendar rule pool during the target shift is taken as the total working time of the calendar produced in the calendar rule pool.

[0108] In this embodiment of the disclosure, the total working time of the production calendar is determined based on the duration of the production calendar in the target shift within the calendar rule pool, thereby enabling the determination of the duration for which the target resource can be produced in the target shift within the target time period.

[0109] For example, if the target period is from day n to day n+m, the target shift can be from hour a to hour b each day. If production calendar 1 can control the target production line to produce the target resources within the target shift of the target period, then the total working time of production calendar 1 is m*(ba) hours.

[0110] In this embodiment of the disclosure, by setting shift information in the production calendar, the target production calendar can be selected based on the shift information.

[0111] In one exemplary embodiment, the demand data used to generate the production calendar in this disclosure embodiment can also be referred to as input data. Figure 7 This is a schematic diagram illustrating input data according to an exemplary embodiment. Figure 7 The input data consists of two parts: flexible calendar modeling and basic data. The flexible calendar modeling information includes shift definitions, normal calendars, exception calendars, production line calendars, and a calendar rule pool. This information defines the working status of each production line in the workshop at different times, enabling the modeled calendar to represent shift definitions such as single and double shifts, as well as different production scenarios including holidays, time off in lieu, and production line maintenance (i.e., line upkeep). The production line calendar contains the production calendars used by the production line at different times. The calendar rule pool contains various production calendars set according to preset rules, with different production calendars corresponding to different working hours.

[0112] The input data also includes basic data, which includes the data needed to determine the target time period, target product, target resources, target production line, first working time, capacity loss time, and target production calendar. Basic data includes product materials, planned processes, R&D projects, production resources, and business rules. Product materials are used to determine target resources and include a product matrix, an R&D bill of materials (BOM), and a manufacturing BOM. The product matrix includes a material list and a cross matrix. The R&D BOM determines the target resources and quantities required for the target product. The manufacturing BOM contains information such as assembly sequence, time quotas, material quotas, and equipment used in production and processing, determined based on the R&D BOM. Planned processes mainly include process routes and planned operations. The process route represents a detailed description of the product production process, including multiple operations, while the planned operations are the specific plans and arrangements for each operation in the process route. R&D projects include the project body and project attributes. The project body represents the core content of the R&D project, including the product design, development, and testing phases. Project attributes include relevant information such as budget and resource allocation within the R&D project. Production resources include cell production lines / sections, project lines (also called production lines), and section / station configurations. A cell production line or section represents a stage in the production process. Section / station configuration represents the configuration information of the stations that make up the section. Business rules include ramp-up rules, first-quantity hold, changeover rules, work-in-process (WIP) clearance rules, WIP capacity, and concentrated production. Ramp-up rules represent the process of a production line reaching its designed capacity from the start of production. First-quantity hold rules refer to the period at which the first batch of resources or products is held or tested to ensure product quality at the start of production. Changeover rules represent the adjustments that a production line (line) needs to make when production changes from one product to another. Work-in-process (WIP) clearance rules refer to the rules for handling remaining WIP when a production order is nearing completion. WIP capacity rules define the maximum amount of WIP allowed during the production process. Concentrated production rules involve concentrating production resources on certain key products or orders to improve production efficiency and meet urgent needs.

[0113] In one exemplary embodiment, a production calendar including shift information can be modeled in the following manner. Figure 8 This is a schematic diagram illustrating a production calendar modeling of a production line according to an exemplary embodiment, such as... Figure 8 As shown. In Figure 8The system includes four classes: production line calendar, production line time-segment calendar, production calendar, and shift information. The production line calendar binds the production calendar to the production line, allowing different production lines to have different production calendars. A production line calendar can contain one or more production line time-segment calendars. The time-segment calendar defines the production calendar used by a production line at different times. Each production line time-segment calendar corresponds to one production calendar. The production calendar defines the basic calendar rules within the factory. The calendar details include the work status for each day of the week, including: calendar shift type (normal calendar and exception calendar). A normal calendar indicates a regular work schedule, such as working every Monday and resting every Sunday. An exception calendar indicates special circumstances, such as statutory holidays or temporary overtime. Workday indicates the week number; this is not required in the exception calendar. "Whether working" indicates whether work is scheduled for the corresponding date. Shifts: For workdays requiring production, one or more shifts need to be specified to support multiple shifts. Repetition frequency and repetition type define the repetition pattern of the calendar details. Repetition types include day, week, month, and year. For example, a repetition frequency of 1 and a repetition type of "week" indicate that this day of the week is either a workday or a non-workday. Start and end times: For exception calendars, the exception period needs to be specified, such as no production from XX month xx day to YY month yy day, and production on ZZ month zz day as a make-up day. The shift information defines the effective working time periods and durations for different shifts. For example, shift 1 starts at 08:00 and ends at 12:00; shift 2 starts at 14:00 and ends at 18:00. Shifts 1 and 2 can together form a day shift, with a total working time of 8 hours.

[0114] In this embodiment of the disclosure, the process of determining the initial production calendar can also be referred to as the calendar evaluation process.

[0115] In one exemplary embodiment, the calendar evaluation process is as follows: Figure 9 As shown. Figure 9 This is a schematic diagram illustrating a calendar evaluation method according to an exemplary embodiment, such as... Figure 9 As shown. In Figure 9 In this context, the first working time can also be referred to as the required working hours. Calendar assessment includes a required working hours calculation module and a calendar matching module; resources can also be referred to as materials.

[0116] The demand time calculation module is used to determine the first working time of the target resource. That is, it decomposes the product demand to obtain the material demand quantity at each level, and determines the optional production line and production takt time through the process route, thus determining the demand time of each production line. In the demand time calculation module, the role of calendar evaluation is to automatically calculate the weekly demand time of each production line within the demand cycle based on the demand, and match the optimal calendar. The calendar evaluation function includes two modules: demand time calculation and calendar matching. Synchronous demand forecasting (weekly dimension) is performed by the APS system, which can execute the production calendar determination method provided in the embodiments of this disclosure, to synchronize the master production schedule (MPS), after-sales plan, and main board plan from the upstream planning system weekly, and update the produced quantity of demand daily. The bill of materials (BOM) / product matrix is ​​decomposed. Based on the inventory (SKU) quantity of each resource in the demand plan, the semi-finished materials (defined in the product matrix) and usage are queried through the BOM to obtain the net demand quantity of each material. Process route decomposition is performed by querying the process route of each material, decomposing it to obtain all processes and optional production lines (corresponding to the target production line). Calculate the required working hours for a work section (weekly dimension) by summing the net demand for mobile phone materials in the same work section over the weeks. The required working hours are calculated as: Required Working Hours = (Weekly Demand / Yield Rate) / UPH, where the yield rate represents the yield rate of resources produced on the production line, and UPH is the output quantity per hour (Units Per Hour). Obtain the number of available production lines for a work section. If multiple available production lines exist for a work section (corresponding to the target production line), all available production lines can be retrieved by product project and work section. Calculate the required working hours for each production line (weekly dimension): Required working hours for each production line = Required working hours for the work section / Number of available production lines in the work section.

[0117] The calendar matching module is used to match the initial production calendar (also known as the minimum calendar) that meets the required working hours from the calendar rule pool (calendar pool) and bind it to the corresponding production line. Matching is performed on a weekly basis. It synchronizes statutory holidays and time off in lieu, retrieving these and adding them to all production calendars as exception calendars. It calculates available working hours by querying all work shifts in the calendar pool weekly and determining the available working hours (total working hours of the corresponding production calendar) based on shift duration. It matches the best calendar, selecting the calendar from the calendar pool with the fewest available working hours and those greater than or equal to the required working hours. Finally, it binds the matched calendar to the production line's time-segmented calendar according to the week's start and end dates.

[0118] It should be understood that the demand hour calculation in the calendar assessment module does not take into account capacity losses caused by ramp-up, line changes, etc. This means that there is still a probability of insufficient capacity and failure to meet delivery dates during production scheduling. Therefore, it is necessary to dynamically adjust the calendar for a specific day or shift based on the scheduling results during production scheduling, that is, to adjust the initial production calendar.

[0119] In this embodiment of the disclosure, the process of adjusting the daily working hours in the initial production calendar to the target production calendar can also be called flexible scheduling.

[0120] In one exemplary embodiment, the calendar evaluation process is as follows: Figure 10 As shown. Figure 10 This is a schematic diagram illustrating a calendar evaluation method according to an exemplary embodiment, such as... Figure 10 As shown. In Figure 10 In production scheduling optimization, the process of determining the time-related factors affecting the production of target resources within the first working time of the target production line, and determining the corresponding capacity loss time of the target production line based on the time-related factors, can be called production scheduling optimization.

[0121] exist Figure 10 In this process, all materials are allocated to production lines while meeting constraints, and indicators such as delivery date achievement rate, line utilization rate, and semi-finished product inventory are calculated to optimize production scheduling. If the initial production scheduling does not achieve 100% delivery date achievement (i.e., the target line produces the target resources according to the initial production calendar, but the completion date exceeds the last date of the target period), then bottleneck lines need to be identified and overtime is implemented to complete the bottleneck line identification. The bottleneck line is the line with the highest utilization rate. Overtime hours are determined based on the demand for the unmet needs in the production scheduling results and the UPH of the bottleneck line, completing the overtime calculation. If the production scheduling achieves 100% delivery date achievement but there is excess capacity (i.e., the target line produces the target resources according to the initial production calendar, and the completion date is before the last date of the target period), then high-yield lines need to be identified and their operating hours shortened to complete the high-yield line identification. The high-yield line is the line with the highest semi-finished product inventory. Based on the semi-finished product inventory surplus of high-production lines (semi-finished product resource inventory - resource safety stock) and UPH, determine the capacity surplus duration (corresponding reduction duration) and complete the capacity surplus duration calculation. Based on overtime hours or capacity surplus duration, adjust the shifts for a certain day of the week, and use the adjusted production calendar as the target production calendar.

[0122] In this embodiment of the disclosure, the adjustment of the initial production calendar can be based on the principle of "shifts with longer working hours are placed earlier." That is, the time that needs to be increased is allocated to the first few days of the week, and the time that needs to be decreased is allocated to the last few days of the week, such as... Figure 11 and Figure 12As shown.

[0123] Figure 11 This is a schematic diagram illustrating the addition of duration to an initial production calendar according to an exemplary embodiment, such as... Figure 11 As shown. In Figure 11 In the initial production calendar, the cycle is weekly, with production days from Monday to Saturday, and each production day having a working hour of 8 hours. If, based on the increased working hours, it is determined that 4 hours of working time need to be added to each week, then 2 hours can be added to the working hours on Mondays and Tuesdays to obtain the target production calendar. That is, in the target production calendar, the working hours on Mondays and Tuesdays are 10 hours, and the working hours from Wednesday to Saturday are 8 hours.

[0124] Figure 12 This is a schematic diagram illustrating the reduction of time in an initial production calendar according to an exemplary embodiment, such as... Figure 12 As shown. In Figure 12 In the initial production calendar, the cycle is weekly, with production days from Monday to Saturday, and each production day having a working hour of 8 hours. If, based on the reduction in working hours, it is determined that 4 hours of work time need to be reduced each week, then the working hours on Fridays and Saturdays can be reduced by 2 hours to obtain the target production calendar. That is, in the target production calendar, the working hours on Fridays and Saturdays are 6 hours, and the working hours from Monday to Thursday are 8 hours.

[0125] In one exemplary embodiment, the production calendar determination method provided by this disclosure can determine the corresponding target production calendar for the same target production line in different target time periods, as shown in Table 1. In Table 1, "double shift (day and night)" and "single day shift" in the production calendar represent shifts. "5*10*2", "5*8*2", and "6*10" represent the total working hours of the target production calendar.

[0126] Table 1

[0127]

[0128] In one exemplary embodiment, the production calendar determination method provided in this disclosure can determine corresponding target production calendars for different target production lines within the same target time period, as shown in Table 2. In Table 2, "day and night double shifts" in the production calendar represent shifts. "5*10*2" and "5*8*2" represent the total working hours of the target production calendar.

[0129] Table 2

[0130]

[0131] In this embodiment, by characterizing the first working time required for the target production line to produce the target resource within the target time period, a production calendar matching the first working time is determined as the initial production calendar. This achieves the selection of a production calendar matching the working time required for the target production line to produce the target resource, reducing the inefficiency and instability problems associated with manually generating production calendars. Furthermore, the production calendar determination method provided in this embodiment can be applied to an APS system to adjust the daily working time in the selected initial target production calendar based on a second working time that additionally characterizes the capacity loss time corresponding to the target production line. This ensures that the total working time of the adjusted target production calendar meets the first working time requirement, enabling the target production calendar to accurately schedule the production activities of the target production line to produce the target resource within the target time period, thereby improving the satisfaction of product demanders.

[0132] Furthermore, the method for determining the production calendar provided in this disclosure is also versatile and can be extended to the determination of production calendars in the large appliance industry, such as air conditioners and televisions.

[0133] Based on the same concept, embodiments of this disclosure also provide a device for determining a production calendar.

[0134] It is understood that the production calendar determination device provided in this disclosure includes hardware structures and / or software modules corresponding to each function in order to achieve the above-mentioned functions. In conjunction with the units and algorithm steps of the various examples disclosed in this disclosure, this disclosure can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed by hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the technical solutions of this disclosure.

[0135] Figure 13 This is a block diagram illustrating a production calendar determining device 100 according to an exemplary embodiment. (Refer to...) Figure 13 The device includes an acquisition unit 101, a processing unit 102, and a determination unit 103.

[0136] The acquisition unit 101 is used to acquire the target resources required to produce the target product in the target time period, wherein the resources are produced by the production line and different resources correspond to different production lines.

[0137] The processing unit 102 is used to determine the target production line corresponding to the target resource, determine the first working time, determine the production calendar matching the first working time as the initial production calendar, determine the time-influencing factors corresponding to the production of the target resource by the target production line within the first working time, and determine the capacity loss time corresponding to the target production line based on the time-influencing factors. The first working time represents the time required for the target production line to produce the target resource within the target time period. The production calendar records the production day of the production resource of the production line and the daily working time of the production day.

[0138] The determining unit 103 is used to adjust the daily working hours recorded in the initial production calendar so that the second working hours obtained after adjusting the daily working hours become the first working hours, thereby obtaining the target production calendar. The second working hours are the difference between the total working hours of the initial production calendar and the capacity loss time.

[0139] In one embodiment, the processing unit 102 determines the production calendar that matches the first working duration as the initial production calendar in the following manner: the production calendar with the highest matching degree with the first working duration is selected from the calendar rule pool as the initial production calendar, and the calendar rule pool records production calendars corresponding to different working durations.

[0140] In one embodiment, the processing unit 102 selects the production calendar with the highest matching degree with the first working duration from the calendar rule pool in the following manner: determining the total working duration of the production calendars in the calendar rule pool; selecting the production calendar in the calendar rule pool whose total working duration is greater than or equal to the first working duration and whose duration difference is the smallest, as the production calendar with a high matching degree with the first working duration, where the duration difference is the difference between the total working duration in the calendar rule pool and the first working duration.

[0141] In one embodiment, the determining unit 103 adjusts the daily working hours recorded in the initial production calendar in the following manner, so that the second working hours obtained after adjusting the daily working hours become the first working hours, thereby obtaining a target production calendar: in response to the second working hours being less than the first working hours, the difference between the first working hours and the second working hours is used as an added time; based on the added time, the daily working hours of the initial production calendar are increased, so that the second working hours obtained based on the initial production calendar after increasing the daily working hours become the first working hours; and the initial production calendar after increasing the daily working hours is used as the target production calendar.

[0142] In one embodiment, the determining unit 103 adjusts the daily working hours recorded in the initial production calendar in the following manner, so that the second working hours obtained after adjusting the daily working hours become the first working hours, thereby obtaining a target production calendar: in response to the second working hours being longer than the first working hours, the difference between the second working hours and the first working hours is used as the reduction period; based on the reduction period, the daily working hours of the initial production calendar are reduced, so that the second working hours obtained based on the initial production calendar after reducing the daily working hours become the first working hours; and the initial production calendar after reducing the daily working hours is used as the target production calendar.

[0143] In one embodiment, the determining unit 103 adjusts the daily working hours recorded in the initial production calendar in the following manner, so that the second working hours obtained after adjusting the daily working hours become the first working hours, thereby obtaining the target production calendar: in response to the second working hours being the same as the first working hours, the initial production calendar is used as the target production calendar.

[0144] In one embodiment, the production calendar also records shift information, which represents the time period in a production day; the processing unit 102 determines the total working time of the production calendar in the calendar rule pool in the following way: determining the target shift information of the target line, which represents the time period of producing the target resource in a production day; and using the duration of the production calendar in the calendar rule pool during the target shift as the total working time of the production calendar in the calendar rule pool.

[0145] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.

[0146] Figure 14 This is a block diagram illustrating a defined apparatus 200 for generating a calendar according to an exemplary embodiment. For example, apparatus 200 may be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness equipment, personal digital assistant, etc.

[0147] Reference Figure 14 The device 200 may include one or more of the following components: processing component 202, memory 204, power component 206, multimedia component 208, audio component 210, input / output (I / O) interface 212, sensor component 214, and communication component 216.

[0148] Processing component 202 typically controls the overall operation of device 200, such as operations associated with display, telephone calls, data communication, camera operation, and recording. Processing component 202 may include one or more processors 220 to execute instructions to perform all or part of the steps of the methods described above. Furthermore, processing component 202 may include one or more modules to facilitate interaction between processing component 202 and other components. For example, processing component 202 may include a multimedia module to facilitate interaction between multimedia component 208 and processing component 202.

[0149] Memory 204 is configured to store various types of data to support the operation of device 200. Examples of such data include instructions for any application or method operating on device 200, contact data, phonebook data, messages, pictures, videos, etc. Memory 204 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.

[0150] The power supply component 206 provides power to the various components of the device 200. The power supply component 206 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power to the device 200.

[0151] Multimedia component 208 includes a screen that provides an output interface between the device 200 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of the touch or swipe action but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 208 includes a front-facing camera and / or a rear-facing camera. When the device 200 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or the rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.

[0152] Audio component 210 is configured to output and / or input audio signals. For example, audio component 210 includes a microphone (MIC) configured to receive external audio signals when device 200 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 204 or transmitted via communication component 216. In some embodiments, audio component 210 also includes a speaker for outputting audio signals.

[0153] I / O interface 212 provides an interface between processing component 202 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.

[0154] Sensor assembly 214 includes one or more sensors for providing status assessments of various aspects of device 200. For example, sensor assembly 214 may detect the on / off state of device 200, the relative positioning of components such as the display and keypad of device 200, changes in the position of device 200 or a component of device 200, the presence or absence of user contact with device 200, the orientation or acceleration / deceleration of device 200, and temperature changes of device 200. Sensor assembly 214 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 214 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 214 may also include an accelerometer, a gyroscope, a magnetometer, a pressure sensor, or a temperature sensor.

[0155] Communication component 216 is configured to facilitate wired or wireless communication between device 200 and other devices. Device 200 can access wireless networks based on communication standards, such as WiFi, 2G, or 3G, or combinations thereof. In one exemplary embodiment, communication component 216 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 216 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0156] In an exemplary embodiment, the apparatus 200 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the methods described above.

[0157] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 204 including instructions, which can be executed by a processor 220 of the device 200 to perform the above-described method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.

[0158] Figure 15 This is a block diagram illustrating a determining apparatus 300 for producing a calendar according to an exemplary embodiment. For example, apparatus 300 may be provided as a server. (Refer to...) Figure 15 The apparatus 300 includes a processing component 322, which further includes one or more processors, and memory resources represented by memory 332 for storing instructions, such as application programs, that can be executed by the processing component 322. The application programs stored in memory 332 may include one or more modules, each corresponding to a set of instructions. Furthermore, the processing component 322 is configured to execute instructions to perform the aforementioned method for determining the production calendar.

[0159] Device 300 may also include a power supply component 326 configured to perform power management of device 300, a wired or wireless network interface 350 configured to connect device 300 to a network, and an input / output (I / O) interface 358. Device 300 may operate on an operating system stored in memory 332, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, or similar.

[0160] It is understood that in this disclosure, "multiple" refers to two or more, and other quantifiers are similar. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, and B alone. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. The singular forms "a," "the," and "the" are also intended to include the plural forms unless the context clearly indicates otherwise.

[0161] It is further understood that the terms "first," "second," etc., are used to describe various types of information, but this information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another, and do not indicate a specific order or degree of importance. In fact, the expressions "first," "second," etc., are completely interchangeable. For example, without departing from the scope of this disclosure, first information can also be referred to as second information, and similarly, second information can also be referred to as first information.

[0162] It can be further understood that, unless otherwise specified, "connection" includes both direct connections where no other components exist between the two parties and indirect connections where other components exist between them.

[0163] It is further understood that although operations are described in a specific order in the accompanying drawings in the embodiments of this disclosure, this should not be construed as requiring these operations to be performed in the specific order or serial order shown, or requiring all of the shown operations to be performed to obtain the desired result. In certain environments, multitasking and parallel processing may be advantageous.

[0164] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein.

[0165] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.

Claims

1. A method for determining a production calendar, characterized in that, include: Acquire the target resources required to produce the target product during the target time period, wherein the resources are produced through production lines, and different resources correspond to different production lines; The target production line corresponding to the target resource is determined, and a first working time is determined, wherein the first working time represents the time required for the target production line to produce the target resource within the target time period; A production calendar matching the first working duration is determined as the initial production calendar, wherein the production calendar records the production day of the line production resources and the daily working duration of the production day; Determine the duration-influencing factors for the production of the target resource by the target production line within the first working time, and determine the capacity loss duration corresponding to the target production line based on the duration-influencing factors; Adjust the daily working hours recorded in the initial production calendar so that the second working hours obtained after the adjustment are the same as the first working hours, thus obtaining the target production calendar. The second working hours are the difference between the total working hours of the initial production calendar and the capacity loss time.

2. The method according to claim 1, characterized in that, The step of determining a production calendar that matches the first working duration as the initial production calendar includes: The production calendar with the highest matching degree with the first working duration is selected from the calendar rule pool as the initial production calendar. The calendar rule pool records production calendars corresponding to different working durations.

3. The method according to claim 2, characterized in that, The step of selecting the production calendar with the highest matching degree with the first working duration from the calendar rule pool includes: Determine the total working time for producing calendars in the calendar rule pool; The production calendar with the smallest time difference among the total working hours in the calendar rule pool that is greater than or equal to the first working hour is selected as the production calendar with a high degree of matching with the first working hour. The time difference is the difference between the total working hours in the calendar rule pool and the first working hour.

4. The method according to claim 1, characterized in that, The step of adjusting the daily working hours recorded in the initial production calendar so that the second working hours obtained after the adjustment are the same as the first working hours, to obtain the target production calendar, includes: In response to the second working time being less than the first working time, the difference between the first working time and the second working time is used as the additional working time. Based on the increased duration, the daily working hours of the initial production calendar are increased so that the second working hours obtained from the initial production calendar after increasing the daily working hours become the first working hours; The initial production calendar after increasing the daily working hours is used as the target production calendar.

5. The method according to claim 1 or 4, characterized in that, The step of adjusting the daily working hours recorded in the initial production calendar so that the second working hours obtained after the adjustment are the same as the first working hours, to obtain the target production calendar, includes: In response to the second working time being greater than the first working time, the difference between the second working time and the first working time is used as the reduction time. Based on the reduced duration, the daily working hours of the initial production calendar are reduced so that the second working hours obtained from the initial production calendar after reducing the daily working hours become the first working hours. The initial production calendar after reducing daily working hours is used as the target production calendar.

6. The method according to claim 1 or 4, characterized in that, The step of adjusting the daily working hours recorded in the initial production calendar so that the second working hours obtained after the adjustment are the same as the first working hours, to obtain the target production calendar, includes: In response to the second working duration being the same as the first working duration, the initial production calendar is used as the target production calendar.

7. The method according to claim 3, characterized in that, The production calendar also records shift information, which represents a time period within a production day. Determining the total working time for producing calendars in the calendar rule pool includes: Determine the target shift information of the target production line, wherein the target shift information represents the time period during which the target resource is produced on a production day; The duration of the calendar produced in the calendar rule pool during the target shift is taken as the total working time of the calendar produced in the calendar rule pool.

8. A device for determining the production calendar, characterized in that, include: The acquisition unit is used to acquire the target resources required to produce the target product in the target time period. The resources are produced by the production line, and different resources correspond to different production lines. The processing unit is configured to determine the target production line corresponding to the target resource, determine a first working duration, determine a production calendar matching the first working duration as an initial production calendar, determine the duration influencing factors of the target production line producing the target resource within the first working duration, and determine the capacity loss duration corresponding to the target production line based on the duration influencing factors. The first working duration represents the duration required for the target production line to produce the target resource within the target time period, and the production calendar records the production day of the production resource and the daily working duration of the production day. A determining unit is used to adjust the daily working hours recorded in the initial production calendar, so that the second working hours obtained after adjusting the daily working hours are the first working hours, thereby obtaining the target production calendar, wherein the second working hours are the difference between the total working hours of the initial production calendar and the capacity loss time.

9. The apparatus according to claim 8, characterized in that, The processing unit determines a production calendar that matches the first working duration as the initial production calendar using the following method: The production calendar with the highest matching degree with the first working duration is selected from the calendar rule pool as the initial production calendar. The calendar rule pool records production calendars corresponding to different working durations.

10. The apparatus according to claim 9, characterized in that, The processing unit selects the production calendar with the highest matching degree with the first working duration from the calendar rule pool in the following manner: Determine the total working time for producing calendars in the calendar rule pool; The production calendar with the smallest time difference among the total working hours in the calendar rule pool that is greater than or equal to the first working hour is selected as the production calendar with a high degree of matching with the first working hour. The time difference is the difference between the total working hours in the calendar rule pool and the first working hour.

11. The apparatus according to claim 8, characterized in that, The determining unit adjusts the daily working hours recorded in the initial production calendar in the following manner, so that the second working hour obtained after adjusting the daily working hours becomes the first working hour, thereby obtaining the target production calendar: In response to the second working time being less than the first working time, the difference between the first working time and the second working time is used as the additional working time. Based on the increased duration, the daily working hours of the initial production calendar are increased so that the second working hours obtained from the initial production calendar after increasing the daily working hours become the first working hours; The initial production calendar after increasing the daily working hours is used as the target production calendar.

12. The apparatus according to claim 8 or 11, characterized in that, The determining unit adjusts the daily working hours recorded in the initial production calendar in the following manner, so that the second working hour obtained after adjusting the daily working hours becomes the first working hour, thereby obtaining the target production calendar: In response to the second working time being greater than the first working time, the difference between the second working time and the first working time is used as the reduction time. Based on the reduced duration, the daily working hours of the initial production calendar are reduced so that the second working hours obtained from the initial production calendar after reducing the daily working hours become the first working hours. The initial production calendar after reducing daily working hours is used as the target production calendar.

13. The apparatus according to claim 8 or 11, characterized in that, The determining unit adjusts the daily working hours recorded in the initial production calendar in the following manner, so that the second working hour obtained after adjusting the daily working hours becomes the first working hour, thereby obtaining the target production calendar: In response to the second working duration being the same as the first working duration, the initial production calendar is used as the target production calendar.

14. The apparatus according to claim 10, characterized in that, The production calendar also records shift information, which represents a time period within a production day. The processing unit determines the total working time for producing calendars in the calendar rule pool using the following method: Determine the target shift information of the target production line, wherein the target shift information represents the time period during which the target resource is produced on a production day; The duration of the calendar produced in the calendar rule pool during the target shift is taken as the total working time of the calendar produced in the calendar rule pool.

15. An electronic device, characterized in that, include: processor; Memory used to store processor-executable instructions; The processor is configured to perform the method described in any one of claims 1 to 7.

16. A storage medium, characterized in that, The storage medium stores instructions that, when executed by a processor, enable the terminal to perform the method described in any one of claims 1 to 7.