CN113256171B - Service plan generation method and system - Google Patents

Service plan generation method and system Download PDF

Info

Publication number
CN113256171B
CN113256171B CN202110723639.2A CN202110723639A CN113256171B CN 113256171 B CN113256171 B CN 113256171B CN 202110723639 A CN202110723639 A CN 202110723639A CN 113256171 B CN113256171 B CN 113256171B
Authority
CN
China
Prior art keywords
plan
production
task
raw material
specified product
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110723639.2A
Other languages
Chinese (zh)
Other versions
CN113256171A (en
Inventor
张锦华
邓宝军
仇辉
张小卫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ecarx Hubei Tech Co Ltd
Original Assignee
Hubei Ecarx Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hubei Ecarx Technology Co Ltd filed Critical Hubei Ecarx Technology Co Ltd
Priority to CN202110723639.2A priority Critical patent/CN113256171B/en
Publication of CN113256171A publication Critical patent/CN113256171A/en
Application granted granted Critical
Publication of CN113256171B publication Critical patent/CN113256171B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0631Resource planning, allocation, distributing or scheduling for enterprises or organisations
    • G06Q10/06315Needs-based resource requirements planning or analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/08Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
    • G06Q10/087Inventory or stock management, e.g. order filling, procurement or balancing against orders
    • G06Q10/0875Itemisation or classification of parts, supplies or services, e.g. bill of materials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/04Manufacturing
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Abstract

The embodiment of the invention provides a method and a system for generating a service plan, which relate to the technical field of computers, and the method comprises the following steps: when an instruction generated aiming at a service plan of a specified product is received, adding a plurality of production tasks corresponding to the specified product in a preset task pool; wherein a production task is used to generate an initial master production plan for a given product; starting a preset number of threads; acquiring a current unprocessed production task from a preset task pool through each thread, and generating a corresponding initial main production plan within a preset future time period according to the production task until no unprocessed production task exists in the preset task pool; and merging the initial main production plans to obtain a final main production plan of the specified product. Based on the above processing, the business plan can be generated efficiently, and the efficiency of generating the business plan can be improved.

Description

Service plan generation method and system
Technical Field
The invention relates to the technical field of computers, in particular to a method and a system for generating a service plan.
Background
In the industrial 4.0 background, mass-customized production will be a trend. In order to ensure timely production of finished products and reduce the material storage cost, so that enterprises gain advantages in fierce market competition and obtain the best economic benefit, effective business plans need to be formulated.
In one implementation, the business plan may include a Master Production Schedule (MPS) and a Material Requirement Planning (MRP). Based on the raw material demand plan, the raw materials can be ensured to be in place in time, and then finished products are produced, and further, the main production plan is ensured to be completed in sequence, and the finished products are determined to be produced in time.
Disclosure of Invention
An object of the embodiments of the present invention is to provide a method and a system for generating a business plan, so as to effectively generate the business plan and improve the efficiency of generating the business plan. The specific technical scheme is as follows:
in a first aspect, to achieve the above object, an embodiment of the present invention discloses a method for generating a business plan, where the method includes:
when an instruction generated aiming at a service plan of a specified product is received, adding a plurality of production tasks corresponding to the specified product in a preset task pool; wherein a production task is used to generate an initial master production plan for a given product;
starting a preset number of threads;
acquiring a current unprocessed production task from the preset task pool through each thread, and generating a corresponding initial main production plan within a preset future time period according to the production task until no unprocessed production task exists in the preset task pool;
and merging the initial main production plans to obtain a final main production plan of the specified product.
Optionally, after the merging of the initial main production plans to obtain the final main production plan of the specified product, the method further includes:
adding a plurality of demand tasks corresponding to the specified products in the preset task pool; wherein a demand task is used to generate an initial raw material demand plan for a raw material supplier for a given product;
acquiring a current unprocessed requirement task from the preset task pool through each thread, and generating a corresponding initial raw material requirement plan according to a final main production plan of a specified product corresponding to the requirement task until the unprocessed requirement task does not exist in the preset task pool;
and merging the initial raw material demand plans to obtain a final raw material demand plan of the specified product.
Optionally, the final master production plan corresponding to each specified product includes: the projected production volume for the given product at each of the product delivery window times within the preset future time period;
before generating the corresponding initial raw material demand plan according to the final main production plan of the specified product corresponding to the demand task, the method further includes:
acquiring material information of a specified product corresponding to the demand task; wherein the material information of the specified product comprises: a raw material list of the specified product, a production cycle of the specified product, and a shipping cycle of the specified product;
generating a corresponding initial raw material demand plan according to a final main production plan of a specified product corresponding to the demand task, wherein the method comprises the following steps:
acquiring the planned production capacity of the specified product at each finished product delivery window time, which is recorded in the final main production plan of the specified product corresponding to the demand task;
for each finished product delivery window time, determining a corresponding raw material scheduled arrival time based on the finished product delivery window time, the production cycle of the specified product, and the transportation cycle of the specified product;
determining the preset material delivery window time before the scheduled arrival time of the raw material as the final material delivery window time;
the number of raw materials that need to be delivered for the final material delivery window time is determined based on the projected production volume for the final material delivery window time and the raw material list for the specified product.
Optionally, after the merging of the initial main production plans to obtain the final main production plan of the specified product, the method further includes:
determining a work schedule for the specified product based on the final master production plan;
after the merging of the initial raw material demand plans into a final raw material demand plan for the given product, the method further includes:
generating a raw material purchase order based on the final raw material demand plan.
Optionally, after determining the number of raw materials to be delivered at the final material delivery window time according to the planned production amount at the final material delivery window time and the raw material list of the specified product, the method further comprises:
calculating the current quota rate of each supplier according to each raw material needing to be delivered in the final material delivery window time based on the current quota and the historical distributed number of each supplier;
determining a provider with the minimum current quota rate as a current provider to be distributed;
the number of raw materials to be dispensed for the current supplier to be dispensed is determined based on the number of raw materials required to be delivered by the final material delivery window time.
Optionally, before generating the initial main production plan within the corresponding preset future time period according to the production task, the method further includes:
acquiring the demand of a specified product corresponding to the production task in the preset future time period;
acquiring the current inventory of the specified product corresponding to the production task;
generating a corresponding initial main production plan within a preset future time period according to the production task, wherein the generating comprises the following steps:
calculating the quantity of specified products corresponding to the production task produced on each working day in the preset future time period as a first quantity based on the demand quantity and the current inventory quantity;
and calculating the sum of the first quantity corresponding to each working day between the finished product delivery window time and the next finished product delivery window time as the scheduled production capacity of the specified product corresponding to the production task at the finished product delivery window time aiming at each finished product delivery window time in the preset future time period.
In a second aspect, in order to achieve the above object, an embodiment of the present invention discloses a service plan generating system, where the system includes: a business plan generating server, wherein: the service plan generating server is used for adding a plurality of production tasks corresponding to the specified products in a preset task pool when receiving a service plan generating instruction for the specified products; wherein a production task is used to generate an initial master production plan for a given product; starting a preset number of threads; acquiring a current unprocessed production task from the preset task pool through each thread, and generating a corresponding initial main production plan within a preset future time period according to the production task until no unprocessed production task exists in the preset task pool; and merging the initial main production plans to obtain a final main production plan of the specified product.
Optionally, the service plan generating server is further configured to add a plurality of demand tasks corresponding to the specified product in the preset task pool after the initial main production plans are merged to obtain a final main production plan of the specified product; wherein a demand task is used to generate an initial raw material demand plan for a raw material supplier for a given product; acquiring a current unprocessed requirement task from the preset task pool through each thread, and generating a corresponding initial raw material requirement plan according to a final main production plan of a specified product corresponding to the requirement task until the unprocessed requirement task does not exist in the preset task pool; and merging the initial raw material demand plans to obtain a final raw material demand plan of the specified product.
Optionally, the final master production plan corresponding to each specified product includes: the projected production volume for the given product at each of the product delivery window times within the preset future time period; the system also comprises a material management server; the service plan generating server is further configured to obtain material information of the specified product corresponding to the demand task from the material management server before generating the corresponding initial raw material demand plan according to the final main production plan of the specified product corresponding to the demand task; wherein the material information of the specified product comprises: a raw material list of the specified product, a production cycle of the specified product, and a shipping cycle of the specified product; acquiring the planned production capacity of the specified product at each finished product delivery window time, which is recorded in the final main production plan of the specified product corresponding to the demand task; for each finished product delivery window time, determining a corresponding raw material scheduled arrival time based on the finished product delivery window time, the production cycle of the specified product, and the transportation cycle of the specified product; determining the preset material delivery window time before the scheduled arrival time of the raw material as the final material delivery window time; and determining the number of raw materials to be delivered at the final material delivery window time according to the planned production capacity of the finished product delivery window time and the raw material list of the specified product, and obtaining a corresponding initial raw material demand plan.
Optionally, the system further comprises a delivery management server and a purchase management server; the service plan generating server is further configured to send the final main production plan of the specified product to the delivery management server after the initial main production plans are merged to obtain the final main production plan of the specified product; the delivery management server is used for determining the working progress of the specified product based on the final main production plan; the business plan generating server is further configured to send the final raw material demand plan of the specified product to the procurement management server after the initial raw material demand plans are merged to obtain the final raw material demand plan of the specified product; and the purchase management server is used for generating a raw material purchase order based on the final raw material demand plan.
Optionally, the service plan generating server is further configured to, after determining the number of raw materials that need to be delivered at the final material delivery window time according to the planned production amount at the final material delivery window time and the raw material list of the specified product, calculate, for each raw material that needs to be delivered at the final material delivery window time, a current quota rate of each supplier based on a current quota of each supplier and a historical allocated number; determining a provider with the minimum current quota rate as a current provider to be distributed; the number of raw materials to be dispensed for the current supplier to be dispensed is determined based on the number of raw materials required to be delivered by the final material delivery window time.
Optionally, the system further comprises an inventory management server and a demand management server; the service plan generating server is further configured to obtain, from the demand management server, a demand amount of a specified product corresponding to the production task within a preset future time period before generating an initial main production plan within the corresponding preset future time period according to the production task; acquiring the current inventory of the specified product corresponding to the production task from the inventory management server; calculating the quantity of specified products corresponding to the production task produced on each working day in the preset future time period as a first quantity based on the demand quantity and the current inventory quantity; and calculating the sum of the first quantity corresponding to each working day between the finished product delivery window time and the next finished product delivery window time as the scheduled production capacity of the specified product corresponding to the production task at the finished product delivery window time aiming at each finished product delivery window time in the preset future time period.
In order to achieve the above object, an embodiment of the present invention further discloses an electronic device, where the electronic device includes a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete mutual communication through the communication bus;
the memory is used for storing a computer program;
the processor is configured to implement the business plan generating method according to the first aspect when executing the program stored in the memory.
An embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the business plan generating method according to the first aspect is implemented.
An embodiment of the present invention further provides a computer program product containing instructions, which when run on a computer, causes the computer to execute any one of the above-mentioned service plan generating methods.
The embodiment of the invention has the following beneficial effects:
according to the business plan generating method provided by the embodiment of the invention, when an instruction for generating the business plan of a specified product is received, a plurality of production tasks corresponding to the specified product can be added into a preset task pool; wherein a production task is used to generate an initial master production plan for a given product; starting a preset number of threads; acquiring a current unprocessed production task from a preset task pool through each thread, and generating a corresponding initial main production plan within a preset future time period according to the production task until no unprocessed production task exists in the preset task pool; and merging the initial main production plans to obtain a final main production plan of the specified product.
Based on the business plan generating method provided by the embodiment of the invention, the final main production plan can be obtained by combining all the initial main production plans. In addition, the initial main production plan for different specified products is generated in a multi-thread and preset task pool mode, so that each thread can continue to complete the next initial main production plan based on the currently unprocessed production task in the preset task pool after the initial main production plan corresponding to one production task is completed.
Of course, not all of the advantages described above need to be achieved at the same time in the practice of any one product or method of the invention.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other embodiments can be obtained by referring to these drawings.
Fig. 1 is a flowchart of a service plan generating method according to an embodiment of the present invention;
FIG. 2 is a flow chart of an algorithm based on a Fork/Join concurrent architecture according to an embodiment of the present invention;
fig. 3 is a flowchart of another service plan generating method according to an embodiment of the present invention;
fig. 4 is a flowchart of another service plan generating method according to an embodiment of the present invention;
FIG. 5 is a diagram of a micro-service architecture according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of a product delivery process according to an embodiment of the present invention;
FIG. 7 is a schematic flow chart of generating a master production plan according to an embodiment of the present invention;
FIG. 8 is a schematic flow chart illustrating a process for generating a raw material demand plan according to an embodiment of the present invention;
fig. 9 is a structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived from the embodiments given herein by one of ordinary skill in the art, are within the scope of the invention.
The embodiment of the invention provides a business plan generating method, which can be applied to electronic equipment, wherein the electronic equipment is used for generating a business plan of a product.
Referring to fig. 1, fig. 1 is a flowchart of a business plan generating method according to an embodiment of the present invention, where the method may include the following steps:
s101: and when an instruction generated aiming at the service plan of the specified product is received, adding a plurality of production tasks corresponding to the specified product in a preset task pool.
Wherein a production task is used to generate an initial master production plan for a given product.
S102: and starting a preset number of threads.
S103: and acquiring a current unprocessed production task from the preset task pool through each thread, and generating a corresponding initial main production plan within a preset future time period according to the production task until no unprocessed production task exists in the preset task pool.
S104: and merging the initial main production plans to obtain a final main production plan of the specified product.
Based on the business plan generating method provided by the embodiment of the invention, the final main production plan can be obtained by combining all the initial main production plans. In addition, the initial main production plan for different specified products is generated in a multi-thread and preset task pool mode, so that each thread can continue to complete the next initial main production plan based on the currently unprocessed production task in the preset task pool after the initial main production plan corresponding to one production task is completed.
In one embodiment, a business plan may be generated based on a Fork/Join concurrent architecture.
Referring to fig. 2, fig. 2 is a flowchart of an algorithm based on Fork/Join concurrency architecture according to an embodiment of the present invention.
The Fork/Join framework is a framework provided by Java 7 and used for executing tasks in parallel, and can split a large task into a plurality of small tasks and combine execution results of the small tasks to obtain a result of the large task.
The Fork/Join execution task mainly comprises two parts:
firstly, task splitting: the Fork/Join framework needs to split a task into sufficiently small subtasks, and if the subtasks are large, the subtasks are continuously split. That is, in the embodiment of the present invention, a plurality of production tasks corresponding to a specified product are added to a preset task pool.
Secondly, executing tasks and combining results: and respectively putting the split subtasks into a work queue, and then starting a plurality of threads to respectively obtain the subtasks from the work queue for execution. The results of the executed subtasks are placed in another queue, a thread is started to take the results from the queue, and then the results are combined. That is, in the embodiment of the present invention, each thread acquires a current unprocessed production task from a preset task pool, and generates a corresponding initial main production plan within a preset future time period according to the production task until no unprocessed production task exists in the preset task pool; and merging the initial main production plans to obtain a final main production plan of the specified product.
Specifically, using the Fork/Join framework, a Fork Join task needs to be created, and the class provides a mechanism for executing Fork and Join in the task. In general, the Fork Join Task class does not need to be directly integrated, but only needs to inherit its subclasses, and the Fork/Join framework provides a subclass: recursion Task, which represents a Task with a returned result.
In fig. 2, the task is submitted to the Fork/Join framework in a Submit mode, and the processing result of the Fork/Join framework for the task can be obtained in a Get mode. The Fork/Join framework puts a task (i.e., MyForkJoinTask) into a thread to run. If the data amount required to be calculated by the current task is too large, the task is divided into two subtasks, and each subtask is respectively responsible for calculating half of data calculation. And if the data quantity required to be calculated in the split subtasks is small enough, processing the subtasks, accumulating the processing results (namely Join), and returning the processing results to the upper layer task. And if the data amount required to be calculated by each sub-task obtained by splitting is still overlarge, continuing splitting the sub-tasks, and so on.
The MyForkJoinTask task is a specific task that can run in the Fork/Join framework, and only this type of task can be split and merged in the Fork/Join framework. The forkjoinWorkerThread thread (including thread 1 and thread 2 in FIG. 2) is a characteristic thread running in the Fork/Join framework, and has the characteristics of an ordinary thread, and the most important characteristic is that each forkjoinWorkerThread thread has an independent Work Queue (i.e. Work Queue [ ]) for storing sub-tasks obtained by splitting. That is, MyForkJoinTask needs to be executed through Pool (thread Pool). The split subtasks are added to a work queue maintained by the current thread and enter the head of the work queue. When a task is temporarily not available in the work queue of one thread, it randomly acquires a task from the tail of the work queue of other threads (i.e., work-stealing).
The Fork method is used for placing the newly created subtasks into the work queue of the current thread, and the Fork/Join framework determines whether to let the task wait in the work queue or create a new forkjoinworkkerthread to run the task or call other forkjoinworkkerthread waiting for the task to run the task according to the state of the forkjoinworkkerthread currently executing MyForkJoinTask concurrently.
If there are too few threads active in the current thread pool (not too few threads present), the Fork/Join framework can create a new thread. In addition, the tasks in the work queue may be executed in a first-in first-out mode, or in a last-in first-out mode. Wherein Base refers to the bottom of the work queue, i.e., the task that enters the work queue first, and Top refers to the Top of the work queue, i.e., the task that enters the work queue later.
For S101, there may be one or more specific products, that is, a production plan for one specific product or a production plan for a plurality of specific products may be generated at a time.
In one embodiment, an initial master production plan may also be for a requester of a specified product. The demander of a given product is the customer who needs the given product. That is, one designated product may correspond to one demander or may correspond to a plurality of demanders. The demand amount and the demand time of each demander for the specified product can be the same or different.
In one embodiment, an initial master production plan for a given product may include: the specified product is produced at a future time period corresponding to a respective finished product delivery window time of the requester. That is to say, the method of the embodiment of the present invention can determine the production amount of each designated product in each time slot according to the requirement of the customer.
In step S103, the initial main production schedules are merged to obtain the total production (i.e. the planned production) of the specified product for each of the requesters within the predetermined future time period of the finished product delivery window.
In one embodiment, referring to fig. 3, on the basis of fig. 1, after the step S104, the method may further include the steps of:
s105: and adding a plurality of demand tasks corresponding to the specified products in a preset task pool.
Wherein a demand task is used to generate an initial raw material demand plan for a raw material supplier for a given product.
S106: and acquiring a current unprocessed requirement task from the preset task pool through each thread, and generating a corresponding initial raw material requirement plan according to a final main production plan of a specified product corresponding to the requirement task until the unprocessed requirement task does not exist in the preset task pool.
S107: and merging the initial raw material demand plans to obtain a final raw material demand plan of the specified product.
In an embodiment of the present invention, the raw material supplier of a given product is a customer who provides raw materials for producing the given product. A given product may correspond to a plurality of raw materials. One raw material may correspond to one raw material supplier, or may correspond to a plurality of raw material suppliers. The same raw material may be present in the raw materials corresponding to different specified products, or different raw materials may be present. The supply amount of the raw material may be the same or different for each raw material supplier.
In one embodiment, an initial raw material demand plan for a given product may include: the raw material supplier for the given product needs to deliver the number of raw materials at each material delivery window time. That is to say, the method of the embodiment of the present invention may determine the requirement plan of the corresponding raw material according to the production plan of the specified product, so that the provision of the raw material can ensure the smooth completion of the specified product.
For step S107, the initial raw material demand schedules are combined, and for the same supplier, the total number of raw materials that the supplier needs to deliver at each material delivery window time can be obtained.
In one embodiment, the final master production plan for each specified product includes: the projected production volume for the given product at each of the finished product delivery window times within the preset future time period.
Accordingly, referring to fig. 4, on the basis of fig. 3, before step S106, the method may further include the steps of:
s108: and acquiring material information of the specified product corresponding to the demand task.
Wherein the material information of the specified product comprises: a raw material list of the specified product, a production cycle of the specified product, and a shipping cycle of the specified product.
Further, the step S106 may include the steps of:
s1061: and acquiring a current unprocessed demand task from the preset task pool through each thread, and acquiring the planned production capacity of the specified product at each finished product delivery window time, which is recorded in the final main production plan of the specified product corresponding to the demand task.
S1062: for each finished product delivery window time, determining a corresponding raw material scheduled arrival time based on the finished product delivery window time, the production cycle of the specified product, and the transportation cycle of the specified product.
S1063: and determining the preset material delivery window time before the scheduled arrival time of the raw material as the final material delivery window time.
S1064: the number of raw materials that need to be delivered for the final material delivery window time is determined based on the projected production volume for the final material delivery window time and the raw material list for the specified product.
Wherein the finished delivery window time is used to indicate a point in time of delivery requested for a given product by a requester of the given product. For example, the number may be monday per week or wednesday per week.
The material delivery window time is used to indicate the delivery time required for the raw material by the raw material demander. For example, the number may be tuesday per week or thursday per week.
In one embodiment, a business plan may be generated based on the microservice architecture. That is, the service plan generating method provided in the embodiment of the present invention may be applied to a service plan generating server in a service plan generating system based on a microservice architecture.
And the material management server in the business plan generating system is used for managing the material information of the specified product. Correspondingly, when the raw material demand plan needs to be generated, the business plan generation server can acquire material information of the specified product from the material management server, and generate the raw material demand plan based on the acquired material information. The raw material list for a given product may include: the type and number of raw materials required to produce the given product.
And aiming at each finished product delivery window time, the production period of the specified product is advanced on the basis of the finished product delivery window time, and the scheduled arrival time of the corresponding raw material can be obtained after the transportation period of the specified product, so that the previous preset material delivery window time of the scheduled arrival time can be determined and is the final material delivery window time. In addition, if the determined final material delivery window time is a non-working day, the final material delivery window time may be advanced to the previous working day.
Since the final master production schedule contains the scheduled production volumes for each end product delivery window time, the scheduled production volumes for the corresponding end product delivery window time can be calculated, multiplied by the number of raw materials required to produce the specified product as recorded in the raw material list, to yield the number of raw materials required to be delivered for that end product delivery window time. Further, if the stock amount of the raw material exists, the stock amount may be subtracted from the calculated number of the raw materials to be delivered to obtain the final number of the raw materials to be delivered.
In one implementation, the raw material demand plan may also be determined according to packaging rules of the raw materials. For example, if 7 raw materials are required to be packed in one package and the calculated final number to be delivered is less than the integral multiple of 7, the number of the raw materials can be supplemented to the integral multiple of 7, and the supplemented number can be continued to the next calculation for deduction.
Referring to fig. 5, fig. 5 is a diagram of a microservice architecture according to an embodiment of the present invention.
The microservice architecture may include: client, presentation layer, Gateway layer (Gateway), service layer, and data layer.
Clients may include PCs (Personal computers) and mobile devices; the presentation layer may include: web (World Wide Web) applications and mobile APPs (applications).
The service layer may include:
a BOM (Bill Of Materials) system for managing a raw material list Of a given product.
And the ERP (Enterprise Resource Planning) system is used for generating a purchase order according to the final raw material demand plan and sending the purchase order to a supplier.
Services discovered by the service management of Nacos (a service providing a simple and easy-to-use set of features for fast implementation of dynamic service discovery, service configuration, service metadata and traffic management) include: the system comprises a Material management service, a demand management service, a product feature management, a business data management, a MPS (Master Production Schedule) & MRP (Material Requirement Planning) calculation, a delivery plan & order and other services, an MPS view and an MRP view.
The BOM system and the ERP system may interact with each Service discovered by the Nacos Service management through an ESB (Enterprise Service Bus). Specifically, the interactive data includes MBOM (Manufacturing Bill Of Materials), order status, and material price.
An LES (Logistics Execution System) is used for managing the inventory of specified products.
An SRM (Supplier Relationship Management) system is used for managing the non-delivery and in-transit situations of the purchase orders of the suppliers.
The MES (Manufacturing Execution System) is used to generate a product delivery schedule to guide the production of a factory.
LES and MES interact with NACO (Dynamic Naming and Configuration Service) Service management as described above.
Material management service: the management of products and raw materials is divided into, for example: managing the transportation period of the product or raw material, the production period of the product, the material code of the raw material, the name of the raw material, and the specification (how many are packaged one).
A demand management service: managing the type of the product in the sales order, the production base corresponding to the product, the raw material corresponding to the product, the product model, the product demand time and the product demand quantity.
Product characteristic management: and managing a raw material list corresponding to the product, wherein the raw material list is mainly used for converting the main production plan into the raw material demand plan.
And (3) service data management: managing inventory of products, delivered product quantity, undelivered product quantity, quota of suppliers, allocated quantity.
MPS & MRP calculation: for generating a master production plan and a raw material demand plan.
Delivery plan and order: the final master production plan is sent to the MES and the final raw material requirements plan is sent to the SRM.
MPS view: for displaying the main production plan.
MRP view: the method is used for displaying the material demand plan.
MES, LES and SRM can interact with each service discovered by Nacos service management through a Feign Client (a declarative webpage service Client) arranged by a configuration center. Specifically, the interactive data includes production plans (i.e., a master production plan for a given product), order status (raw material procurement orders), material plans (i.e., raw material demand plans), inventory information, and delivery plans (i.e., product delivery plans).
The database MySQL is used for storing all data involved in the process; the cache Redis is used for storing user login information; the file stores MinIO for storing documents such as manufacturing process, use instruction and the like of a specified product.
In the micro-service architecture, each service is sufficiently cohesive, codes are easy to understand, and development efficiency is high. The services are independently and continuously deployed, each service can be respectively subjected to load balancing expansion and database expansion, and each service can be deployed on a proper hardware server according to needs, so that a development team is easily expanded. In addition, a development team can be built for each service, fault tolerance is improved, memory leakage of one service cannot lead the whole system to be paralyzed, and the system cannot be limited on a certain technical stack for a long time.
The service plan generating server in the embodiment of the present invention corresponds to the MPS & MRP calculation service in fig. 5. The material management server corresponds to the material management service in fig. 5.
In one embodiment, after the step S104, the method may further include the steps of:
the method comprises the following steps: based on the final master production plan, a work schedule for the specified product is determined.
After the step 106, the method may further include the steps of:
step two: a raw material purchase order is generated based on the final raw material demand plan.
In one embodiment, the service plan generating system may further include a delivery management server and a procurement management server.
Accordingly, the business plan generating server may send the final master production plan for the specified product to the delivery management server, and may send the final raw material demand plan for the specified product to the procurement management server.
The delivery management server in the embodiment of the invention is equivalent to the MES system in the micro-service architecture. The purchase management server in the embodiment of the present invention is equivalent to the SEM system in the above microservice architecture.
The final master production schedule records the planned production volumes of the specified products at the various delivery window times of the finished products, and thus, based on the planned production volumes, the work schedule can be determined.
The final raw material demand plan records the number of raw materials assigned to each supplier, and therefore, based on this number, raw material purchase orders for each supplier can be determined.
In one embodiment, after the step S1064, the method may further include the steps of:
step 1: and calculating the current quota rate of each supplier according to each raw material needing to be delivered by the final material delivery window time based on the current quota and the historical allocated number of each supplier.
Step 2: and determining the provider with the minimum current quota rate as the current provider to be allocated.
And step 3: the number of raw materials to be dispensed for the current supplier to be dispensed is determined based on the number of raw materials required to be delivered by the final material delivery window time.
In embodiments of the present invention, the number of raw materials allocated to a supplier may be determined for each final material delivery window time. Specifically, two ways can be adopted:
the first method is as follows: the number of deliveries required for a final material delivery window time is divided to one supplier for each raw material.
The second method comprises the following steps: the number of deliveries required for one final material delivery window time is divided to multiple suppliers for each raw material based on the minimum allocation unit. For example, the minimum distribution unit may be 10 raw materials, or alternatively, may be 20 raw materials.
Based on the two manners, when determining the suppliers needing to distribute the raw materials, the current quota rate of each supplier can be calculated based on the current quota and the historical distributed number of each supplier, and the supplier with the minimum current quota rate is determined as the supplier needing to distribute the raw materials at this time (i.e. the current supplier to be distributed).
For example, the provider's current quota rate may be calculated based on equation (1).
Figure 27111DEST_PATH_IMAGE001
(1)
The quota base may be set by a technician according to experience, for example, the quota base may be 1. The quota per supplier can be set according to the business requirements, for example, for a raw material, there are 3 suppliers, and the respective quotas can be 30%, 50%, and 20%.
If the first method is used, after determining the current supplier to be allocated for each final material delivery window time, the total number of the final material delivery window time to be delivered may be distributed to the current supplier to be allocated, and the allocated number of each supplier may be updated. Subsequently, the number of raw materials to be delivered at the next final material delivery window time may be assigned based on the updated assigned data.
If based on the second method, for each final material delivery window time, the current supplier to be allocated may be determined, the minimum allocation unit may be allocated to the current supplier to be allocated, and the allocated number of each supplier may be updated. Then, based on the updated allocated number, the supplier to be allocated may be determined again, and the minimum allocation unit may be allocated thereto, and so on, until the final material delivery window time requires the allocation of the number to be delivered.
In one embodiment, before the step S103, the method may further include the steps of:
presetting the demand of a specified product corresponding to the production task in a future time period; and acquiring the current inventory of the specified product corresponding to the production task.
Accordingly, the step S103 may include:
calculating the quantity of specified products corresponding to the production task produced every working day in a preset future time period as a first quantity based on the demand quantity and the current inventory quantity; and calculating the sum of the first quantity corresponding to each working day between the finished product delivery window time and the next finished product delivery window time as the scheduled production quantity of the specified product corresponding to the production task at the finished product delivery window time aiming at each finished product delivery window time in the preset future time period.
In an embodiment, the service plan generating system may further include: an inventory management server and a demand management server. The demand management server described above corresponds to the demand management service in fig. 5. The inventory management server corresponds to the business data management service in fig. 5. Specifically, the inventory management server may obtain the current inventory amount from the LES system.
The service plan generating server can acquire the demand quantity of the specified product corresponding to the production task in the preset future time period from the demand management server; and acquiring the current inventory of the specified product corresponding to the production task from the inventory management server.
In one implementation, a demand list for a given product may be imported to a demand management server. The list of requirements may include: the number of specified products (i.e., demand) required in a preset future time period (e.g., half a year, or one year) after the present time, and the number of specified products required per month is recorded in the list.
The current inventory level of the specified product may then be obtained from the LES system and imported into the inventory management server.
The business plan generating server can obtain the data and compare the monthly demand and the inventory of the specified products. If the inventory is greater than the monthly demand, the monthly demand is satisfied and the delivery is possible using the inventory. If the inventory is less than the current month demand, the current month demand cannot be met, and the difference between the current month demand and the inventory is the number of specified products which actually need to be produced in the current month, namely the actual demand.
And calculating the ratio of the actual demand of the current month to the remaining working days of the current month to obtain the planned production of each current remaining working day. Similarly, the projected production volume for each working day in each subsequent month may be calculated. For each month, if the ratio of the actual demand of the month to the remaining working days of the month is not an integer, then the apportionment may be performed according to a forward or backward rule, for example, a forward rule indicates the apportionment of the remainder to the first working days of the month and a backward rule indicates the apportionment of the remainder to the second working days of the month.
In this manner, the projected production volume (i.e., the first quantity) for each working day may be calculated.
In addition, the projected throughput at the end product delivery window time may be adjusted based on the packaging rules for the given product.
For example, a package may need to hold 6 designated products, and if the calculated projected throughput for a finished delivery window time is less than an integer multiple of 6, it may be supplemented to an integer multiple of 6. Accordingly, the projected production volume at the next finishing delivery window time is subtracted by the amount of increase in the last finishing delivery window time.
Referring to fig. 6, fig. 6 is a schematic view illustrating a process of delivering a product according to an embodiment of the present invention.
In FIG. 6, demand forecasting may be performed to determine the demand for a given product over a preset future time period based on a sales order for the given product. Further, the demand may be checked for availability, i.e., it is determined that the demand can be fulfilled based on the current capacity.
If the above-described demand amount can be realized, that is, the availability check can be passed, a master production plan may be generated in conjunction with a product production process of a specified product (raw materials required to produce the specified product), and a raw material demand plan may be generated based on the master production plan.
Further, a finished delivery schedule is determined based on the master production schedule, and a material delivery schedule is determined based on the raw material demand schedule.
Manufacturing execution and logistics execution: and (5) producing and transporting the specified products according to the generated plans, and further completing finished product delivery.
Referring to fig. 7, fig. 7 is a schematic flowchart of generating a master production plan according to an embodiment of the present invention.
The customer's demand for a specific product may be for a plurality of time periods, and accordingly, the customer may process each time period according to the chronological order.
Specifically, the customer demand of the current time period can be acquired, and whether the stock of the specified product in the current time period is sufficient or not can be judged according to the customer demand of the current time period.
If sufficient, the next time period can be determined as the current time period, so as to process the next time period.
If not, the current time period planning date set (i.e. the remaining working days of the current time period) and the current time period planning total amount (i.e. the actual demand amount of the current time period) can be determined according to the customer demand and the current inventory amount.
Further, the planned production amount per working day may be calculated based on the current time slot planned date set and the current time slot planned total amount, and a master production plan may be obtained.
Then, it may be determined whether the current time period is within a preset lock period. The preset lockout period may be set by a technician, for example, for two months in the future, or, alternatively, for three months in the future.
Locking a main production plan, executing the main production plan: if the time is within the preset locking period, the main production plan of the current time period can be locked and executed.
Updating the stock quantity: the inventory of the specified product is updated based on the master production plan.
Predicting a main production plan: and if the current time is not within the preset locking period, the generated main production plan is used as a prediction production plan for reference of technicians.
Referring to fig. 8, fig. 8 is a schematic flow chart of generating a raw material demand plan according to an embodiment of the present invention.
In FIG. 8, a master production plan for a given product may be obtained, along with a raw material list for the given product.
And (4) according to the finished product delivery window time and the raw material list in the main production plan, combining the production period and the transportation period, and pushing the raw material demand plan backwards.
Further, it is possible to determine whether or not the stock quantity of the raw material is sufficient. If not, the raw material demand plans corresponding to the production plans may be merged, i.e., for each raw material, the total number of raw materials required to produce a given product, and the lead time may be obtained.
Furthermore, the raw material demand plan can be adjusted according to the packaging rule and the material delivery window time, and the supply number of the raw materials can be distributed to the suppliers according to the supplier quota.
Then, it can be judged whether the corresponding time is within a preset lock period. The preset lockout period may be set by a technician, for example, for two months in the future, or, alternatively, for three months in the future.
Locking a raw material requirement plan and executing the raw material requirement plan: if the preset locking period is within, the raw material requirement plan can be locked and executed.
Updating the stock quantity: and updating the stock quantity of the raw materials according to the raw material demand plan.
Predicting a raw material demand plan: and if the predicted raw material demand plan is not within the preset locking period, taking the generated raw material demand plan as a predicted raw material demand plan for reference.
Referring to table (1), table (1) shows the time required to generate the main production plan and the raw material demand plan based on the method provided by the embodiment of the present invention.
Watch (1)
Serial number Number of plants Number of customer base Number of products specified MPS execution time (seconds) MRP execution time (seconds)
1 4 14 18 5 5
2 4 14 26 8 8
3 4 14 34 12 13
4 4 14 42 13 15
5 4 14 50 14 15
6 4 14 64 22 21
In table (1), a factory indicates a site where a specified product is processed, and a customer base indicates a customer who desires the specified product. Different designated products can correspond to different factories and also can correspond to different customer bases. The MPS execution time represents the time required to generate the final master production plan, and the MRP execution time represents the time required to generate the final raw material demand plan. As can be seen from table (1), when the number of designated products reaches 64, the time for generating the service plan can be controlled within 1 minute, the speed is high, and the efficiency of generating the service plan can be improved.
The embodiment of the invention also provides a system for generating the service plan, which comprises: a business plan generating server, wherein:
the service plan generating server is used for adding a plurality of production tasks corresponding to the specified products in a preset task pool when receiving a service plan generating instruction for the specified products; wherein a production task is used to generate an initial master production plan for a given product; starting a preset number of threads; acquiring a current unprocessed production task from the preset task pool through each thread, and generating a corresponding initial main production plan within a preset future time period according to the production task until no unprocessed production task exists in the preset task pool; and merging the initial main production plans to obtain a final main production plan of the specified product.
Optionally, the service plan generating server is further configured to add a plurality of demand tasks corresponding to the specified product in the preset task pool after the initial main production plans are merged to obtain a final main production plan of the specified product; wherein a demand task is used to generate an initial raw material demand plan for a raw material supplier for a given product; acquiring a current unprocessed requirement task from the preset task pool through each thread, and generating a corresponding initial raw material requirement plan according to a final main production plan of a specified product corresponding to the requirement task until the unprocessed requirement task does not exist in the preset task pool; and merging the initial raw material demand plans to obtain a final raw material demand plan of the specified product.
Optionally, the final master production plan corresponding to each specified product includes: the projected production volume for the given product at each of the product delivery window times within the preset future time period; the system also comprises a material management server; the service plan generating server is further configured to obtain material information of the specified product corresponding to the demand task from the material management server before generating the corresponding initial raw material demand plan according to the final main production plan of the specified product corresponding to the demand task; wherein the material information of the specified product comprises: a raw material list of the specified product, a production cycle of the specified product, and a shipping cycle of the specified product; acquiring the planned production capacity of the specified product at each finished product delivery window time, which is recorded in the final main production plan of the specified product corresponding to the demand task; for each finished product delivery window time, determining a corresponding raw material scheduled arrival time based on the finished product delivery window time, the production cycle of the specified product, and the transportation cycle of the specified product; determining the preset material delivery window time before the scheduled arrival time of the raw material as the final material delivery window time; and determining the number of raw materials to be delivered at the final material delivery window time according to the planned production capacity of the finished product delivery window time and the raw material list of the specified product, and obtaining a corresponding initial raw material demand plan.
Optionally, the system further comprises a delivery management server and a purchase management server; the service plan generating server is further configured to send the final main production plan of the specified product to the delivery management server after the initial main production plans are merged to obtain the final main production plan of the specified product; the delivery management server is used for determining the working progress of the specified product based on the final main production plan; the business plan generating server is further configured to send the final raw material demand plan of the specified product to the procurement management server after the initial raw material demand plans are merged to obtain the final raw material demand plan of the specified product; and the purchase management server is used for generating a raw material purchase order based on the final raw material demand plan.
Optionally, the service plan generating server is further configured to, after determining the number of raw materials that need to be delivered at the final material delivery window time according to the planned production amount at the final material delivery window time and the raw material list of the specified product, calculate, for each raw material that needs to be delivered at the final material delivery window time, a current quota rate of each supplier based on a current quota of each supplier and a historical allocated number; determining a provider with the minimum current quota rate as a current provider to be distributed; the number of raw materials to be dispensed for the current supplier to be dispensed is determined based on the number of raw materials required to be delivered by the final material delivery window time.
Optionally, the system further comprises an inventory management server and a demand management server; the service plan generating server is further configured to obtain, from the demand management server, a demand amount of a specified product corresponding to the production task within a preset future time period before generating an initial main production plan within the corresponding preset future time period according to the production task; acquiring the current inventory of the specified product corresponding to the production task from the inventory management server; calculating the quantity of specified products corresponding to the production task produced on each working day in the preset future time period as a first quantity based on the demand quantity and the current inventory quantity; and calculating the sum of the first quantity corresponding to each working day between the finished product delivery window time and the next finished product delivery window time as the scheduled production capacity of the specified product corresponding to the production task at the finished product delivery window time aiming at each finished product delivery window time in the preset future time period.
An embodiment of the present invention further provides an electronic device, as shown in fig. 9, which includes a processor 901, a communication interface 902, a memory 903, and a communication bus 904, where the processor 901, the communication interface 902, and the memory 903 complete mutual communication through the communication bus 904,
a memory 903 for storing computer programs;
the processor 901 is configured to implement the following steps when executing the program stored in the memory 903:
when an instruction generated aiming at a service plan of a specified product is received, adding a plurality of production tasks corresponding to the specified product in a preset task pool; wherein a production task is used to generate an initial master production plan for a given product;
starting a preset number of threads;
acquiring a current unprocessed production task from the preset task pool through each thread, and generating a corresponding initial main production plan within a preset future time period according to the production task until no unprocessed production task exists in the preset task pool;
and merging the initial main production plans to obtain a final main production plan of the specified product.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
In another embodiment of the present invention, a computer-readable storage medium is further provided, in which a computer program is stored, and the computer program, when executed by a processor, implements the steps of any of the above-mentioned business plan generating methods.
In yet another embodiment, a computer program product containing instructions is also provided, which when run on a computer causes the computer to perform any of the business plan generating methods of the above embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the electronic device, the computer-readable storage medium, and the computer program product embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiments.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (8)

1. A method for generating a business plan, the method comprising:
when an instruction generated aiming at a service plan of a specified product is received, adding a plurality of production tasks corresponding to the specified product in a preset task pool; wherein a production task is used to generate an initial master production plan for a given product;
starting a preset number of threads;
acquiring a current unprocessed production task from the preset task pool through each thread, and generating a corresponding initial main production plan within a preset future time period according to the production task until no unprocessed production task exists in the preset task pool;
merging the initial main production plans to obtain a final main production plan of the specified product;
after the merging of the initial master production plans to obtain the final master production plan of the specified product, the method further includes:
adding a plurality of demand tasks corresponding to the specified products in the preset task pool; wherein a demand task is used to generate an initial raw material demand plan for a raw material supplier for a given product;
acquiring a current unprocessed requirement task from the preset task pool through each thread, and generating a corresponding initial raw material requirement plan according to a final main production plan of a specified product corresponding to the requirement task until the unprocessed requirement task does not exist in the preset task pool;
merging the initial raw material demand plans to obtain a final raw material demand plan of the specified product;
the final master production plan corresponding to each specified product comprises: the projected production volume for the given product at each of the product delivery window times within the preset future time period;
before generating the corresponding initial raw material demand plan according to the final main production plan of the specified product corresponding to the demand task, the method further includes:
acquiring material information of a specified product corresponding to the demand task; wherein the material information of the specified product comprises: a raw material list of the specified product, a production cycle of the specified product, and a shipping cycle of the specified product;
generating a corresponding initial raw material demand plan according to a final main production plan of a specified product corresponding to the demand task, wherein the method comprises the following steps:
acquiring the planned production capacity of the specified product at each finished product delivery window time, which is recorded in the final main production plan of the specified product corresponding to the demand task;
for each finished product delivery window time, determining a corresponding raw material scheduled arrival time based on the finished product delivery window time, the production cycle of the specified product, and the transportation cycle of the specified product;
determining the preset material delivery window time before the scheduled arrival time of the raw material as the final material delivery window time;
the number of raw materials that need to be delivered for the final material delivery window time is determined based on the projected production volume for the final material delivery window time and the raw material list for the specified product.
2. The method of claim 1, wherein after said merging each initial master production plan into a final master production plan for the specified product, the method further comprises:
determining a work schedule for the specified product based on the final master production plan;
after the merging of the initial raw material demand plans into a final raw material demand plan for the given product, the method further includes:
generating a raw material purchase order based on the final raw material demand plan.
3. The method of claim 1, wherein after determining the number of raw materials to be delivered for the final material delivery window time based on the projected capacity for the final delivery window time and the raw material list for the specified product, the method further comprises:
calculating the current quota rate of each supplier according to each raw material needing to be delivered in the final material delivery window time based on the current quota and the historical distributed number of each supplier;
determining a provider with the minimum current quota rate as a current provider to be distributed;
the number of raw materials to be dispensed for the current supplier to be dispensed is determined based on the number of raw materials required to be delivered by the final material delivery window time.
4. The method of claim 1, wherein prior to said generating an initial master production plan for a corresponding preset future time period in accordance with the production task, the method further comprises:
acquiring the demand of a specified product corresponding to the production task in the preset future time period;
acquiring the current inventory of the specified product corresponding to the production task;
generating a corresponding initial main production plan within a preset future time period according to the production task, wherein the generating comprises the following steps:
calculating the quantity of specified products corresponding to the production task produced on each working day in the preset future time period as a first quantity based on the demand quantity and the current inventory quantity;
and calculating the sum of the first quantity corresponding to each working day between the finished product delivery window time and the next finished product delivery window time as the scheduled production capacity of the specified product corresponding to the production task at the finished product delivery window time aiming at each finished product delivery window time in the preset future time period.
5. A business plan generating system, the system comprising: a business plan generating server, wherein:
the service plan generating server is used for adding a plurality of production tasks corresponding to the specified products in a preset task pool when receiving a service plan generating instruction for the specified products; wherein a production task is used to generate an initial master production plan for a given product;
starting a preset number of threads;
acquiring a current unprocessed production task from the preset task pool through each thread, and generating a corresponding initial main production plan within a preset future time period according to the production task until no unprocessed production task exists in the preset task pool;
merging the initial main production plans to obtain a final main production plan of the specified product;
the service plan generating server is further configured to add a plurality of demand tasks corresponding to the specified product in the preset task pool after the initial main production plans are merged to obtain a final main production plan of the specified product; wherein a demand task is used to generate an initial raw material demand plan for a raw material supplier for a given product;
acquiring a current unprocessed requirement task from the preset task pool through each thread, and generating a corresponding initial raw material requirement plan according to a final main production plan of a specified product corresponding to the requirement task until the unprocessed requirement task does not exist in the preset task pool;
merging the initial raw material demand plans to obtain a final raw material demand plan of the specified product;
the final master production plan corresponding to each specified product comprises: the projected production volume for the given product at each of the product delivery window times within the preset future time period; the system also comprises a material management server;
the service plan generating server is further configured to obtain material information of the specified product corresponding to the demand task from the material management server before generating the corresponding initial raw material demand plan according to the final main production plan of the specified product corresponding to the demand task; wherein the material information of the specified product comprises: a raw material list of the specified product, a production cycle of the specified product, and a shipping cycle of the specified product;
acquiring the planned production capacity of the specified product at each finished product delivery window time, which is recorded in the final main production plan of the specified product corresponding to the demand task;
for each finished product delivery window time, determining a corresponding raw material scheduled arrival time based on the finished product delivery window time, the production cycle of the specified product, and the transportation cycle of the specified product;
determining the preset material delivery window time before the scheduled arrival time of the raw material as the final material delivery window time;
and determining the number of raw materials to be delivered at the final material delivery window time according to the planned production capacity of the finished product delivery window time and the raw material list of the specified product, and obtaining a corresponding initial raw material demand plan.
6. The system of claim 5, further comprising a delivery management server and a procurement management server;
the service plan generating server is further configured to send the final main production plan of the specified product to the delivery management server after the initial main production plans are merged to obtain the final main production plan of the specified product;
the delivery management server is used for determining the working progress of the specified product based on the final main production plan;
the business plan generating server is further configured to send the final raw material demand plan of the specified product to the procurement management server after the initial raw material demand plans are merged to obtain the final raw material demand plan of the specified product;
and the purchase management server is used for generating a raw material purchase order based on the final raw material demand plan.
7. The system of claim 5, further comprising an inventory management server and a demand management server;
the service plan generating server is further configured to obtain, from the demand management server, a demand amount of a specified product corresponding to the production task within a preset future time period before generating an initial main production plan within the corresponding preset future time period according to the production task;
acquiring the current inventory of the specified product corresponding to the production task from the inventory management server;
calculating the quantity of specified products corresponding to the production task produced on each working day in the preset future time period as a first quantity based on the demand quantity and the current inventory quantity;
and calculating the sum of the first quantity corresponding to each working day between the finished product delivery window time and the next finished product delivery window time as the scheduled production capacity of the specified product corresponding to the production task at the finished product delivery window time aiming at each finished product delivery window time in the preset future time period.
8. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of claims 1 to 4 when executing a program stored in the memory.
CN202110723639.2A 2021-06-29 2021-06-29 Service plan generation method and system Active CN113256171B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110723639.2A CN113256171B (en) 2021-06-29 2021-06-29 Service plan generation method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110723639.2A CN113256171B (en) 2021-06-29 2021-06-29 Service plan generation method and system

Publications (2)

Publication Number Publication Date
CN113256171A CN113256171A (en) 2021-08-13
CN113256171B true CN113256171B (en) 2021-09-24

Family

ID=77190061

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110723639.2A Active CN113256171B (en) 2021-06-29 2021-06-29 Service plan generation method and system

Country Status (1)

Country Link
CN (1) CN113256171B (en)

Family Cites Families (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1508731A (en) * 2002-12-14 2004-06-30 鸿富锦精密工业(深圳)有限公司 Main production arrangement management system and method
CN102722785A (en) * 2012-05-29 2012-10-10 安徽金缆信息技术有限公司 Workshop operation management method, system and server
CN103246950B (en) * 2012-10-30 2016-08-03 中国科学院沈阳自动化研究所 Method promised to undertake by the order of a kind of semiconductor assembly and test enterprise
CN103870348A (en) * 2012-12-14 2014-06-18 中国电信股份有限公司 Test method and system for concurrent user access
CN107169073A (en) * 2017-05-09 2017-09-15 北京智行创远信息科技有限公司 A kind of data managing method and management platform
CN110390450B (en) * 2018-04-17 2022-07-05 北京京东乾石科技有限公司 Storage scheduling method and device, storage medium and electronic equipment
CN108614684A (en) * 2018-05-02 2018-10-02 山东浪潮通软信息科技有限公司 A kind of space shunting, time orderly multiplexing kind production schedule projectional technique
WO2019234702A2 (en) * 2018-06-08 2019-12-12 Tata Consultancy Services Limited Actor model based architecture for multi robot systems and optimized task scheduling method thereof
CN109359884B (en) * 2018-10-31 2021-07-27 南京航空航天大学 Aviation complex equipment structural member workshop operation planning and rescheduling method
CN109472488A (en) * 2018-11-05 2019-03-15 珠海格力智能装备有限公司 Scheduled production method and device, storage medium and the processor of order
CN109582455B (en) * 2018-12-03 2021-06-18 恒生电子股份有限公司 Multithreading task processing method and device and storage medium
CN110555665B (en) * 2019-08-02 2024-02-27 杉数科技(北京)有限公司 Production plan generation method and device
US10725837B1 (en) * 2019-11-07 2020-07-28 Nvidia Corporation Persistent scratchpad memory for data exchange between programs
CN111563656A (en) * 2020-04-10 2020-08-21 北京天拓智领科技有限公司 Process level production plan decomposition method
CN111539610A (en) * 2020-04-17 2020-08-14 上海电气集团股份有限公司 Production management system, method, device, equipment and medium for assembly workshop
CN111915410B (en) * 2020-08-12 2021-02-26 暨南大学 Intelligent management and control system for high-dynamic production logistics process
CN112947324A (en) * 2021-01-27 2021-06-11 广东工业大学 Textile production scheduling optimization method, system, storage medium and computer equipment

Also Published As

Publication number Publication date
CN113256171A (en) 2021-08-13

Similar Documents

Publication Publication Date Title
US6188989B1 (en) System and method for managing available to promised product (ATP)
US8402426B2 (en) Architectural design for make to stock application software
JP3698433B2 (en) Safety stock quantity calculation device, safety stock quantity calculation program and order point calculation device
US10049332B2 (en) Queuing tasks in a computer system based on evaluating queue information and capability information of resources against a set of rules
US7085729B1 (en) System and method for allocating manufactured products to sellers
US20030208392A1 (en) Optimizing resource plans
US20140095249A1 (en) Supply chain orchestration system with orchestration, change management and internal material transfer flow
US20030033180A1 (en) System and method for optimizing resource plans
US20140095247A1 (en) Supply chain financial orchestration system with configurable events that trigger tasks
WO2003007098A1 (en) Production management system production management method
JP7178966B2 (en) Production planning support system
US20120136758A1 (en) Production management with multi-type kanban modeling
JP2005015140A (en) Order quantity calculation system
WO2016079843A1 (en) Production plan adjustment assisting device and production plan adjustment assisting method
CN113256171B (en) Service plan generation method and system
US20090138327A1 (en) Delivery date answering program, delivery date answering method, and system for implementing the method
CN116579539A (en) Production planning and arrangement method
US20190303815A1 (en) Distributed manufacturing system
JP4559698B2 (en) Supply and demand adjustment method and system, product manufacturing method
Finkelstein et al. Transactional Intent.
US8341031B2 (en) Availability check for a ware
JP6173803B2 (en) Order quantity calculation system
US20230068901A1 (en) Advanced available-to-promise supply creation-based confirmation
US7123976B2 (en) Capacity management system and method
US20080147467A1 (en) Configuration Process Scheduling

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20220316

Address after: 430051 No. b1336, chuanggu startup area, taizihu cultural Digital Creative Industry Park, No. 18, Shenlong Avenue, Wuhan Economic and Technological Development Zone, Hubei Province

Patentee after: Yikatong (Hubei) Technology Co.,Ltd.

Address before: 430056 building B (qdxx-f7b), No.7 building, qiedixiexin science and Technology Innovation Park, South taizihu innovation Valley, Wuhan Economic and Technological Development Zone, Hubei Province

Patentee before: HUBEI ECARX TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right