CN113627728B - Method and device for calculating product quantity - Google Patents

Method and device for calculating product quantity Download PDF

Info

Publication number
CN113627728B
CN113627728B CN202110780294.4A CN202110780294A CN113627728B CN 113627728 B CN113627728 B CN 113627728B CN 202110780294 A CN202110780294 A CN 202110780294A CN 113627728 B CN113627728 B CN 113627728B
Authority
CN
China
Prior art keywords
cost
product
purchased
function
products
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
CN202110780294.4A
Other languages
Chinese (zh)
Other versions
CN113627728A (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.)
State Grid Corp of China SGCC
Materials Branch of State Grid Jibei Electric Power Co Ltd
Original Assignee
State Grid Corp of China SGCC
Materials Branch of State Grid Jibei Electric Power 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 State Grid Corp of China SGCC, Materials Branch of State Grid Jibei Electric Power Co Ltd filed Critical State Grid Corp of China SGCC
Priority to CN202110780294.4A priority Critical patent/CN113627728B/en
Publication of CN113627728A publication Critical patent/CN113627728A/en
Application granted granted Critical
Publication of CN113627728B publication Critical patent/CN113627728B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/10Complex mathematical operations
    • G06F17/11Complex mathematical operations for solving equations, e.g. nonlinear equations, general mathematical optimization problems
    • 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
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0605Supply or demand aggregation
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Resources & Organizations (AREA)
  • Theoretical Computer Science (AREA)
  • Strategic Management (AREA)
  • Economics (AREA)
  • Mathematical Physics (AREA)
  • Operations Research (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Finance (AREA)
  • Accounting & Taxation (AREA)
  • General Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Pure & Applied Mathematics (AREA)
  • Mathematical Optimization (AREA)
  • Development Economics (AREA)
  • Mathematical Analysis (AREA)
  • Computational Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Game Theory and Decision Science (AREA)
  • Educational Administration (AREA)
  • Algebra (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Databases & Information Systems (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a method and a device for calculating the quantity of products. Wherein the method comprises the following steps: obtaining product information of a product to be purchased, wherein the product information at least comprises: cost information of the product to be purchased and anomaly probability of the product to be purchased; acquiring the required quantity of the first object to the product to be purchased; constructing a cost function corresponding to the first object based on the product information and the required quantity, wherein the cost function characterizes the association relation between the initial purchase quantity of the first object for purchasing the product to be purchased and the cost consumed by the first object; and determining the target quantity of the products to be purchased for the first object based on the preset cost and the cost function corresponding to the first object, wherein the target quantity is the quantity of the products to be purchased when the loss of the first object is minimized. The invention solves the technical problem of fund occupation caused by the fact that excessive products are purchased because the quantity of the products to be purchased cannot be determined in the prior art.

Description

Method and device for calculating product quantity
Technical Field
The invention relates to the field of computers, in particular to a method and a device for calculating the quantity of products.
Background
Currently, when a product transaction is performed between enterprises, rights and obligations of both buyers and sellers are generally defined by contracting, for example, a processing method when a distribution transformer fails in quality is defined by contracting between a demand side and a supplier. The contracts may include option contracts and option contracts, among others.
Under the condition that the buyer and the seller sign an option-free contract, the demander can only make a purchasing decision once, once the quality catastrophe occurs, namely the quality problem occurs in the products provided by the suppliers, and the quantity of the products with the quality problem exceeds the redundant quantity in the purchasing quantity, the demander is required to bear the backout loss. Thus, in this scenario, the demander needs to purchase as many products as possible to reduce the possible loss of stock, but purchasing too many products may cause problems with the demander's capital occupation and thus insufficient mobile funds or even broken capital chains.
In view of the above problems, no effective solution has been proposed at present.
Disclosure of Invention
The embodiment of the invention provides a method and a device for calculating the quantity of products, which at least solve the technical problem of fund occupation caused by the fact that too many products are purchased because the quantity of the products to be purchased cannot be determined in the prior art.
According to an aspect of an embodiment of the present invention, there is provided a method of calculating a product quantity, including: obtaining product information of a product to be purchased, wherein the product information at least comprises: cost information of the product to be purchased and anomaly probability of the product to be purchased; acquiring the required quantity of the first object to the product to be purchased; constructing a cost function corresponding to the first object based on the product information and the required quantity, wherein the cost function characterizes the association relation between the initial purchase quantity of the first object for purchasing the product to be purchased and the cost consumed by the first object; and determining the target quantity of the products to be purchased for the first object based on the preset cost and the cost function corresponding to the first object, wherein the target quantity is the quantity of the products to be purchased when the loss of the first object is minimized.
Further, the method of calculating the number of products further comprises: acquiring a first cost of a product to be purchased, wherein the first cost is a unit price of the product to be purchased; calculating the product of the first cost and the initial purchase quantity to obtain first cost, wherein the first cost is a single formula in polynomials corresponding to the cost function; acquiring a second cost corresponding to the products to be purchased, wherein the second cost is the unit price of the products to be purchased by the first object when the number of the abnormal products to be purchased exceeds a preset number; determining second cost based on the second cost, the anomaly probability and the required quantity, wherein the second cost is greater than the first cost, and the first cost is a single expression in polynomials corresponding to the cost function; the sum of the first cost and the second cost is calculated to obtain a cost function.
Further, the method of calculating the number of products further comprises: calculating the product of the second cost and the anomaly probability to obtain a first product; calculating the difference between the required quantity and the initial purchase quantity to obtain a first difference; calculating a distribution function corresponding to the abnormal quantity, wherein the abnormal quantity is the quantity of the products to be purchased abnormal; obtaining a first result based on the first difference value and the distribution function; and calculating the product of the first result and the first product to obtain the second expense.
Further, the method of calculating the number of products further comprises: obtaining the maximum cost corresponding to the cost function; when the preset cost is greater than or equal to the maximum cost, determining the number of products corresponding to the maximum cost function as the target number; when the preset cost is smaller than the maximum cost, determining the number of products when the function value corresponding to the cost function is the preset cost as the target number.
Further, the method of calculating the number of products further comprises: obtaining a profit function corresponding to a second object, wherein the second object provides a product to be purchased for the first object; calculating the difference between the profit function and the cost function to obtain a supply chain profit function; and determining the target quantity of the products to be purchased by the first object based on the preset cost corresponding to the first object and the supply chain profit function.
Further, the method of calculating the number of products further comprises: acquiring marginal production cost corresponding to the product to be purchased, wherein the marginal production cost is the increase of the total cost corresponding to the second object when one product to be purchased is increased; acquiring a first cost of a product to be purchased, wherein the first cost is a unit price of the product to be purchased; calculating a difference value between the first cost and the marginal production cost to obtain a second difference value; and calculating the product of the second difference value and the initial purchase quantity to obtain a benefit function.
Further, the method of calculating the number of products further comprises: obtaining the minimum benefit corresponding to the supply chain benefit function; when the preset benefit corresponding to the preset cost is greater than or equal to the minimum benefit, determining the number of products as the target number when the function value corresponding to the supply chain benefit function is the preset benefit; and when the preset benefit corresponding to the preset cost is smaller than the minimum benefit, determining the number of products corresponding to the minimum supply chain benefit function as the target number.
According to another aspect of the embodiment of the present invention, there is also provided an apparatus for calculating the number of products, including: the first acquisition module is used for acquiring product information of a product to be purchased, wherein the product information at least comprises: cost information of the product to be purchased and anomaly probability of the product to be purchased; the second acquisition module is used for acquiring the required quantity of the products to be purchased of the first object; the construction module is used for constructing a cost function corresponding to the first object based on the product information and the required quantity, wherein the cost function characterizes the association relation between the initial purchase quantity of the first object for purchasing the product to be purchased and the cost consumed by the first object; the determining module is used for determining the target quantity of the products to be purchased for the first object based on the preset cost and the cost function corresponding to the first object, wherein the target quantity is the quantity of the products to be purchased when the loss of the first object is minimum.
According to another aspect of the embodiments of the present invention, there is also provided a storage medium including a stored program, wherein the program performs the above-described method of calculating the number of products.
According to another aspect of the embodiment of the present invention, there is also provided a processor for running a program, where the program executes the method for calculating the number of products described above.
In the embodiment of the invention, a mode of determining the target number of the purchased products based on the cost function of the demander is adopted, the product information of the products to be purchased and the demand number of the products to be purchased of the first object are obtained, the cost function corresponding to the first object is constructed based on the product information and the demand number, and the target number of the products to be purchased of the first object is determined based on the preset cost corresponding to the first object and the cost function, so that the loss of the first object is minimized.
In the above process, by constructing the cost function corresponding to the purchasing of the product by the demander (i.e. the first object), since the cost function considers the cost information of the product and the abnormal probability of occurrence of abnormality, the stock-out cost and the fund occupation of the demander are balanced, so that the optimal purchasing quantity (i.e. the target quantity) of the purchasing of the product by the demander (i.e. the first object) can be determined by the cost function, the demand of the demander on the product quantity is satisfied, and the problem of fund occupation caused by purchasing too many products can be avoided.
Therefore, the scheme provided by the application achieves the purpose of accurately determining the demand of the demand party on the product quantity, thereby realizing the technical effect of improving the fund utilization rate of the demand party, and further solving the technical problem of fund occupation caused by purchasing too many products because the product quantity to be purchased cannot be determined in the prior art.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiments of the invention and together with the description serve to explain the invention and do not constitute a limitation on the invention. In the drawings:
FIG. 1 is a flow chart of a method of calculating a product quantity according to an embodiment of the invention;
FIG. 2 is a block diagram of a model corresponding to an alternative decentralized decision according to an embodiment of the invention;
fig. 3 is a schematic diagram of an apparatus for counting the number of products according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
In accordance with an embodiment of the present invention, there is provided a method embodiment for calculating the quantity of a product, it being noted that the steps shown in the flowchart of the figures may be performed in a computer system, such as a set of computer executable instructions, and that, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in an order other than that shown or described herein.
It should be noted that, the computing device, for example, a desktop computer, a notebook computer, a tablet, etc., may perform the method for calculating the product quantity provided in the present embodiment.
FIG. 1 is a flow chart of a method of calculating the quantity of a product according to an embodiment of the invention, as shown in FIG. 1, the method comprising the steps of:
step S102, obtaining product information of a product to be purchased, wherein the product information at least comprises: cost information of a product to be purchased and anomaly probability of the product to be purchased being anomalous.
In step S102, the cost information of the product to be purchased (for example, distribution transformer) includes at least: the wholesale price of the product to be purchased and the transitional unit cost of purchasing the product when an abnormality occurs in the product (e.g., the product has a quality defect). In addition, the abnormal probability of the product to be purchased is used for representing the probability of quality catastrophe of the product. Wherein the cost information of the product to be purchased is generally fixed.
Step S104, the required quantity of the first object to be purchased is obtained.
In step S104, the first object is an object to purchase a product, for example, a demander who purchases the product. The above-mentioned required quantity of the products to be purchased is a basic requirement of the product for the requiring party, that is, the minimum quantity of the products required to be purchased by the requiring party, and the value can be set by the requiring party according to the actual requirement.
Step S106, a cost function corresponding to the first object is constructed based on the product information and the required quantity, wherein the cost function characterizes the association relationship between the initial purchase quantity of the first object for purchasing the product to be purchased and the cost consumed by the first object.
In step S106, the initial purchase amount of the product to be purchased, which is a variable in the cost function in this embodiment, characterizes the number of products actually purchased by the demander (i.e., the first object), and is generally larger than the demanded number of products to be purchased by the demander.
It should be noted that, by constructing the association relationship between the initial purchase quantity of the product to be purchased and the cost consumed by the first object, the optimal purchase quantity (i.e. the target quantity) of the product purchased by the demander can be determined according to the association relationship, so that the problem of fund occupation caused by purchasing too many products can be avoided on the basis of ensuring that the product can meet the demand of the demander.
Step S108, determining the target quantity of the products to be purchased for the first object based on the preset cost corresponding to the first object and the cost function, wherein the target quantity is the quantity of the products to be purchased when the loss of the first object is minimized.
In step S108, the preset cost is a cost that the consumer can put into the purchase of the product, and if the preset cost can be known in advance, the optimal number of products purchased by the consumer can be calculated from the preset cost and the cost function.
Based on the scheme defined in the above steps S102 to S108, in the embodiment of the present invention, in a manner of determining the target number of purchased products based on the cost function of the demand party, when obtaining the product information of the product to be purchased and the required number of the product to be purchased by the first object, the cost function corresponding to the first object is constructed based on the product information and the required number, and the target number of purchased products by the first object is determined based on the preset cost and the cost function corresponding to the first object, so that the loss of the first object is minimized.
It is easy to note that in the above process, by constructing the cost function corresponding to the product purchased by the consumer (i.e., the first object), since the cost function considers the cost information of the product and the abnormal probability of occurrence of abnormality, the stock shortage cost and the fund occupation of the consumer are balanced, so that the optimal purchase amount (i.e., the target amount) of the product purchased by the consumer (i.e., the first object) can be determined by the cost function, thereby not only meeting the demand of the consumer for the product amount, but also avoiding the problem of fund occupation caused by purchasing too many products.
Therefore, the scheme provided by the application achieves the purpose of accurately determining the demand of the demand party on the product quantity, thereby realizing the technical effect of improving the fund utilization rate of the demand party, and further solving the technical problem of fund occupation caused by purchasing too many products because the product quantity to be purchased cannot be determined in the prior art.
In this embodiment, before calculating the optimal purchase amount (i.e., the target amount) of the demander based on the cost function, the following limitation is performed:
(1) The wholesale price of a product is greater than the marginal production cost of the product, which represents an increase in the total cost of the supplier when the yield of the product is increased by 1 unit (e.g., a table). In actual situations, there may be cases where the wholesale price of the product is less than the marginal production cost, the scenario may be caused by problems of rising raw material price, rising management cost, rising tax fee, etc., the probability of occurrence is small, moreover, in long term, the condition that the enterprise can survive is profitable, even if this occurs, the enterprise can make up for the loss from other transactions at all, and therefore, in the present application, the scenario where the wholesale price of the product is less than the marginal production cost of the product is not considered.
(2) W < km, where w is the wholesale price and m is the transitional unit cost of the demander, typically much greater than the wholesale price; k is the probability of a quality mutation (i.e., anomaly probability), typically a constant determined by historical data analysis.
(3) The advance period of purchasing raw materials by the suppliers is long and the production is scheduled, and the equipment cannot be purchased from the spot market, whereby the demander can deal with the uncertainty amount or pay option fees only by increasing the purchase.
In an alternative embodiment, under the condition that a cost function corresponding to the first object is constructed based on the product information and the required quantity, the computing device firstly obtains the first cost of the product to be purchased, calculates the product of the first cost and the initial purchase quantity to obtain first expense, then obtains the second cost corresponding to the product to be purchased, determines second expense based on the second cost, the abnormal probability and the required quantity, and finally calculates the sum of the first expense and the second expense to obtain the cost function. The first cost is unit price of the product to be purchased, the first cost is a single formula in a polynomial corresponding to the cost function, the second cost is unit price of the product to be purchased by the first object when the number of abnormal products to be purchased exceeds the preset number, the second cost is larger than the first cost, and the first cost is a single formula in the polynomial corresponding to the cost function.
Optionally, in determining the second cost based on the second cost, the anomaly probability and the required quantity, the computing device first calculates a product of the second cost and the anomaly probability to obtain a first product, calculates a difference between the required quantity and the initial purchase quantity to obtain a first difference, then calculates a distribution function corresponding to the anomaly quantity, obtains a first result based on the first difference and the distribution function, and finally calculates a product of the first result and the first product to obtain the second cost. Wherein the abnormal quantity is the quantity of the products to be purchased abnormal.
In this embodiment, when there is an unoccupied relationship between the demand side and the supplier, that is, when a quality problem occurs in the product and the number of products with quality problems exceeds the redundancy number, the demand side is required to bear the loss.
In the case of decentralized decision making and no term, the optimal purchase amount of the product purchased by the consumer satisfies the following formula:
in the above-mentioned description of the invention,representing the target quantity (i.e. the optimal purchase quantity), Q representing the required quantity, w representing the wholesale price (i.e. the first cost), k representing the probability of a quality mutation (i.e. the abnormal probability), m representing the transitional unit cost of the required party, which is usually much larger than the wholesale price, and F representing the distribution function, wherein F represents the probability distribution function to which the quantity of abnormal products obeys, and the value interval of the corresponding variable of the function is [0,U ]]The U max may be the required number.
Alternatively, the demander determines the optimal purchase amount based on the base demand and uncertainty by the equation above, i.e., the initial order amount is related to the base demand and probability distribution function. Meanwhile, the relationship between the wholesale price (i.e., the first cost), the probability of occurrence of a quality mutation (i.e., the abnormal probability), and the unit shortage cost of the acquirer is a key factor in determining the remaining amount beyond the basic demand. Intuitively, the larger the wholesale price, the smaller the initial purchase quantity is, which is reasonable for the demander, under the condition that other parameters are unchanged. Similarly, the initial purchase amount is an increasing function of k and m, i.e., the greater the transitional unit cost and anomaly probability, the more products the demand side is forced to purchase increases redundancy to reduce risk.
Alternatively, in the case of a decentralized decision, the desired cost function of the demander (i.e., the desire for the cost function) may be represented by the following equation:
D =wQ w +km·Emin{[x-(Q w -Q)] + ,0}
in the above formula, pi D The first term on the right side of the equation, representing the cost function of the demand side without option, is the purchase cost (i.e., the first cost of the equation), and the second term is the loss of stock (i.e., the second cost of the equation), which can also be expanded to the following equation:
the first term on the right side of the equation is the payout to purchase the initial quantity, and the second term is the out-of-stock cost due to uncertainty. When there is no option between the demand party and the supplier, the demand party needs to make a trade-off between initial cost and possible shortage cost. Typically, the unit shortage cost is much greater than the wholesale price at the time of the initial purchase, i.e., the second cost is greater than the first cost.
In an alternative embodiment, in the process of determining the target number of the products to be purchased by the first object based on the preset cost corresponding to the first object and the cost function, the computing device obtains the maximum cost corresponding to the cost function, and determines the number of the products corresponding to the maximum cost function as the target number when the preset cost is greater than or equal to the maximum cost; when the preset cost is smaller than the maximum cost, determining the number of products when the function value corresponding to the cost function is the preset cost as the target number.
It should be noted that, from the above equation, the expected cost function of the demand party determined by the second derivative is related to Q under the supply chain condition of the decentralized decision w Wherein the maximum value corresponding to the cost function is the maximum cost required to be paid by the demander, and when the preset cost is the maximum cost, the number of products corresponding to the maximum cost function is the target number, and only one value is used; when the preset cost is not the maximum cost, at this time, the product quantity corresponding to the cost function includes at least two products, and the demand can select any one of the product quantities as the target quantity.
In addition, it should be noted that, when there is no option between the demander and the supplier, the computing device may determine the product quantity of the product to be purchased by the demander in a decision manner of both a decentralized decision and a centralized decision. Wherein in decentralized decision making, the computing device makes decisions for the purpose of optimizing the interests of each subject in the supply chain, for example, as seen in the model block diagram corresponding to decentralized decision making shown in fig. 2, the demand side needs to determine the base demand and cost out-of-stock loss, the supply side needs to determine wholesale prices together with the demand side, and does not take over out-of-stock loss; under centralized decision making, the computing device makes decisions with the goal of optimizing the overall benefit of the supply chain.
In an alternative embodiment, under the centralized decision, in the process of determining the target quantity of the first object for purchasing the product to be purchased based on the preset cost and the cost function corresponding to the first object, the computing device further obtains the benefit function corresponding to the second object, calculates the difference between the benefit function and the cost function, obtains the supply chain benefit function, and then determines the target quantity of the first object for purchasing the product to be purchased based on the preset cost and the supply chain benefit function corresponding to the first object. Wherein the second object provides the first object with the product to be purchased.
Alternatively, under centralized decision-making supply chain conditions, the overall supply chain yield may be expressed as the expected yield of the supplier minus the cost function of the consumer, i.e., the supply chain yield function described above satisfies the following equation:
the method can be simplified into the following steps according to a random variable expected formula and calculus basic knowledge operation:
in the above formula, pi SC Is the return of the supply chain when there is no option (i.e., the supply chain return function above).
In the above process, the second object is a supplier. Wherein the optimal expected revenue for the provider (i.e., the supply chain revenue function described above) in the case of decentralized decision may be represented by a display: the expression is:
S =(w-c)Q w
in the above formula, pi S Is the provider's profit function (i.e., the supply chain profit function described above) for the time of the non-option.
From the above equation, the profit of the supplier depends on the initial purchase amount according to the decision structure.
In an alternative embodiment, when deciding on the supplier, the computing device first obtains the marginal production cost corresponding to the product to be purchased and obtains the first cost of the product to be purchased, then calculates the difference between the first cost and the marginal production cost to obtain a second difference, and calculates the product of the second difference and the initial purchase quantity to obtain the benefit function. The marginal production cost is an increase amount of the total cost corresponding to the second object when one product to be purchased is increased, and the first cost is the unit price of the product to be purchased.
It should be noted that, as can be seen from the above-mentioned supply chain profit function, the overall profit function of the supply chain can be determined by calculating the second derivative as a concave function related to the initial purchase quantity, so that the expression of the optimal initial purchase quantity (i.e. the target quantity) on the supply chain under the condition of centralized decision can be obtained by the standard calculus method:
in the above-mentioned description of the invention,representing the target number.
In an alternative embodiment, in determining, based on the preset cost corresponding to the first object and the supply chain benefit function, that the first object purchases the target quantity of the product to be purchased, the computing device first obtains a minimum benefit corresponding to the supply chain benefit function, and determines, when the preset benefit corresponding to the preset cost is greater than or equal to the minimum benefit, that the quantity of the product when the function value corresponding to the supply chain benefit function is the preset benefit is the target quantity; and when the preset benefit corresponding to the preset cost is smaller than the minimum benefit, determining the number of products corresponding to the minimum supply chain benefit function as the target number.
It should be noted that, since the supply chain profit function is a concave function related to the initial purchase amount, the minimum value corresponding to the cost function is the minimum profit corresponding to the whole supply chain, when the preset profit corresponding to the preset cost is the minimum profit, the product amount corresponding to the minimum supply chain profit function is the target amount, and the value is only one; when the preset benefit corresponding to the preset cost is not the minimum benefit, at this time, the product quantity corresponding to the supply chain benefit function at least comprises two products, and the demand can select any one of the product quantities as the target quantity.
From the above, the solution provided by the present application considers the stock-out cost and the fund occupation in a balanced manner, so that the computing device can make a reasonable decision according to the solution provided by the present application, thereby not only meeting the demand of the demand party for the product quantity, but also avoiding the fund occupation problem caused by purchasing too many products.
Example 2
There is further provided, in accordance with an embodiment of the present invention, an embodiment of an apparatus for calculating a product quantity, where fig. 3 is a schematic diagram of an apparatus for calculating a product quantity according to an embodiment of the present invention, and as shown in fig. 3, the apparatus includes: a first acquisition module 301, a second acquisition module 303, a construction module 305, and a determination module 307.
The first obtaining module 301 is configured to obtain product information of a product to be purchased, where the product information includes at least: cost information of the product to be purchased and anomaly probability of the product to be purchased; a second obtaining module 303, configured to obtain a required quantity of the product to be purchased by the first object; a construction module 305, configured to construct a cost function corresponding to the first object based on the product information and the required quantity, where the cost function characterizes an association relationship between an initial purchase quantity of the first object for purchasing the product to be purchased and a cost consumed by the first object; a determining module 307, configured to determine a target number of products to be purchased for the first object based on the preset cost and the cost function corresponding to the first object, where the target number is a number of products to be purchased when the loss of the first object is minimized.
It should be noted that the first obtaining module 301, the second obtaining module 303, the constructing module 305, and the determining module 307 correspond to steps S102 to S108 in the above embodiment, and the four modules are the same as examples and application scenarios implemented by the corresponding steps, but are not limited to those disclosed in the above embodiment 1.
Optionally, the building module includes: the system comprises a third acquisition module, a first calculation module, a fourth acquisition module, a first determination module and a second calculation module. The third acquisition module is used for acquiring a first cost of the product to be purchased, wherein the first cost is a unit price of the product to be purchased; the first calculation module is used for calculating the product of the first cost and the initial purchase quantity to obtain first expense, wherein the first expense is a single expression in polynomials corresponding to the cost function; a fourth obtaining module, configured to obtain a second cost corresponding to the product to be purchased, where the second cost is a unit price of the product to be purchased by the first object when the number of abnormal products to be purchased exceeds a preset number; the first determining module is used for determining second cost based on second cost, abnormal probability and required quantity, wherein the second cost is larger than the first cost, and the first cost is a single expression in polynomials corresponding to the cost function; and the second calculation module is used for calculating the sum of the first expense and the second expense to obtain a cost function.
Optionally, the first determining module includes: the third calculation module, the fourth calculation module, the fifth calculation module, the sixth calculation module and the seventh calculation module. The third calculation module is used for calculating the product of the second cost and the abnormal probability to obtain a first product; the fourth calculation module is used for calculating the difference value between the required quantity and the initial purchase quantity to obtain a first difference value; the fifth calculation module is used for calculating a distribution function corresponding to the abnormal quantity, wherein the abnormal quantity is the quantity of the products to be purchased abnormal; a sixth calculation module, configured to obtain a first result based on the first difference and the distribution function; and a seventh calculation module, configured to calculate a product of the first result and the first product, to obtain a second cost.
Optionally, the determining module includes: the device comprises a fifth acquisition module, a second determination module and a third determination module. The fifth acquisition module is used for acquiring the maximum cost corresponding to the cost function; the second determining module is used for determining the number of products corresponding to the maximum cost function as the target number when the preset cost is greater than or equal to the maximum cost; and the third determining module is used for determining the number of products as the target number when the function value corresponding to the cost function is the preset cost when the preset cost is smaller than the maximum cost.
Optionally, the determining module includes: a sixth acquisition module, an eighth calculation module and a fourth determination module. The sixth acquisition module is used for acquiring a benefit function corresponding to the second object, wherein the second object provides a product to be purchased for the first object; an eighth calculation module, configured to calculate a difference between the benefit function and the cost function, to obtain a supply chain benefit function; and the fourth determining module is used for determining the target quantity of the first object for purchasing the product to be purchased based on the preset cost corresponding to the first object and the supply chain profit function.
Optionally, the sixth acquisition module includes: a seventh acquisition module, an eighth acquisition module, a ninth calculation module, and a tenth calculation module. The seventh acquisition module is configured to acquire a marginal production cost corresponding to the product to be purchased, where the marginal production cost is an increase amount of a total cost corresponding to the second object when one product to be purchased is added; an eighth obtaining module, configured to obtain a first cost of a product to be purchased, where the first cost is a unit price of the product to be purchased; a ninth calculation module, configured to calculate a difference between the first cost and the marginal production cost, to obtain a second difference; and a tenth calculation module, configured to calculate a product of the second difference and the initial purchase quantity, to obtain a benefit function.
Optionally, the fourth determining module includes: a ninth acquisition module, a fifth determination module, and a sixth determination module. The ninth obtaining module is used for obtaining the minimum benefit corresponding to the supply chain benefit function; a fifth determining module, configured to determine, when a preset benefit corresponding to the preset cost is greater than or equal to a minimum benefit, that the number of products is a target number when a function value corresponding to the supply chain benefit function is the preset benefit; and the sixth determining module is used for determining the number of products corresponding to the minimum supply chain profit function as the target number when the preset profit corresponding to the preset cost is smaller than the minimum profit.
Example 3
According to another aspect of the embodiments of the present invention, there is also provided a storage medium including a stored program, wherein the program performs the method of calculating the number of products in embodiment 1 described above.
Example 4
According to another aspect of the embodiment of the present invention, there is also provided a processor for running a program, wherein the program executes the method for calculating the number of products in embodiment 1 described above.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
In the foregoing embodiments of the present invention, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed technology content may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of the units, for example, may be a logic function division, and may be implemented in another manner, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely a preferred embodiment of the present invention and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present invention, which are intended to be comprehended within the scope of the present invention.

Claims (8)

1. A method of calculating a quantity of a product, comprising:
obtaining product information of a product to be purchased, wherein the product information at least comprises: the cost information of the product to be purchased and the anomaly probability of the product to be purchased being abnormal;
acquiring the required quantity of the first object on the product to be purchased;
constructing a cost function corresponding to the first object based on the product information and the required quantity, wherein the cost function characterizes the association relation between the initial purchase quantity of the first object for purchasing the product to be purchased and the cost consumed by the first object;
determining a target number of products to be purchased for the first object based on the preset cost corresponding to the first object and the cost function, wherein the target number is the number of products to be purchased when the loss of the first object is minimum;
the preset cost is the cost of inputting the first object into the product purchase, which is known in advance;
the method for constructing the cost function corresponding to the first object based on the product information and the required quantity comprises the following steps:
acquiring a first cost of the product to be purchased, wherein the first cost is a unit price of the product to be purchased;
calculating the product of the first cost and the initial purchase quantity to obtain a first fee, wherein the first fee is a single expression in polynomials corresponding to the cost function;
acquiring a second cost corresponding to the product to be purchased, wherein the second cost is the unit price of the product to be purchased by the first object when the number of the abnormal product to be purchased exceeds a preset number;
determining a second cost based on the second cost, the anomaly probability, and the number of demands, wherein the second cost is greater than the first cost;
calculating the sum of the first fee and the second fee to obtain the cost function;
wherein determining a second cost based on the second cost, the anomaly probability, and the demand quantity comprises:
calculating the product of the second cost and the anomaly probability to obtain a first product;
calculating the difference between the required quantity and the initial purchase quantity to obtain a first difference;
calculating a distribution function corresponding to the abnormal quantity, wherein the abnormal quantity is the quantity of the products to be purchased abnormal;
obtaining a first result based on the first difference value and the distribution function;
and calculating the product of the first result and the first product to obtain the second expense.
2. The method of claim 1, wherein determining, under supply chain conditions of decentralized decision, the target quantity of the first object to purchase the product to be purchased based on the preset cost corresponding to the first object and the cost function comprises:
obtaining the maximum cost corresponding to the cost function;
when the preset cost is greater than or equal to the maximum cost, determining the number of products corresponding to the maximum cost function as the target number;
and when the preset cost is smaller than the maximum cost, determining the number of products when the function value corresponding to the cost function is the preset cost as the target number.
3. The method of claim 1, wherein determining, under a centralized decision-making supply chain condition, the target quantity of the first object to purchase the product to be purchased based on the preset cost corresponding to the first object and the cost function comprises:
obtaining a benefit function corresponding to a second object, wherein the second object provides the product to be purchased for the first object;
calculating the difference between the profit function and the cost function to obtain a supply chain profit function;
and determining the target quantity of the products to be purchased by the first object based on the preset cost corresponding to the first object and the supply chain profit function.
4. A method according to claim 3, wherein obtaining a benefit function corresponding to the second object comprises:
acquiring marginal production cost corresponding to the product to be purchased, wherein the marginal production cost is an increase of total cost corresponding to the second object when one product to be purchased is increased;
acquiring a first cost of the product to be purchased, wherein the first cost is a unit price of the product to be purchased;
calculating a difference value between the first cost and the marginal production cost to obtain a second difference value;
and calculating the product of the second difference value and the initial purchase quantity to obtain the benefit function.
5. The method of claim 3, wherein determining the target quantity of the first object to purchase the product to be purchased based on the preset cost corresponding to the first object and the supply chain profit function comprises:
obtaining the minimum benefit corresponding to the supply chain benefit function;
when the preset benefit corresponding to the preset cost is greater than or equal to the minimum benefit, determining that the number of products is the target number when the function value corresponding to the supply chain benefit function is the preset benefit;
and when the preset benefit corresponding to the preset cost is smaller than the minimum benefit, determining the number of products corresponding to the minimum supply chain benefit function as the target number.
6. An apparatus for counting the number of products, wherein the method for counting the number of products according to any one of claims 1 to 5 is performed in the apparatus for counting the number of products, and comprises:
the first acquisition module is used for acquiring product information of a product to be purchased, wherein the product information at least comprises: the cost information of the product to be purchased and the anomaly probability of the product to be purchased being abnormal;
the second acquisition module is used for acquiring the required quantity of the first object on the product to be purchased;
the construction module is used for constructing a cost function corresponding to the first object based on the product information and the required quantity, wherein the cost function characterizes the association relation between the initial purchase quantity of the first object for purchasing the product to be purchased and the cost consumed by the first object;
the determining module is configured to determine, based on a preset cost corresponding to the first object and the cost function, a target number of products to be purchased for the first object, where the target number is a product number of the products to be purchased when a loss of the first object is minimized.
7. A storage medium comprising a stored program, wherein the program performs the method of calculating the number of products of any one of claims 1 to 5.
8. A processor for running a program, wherein the program when run performs the method of calculating the number of products of any one of claims 1 to 5.
CN202110780294.4A 2021-07-09 2021-07-09 Method and device for calculating product quantity Active CN113627728B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110780294.4A CN113627728B (en) 2021-07-09 2021-07-09 Method and device for calculating product quantity

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110780294.4A CN113627728B (en) 2021-07-09 2021-07-09 Method and device for calculating product quantity

Publications (2)

Publication Number Publication Date
CN113627728A CN113627728A (en) 2021-11-09
CN113627728B true CN113627728B (en) 2024-03-15

Family

ID=78379446

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110780294.4A Active CN113627728B (en) 2021-07-09 2021-07-09 Method and device for calculating product quantity

Country Status (1)

Country Link
CN (1) CN113627728B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060019938A (en) * 2004-08-30 2006-03-06 인천대학교 산학협력단 Distribution system using different suppli according to order size
CN108446818A (en) * 2018-02-02 2018-08-24 广东电网有限责任公司电网规划研究中心 A kind of carbon emission power purchase total amount and voluntarily emission reduction total amount determines method
CN111260446A (en) * 2020-02-03 2020-06-09 深圳点链科技有限公司 Block chain-based delivery management method, device, equipment and readable storage medium
CN111313481A (en) * 2020-02-18 2020-06-19 山东科技大学 Unit combination method considering demand utility
CN111476606A (en) * 2020-04-08 2020-07-31 润联软件系统(深圳)有限公司 Multi-target resource allocation method, device, computer equipment and storage medium
CN111598292A (en) * 2020-04-10 2020-08-28 云南电网有限责任公司 Electricity-selling company electricity-purchasing transaction method and system under demand response management
CN111798273A (en) * 2020-07-01 2020-10-20 中国建设银行股份有限公司 Training method of purchase probability prediction model of product and purchase probability prediction method
CN112686700A (en) * 2020-12-30 2021-04-20 深圳前海微众银行股份有限公司 Artificial intelligence-based product attribute decision-making method and device and electronic equipment
CN114641789A (en) * 2019-08-30 2022-06-17 内拉伊株式会社 Commodity exchange system, commodity exchange method, and commodity exchange program

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10410150B2 (en) * 2014-11-04 2019-09-10 Sap Se Efficient computerized calculation of resource reallocation scheduling schemes
TWI687890B (en) * 2019-05-13 2020-03-11 國立清華大學 Method and apparatus for reinforcement learning based energy bidding

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060019938A (en) * 2004-08-30 2006-03-06 인천대학교 산학협력단 Distribution system using different suppli according to order size
CN108446818A (en) * 2018-02-02 2018-08-24 广东电网有限责任公司电网规划研究中心 A kind of carbon emission power purchase total amount and voluntarily emission reduction total amount determines method
CN114641789A (en) * 2019-08-30 2022-06-17 内拉伊株式会社 Commodity exchange system, commodity exchange method, and commodity exchange program
CN111260446A (en) * 2020-02-03 2020-06-09 深圳点链科技有限公司 Block chain-based delivery management method, device, equipment and readable storage medium
CN111313481A (en) * 2020-02-18 2020-06-19 山东科技大学 Unit combination method considering demand utility
CN111476606A (en) * 2020-04-08 2020-07-31 润联软件系统(深圳)有限公司 Multi-target resource allocation method, device, computer equipment and storage medium
CN111598292A (en) * 2020-04-10 2020-08-28 云南电网有限责任公司 Electricity-selling company electricity-purchasing transaction method and system under demand response management
CN111798273A (en) * 2020-07-01 2020-10-20 中国建设银行股份有限公司 Training method of purchase probability prediction model of product and purchase probability prediction method
CN112686700A (en) * 2020-12-30 2021-04-20 深圳前海微众银行股份有限公司 Artificial intelligence-based product attribute decision-making method and device and electronic equipment

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
The value of electronic marketplace in a perishable product inventory system with auto-correlated demand;Bao, Jie;《OR SPECTRUM》;第29卷(第4期);全文 *
不确定环境下的合同设计与生产决策模型;兰燕飞;《中国博士学位论文全文数据库 (经济与管理科学辑)》;20130515(第2013年第5期);全文 *
基于福利经济学的智能电网外部性研究;傅砾;;陕西电力;20121120(第11期);全文 *
需求与生产成本扰动下的供应链最优定价订货模型;桂寿平;田飞飞;杨磊;张智勇;;华东经济管理;20111201(第12期);全文 *

Also Published As

Publication number Publication date
CN113627728A (en) 2021-11-09

Similar Documents

Publication Publication Date Title
Marchi et al. A joint economic lot size model with financial collaboration and uncertain investment opportunity
Tsai On supply chain cash flow risks
Katehakis et al. Cash‐flow based dynamic inventory management
Arani et al. Integrated material-financial supply chain master planning under mixed uncertainty
US7289968B2 (en) Forecasting demand for critical parts in a product line
US20090299779A1 (en) Method for managing inventory under price protection
WO2007025287A2 (en) Methods and systems for optimal pricing
Taleizadeh et al. Coordination of a two‐echelon supply chain in presence of market segmentation, credit payment, and quantity discount policies
Park et al. Inventory sharing in the presence of commodity markets
Anton et al. Dynamic price competition with capacity constraints and a strategic buyer
JP2006268557A (en) Sma management system
Xu et al. Optimal spot trading integrated with quantity flexibility contracts
Yan et al. Supplier's capacity investment strategy with factoring finance
Xu et al. Stockout recovery under consignment: the role of inventory ownership in supply chains
WO2015168338A1 (en) Framework for assessing the sensitivity of productivity measures to exogenous factors and operational decisions
KR20170110829A (en) A program for cloud funding platform to establish sales base of goods/services and a server implemented by the same
CN113627728B (en) Method and device for calculating product quantity
JP4508015B2 (en) Commodity transaction risk management system
Nault Mitigating underinvestment through an IT-enabled organization form
US20140114792A1 (en) Electronic commerce system
US8438093B1 (en) Method and system for contracting producer milk on a class III basis
Tsao et al. Designing a supply chain network under a dynamic discounting-based credit payment program
US11151651B1 (en) System and method for operating a family of mutual funds or ETFs
CN113627729B (en) Method and device for determining product quantity and electronic device
US20060265300A1 (en) Financial contracts and market indicators based on such financial contracts

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