[go: up one dir, main page]

JP2017054485A - Stock allocation device and stock allocation method - Google Patents

Stock allocation device and stock allocation method Download PDF

Info

Publication number
JP2017054485A
JP2017054485A JP2016112383A JP2016112383A JP2017054485A JP 2017054485 A JP2017054485 A JP 2017054485A JP 2016112383 A JP2016112383 A JP 2016112383A JP 2016112383 A JP2016112383 A JP 2016112383A JP 2017054485 A JP2017054485 A JP 2017054485A
Authority
JP
Japan
Prior art keywords
inventory
allocation
allocated
product
combination solution
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.)
Granted
Application number
JP2016112383A
Other languages
Japanese (ja)
Other versions
JP6673750B2 (en
Inventor
池田 英生
Hideo Ikeda
英生 池田
楢崎 博司
Hiroshi Narasaki
博司 楢崎
貴成 白坂
Takanari Shirasaka
貴成 白坂
良幸 多田
Yoshiyuki Tada
良幸 多田
武志 山村
Takeshi Yamamura
武志 山村
山口 哲治
Tetsuji Yamaguchi
哲治 山口
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.)
Kobe Steel Ltd
Original Assignee
Kobe Steel 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 Kobe Steel Ltd filed Critical Kobe Steel Ltd
Publication of JP2017054485A publication Critical patent/JP2017054485A/en
Application granted granted Critical
Publication of JP6673750B2 publication Critical patent/JP6673750B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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

  • General Factory Administration (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

【課題】複数種の製品を作製するための複数種の在庫品の各引当数のより適した組合せを設定できる在庫引当方法及び在庫引当装置を提供する。
【解決手段】本発明の在庫引当方法は、同一又は相異なる複数種の製品を作製するために引き当てる1種又は複数種の在庫品の引当数の組合せを設定した引当組合せ解において、任意の1種の前記製品に対する任意の1種の前記在庫品の引当数を変更した仮引当組合せ解を作成する第1工程と、前記引当組合せ解の評価値A及び前記仮引当組合せ解の評価値Bを算出し、前記仮引当組合せ解の評価値Bが前記引当組合せ解の評価値A未満の場合に前記引当組合せ解を変更せず、前記仮引当組合せ解の評価値Bが前記引当組合せ解の評価値A以上の場合に前記仮引当組合せ解を新たな引当組合せ解に書き換える第2工程と、を含み、前記第1工程及び前記第2工程を1回以上行うことを特徴とする。
【選択図】図2
An inventory allocation method and an inventory allocation apparatus capable of setting a more suitable combination of allocation numbers of a plurality of types of inventory items for producing a plurality of types of products.
The inventory allocation method according to the present invention is an allocation combination solution in which a combination of allocation numbers of one or a plurality of types of inventory items to be allocated to produce the same or different types of products is set to any one of the allocation combination solutions. A first step of creating a provisional provision combination solution in which the number of provisions of any one kind of the inventory for the kind of product is changed, and an evaluation value A of the provision combination solution and an evaluation value B of the provisional provision combination solution When the evaluation value B of the provisional provision combination solution is less than the evaluation value A of the provision combination solution, the provision combination solution is not changed, and the evaluation value B of the provisional provision combination solution is the evaluation of the provision combination solution. A second step of rewriting the provisional allocation combination solution to a new allocation combination solution when the value is greater than or equal to a value A, wherein the first step and the second step are performed once or more.
[Selection] Figure 2

Description

本発明は、製造業の工場で製品を製造するための複数の受注オーダーに対して複数種の在庫品を引き当てる業務において、引当可能な在庫品の種類に一定の自由度がある場合に、在庫の汎用性(引当可能な受注オーダーの幅)や生産性等の優先度を考慮して最適の在庫品の引当数の組合せを決定し得る在庫引当装置及び在庫引当方法に関する。   In the business of assigning a plurality of types of inventory items to a plurality of orders received for manufacturing products at a manufacturing factory, the present invention can be used when there is a certain degree of freedom in the types of inventory items that can be allocated. The present invention relates to an inventory allocating apparatus and an inventory allocating method that can determine the optimum combination of allocation numbers of inventory items in consideration of the generality of the order (the range of orders that can be allocated) and the priority of productivity.

設計製品の製造において、それぞれ仕様の異なる製品を作製する受注オーダーに在庫品を引き当てる際には、オペレータが製品に対する在庫品の組み合わせを試行錯誤して、各製品に引き当てる各在庫品の種類及びその引当数を決定している。一般的には、それぞれの受注オーダーに対して引当可能な在庫品と引当不可能な在庫品とが存在するので、その条件の下で、できるだけ汎用性の高い在庫品を手元に残しながら、納期の近い受注オーダーを充足するように各在庫品の引当数を設定する。   In the manufacture of design products, when assigning inventory to a sales order that produces a product with different specifications, the operator performs a trial and error on the combination of the inventory for the product, and the type of each inventory to be allocated to each product and its The number of provisions has been determined. In general, there are inventory items that can be allocated and inventory items that cannot be allocated for each sales order, so that the delivery date can be kept while keeping the most versatile inventory items at hand. The number of provisions for each stock item is set so as to satisfy a close order.

このような在庫品の引当は、作製する製品の種類が少ない場合は、オペレータが複数の在庫品のうちから最適な在庫品の引当数の組合せを決定できるが、上記在庫品の種類数及び製品を作製する受注オーダーの数が増えるにつれて、それら全てを満足するように各受注オーダーに対して各在庫品の引当数を設定するための計算量は指数関数的に増加する。このため、受注オーダー及び在庫品の双方の選択肢が多い場合には、オペレータが、各製品を作製するために適した在庫品の引当数の組合せを設定することが困難になる。   In the case of such inventory allocation, when the number of types of products to be produced is small, the operator can determine the optimal combination of the allocation numbers of inventory from a plurality of inventory. As the number of received orders for producing the product increases, the amount of calculation for setting the number of provisions for each stock item for each received order to satisfy all of them increases exponentially. For this reason, when there are many options for both the order receipt and the inventory, it is difficult for the operator to set a combination of the number of allocations of inventory suitable for producing each product.

そこで、上記選択肢の中から最適な在庫品の引当数の組合せを特定する方法として、例えば下記非特許文献1に開示の線形計画法、又はその解空間を整数に限定する整数計画法が考えられる。非特許文献1に開示の上記方法は、各製品を作製するための各在庫品の引当数に対し、各種の制約条件を考慮して評価関数を設定し、当該評価関数が最大となるように各製品を作製するための各在庫品の引当数を最適の値に設定することによって行う。   Therefore, as a method for specifying the optimal combination of the number of stocks to be reserved from the above options, for example, linear programming disclosed in Non-Patent Document 1 below, or integer programming that limits the solution space to integers can be considered. . In the above method disclosed in Non-Patent Document 1, an evaluation function is set in consideration of various constraint conditions for the number of inventory items to be prepared for each product so that the evaluation function is maximized. This is done by setting the number of inventory items to be prepared for each product to an optimum value.

数理計画法入門 森北出版 2014年11月出版(ISBN−13:978−4627921818)Introduction to Mathematical Programming Law Morikita Publishing November 2014 Publication (ISBN-13: 978-462792818)

上記線形計画法及び整数計画法は、線形的な制約条件の下では有効に引当数を設定することができるが、非線形的な制約条件を扱いにくいという欠点がある。ここでの「非線形的な制約条件」とは、線形的な制約条件(線形制約式)として表現できない制約条件を意味し、具体的には、ある製品を作製するために引き当てる在庫品の種類は多くとも3種まで、できれば2種以下に抑えたいという制約条件、複数種の在庫品をグルーピングし、その特定のグループに属する在庫品のみを引き当てたいという制約条件等が考えられる。   The above linear programming method and integer programming method can effectively set the number of allocations under linear constraints, but have a drawback that it is difficult to handle nonlinear constraints. “Non-linear constraints” here means constraints that cannot be expressed as linear constraints (linear constraint equations). Specifically, the types of inventory that are allocated to produce a certain product are: There can be constrained conditions such as a maximum of 3 types, preferably 2 or less if possible, a group of plural types of inventory items, and a limitation condition that only the inventory items belonging to the specific group are allocated.

上記非線形的な制約条件を考慮して製品に対する在庫品の引当数の最適解を算出するアルゴリズムとして、分枝限定法を応用することも考えられる。しかしながら非線形的な制約条件が増えると解空間を分割する組合せの数が指数関数的に増えるため、分枝限定法を以ってしても最適な在庫品の引当数を設定しにくくなる。   The branch and bound method may be applied as an algorithm for calculating the optimal solution for the number of inventory items to be stocked in consideration of the nonlinear constraint condition. However, as the number of nonlinear constraints increases, the number of combinations that divide the solution space increases exponentially, making it difficult to set the optimal number of inventory items to be allocated even with the branch and bound method.

上記分枝限定法以外の最適解を算出するアルゴリズムとして、局所探索法と呼ばれる手法もある。局所探索法は、まず、出発点となる暫定解(初期解)に対し、局所的に異なる解(近傍解)を設定し、初期解の評価値と近傍解の評価値を評価関数に基づいてそれぞれ算出して比較する。次に、例えばコンピュータの演算処理部は、近傍解の方が評価値が大きい場合には近傍解を新たな暫定解に設定し、初期解の方が評価値が大きい場合には暫定解を変更しないという作業を繰り返す。この暫定解の書き換えを繰り返すほど暫定解が最適解に近づけることができる。上記局所探索法を在庫引当処理に適用することにより、評価値が大きい引当組合せ解を設定し得る。   As an algorithm for calculating an optimal solution other than the branch and bound method, there is a technique called a local search method. In the local search method, first, a locally different solution (neighboring solution) is set for the provisional solution (initial solution) as a starting point, and the evaluation value of the initial solution and the evaluation value of the neighboring solution are based on the evaluation function. Calculate and compare each. Next, for example, the computation processing unit of the computer sets the neighborhood solution as a new provisional solution when the neighborhood solution has a larger evaluation value, and changes the provisional solution when the initial solution has a larger evaluation value. Repeat the process of not. The more the rewriting of the provisional solution is repeated, the closer the provisional solution can be to the optimum solution. By applying the local search method to the inventory allocation process, an allocation combination solution having a large evaluation value can be set.

本発明は、このような事情に鑑みてなされたものであり、その目的とするところは、複数種の製品を作製するための複数種の在庫品の各引当数のより適した組合せを設定できる在庫引当方法及び在庫引当装置を提供することである。   The present invention has been made in view of such circumstances, and the purpose of the present invention is to set a more suitable combination of the number of provisions of a plurality of types of inventory for producing a plurality of types of products. An inventory allocation method and an inventory allocation apparatus are provided.

本発明者は、種々検討した結果、上記目的は、以下の本発明により達成されることを見出した。すなわち、本発明の一態様に係る在庫引当方法は、同一又は相異なる複数種の製品を作製するために引き当てる1種又は複数種の在庫品の引当数の組合せを設定した引当組合せ解において、任意の1種の前記製品に対する任意の1種の前記在庫品の引当数を変更した仮引当組合せ解を作成する第1工程と、前記引当組合せ解の評価値A及び前記仮引当組合せ解の評価値Bを同一の評価関数を用いて算出し、前記仮引当組合せ解の評価値Bが前記引当組合せ解の評価値A未満の場合に前記引当組合せ解を変更せず、前記仮引当組合せ解の評価値Bが前記引当組合せ解の評価値A以上の場合に前記仮引当組合せ解を新たな引当組合せ解に書き換える第2工程と、を含み、前記第1工程及び前記第2工程を1回以上行うことを特徴とする。   As a result of various studies, the present inventor has found that the above object is achieved by the present invention described below. That is, the inventory allocation method according to an aspect of the present invention is an allocation combination solution in which a combination of allocation numbers of one or more types of inventory items to be allocated in order to produce the same or different types of products is arbitrary. A first step of creating a provisional provision combination solution in which the number of provisions of any one kind of the inventory for one kind of the product is changed, an evaluation value A of the provision combination solution, and an evaluation value of the provisional provision combination solution B is calculated using the same evaluation function, and when the evaluation value B of the provisional provision combination solution is less than the evaluation value A of the provision combination solution, the provision combination solution is not changed, and the evaluation of the provisional provision combination solution A second step of rewriting the temporary allocation combination solution to a new allocation combination solution when the value B is equal to or greater than the evaluation value A of the allocation combination solution, and performing the first step and the second step one or more times It is characterized by that.

上記のように引当組合せ解における特定の製品に対する特定の在庫品の引当数を局所的に変更し、その変更前後の評価値を比較して、より評価値が好ましくなるように引当組合せ解を書き換えることにより、引当組合せ解の各製品に対する各在庫品の引当数を最適解に近づけることができる。しかも、製品と在庫品の組合せを変えつつ上記第1工程及び上記第2工程を実行する回数を多くするほど、各製品に対する在庫品の引当数を最適解に近づけることができる。   As described above, the number of provisions of a specific inventory for a specific product in a provision combination solution is locally changed, the evaluation values before and after the change are compared, and the provision combination solution is rewritten so that the evaluation value becomes more favorable. As a result, the number of allocations of each inventory item for each product of the allocation combination solution can be brought close to the optimal solution. Moreover, as the number of times the first step and the second step are executed while changing the combination of products and stocks, the number of stocks allocated to each product can be made closer to the optimal solution.

上記構成において、好ましくはn(nは2以上の整数)種類の製品のうちの前記特定の1の製品iを作製するために用いるm(mは自然数)種類の在庫品のうちから特定の1の在庫品jを選択して当該在庫品jを引き当てるべき優先度をpi,jとし、当該製品iを作製するために引き当てる前記在庫品jの引当数をai,jとする場合、前記評価値A及びBは下記式(I)の評価関数Fによって算出される。 In the above-described configuration, preferably, a specific 1 out of m (m is a natural number) stocks used to produce the specific 1 product i among n (n is an integer of 2 or more) types of products. , J i is the priority to allocate the inventory item j, and p i, j is the priority to allocate the inventory item j, and a i, j is the allocation number of the inventory item j to be allocated to produce the product i. Evaluation values A and B are calculated by an evaluation function F of the following formula (I).

上記構成によれば、式(I)に示す数式によって引当組合せ解及び仮引当組合せ解の優劣を数値化することができるため、評価値A及びBの優劣を簡便に判定することができ、各製品に対する各在庫品の引当数を最適解に近づけやすくなる。   According to the above configuration, since the superiority or inferiority of the provision combination solution and the provisional provision combination solution can be quantified by the mathematical expression shown in the equation (I), the superiority or inferiority of the evaluation values A and B can be easily determined. This makes it easier to approximate the number of stocks allocated for each product to the optimal solution.

上記構成において、前記第1工程で変更する引当数の在庫品を用いて作製する製品を作製するために引き当てる各在庫品の引当数の下限値が定められている場合、前記第1工程で変更される引当数は、前記下限値以上の整数とされることが好ましい。   In the above configuration, when the lower limit value of the allocation number of each inventory to be allocated to produce a product to be manufactured using the inventory of the allocation number changed in the first step is changed in the first step It is preferable that the allocated number to be set is an integer equal to or greater than the lower limit value.

上記構成によれば、各製品を作製するために引き当てる各在庫品の引当数に下限値が定められていることにより、各在庫品から1つずつ細切れで在庫品が引き当てられることを防止できるので、各製品を作製するために引き当てる各在庫品の種類数を少なくすることができる。これにより製品に不具合が生じたときにその不具合の原因となる在庫品を特定しやすくなり、品質トレーサビリティを向上させることができる。   According to the above configuration, since the lower limit is set for the number of allocations of each inventory to be allocated for producing each product, it is possible to prevent the inventory from being allocated in one piece from each inventory. It is possible to reduce the number of types of each stock to be allocated to produce each product. As a result, when a defect occurs in the product, it is easy to identify an inventory item that causes the defect, and quality traceability can be improved.

上記局所探索法は、製品に引き当てる全ての在庫品の引当数の合計、又は在庫品の在庫数等のように、特定の製品に対する特定の在庫品の組合せだけでは決まらない準大域的な制約条件を満たす近傍解をどのように効率的に設定するかがポイントとなるため、非線形的な制約条件が設定される場合には、下記の修正工程を含めることが好ましい。   The above-mentioned local search method is a quasi-global constraint that cannot be determined only by a specific combination of stocks for a specific product, such as the total number of all stocks allocated to a product or the number of stocks in stock. Since the point is how to efficiently set a neighborhood solution that satisfies the above, it is preferable to include the following correction step when a nonlinear constraint condition is set.

すなわち、好ましくは、前記仮引当組合せ解において、前記第1工程で変更した引当数の在庫品を用いて作製する特定の1種の製品aを作製するために引き当てる全ての前記在庫品の引当数の合計が、当該製品aを作製するために必要な前記在庫品の引当数よりも多い場合、前記引当数の合計から前記製品aを作製するために必要な前記在庫品の引当数を引いて得られた値を上限とする任意の自然数を設定し、前記製品aを作製するために引き当てる全ての在庫品のうち、前記第1工程で変更した引当数の在庫品以外の前記在庫品の引当数から当該自然数を減算した引当数を新たな引当数に設定する第1引当数修正工程を含む。   That is, preferably, in the provisional allocation combination solution, the allocation number of all the inventory items to be allocated in order to produce one specific kind of product a that is produced using the inventory number of the allocation number changed in the first step Is larger than the number of provisions of the inventory necessary to produce the product a, the number of provisions of the inventory necessary to produce the product a is subtracted from the total of the provisions. Arbitrary natural number up to the obtained value is set as an upper limit, and among all the inventory items to be allocated for producing the product a, the allocation of the inventory items other than the allocation number of inventory items changed in the first step A first allocation number correction step of setting the allocation number obtained by subtracting the natural number from the number as a new allocation number.

上記構成によれば、第1工程によって設定された仮引当組合せ解が、在庫品の引当数の制約条件を満たさない場合に当該制約条件を満たすように仮引当組合せ解の在庫品の引当数を修正することができる。しかも、製品aを作製するために引き当てる在庫品の引当数の合計と、製品aを作製するために必要な在庫品の引当数との差を上限として任意の自然数を設定することにより、引当数を変更した在庫品以外の複数の在庫品の引当数を修正することができ、引当数の修正の網羅性を担保することができる。   According to the above configuration, when the provisional allocation combination solution set in the first step does not satisfy the constraint condition of the inventory allocation number, the allocation number of the inventory item of the provisional allocation combination solution is set so as to satisfy the constraint condition. It can be corrected. In addition, by setting an arbitrary natural number up to the difference between the total number of inventory items allocated to produce the product a and the number of inventory items necessary to produce the product a, It is possible to correct the number of provisions of a plurality of inventory items other than the inventory items that have been changed, and to ensure the completeness of the correction of the number of allocations.

上記構成において、好ましくは、第1引当数修正工程において設定された新たな引当数が、当該新たな引当数の在庫品によって作製される製品を作製するために許容される前記在庫品の引当数の下限値未満の場合、当該新たな引当数を0にする工程を含む。   In the above-described configuration, preferably, the new allocation number set in the first allocation number correcting step is an allowance number of the inventory that is allowed to produce a product manufactured by the inventory of the new allocation number. If it is less than the lower limit value, the step of setting the new allocation number to 0 is included.

上記構成によれば、在庫品の引当数の下限値未満の引当数が設定された在庫品の引当数を0にすることができるので、引当数の下限値の制約条件を満たすように引当数を修正することができる。これにより各製品を作製するために引き当てる各在庫品の種類数を少なくすることができ、製品に不具合が生じたときにその不具合の原因となる在庫品を特定しやすくすることができる。   According to the above configuration, since the number of inventory items for which the number of provisions less than the lower limit value of the number of inventory items is set can be reduced to 0, the number of allocations so as to satisfy the constraint condition of the lower limit value of the number of allocation items Can be corrected. As a result, the number of types of each inventory to be allocated for producing each product can be reduced, and when a malfunction occurs in the product, it is possible to easily identify the inventory that causes the malfunction.

上記構成において、好ましくは、複数種の在庫品のうちの互いに連関する性質を示す2種以上の在庫品を含む在庫品群が1以上存在する場合であって、前記第1引当数修正工程において新たに引当数が設定された在庫品を含む在庫品群に含まれる全ての在庫品の引当数の総和が、当該新たな引当数の在庫品によって作製される製品を作製するために許容される前記在庫品群に含まれる全ての在庫品の引当数の総和の下限値未満の場合、当該新たな引当数を設定した在庫品を含む在庫品群に含まれる全ての在庫品の引当数を0にする工程を含む。   In the above-described configuration, preferably, there is one or more inventory groups including two or more types of inventory items that are associated with each other among a plurality of types of inventory items, and in the first allocation number correcting step, The sum of the numbers of all inventory items included in the inventory group, including the newly allocated number of inventory items, is allowed to produce a product made with the new allocated number of inventory items If the total number of all the inventory items included in the inventory group is less than the lower limit value, the number of all inventory items included in the inventory group including the inventory item for which the new allocation number is set is 0. The process of making.

上記構成によれば、在庫品群に含まれる全ての在庫品の引当数の総和の下限値未満の引当数が設定された在庫品群の全ての在庫品の引当数を0にすることができるので、在庫品群の引当数の総和の下限値の制約条件を満たすように在庫品群に含まれる全ての在庫品の引当数を修正することができる。これにより各製品を作製するために引き当てる各在庫品群の種類数を少なくすることができ、製品に不具合が生じたときにその不具合の原因となる在庫品群を特定しやすくすることができる。   According to the above configuration, the number of provisions of all the inventory items in the inventory group in which the number of provisions less than the lower limit of the total number of provisions of all the inventory items included in the inventory group is set can be reduced to zero. Therefore, the allocation number of all the inventory items included in the inventory item group can be corrected so as to satisfy the constraint condition of the lower limit value of the total sum of the allocation number of the inventory item group. As a result, the number of types of each stock group allocated for producing each product can be reduced, and when a fault occurs in the product, it is possible to easily identify the stock group that causes the fault.

上記構成において、好ましくは、前記仮引当組合せ解における前記第1工程で引当数を変更した在庫品bの全ての引当数の合計が、当該在庫品bの在庫数よりも多い場合、当該在庫品bの引当数の合計から当該在庫品bの在庫数を引いて得られた値を上限とする任意の自然数を設定し、前記第1工程で変更した引当数以外の前記在庫品bの引当数から当該自然数を減算した引当数を新たな引当数に設定する第2引当数修正工程を含む。   In the above configuration, preferably, when the total of all the allocation numbers of the inventory item b in which the allocation number is changed in the first step in the provisional allocation combination solution is larger than the inventory number of the inventory item b, the inventory item An arbitrary natural number whose upper limit is a value obtained by subtracting the inventory number of the inventory item b from the total allocation number of b is set, and the allocation number of the inventory item b other than the allocation number changed in the first step A second allocation number correcting step of setting the allocation number obtained by subtracting the natural number from the new allocation number.

上記構成によれば、第1工程によって設定された仮引当組合せ解が在庫品bの在庫数の制約条件を満たさない場合に、当該制約条件を満たすように仮引当組合せ解の在庫品bの引当数を修正することができる。しかも、在庫品bの引当数の合計と当該在庫品bの在庫数との差を上限として任意の自然数を設定することにより、引当数を変更した在庫品以外の複数の在庫品の引当数を修正することができ、引当数の修正の網羅性を担保することができる。   According to the above configuration, when the provisional allocation combination solution set in the first step does not satisfy the constraint condition of the inventory quantity of the inventory item b, the allocation of the inventory item b of the provisional allocation combination solution so as to satisfy the constraint condition. The number can be corrected. In addition, by setting an arbitrary natural number up to the difference between the total number of provisions for inventory item b and the inventory number for inventory item b, the allocation number for a plurality of inventory items other than the inventory item whose allocation number has been changed can be obtained. It can be corrected, and the completeness of the correction of the number of provisions can be secured.

上記構成において、第2引当数修正工程で設定された新たな引当数が、当該新たな引当数の在庫品によって作製される製品を作製するために許容される前記在庫品の引当数の下限値未満の場合、当該新たな引当数を0にする工程を含むことが好ましい。   In the above-described configuration, the new allocation number set in the second allocation number correction step is a lower limit value of the allocation number of the inventory that is allowed to produce a product manufactured by the inventory of the new allocation number If it is less, it is preferable to include a step of setting the new allocation number to zero.

上記構成によれば、在庫品の引当数の下限値未満の引当数が設定された在庫品の引当数を0にすることができるので、引当数の下限値の制約条件を満たすように引当数を修正することができる。これにより各製品を作製するために引き当てる各在庫品の種類数を少なくすることができ、製品に不具合が生じたときにその不具合の原因となる在庫品を特定しやすくすることができる。   According to the above configuration, since the number of inventory items for which the number of provisions less than the lower limit value of the number of inventory items is set can be reduced to 0, the number of allocations so as to satisfy the constraint condition of the lower limit value of the number of allocation items Can be corrected. As a result, the number of types of each inventory to be allocated for producing each product can be reduced, and when a malfunction occurs in the product, it is possible to easily identify the inventory that causes the malfunction.

上記構成において、複数種の在庫品のうちの互いに連関する性質を示す2種以上の在庫品を含む在庫品群が1以上存在する場合であって、第2引当数修正工程において新たに引当数が設定された在庫品を含む在庫品群に含まれる全ての在庫品の引当数の総和が、当該新たな引当数の在庫品によって作製される製品を作製するために許容される前記在庫品群に含まれる全ての在庫品の引当数の総和の下限値未満の場合、当該新たな引当数を設定した在庫品を含む在庫品群に含まれる全ての在庫品の引当数を0にする工程を含むことが好ましい。   In the above configuration, when there is one or more inventory groups including two or more types of inventory items that are associated with each other among a plurality of types of inventory items, the number of allocations newly added in the second allocation number correction step The inventory group in which the sum of the numbers of all the inventory items included in the inventory group including the inventory items for which the item is set is permitted to produce a product made by the inventory items of the new allocation number If the total number of all the inventory items included in the inventory is less than the lower limit of the total number of inventory items, the step of setting the number of all inventory items included in the inventory group including the inventory item for which the new allocation number is set to 0 It is preferable to include.

上記構成によれば、在庫品群に含まれる全ての在庫品の引当数の総和の下限値未満の引当数が設定された在庫品群に含まれる全ての在庫品の引当数を0にすることができるので、1つの在庫品群に含まれる全ての在庫品の引当数の総和の下限値の制約条件を満たすように在庫品群に含まれる全ての在庫品の引当数を修正することができる。これにより各製品を作製するために引き当てる各在庫品群の種類数を少なくすることができ、製品に不具合が生じたときにその不具合の原因となる在庫品群を特定しやすくすることができる。   According to the above configuration, the number of provisions of all inventory items included in the inventory group in which the number of provisions less than the lower limit of the total number of provisions of all inventory items included in the inventory group is set to zero. Therefore, the number of provisions of all the inventory items included in the inventory group can be modified so as to satisfy the constraint condition of the lower limit of the total number of the allocation numbers of all inventory items included in one inventory group. . As a result, the number of types of each stock group allocated for producing each product can be reduced, and when a fault occurs in the product, it is possible to easily identify the stock group that causes the fault.

上記構成において、好ましくは、前記第1工程で引当数を変更した在庫品を用いて作製する前記製品を作製するために引き当てる前記在庫品の種類数が、当該製品を作製するために許容される前記在庫品の種類数の上限よりも多い場合、前記第1工程で引当数を変更した在庫品以外の当該製品を作製するために引き当てる在庫品の引当数を0にする工程を含む。   In the above configuration, preferably, the number of types of the inventory to be allocated to produce the product to be produced using the inventory whose number of allocation has been changed in the first step is allowed for producing the product. When there is more than the upper limit of the number of types of inventory items, the method includes the step of setting the allocation number of inventory items to be allocated to produce a product other than the inventory item whose allocation number is changed in the first step to zero.

上記構成によれば、第1工程によって設定された仮引当組合せ解が在庫品の種類数の制約条件を満たさない場合に、当該制約条件を満たすように仮引当組合せ解の在庫品の種類数を修正することができる。   According to the above configuration, when the provisional allocation combination solution set in the first step does not satisfy the constraint condition on the number of types of inventory items, the number of types of inventory items in the provisional allocation combination solution is set so as to satisfy the constraint conditions. It can be corrected.

上記構成において、好ましくは、前記第1工程で引当数を変更した在庫品を用いて作製する前記製品を作製するために引き当てる前記在庫品を含む在庫品群の種類数が、当該製品を作製するために許容される前記在庫品群の種類数の上限よりも多い場合、前記第1工程で引当数を変更した在庫品を含む在庫品群以外のいずれか1の在庫品群に含まれる全ての在庫品の引当数を0にする工程をさらに含む。   In the above-described configuration, preferably, the number of types of inventory items including the inventory to be allocated to produce the product to be produced using the inventory whose number of allocation has been changed in the first step produces the product. If there is more than the upper limit of the number of types of the inventory group allowed for all the inventory groups included in any one inventory group other than the inventory group including the inventory whose number of allocation has been changed in the first step The method further includes a step of reducing the number of inventory items to be reserved.

上記構成によれば、第1工程で引当数を変更することによって製品を作製するために引き当てる在庫品を含む在庫品群の種類数が1増えた場合に、第1工程で引当数を変更した在庫品を含む在庫品群以外のいずれか1の在庫品群に含まれる全ての在庫品の引当数を0にすることにより、当該製品を作製するために引き当てる在庫品群の種類数を1減らすことができる。これにより第1工程で引当数を変更したことによって増加した在庫品群の種類数を1減らすことができ、在庫品群の種類数の制約条件を満たすように引当組合せ解を修正することができる。   According to the above configuration, when the number of types of inventory group including the inventory to be allocated for producing products is changed by 1 by changing the allocation number in the first process, the allocation number is changed in the first process. By reducing the number of all the inventory items included in any one of the inventory groups other than the inventory group including the inventory items to 0, the number of types of inventory groups allocated to produce the product is reduced by 1. be able to. As a result, the number of types of inventory group increased by changing the number of allocations in the first step can be reduced by 1, and the allocation combination solution can be modified to satisfy the constraint on the number of types of inventory group. .

上記構成において、好ましくは、前記仮引当組合せ解の評価値Bが前記引当組合せ解の評価値A未満の場合に前記仮引当組合せ解を引当組合せ解に設定する第3工程を含み、予め設定した確率で前記第2工程に代えて前記第3工程を行う。   In the above configuration, preferably, the method includes a third step of setting the provisional provisioning combination solution as the provisioning combination solution when the evaluation value B of the provisional provisioning combination solution is less than the evaluation value A of the provisioning combination solution. The third step is performed instead of the second step with probability.

一般に、引当組合せ解における評価値の解空間は多峰性の評価値分布を有するものと推察されるが、所定の確率で第2工程に代えて第3工程を実行することにより仮引当組合せ解の評価値が引当組合せ解の評価値よりも低くなった場合でも仮引当組合せ解を棄却せずに引当組合せ解として採用することができる。そして、当該引当組合せ解に基づいて次の仮引当組合せ解を設定することにより、一峰の局所解から脱出して別の峰に移動して解空間全体内の最適解を模索することができる。   In general, it is inferred that the solution space of evaluation values in the allocation combination solution has a multimodal evaluation value distribution, but the provisional allocation combination solution is executed by executing the third step instead of the second step with a predetermined probability. Even if the evaluation value is lower than the evaluation value of the allocation combination solution, the provisional allocation combination solution can be adopted as the allocation combination solution without rejecting. Then, by setting the next provisional allocation combination solution based on the allocation combination solution, it is possible to escape from one local solution and move to another peak to search for an optimal solution in the entire solution space.

上記構成において、前記複数種の在庫品のうちの互いに連関する性質を示す2種以上の在庫品を含む在庫品群が1以上存在する場合であって、かつ前記第1工程で変更した引当数の在庫品を用いて作製する製品を作製するために引き当てる在庫品を含む在庫品群に対し、当該在庫品群に含まれる全ての在庫品の引当数の総和の下限値が定められている場合、前記第1工程で変更した引当数の在庫品を含む在庫品群に含まれる全ての在庫品の引当数の総和が、前記下限値以上の整数となるように当該在庫品群に含まれる在庫品のうちの前記第1工程で引当数を変更した在庫品以外の在庫品の引当数を変更する準第1工程をさらに含むことが好ましい。   In the above-described configuration, the number of provisions changed when there is one or more inventory items including two or more types of inventory items that are associated with each other among the plurality of types of inventory items, and changed in the first step For a stock group that includes a stock to be allocated to produce a product that is manufactured using the stock of the stock, a lower limit is set for the total number of provisions for all stock in the stock group The inventory included in the inventory group so that the sum of the allocation numbers of all inventory items included in the inventory group including the inventory number of allocations changed in the first step is an integer equal to or greater than the lower limit value. It is preferable that the method further includes a quasi first step of changing the allocation number of inventory items other than the inventory item whose allocation number is changed in the first step.

上記構成によれば、上記第1工程及び準第1工程を組み合わせて引当数を変更することにより、各在庫品群を構成単位として在庫品群に含まれる全ての在庫品の引当数を変更することができるので、在庫品の引当数を変更する自由度を高めることができる。これにより仮引当組合せ解が引当組合せ解よりも優れた評価値となりやすくなるので、第2工程において引当組合せ解が更新されやすくなる。   According to the above configuration, by changing the allocation number by combining the first process and the quasi first process, the allocation number of all the inventory items included in the inventory group is changed with each inventory group as a constituent unit. Therefore, it is possible to increase the degree of freedom to change the number of inventory items. As a result, the provisional allocation combination solution is likely to have an evaluation value superior to the allocation combination solution, so that the allocation combination solution is easily updated in the second step.

上記構成において、製品を作製するために許容される前記在庫品の種類数に上限が設定されている場合において、当該上限をAとし、当該製品を作製するために必要な前記在庫品の引当数をBとし、当該製品を作製するために引き当てられる各在庫品の引当数の合計値をCとし、次に引当処理を実行するまでに補充される予定の1種の在庫品の補充予定数をDとすると、当該製品を作製するために引き当てる前記在庫品の種類数が、A−(B−C)÷Dによって算出される値の小数点以下を切り捨てた整数値以下となるように、当該製品を作製するために引き当てた在庫品のうちのいずれか1以上の在庫品の引当数を0にする工程を含むことが好ましい。   In the above configuration, when an upper limit is set for the number of types of the inventory that is allowed to produce a product, the upper limit is A, and the number of provisions of the inventory that is necessary to produce the product Is B, and the total value of the number of allocations of each stock item allocated to produce the product is C, and the planned replenishment number of one type of inventory item to be replenished until the next allocation process is executed Assuming that D is the product so that the number of types of inventory to be allocated to produce the product is less than or equal to an integer value obtained by rounding down the decimal point of the value calculated by A− (BC) ÷ D Preferably, the method includes the step of reducing the number of provisions of any one or more of the stocks allocated to produce the product to zero.

上記構成によれば、製品を作製するために引き当てられた各在庫品の引当数の総和が当該製品を作製するために必要な在庫品の引当数を満たしていない場合に、当該製品を作製するために引き当てた在庫品のうちのいずれか1以上の在庫品の引当数を0にすることができ、次の引当処理までに当該製品を作製するために引当可能な在庫品の種類数に余裕を持たせることができる。言い換えると、今回の引当処理で必要な引当数を確保できなかった製品に対し、次回の引当処理までに補充された在庫品を、次回の引当処理時に引き当てることができるように在庫品の種類数を減らすことができる。   According to the above configuration, a product is produced when the sum of the number of inventory items allocated to produce the product does not satisfy the number of inventory items necessary to produce the product. The number of provisions for any one or more of the stocks allocated for the purpose can be reduced to zero, and there is a margin in the number of types of stocks that can be allocated to produce the product before the next allocation process Can be given. In other words, the number of types of inventory so that the inventory that has been replenished up to the next allocation process can be allocated to the product for which the necessary allocation quantity has not been secured in the current allocation process. Can be reduced.

上記構成において、製品を作製するために許容される前記在庫品群の種類数に上限が設定されている場合において、当該上限をAとし、当該製品を作製するために必要な前記在庫品の引当数をBとし、当該製品を作製するために引き当てられる各在庫品の引当数の合計値をCとし、次に引当処理を実行するまでに補充される予定の1種の在庫品群に含まれる全ての在庫品の補充予定数をDとすると、当該製品を作製するために引き当てる前記在庫品群の種類数が、A−(B−C)÷Dによって算出される値の小数点以下を切り捨てた整数値以下となるように、当該製品を作製するために引き当てた在庫品群のうちのいずれか1以上の在庫品群に含まれる全ての在庫品の引当数を0にする工程を含むことが好ましい。   In the above configuration, when an upper limit is set for the number of types of the inventory group allowed for producing a product, the upper limit is A, and the provision of the inventory necessary for producing the product is made. Suppose that the number is B, the total number of allocations for each inventory allocated to produce the product is C, and is included in one inventory group to be replenished until the next allocation process is executed When the planned replenishment number of all the inventory items is D, the number of types of the inventory group to be allocated to produce the product is rounded down to the decimal point of the value calculated by A− (BC) ÷ D. Including a step of reducing the number of all the inventory items included in any one or more of the inventory groups allocated for producing the product to 0 so that the number of inventory items is less than an integer value. preferable.

上記構成によれば、製品を作製するために引き当てられた各在庫品の引当数の総和が当該製品を作製するために必要な在庫品の引当数を満たしていない場合に、当該製品を作製するために引き当てた在庫品群のうちのいずれか1以上の在庫品群に含まれる全ての在庫品の引当数を0にすることができ、次の引当処理までに当該製品を作製するために引当可能な在庫品群の種類数に余裕を持たせることができる。言い換えると、今回の引当処理で必要な引当数を確保できなかった製品に対し、次回の引当処理までに補充された在庫品を、次回の引当処理時に引き当てることができるように在庫品群の種類数を減らすことができる。   According to the above configuration, a product is produced when the sum of the number of inventory items allocated to produce the product does not satisfy the number of inventory items necessary to produce the product. The number of allocations of all the inventory items included in any one or more of the inventory groups allocated for the purpose can be reduced to 0, and an allocation is made to produce the product before the next allocation process. It is possible to provide a margin for the number of types of possible inventory groups. In other words, the type of inventory group so that the stock that has been replenished up to the next allocation process can be allocated to the product that could not secure the necessary number of allocations in the current allocation process. The number can be reduced.

上記構成において、製品を作製するために引き当てる各在庫品の引当数に下限値が定められている場合において、当該製品を作製するために必要な前記在庫品の引当数から当該製品を作製するために引き当てられる各在庫品の引当数の合計値を引いた値が前記下限値以上となるまで、当該製品を作製するために引き当てた在庫品の引当数を減算する工程を含むことが好ましい。   In the above configuration, when a lower limit is set for the number of allocations of each inventory to be allocated for manufacturing the product, the product is manufactured from the allocation number of the inventory necessary for manufacturing the product. Preferably, the method further includes a step of subtracting the number of inventory items allocated to produce the product until a value obtained by subtracting a total value of the number of allocation items allocated to each inventory is equal to or greater than the lower limit value.

上記構成によれば、製品を作製するために引き当てられた在庫品の引当数の総和が、当該製品を作製するために必要な在庫品の引当数を満たしていない場合に、当該製品を作製するために引き当てた在庫品の引当数を減らすことにより、次の引当処理で引き当てる在庫品の引当数が、当該製品を作製するために引き当てる各在庫品の引当数の下限値を上回るように在庫品を引き当てることができる。つまり、次の引当処理で引き当てる在庫品の引当数が、当該製品を作製するために引き当てる各在庫品の引当数の下限値未満となることを回避し得る。   According to the above configuration, the product is produced when the sum of the number of inventory items allocated for producing the product does not satisfy the number of inventory items necessary for producing the product. In order to reduce the number of inventory items allocated for this purpose, the number of inventory items to be allocated in the next allocation process will exceed the lower limit of the number of inventory items allocated to produce the product. Can be allocated. That is, it is possible to avoid that the number of inventory items to be allocated in the next allocation process is less than the lower limit value of the number of inventory items to be allocated to produce the product.

上記構成において、前記引当数を減算する工程によって減算された引当数が前記下限値未満となる場合には、当該減算した後の在庫品の引当数を0にする工程を含むことが好ましい。   In the above-described configuration, it is preferable that the method includes a step of setting the allocation number of the inventory after subtraction to 0 when the allocation number subtracted by the step of subtracting the allocation number is less than the lower limit value.

上記構成によれば、在庫品の引当数の下限値未満の引当数が設定された在庫品の引当数を0にすることができるので、引当数の下限値の制約条件を満たすように引当数を修正することができる。   According to the above configuration, since the number of inventory items for which the number of provisions less than the lower limit value of the number of inventory items is set can be reduced to 0, the number of allocations so as to satisfy the constraint condition of the lower limit value of the number of allocation items Can be corrected.

上記構成において、前記複数種の在庫品のうちの互いに連関する性質を示す2種以上の在庫品を含む在庫品群が1以上存在する場合であって、製品を作製するために引き当てる在庫品を含む在庫品群に含まれる全ての在庫品の引当数の総和に下限値が定められている場合において、当該製品を作製するために必要な前記在庫品の引当数から当該製品を作製するために引き当てられる各在庫品の引当数の合計値を引いた値が前記下限値以上となるまで、当該製品を作製するために引き当てた在庫品の引当数を減算する工程を含むことが好ましい。   In the above-described configuration, when there is one or more inventory groups including two or more types of inventory items that exhibit the properties associated with each other among the plurality of types of inventory items, the inventory items to be allocated for producing a product are In order to produce the product from the number of provisions of the inventory necessary for producing the product when a lower limit is set for the total number of the provision of all the inventory items included in the inventory group Preferably, the method further includes a step of subtracting the allocated number of inventory items to produce the product until a value obtained by subtracting a total value of the allocated number of allocated inventory items is equal to or greater than the lower limit value.

上記構成によれば、製品を作製するために引き当てられた在庫品の引当数の総和が、当該製品を作製するために必要な在庫品の引当数を満たしていない場合に、当該製品を作製するために引き当てた在庫品の引当数を減らすことにより、次の引当処理で引き当てる在庫品の引当数が、製品を作製するために引き当てる各在庫品の引当数の下限値を上回るように設定することができる。   According to the above configuration, the product is produced when the sum of the number of inventory items allocated for producing the product does not satisfy the number of inventory items necessary for producing the product. By reducing the number of inventory items allocated for the purpose, the number of inventory items to be allocated in the next allocation process should be set to exceed the lower limit of the number of inventory items to be allocated to produce products. Can do.

上記構成において、前記引当数を減算する工程によって引当数を減算された在庫品を含む在庫品群に含まれる全ての在庫品の引当数の総和が、当該製品を作製するために引き当てる在庫品を含む在庫品群に含まれる全ての在庫品の引当数の総和の下限値未満となる場合には、当該減算した後の在庫品を含む在庫品群に含まれる全ての在庫品の引当数を0にする工程を含むことが好ましい。   In the above-described configuration, the total of the allocation numbers of all the inventory items included in the inventory group including the inventory items for which the allocation number has been subtracted by the step of subtracting the allocation number is the inventory item to be allocated to produce the product. If the total number of all inventory items included in the included inventory group is less than the lower limit of the total number of allocations, the number of all inventory items included in the inventory group including the inventory item after subtraction is reduced to 0. It is preferable to include the process of making.

上記構成によれば、在庫品の引当数の下限値未満の引当数が設定された在庫品群に含まれる全ての在庫品の引当数を0にすることができるので、引当数の下限値の制約条件を満たすように引当数を修正することができる。   According to the above configuration, since the number of allocations of all the inventory items included in the inventory group in which the number of allocations less than the minimum number of inventory allocations is set can be set to 0, the lower limit value of the allocation number The number of provisions can be modified to satisfy the constraint conditions.

上記構成において、製品を作製するために過去に引き当てた在庫品が存在する場合において、当該過去に引き当てた在庫品の引当数を前記引当組合せ解に取り込む工程をさらに含むことが好ましい。   In the above-described configuration, it is preferable that when there is an inventory that has been allocated in the past for producing a product, the method further includes a step of taking the allocation number of the inventory allocated in the past into the allocation combination solution.

上記構成によれば、前回の引当処理で製品を作製するために必要となる在庫品の引当数を確保することができなかった製品に対しても、次回の引当処理で引当済の在庫品の引当数を考慮しながら当該製品を作製するために不足している引当数分の在庫品を引き当てることができる。   According to the above configuration, even for products for which it was not possible to secure the number of inventory items required to produce products in the previous allocation process, In consideration of the number of allocations, it is possible to allocate inventory for the number of allocations that are insufficient to produce the product.

本発明の在庫引当装置は、同一又は相異なる複数種の製品を作製するために引き当てる1種又は複数種の在庫品の引当数の組合せを設定した引当組合せ解において、任意の1種の前記製品に対する任意の1種の前記在庫品の引当数を変更した仮引当組合せ解を作成する第1処理を行う第1処理部と、前記引当組合せ解の評価値A及び前記仮引当組合せ解の評価値Bを算出し、前記仮引当組合せ解の評価値Bが前記引当組合せ解の評価値A未満の場合に前記引当組合せ解を変更せず、前記仮引当組合せ解の評価値Bが前記引当組合せ解の評価値A以上の場合に前記仮引当組合せ解を新たな引当組合せ解に書き換える第2処理を行う第2処理部と、を含み、前記第1処理及び前記第2処理を1回以上行うことを特徴とする。   The inventory allocation apparatus according to the present invention includes any one type of the product in an allocation combination solution in which a combination of allocation numbers of one type or a plurality of types of inventory items to be allocated to produce the same or different types of products is set. A first processing unit that performs a first process for creating a provisional provision combination solution in which the number of provisions of any one of the inventory items is changed, an evaluation value A of the provision combination solution, and an evaluation value of the provisional provision combination solution B is calculated, and when the evaluation value B of the provisional provision combination solution is less than the evaluation value A of the provision combination solution, the provision combination solution is not changed, and the evaluation value B of the provisional provision combination solution is changed to the provision combination solution A second processing unit that performs a second process of rewriting the provisional allocation combination solution to a new allocation combination solution when the evaluation value A is equal to or greater than the evaluation value A, and performing the first process and the second process at least once It is characterized by.

上記のように引当組合せ解における特定の製品の特定の在庫品の引当数を局所的に変更し、その変更前後の評価値を比較して、より評価値が好ましくなるように引当組合せ解を書き換えることにより、引当組合せ解の各在庫品の引当数を最適解に近づけることができる。しかも、製品と在庫品の組み合わせを変えつつ上記第1処理及び第2処理を実行する回数を多くするほど、各在庫品の引当数を最適解に近づけることができる。   As described above, locally change the number of provisions for a specific stock of a specific product in an allocation combination solution, compare the evaluation values before and after the change, and rewrite the allocation combination solution so that the evaluation value becomes more favorable As a result, the number of allocations of each inventory item in the allocation combination solution can be brought close to the optimal solution. Moreover, the more the number of times the first process and the second process are executed while changing the combination of the product and the inventory, the closer the number of allocations of each inventory is to the optimal solution.

本発明によれば、複数種の製品を作製するための複数種の在庫品の各引当数のより適した組合せを設定できる在庫引当方法及び在庫引当装置を提供することができる。   ADVANTAGE OF THE INVENTION According to this invention, the inventory allocation method and the inventory allocation apparatus which can set the more suitable combination of each allocation number of the multiple types of inventory for producing a multiple types of product can be provided.

実施形態1における在庫引当方法を実行する在庫引当システムの構成を示す図である。It is a figure which shows the structure of the inventory allocation system which performs the inventory allocation method in Embodiment 1. FIG. 実施形態1における在庫引当方法の手順を示すフローチャートである。3 is a flowchart illustrating a procedure of an inventory allocation method according to the first embodiment. 実施形態2における在庫引当方法を実行する在庫引当システムの構成を示す図である。It is a figure which shows the structure of the inventory allocation system which performs the inventory allocation method in Embodiment 2. FIG. 実施形態2における在庫引当方法の手順を示すフローチャートである。10 is a flowchart illustrating a procedure of an inventory allocation method according to the second embodiment.

以下、本発明にかかる実施形態を図面に基づいて説明する。なお、各図において同一の符号を付した構成は、同一の構成であることを示し、その説明を適宜省略する。   Hereinafter, embodiments according to the present invention will be described with reference to the drawings. In addition, the structure which attached | subjected the same code | symbol in each figure shows that it is the same structure, The description is abbreviate | omitted suitably.

<実施形態1:在庫引当システム>
図1は、実施形態1の在庫引当方法を実行する在庫引当システムの構成を示す図である。在庫引当システム1は、図1に示すように、入力部11と、出力部12と、記憶部13と、制御処理部14と、で構成されている。
<Embodiment 1: Inventory allocation system>
FIG. 1 is a diagram illustrating a configuration of an inventory allocation system that executes the inventory allocation method according to the first embodiment. As shown in FIG. 1, the inventory allocation system 1 includes an input unit 11, an output unit 12, a storage unit 13, and a control processing unit 14.

入力部11は、制御処理部14に接続され、例えば在庫を引き当てる上で必要な各種データを在庫引当システム1に入力する機器であり、例えば、所定の機能を割り付けられた複数の入力スイッチ、キーボード、マウス等である。   The input unit 11 is connected to the control processing unit 14 and is a device that inputs various data necessary for allocating inventory, for example, to the inventory allocation system 1. For example, the input unit 11 includes a plurality of input switches and keyboards assigned predetermined functions. And mice.

出力部12は、制御処理部14に接続され、制御処理部14の制御に従って、入力部11から入力されたコマンドやデータを出力する機器であり、例えばCRT(Cathode Ray Tube)、LCD(Liquid Crystal Display)及び有機ELディスプレイ等の表示装置、又はプリンタ等の印刷装置等である。   The output unit 12 is connected to the control processing unit 14 and is a device that outputs commands and data input from the input unit 11 according to the control of the control processing unit 14. For example, the output unit 12 is a CRT (Cathode Ray Tube) or LCD (Liquid Crystal). Display) and a display device such as an organic EL display, or a printing device such as a printer.

記憶部13は、制御処理部14に接続され、制御処理部14の制御に従って、各種の所定のプログラム及び各種の所定のデータを記憶する回路である。この各種の所定のプログラムは、例えば、当該在庫引当システムの各部を当該各部の機能に応じて制御する制御プログラム、複数種の製品を作製するための複数種の在庫品の最適な引当数の組合せ(引当組合せ解)を決定する在庫引当プログラム等の制御処理プログラムが含まれる。前記各種の所定のデータには、製品に関する情報(例えば価格、用途、機能、保管期間、大きさ、引当数の下限値等)を記憶する製品情報データベース31、在庫品に関する情報(例えば在庫数、有効期限、大きさ、材質、機能及び用途、並びにこれらの各種の特性に応じて設定される各在庫品が属する在庫品群等)を記憶する在庫品情報データベース32、各製品に対する各在庫品の引当数を決定するために必要な情報(例えば各製品に対して特定の在庫品を引き当てる優先度、引当可否情報、ループ数設定値N等)を記憶する解探索条件データベース33等が含まれる。   The storage unit 13 is a circuit that is connected to the control processing unit 14 and stores various predetermined programs and various predetermined data under the control of the control processing unit 14. The various predetermined programs include, for example, a control program for controlling each part of the inventory allocation system in accordance with the function of each part, and a combination of optimal allocation numbers for a plurality of types of inventory for producing a plurality of types of products. A control processing program such as an inventory allocation program for determining (allocation combination solution) is included. The various kinds of predetermined data include a product information database 31 for storing information about products (for example, price, usage, function, storage period, size, lower limit of the number of allocations, etc.), information about stocks (for example, the number of stocks, The inventory information database 32 for storing the expiration date, size, material, function and application, and the inventory group to which each inventory set according to these various characteristics), the inventory of each inventory for each product A solution search condition database 33 and the like for storing information necessary for determining the number of allocations (for example, priority for allocating a specific inventory to each product, allocation availability information, loop count setting value N, etc.) are included.

このような記憶部13は、例えば不揮発性の記憶素子であるROM(Read Only Memory)や書き換え可能な不揮発性の記憶素子であるEEPROM(Electrically Erasable Programmable Read Only Memory)等を備える。そして、記憶部13は、前記所定のプログラムの実行中に生じるデータ等を記憶するいわゆる制御処理部14のワーキングメモリとなるRAM(Random Access Memory)等を備える。また、記憶部13は、例えばハードディスク等の比較的大容量の記憶装置を備えて良い。   Such a storage unit 13 includes, for example, a ROM (Read Only Memory) that is a nonvolatile storage element, an EEPROM (Electrically Erasable Programmable Read Only Memory) that is a rewritable nonvolatile storage element, and the like. The storage unit 13 includes a RAM (Random Access Memory) or the like serving as a working memory of the control processing unit 14 that stores data generated during execution of the predetermined program. The storage unit 13 may include a relatively large capacity storage device such as a hard disk.

制御処理部14は、在庫引当システム1の各部を当該各部の機能に応じてそれぞれ制御し、複数種の製品を作製するための複数種の在庫品の各引当数を決定するための回路である。制御処理部14は、例えば、CPU(Central Processing Unit)及びその周辺回路を備えて構成される。制御処理部14には、記憶部13に記憶されている制御処理プログラムが実行されることによって、図1に示すように、制御部41、初期解設定部42、カウンタ部43、カウンタ成否判定部44、引当数変更部(第1処理部)45、ロット数制約成否判定部46、ロット数修正部47、引当数合計制約成否判定部48、第1引当数修正部49、在庫数制約成否判定部50、第2引当数修正部51、評価値比較部52、及び引当組合せ更新部(第2処理部)53が機能的に構成される。   The control processing unit 14 is a circuit for controlling each unit of the inventory allocation system 1 according to the function of each unit and determining each allocation number of a plurality of types of inventory products for producing a plurality of types of products. . The control processing unit 14 includes, for example, a CPU (Central Processing Unit) and its peripheral circuits. As shown in FIG. 1, the control processing unit 14 executes the control processing program stored in the storage unit 13, so that the control unit 41, the initial solution setting unit 42, the counter unit 43, and the counter success / failure determination unit 44, an allocation number changing unit (first processing unit) 45, a lot number constraint success / failure determination unit 46, a lot number correction unit 47, an allocation number total constraint success / failure determination unit 48, a first allocation number correction unit 49, and an inventory number constraint success / failure determination The unit 50, the second allocation number correcting unit 51, the evaluation value comparing unit 52, and the allocation combination updating unit (second processing unit) 53 are functionally configured.

制御部41は、在庫引当システム1の各部を当該各部の機能に応じてそれぞれ制御するものである。   The control unit 41 controls each part of the inventory allocation system 1 according to the function of each part.

初期解設定部42は、記憶部13の解探索条件データベース33に格納された引当組合せ解の初期解を読み込むことによって引当組合せ解の初期解を設定するものである。引当組合せ解の初期解は、例えば入力部11でユーザーによって入力され、記憶部13の解探索条件データベース33に記憶されたものであってもよいし、例えば制御処理部14が0以上の正の整数を無作為に選択して、解探索条件データベース33に記憶されたものであってもよい。   The initial solution setting unit 42 sets the initial solution of the allocation combination solution by reading the initial solution of the allocation combination solution stored in the solution search condition database 33 of the storage unit 13. The initial solution of the allocation combination solution may be, for example, input by the user at the input unit 11 and stored in the solution search condition database 33 of the storage unit 13. For example, the control processing unit 14 may have zero or more positive solutions. An integer may be selected at random and stored in the solution search condition database 33.

カウンタ部43は、引当組合せ解における特定の1の引当数を変更した回数に応じてカウンタnの値を設定するものであり、例えば引当組合せ解が初期解の場合、つまり、引当数を変更した回数が0回の場合、カウンタnの値を0に設定し、その後引当組合せ解における特定の1の引当数を変更した回数に応じてカウンタnの値を1ずつ増数させるものである。   The counter unit 43 sets the value of the counter n according to the number of times of changing the specific number of allocations in the allocation combination solution. For example, when the allocation combination solution is the initial solution, that is, the allocation number is changed. When the number of times is 0, the value of the counter n is set to 0, and then the value of the counter n is incremented by 1 according to the number of times the specific number of allocations in the allocation combination solution is changed.

カウンタ成否判定部44は、カウンタnの値が予めユーザによって設定されたループ数設定値Nを満たすか否かを判定するものであり、具体的にはカウンタnの値がループ数設定値Nと同値となる場合に、ループ数設定値Nの回数だけ引当数が変更されたものと判定し、カウンタnの値がループ数設定値Nに到達していない場合に、さらに引当数を変更すべきものと判定する。ループ数設定値Nは、例えば100又は1000等のようにユーザーによって任意に設定されるものであり、解探索条件データベース33に格納されている。   The counter success / failure determination unit 44 determines whether or not the value of the counter n satisfies a loop number setting value N set in advance by the user. Specifically, the value of the counter n is set to the loop number setting value N. When the number is the same, it is determined that the number of allocations has been changed by the number of times of the loop number setting value N, and when the value of the counter n has not reached the loop number setting value N, the number of allocations should be further changed Is determined. The loop number setting value N is arbitrarily set by the user, such as 100 or 1000, and is stored in the solution search condition database 33.

引当数変更部(第1処理部)45は、上記カウンタ成否判定部44によって引当数を変更すべきと判定された場合に、引当組合せ解のうちの特定の1の製品を作製するための特定の1の在庫品の引当数を、0以上の整数であって、かつ製品を作製するために必要な在庫品の引当数又は在庫品の在庫数のいずれか小さい方の数値を上限とする整数の中からランダムに変更するものである。   The allocation number changing unit (first processing unit) 45 specifies a specific product for producing a specific product in the allocation combination solution when the counter success / failure determination unit 44 determines that the allocation number should be changed. An integer that is an integer greater than or equal to 0 and whose upper limit is the lesser of the number of inventory items required to produce a product or the number of inventory items in stock. It is a random change from the list.

ロット数制約成否判定部46は、引当数を変更した在庫品を用いて作製する前記製品を作製するために引き当てる前記在庫品の種類数が、そのロット数制約条件を充足するか否かを判定するものである。より具体的には、各製品に応じて当該製品を作製するために許容される在庫品の種類数の上限が予め設定されており、ロット数制約成否判定部46は、当該製品に引き当てる在庫品の種類数が前記上限以下である場合に、ロット数制約条件を充足すると判定し、当該製品に引き当てる在庫品の種類数が前記上限を超える場合に、ロット数制約条件を充足しないと判定する。   The lot number constraint success / failure determination unit 46 determines whether or not the number of types of the inventory to be allocated for manufacturing the product manufactured using the inventory whose number of allocation has been satisfied satisfies the lot number constraint condition. To do. More specifically, an upper limit of the number of types of inventory allowed for producing the product is preset in accordance with each product, and the lot number constraint success / failure determination unit 46 determines whether the inventory is allocated to the product. When the number of types is less than or equal to the upper limit, it is determined that the lot number constraint condition is satisfied, and when the number of types of inventory to be allocated to the product exceeds the upper limit, it is determined that the lot number constraint condition is not satisfied.

ロット数修正部47は、ロット数制約成否判定部46が上記ロット数制約条件を充足しないと判定した場合に、引当数を変更した在庫品以外の当該製品を作製するために引き当てる在庫品の引当数を0に修正するものである。これにより当該製品に引き当てる在庫品の種類数を1減らすことができ、ロット数制約条件を充足するように在庫品の引当数を修正することができる。   When the lot number restriction success / failure determination unit 46 determines that the lot number restriction condition is not satisfied, the lot number correction unit 47 allocates an inventory item to be allocated to produce the product other than the inventory item whose allocation number is changed. The number is corrected to zero. As a result, the number of types of inventory allocated to the product can be reduced by 1, and the number of inventory allocations can be corrected so as to satisfy the lot number constraint.

引当数合計制約成否判定部48は、引当数を変更した在庫品を用いて作製する特定の1の製品aを作製するために引き当てる全ての前記在庫品の引当数の合計が、当該製品aを作製するために必要な前記在庫品の引当数合計制約条件を充足するか否かを判定するものである。具体的には、各製品に応じて当該製品を作製するために引き当てるべき在庫品の引当数が予め設定されており、引当数合計制約成否判定部48は、当該製品に引き当てる在庫品の引当数の合計が当該製品に引き当てるべき在庫品の引当数以下の場合に、引当数合計制約条件を充足すると判定し、当該製品に引き当てる在庫品の引当数の合計が、当該製品に引き当てるべき在庫品の引当数を超える場合に引当数合計制約条件を充足しないと判定する。   The total allocation number constraint success / failure determination unit 48 determines that the total allocation number of all the inventory items to be allocated to produce a specific product a to be produced using the inventory item whose allocation number has been changed is the product a. It is determined whether or not the total number of stocks necessary for the production is satisfied. Specifically, the number of inventory items to be allocated in order to produce the product in accordance with each product is set in advance, and the allocation number total constraint success / failure determination unit 48 determines the number of inventory items to allocate to the product. If the total number of inventory items to be allocated to the product is less than or equal to the number of inventory items to be allocated to the product, it is determined that the total allocation requirement is satisfied. When the number of allocations is exceeded, it is determined that the total allocation number restriction condition is not satisfied.

第1引当数修正部49は、引当数合計制約成否判定部48が上記引当数合計制約条件を充足しないと判定した場合に、前記引当数の合計から前記製品を作製するために必要な前記在庫品の引当数を引いて得られた値を上限とする任意の自然数を設定し、前記製品を作製するために引き当てる全ての在庫品のうち、引当数を変更した在庫品以外の前記在庫品の引当数から当該自然数を減算した引当数を新たな引当数に設定するものである。このように第1引当数修正部49によって引当数合計制約条件を充足しない在庫品の引当数を減算することにより、引当数合計制約条件を充足するように在庫品の引当数を修正することができる。   The first allocation number correction unit 49, when the allocation number total constraint success / failure determination unit 48 determines that the above-mentioned allocation number total constraint condition is not satisfied, the inventory necessary for producing the product from the total allocation number Set an arbitrary natural number up to the value obtained by subtracting the number of products allocated, and out of all the inventory to be allocated to produce the product, The allocation number obtained by subtracting the natural number from the allocation number is set as a new allocation number. In this way, by subtracting the number of provisions of inventory that does not satisfy the total number of restrictions on allocation by the first allocation number modification unit 49, the number of provisions of inventory can be modified so that the total number of restrictions on allocation is satisfied. it can.

在庫数制約成否判定部50は、引当数を変更した在庫品の全ての引当数の合計が、当該在庫品の在庫数制約条件を充足するか否かを判定するものである。具体的には、在庫品に応じて在庫数が予め設定されており、在庫数制約成否判定部50は、引当数を変更した在庫品の全ての引当数の合計が、当該在庫品の在庫数以下の場合に在庫数制約条件を充足すると判定し、引当数を変更した在庫品の全ての引当数の合計が、当該在庫品の在庫数を超える場合に在庫数制約条件を充足しないと判定する。   The inventory number constraint success / failure determination unit 50 determines whether the total of all the allocation numbers of the inventory items whose allocation numbers have been changed satisfies the inventory number constraint condition of the inventory items. Specifically, the inventory quantity is preset according to the inventory, and the inventory quantity constraint success / failure determination unit 50 determines that the total allocation quantity of the inventory whose inventory quantity has been changed is the total inventory quantity of the inventory item. In the following cases, it is determined that the inventory number constraint condition is satisfied, and it is determined that the inventory number constraint condition is not satisfied when the total of all the allocation numbers of the inventory items whose allocation number has changed exceeds the inventory number of the inventory item .

第2引当数修正部51は、在庫数制約成否判定部50が上記在庫品制約条件を充足しないと判定した場合に、引当数を変更した在庫品の引当数の合計から当該在庫品の在庫数を引いて得られた値を上限とする任意の自然数を設定し、変更した引当数以外の前記在庫品の引当数から当該自然数を減算した引当数を新たな引当数に設定するものである。このように第2引当数修正部51によって在庫数制約条件を充足しない在庫品の引当数を減算することにより、在庫品制約条件を充足するように在庫品の引当数を修正することができる。   When the inventory number constraint success / failure determination unit 50 determines that the inventory constraint condition is not satisfied, the second allocation number correction unit 51 determines the inventory number of the inventory item from the total allocation number of the inventory item whose allocation number has been changed. Is set to an arbitrary natural number whose upper limit is the value obtained by subtracting, and the provision number obtained by subtracting the natural number from the provision number of the inventory other than the changed provision number is set as a new provision number. In this way, by subtracting the number of inventory items that do not satisfy the inventory number constraint condition by the second allocation number modification unit 51, the number of inventory items can be modified so that the inventory item constraint condition is satisfied.

評価値比較部52は、引当組合せ解の評価値と、当該引当組合せ解における特定の1の引当数を変更した後の引当組合せ解(以下「仮引当組合せ解」とも記す)の評価値とを算出し、それらを比較するものである。   The evaluation value comparison unit 52 calculates the evaluation value of the allocation combination solution and the evaluation value of the allocation combination solution (hereinafter also referred to as “provisional allocation combination solution”) after changing the number of specific 1 allocations in the allocation combination solution. Calculate and compare them.

引当組合せ更新部(第2処理部)53は、上記評価値比較部52による比較の結果、引当数を変更した後の引当組合せ解の評価値が、引当数を変更する前の引当組合せ解の評価値以上の場合に、引当数を変更した後の引当組合せ解を、新たな引当組合せ解に書き換えるものである。   As a result of the comparison by the evaluation value comparison unit 52, the allocation combination updating unit (second processing unit) 53 obtains the allocation value of the allocation combination solution before the allocation number is changed as the evaluation value of the allocation combination solution after the allocation number is changed. When the value is equal to or greater than the evaluation value, the allocation combination solution after changing the allocation number is rewritten to a new allocation combination solution.

このような在庫引当システム1は、例えばパーソナルコンピュータ等のコンピュータによって構成されてよいし、また例えば、処理サーバ装置、データサーバ装置および入出力端末装置を互いに通信可能に備えたシステムで構成されてもよい。   Such an inventory allocation system 1 may be configured by a computer such as a personal computer, or may be configured by a system including a processing server device, a data server device, and an input / output terminal device that can communicate with each other. Good.

<在庫引当方法>
次に、本実施形態の在庫引当方法の動作について説明する。図2は、実施形態における在庫引当方法の手順を示すフローチャートである。上記在庫引当システム1を用いた在庫引当方法は、同一又は相異なる複数種の製品を作製するために引き当てる1種又は複数種の在庫品の引当数の組合せを設定した引当組合せ解を決定するものであり、オペレータが在庫引当システム1に対し在庫引当処理の実行を指示したタイミングでスタートして、制御処理部14が図2のステップS1の処理に進む。このスタートと同時に、制御処理部14は、必要な各部の初期化を実行し、制御処理プログラムの実行によって、制御処理部14には、制御部41、初期解設定部42、カウンタ部43、カウンタ成否判定部44、引当数変更部45、ロット数制約成否判定部46、ロット数修正部47、引当数合計制約成否判定部48、第1引当数修正部49、在庫数制約成否判定部50、第2引当数修正部51、評価値比較部52、及び引当組合せ更新部53等が機能的に構成される。
<Inventory allocation method>
Next, the operation of the inventory allocation method of this embodiment will be described. FIG. 2 is a flowchart illustrating a procedure of the inventory allocation method according to the embodiment. The inventory allocation method using the inventory allocation system 1 determines an allocation combination solution in which a combination of allocation numbers of one type or a plurality of types of inventory items to be allocated in order to produce the same or different types of products is set. The process starts at the timing when the operator instructs the inventory allocation system 1 to execute the inventory allocation process, and the control processing unit 14 proceeds to the process of step S1 in FIG. Simultaneously with this start, the control processing unit 14 performs initialization of each necessary unit, and by executing the control processing program, the control processing unit 14 includes a control unit 41, an initial solution setting unit 42, a counter unit 43, a counter Success / failure determination unit 44, allocation number change unit 45, lot number constraint success / failure determination unit 46, lot number correction unit 47, allocation number total constraint success / failure determination unit 48, first allocation number correction unit 49, inventory number constraint success / failure determination unit 50, The 2nd allocation number correction part 51, the evaluation value comparison part 52, the allocation combination update part 53, etc. are comprised functionally.

そして、制御処理部14は、制御部41によって、製品情報データベース31に格納されている製品に関するデータ、在庫品情報データベース32に格納されている在庫品に関するデータ、及び解探索条件データベース33に格納されている引当数の引当に関する制約条件に関するデータを読み込む。   Then, the control processing unit 14 is stored in the solution search condition database 33 by the control unit 41, the data related to the product stored in the product information database 31, the data related to the inventory stored in the inventory information database 32, and the solution search condition database 33. Read the data related to the restriction conditions related to the allocation of the allocated allocation.

上記在庫引当システムは、各製品に対する各在庫品の引当数の決定に関して、大略、次のように動作する。   The above-described inventory allocation system generally operates as follows regarding the determination of the allocation number of each inventory item for each product.

図2において、まず、制御処理部14は、初期解設定部42によって、前記引当組合せ解の初期解を設定する(S1)。   In FIG. 2, first, the control processing unit 14 sets the initial solution of the allocation combination solution by the initial solution setting unit 42 (S1).

次に、制御処理部14は、カウンタ部43によって、引当組合せ解の引当数を変更した回数を示すカウンタnの値を0に設定する(S2)。   Next, the control processing unit 14 sets the value of the counter n indicating the number of times of changing the allocation number of the allocation combination solution to 0 by the counter unit 43 (S2).

次に、制御処理部14は、カウンタ成否判定部44によって、カウンタnの値がループ数設定値Nを満たすか否かを判定する。そして、カウンタnの値がループ数設定値Nと同値である場合(S3:Yes)、制御処理部14は、記憶部13に記憶された引当組合せ解を最適解として記憶部13に格納し、処理を終了する(エンド)。引当組合せ解の最適解は、必要に応じて、制御部41によって外部機器に出力されてもよい。一方、カウンタnの値がループ数設定値Nと同値でない場合(S3:No)、カウンタ部43によってカウンタnの値を1増数させる(S4)。   Next, the control processing unit 14 uses the counter success / failure determination unit 44 to determine whether or not the value of the counter n satisfies the loop number setting value N. When the value of the counter n is the same value as the loop number setting value N (S3: Yes), the control processing unit 14 stores the allocation combination solution stored in the storage unit 13 in the storage unit 13 as an optimal solution, End processing (END). The optimal solution of the allocation combination solution may be output to the external device by the control unit 41 as necessary. On the other hand, when the value of the counter n is not the same value as the loop number setting value N (S3: No), the counter unit 43 increments the value of the counter n by 1 (S4).

次に、制御処理部14は、引当数変更部45によって、引当組合せ解のうちの特定の1の製品を作製するための特定の1の在庫品の引当数を、0以上の整数であって、かつ製品を作製するために必要な在庫品の引当数又は在庫品の在庫数のいずれか小さい方の数値を上限とする整数の中からランダムに変更する(S5)。   Next, the control processing unit 14 uses the allocation number changing unit 45 to set the allocation number of the specific one inventory item for producing the specific one product of the allocation combination solution to an integer of 0 or more. In addition, the number is randomly changed from an integer having an upper limit that is the smaller one of the number of stocks necessary for producing the product or the number of stocks in stock (S5).

次に、制御処理部14は、ロット数制約成否判定部46によって、引当数を変更した在庫品を用いて作製する前記製品を作製するために引き当てる前記在庫品の種類数が、当該製品を作製するために許容される前記在庫品の種類数の上限を満たすか否かを判定する(S6)。そして、当該製品を作製するために引き当てる在庫品の種類数が、当該製品を作製するために許容される在庫品の種類数の上限を超える場合(S6:No)、ロット数修正部47は、引当数を変更した在庫品以外の当該製品を作製するために引き当てる在庫品の引当数を0にする(S7)。一方、当該製品を作製するために引き当てる在庫品の種類数が、当該製品を作製するために許容される在庫品の種類数の上限以下の場合(S6:Yes)、制御処理部14はステップS8の処理に進む。   Next, the control processing unit 14 uses the lot number constraint success / failure determination unit 46 to create the product in which the number of types of the inventory to be allocated to produce the product to be produced using the inventory whose number of allocation has been changed creates the product. In step S6, it is determined whether or not the upper limit of the number of types of inventory allowed to be satisfied is satisfied. If the number of types of inventory to be allocated to produce the product exceeds the upper limit of the number of types of inventory allowed to produce the product (S6: No), the lot number correction unit 47 The number of inventory items to be allocated to produce the product other than the inventory item whose number of allocations has been changed is set to 0 (S7). On the other hand, when the number of types of inventory to be allocated for producing the product is equal to or less than the upper limit of the number of types of inventory allowed for producing the product (S6: Yes), the control processing unit 14 performs step S8. Proceed to the process.

次に、制御処理部14は、引当数合計制約成否判定部48によって、引当数を変更した在庫品を用いて作製する特定の1の製品aを作製するために引き当てる全ての前記在庫品の引当数の合計が、当該製品aを作製するために必要な前記在庫品の引当数よりも多いか否かを判定する(S8)。そして、製品aを作製するために引き当てる全ての在庫品の引当数の合計が、製品aを作製するために必要な前記在庫品の引当数よりも多い場合(S8:No)、第1引当数修正部49は、前記引当数の合計から前記製品aを作製するために必要な前記在庫品の引当数を引いて得られた値を上限とする任意の自然数を設定し、前記製品aを作製するために引き当てる全ての在庫品のうち、引当数を変更した在庫品以外の前記在庫品の引当数から当該自然数を減算した引当数を新たな引当数に設定する(S9)。一方、製品aを作製するために引き当てる全ての在庫品の引当数の合計が、製品aを作製するために必要な前記在庫品の引当数以下の場合(S8:Yes)、制御処理部14はステップS10の処理に進む。   Next, the control processing unit 14 allocates all the inventory items to be allocated by the allocation number total constraint success / failure determination unit 48 in order to create one specific product a to be manufactured using the inventory item whose allocation number is changed. It is determined whether or not the total number is larger than the number of inventory items necessary for producing the product a (S8). Then, when the total number of allocations of all the inventory items to be allocated for producing the product a is larger than the allocation number of the inventory items necessary for producing the product a (S8: No), the first allocation number The correction unit 49 sets an arbitrary natural number up to a value obtained by subtracting the number of inventory items necessary to produce the product a from the total number of provisions, and creates the product a Therefore, among all the inventory items to be allocated, the allocation number obtained by subtracting the natural number from the allocation number of the inventory items other than the inventory item whose allocation number has been changed is set as a new allocation number (S9). On the other hand, when the total number of all the inventory items allocated to produce the product a is equal to or less than the number of inventory items necessary to produce the product a (S8: Yes), the control processing unit 14 The process proceeds to step S10.

次に、制御処理部14は、在庫数制約成否判定部50によって、前記仮引当組合せ解において引当数を変更した在庫品bの全ての引当数の合計が、引当数を変更した在庫品bの在庫数よりも多いか否かを判定する(S10)。そして、在庫品bの全ての引当数の合計が在庫品bの在庫数よりも多い場合(S10:No)、第2引当数修正部51は、引当数を変更した在庫品bの引当数の合計から当該在庫品bの在庫数を引いて得られた値を上限とする任意の自然数を設定し、引当数を変更した在庫品b以外の在庫品の引当数から当該自然数を減算した引当数を新たな引当数に設定する(S11)。一方、在庫品bの全ての引当数の合計が在庫品bの在庫数以下の場合(S10:Yes)、制御処理部14はステップS12の処理に進む。   Next, the control processing unit 14 uses the inventory number constraint success / failure determination unit 50 to determine that the total of all the allocation numbers of the inventory item b whose allocation number has been changed in the provisional allocation combination solution is the same as that of the inventory item b whose allocation number has been changed. It is determined whether there is more than the stock quantity (S10). Then, when the total of all the allocation numbers of the inventory item b is larger than the inventory number of the inventory item b (S10: No), the second allocation number correcting unit 51 sets the allocation number of the inventory item b having the allocation number changed. An arbitrary natural number with an upper limit of the value obtained by subtracting the inventory number of the inventory item b from the total is set, and the allocation number is obtained by subtracting the natural number from the allocation number of inventory items other than the inventory item b whose allocation number is changed Is set as a new allocation number (S11). On the other hand, if the total of all the allocation numbers of the inventory item b is equal to or less than the inventory number of the inventory item b (S10: Yes), the control processing unit 14 proceeds to the process of step S12.

次に、制御処理部14は、評価値比較部52によって、前記引当組合せ解の評価値A及び前記仮引当組合せ解の評価値Bを算出し、評価値Aと評価値Bとを比較する(S12)。そして、前記仮引当組合せ解の評価値Bが前記引当組合せ解の評価値A未満の場合(S12:No)、前記引当組合せ解を変更せず、制御処理部14はステップS3の処理に戻る。一方、前記仮引当組合せ解の評価値Bが前記引当組合せ解の評価値A以上の場合(S12:Yes)、引当組合せ更新部53は、前記仮引当組合せ解を新たな引当組合せ解に書き換えた上で(S13)。制御処理部14はステップS3の処理に戻る。   Next, the control processing unit 14 calculates the evaluation value A of the allocation combination solution and the evaluation value B of the provisional allocation combination solution by the evaluation value comparison unit 52, and compares the evaluation value A and the evaluation value B ( S12). If the evaluation value B of the provisional allocation combination solution is less than the evaluation value A of the allocation combination solution (S12: No), the control processing unit 14 returns to the process of step S3 without changing the allocation combination solution. On the other hand, when the evaluation value B of the temporary allocation combination solution is equal to or higher than the evaluation value A of the allocation combination solution (S12: Yes), the allocation combination update unit 53 rewrites the temporary allocation combination solution to a new allocation combination solution. Above (S13). The control processing unit 14 returns to the process of step S3.

以上のようにしてステップS3〜S13の各工程を繰り返すことで、カウンタ部43がカウンタnの値を1ずつ増数させて、カウンタnの値がループ数設定値NになるまでステップS3〜ステップS13の各工程を繰り返す。このようにして引当組合せ解を書き換えることで引当組合せ解を最適解に近づける。   By repeating the steps S3 to S13 as described above, the counter unit 43 increments the value of the counter n by 1, and the steps S3 to S3 are performed until the value of the counter n reaches the loop number set value N. Repeat each step of S13. By rewriting the allocation combination solution in this way, the allocation combination solution is brought close to the optimal solution.

このような本実施形態の在庫引当方法は、同一又は相異なる複数種の製品を作製するために引き当てる1種又は複数種の在庫品の引当数の組合せを設定した引当組合せ解における任意の1種の製品に対する任意の1種の前記在庫品の引当数を変更した仮引当組合せ解を作成する第1工程(ステップS5)と、前記引当組合せ解の評価値A及び前記仮引当組合せ解の評価値Bを算出し、前記仮引当組合せ解の評価値Bが前記引当組合せ解の評価値A未満の場合に前記引当組合せ解を変更せず、前記仮引当組合せ解の評価値Bが前記引当組合せ解の評価値A以上の場合に前記仮引当組合せ解を新たな引当組合せ解に書き換える第2工程(ステップS13)と、を含み、前記第1工程及び前記第2工程を1回以上行う。上記第1及び第2工程を組み合わせた局所検索法をベースとして引当組合せ解を順次書き換えることにより、各製品に対する各在庫品の引当数を最適解に近づけることができる。そして、製品と在庫品の組合せを変えつつ上記第1処理及び第2工程を実行する回数を多くするほど(つまり、引当組合せ解を書き換える回数を多くするほど)、引当組合せ解を最適解に近づけることができる。   Such an inventory allocation method according to the present embodiment is an arbitrary allocation type solution in an allocation combination solution in which a combination of allocation numbers of one type or a plurality of types of inventory items allocated to produce the same or different types of products is set. A first step (step S5) of creating a provisional provision combination solution in which the number of provisions of any one kind of the inventory for the product is changed, an evaluation value A of the provisional combination solution, and an evaluation value of the provisional provisioning combination solution B is calculated, and when the evaluation value B of the provisional provision combination solution is less than the evaluation value A of the provision combination solution, the provision combination solution is not changed, and the evaluation value B of the provisional provision combination solution is changed to the provision combination solution And the second step (step S13) of rewriting the provisional allocation combination solution to a new allocation combination solution when the evaluation value A is equal to or higher than the evaluation value A, the first step and the second step are performed once or more. By sequentially rewriting the allocation combination solution based on the local search method combining the first and second steps, the number of allocations of each inventory item for each product can be made closer to the optimal solution. As the number of times of executing the first process and the second step is increased while changing the combination of the product and the inventory (that is, the number of times of rewriting the allocation combination solution is increased), the allocation combination solution is made closer to the optimal solution. be able to.

本実施形態の在庫引当方法は、上記第1工程で作成した仮引当組合せ解に対して準大域的な制約条件が課される場合に、第1工程と第2工程との間にその制約条件に応じた修正工程(ステップS7、S9及びS11)を加え、当該修正工程によって仮引当組合せ解を修正するようにしている。上記準大域的な制約条件としては、例えば、特定の製品を作製するために引き当てる在庫品の引当数の上限が設定されている場合(ステップS8:引当数合計制約条件)、在庫品の在庫数の上限が設定されている場合(ステップS10:在庫数制約条件)、1つの製品を作製するために用いるべき在庫品の種類数の上限が設定されている場合(ステップS6:ロット数制約条件)、在庫品が複数のグループに分けられていて特定の製品を作製するために特定のグループの在庫品を使用すべきことが設定されている場合(図示せず:グループ制約条件)等が考えられる。これらの各制約条件及びそれを満たすように引当数を修正する各修正工程は後述する。   The inventory allocation method according to the present embodiment provides a constraint condition between the first process and the second process when a quasi-global constraint condition is imposed on the provisional allocation combination solution created in the first process. A correction process (steps S7, S9 and S11) according to the above is added, and the provisional provision combination solution is corrected by the correction process. As the quasi-global constraint, for example, when an upper limit of the number of inventory items to be allocated for producing a specific product is set (step S8: total number of allocation constraint), the number of inventory items in stock If the upper limit of the number of types of inventory to be used for producing one product is set (step S6: lot number constraint condition) , If the inventory is divided into multiple groups and it is set that the inventory of a specific group should be used to produce a specific product (not shown: group constraints) . Each of these constraint conditions and each modification process for modifying the number of allocations to satisfy it will be described later.

上記在庫引当方法の各工程を、一具体例として例えば下記の表1に示す引当組合せ解に対し、各在庫品ロットの引当数の組合せを決定する場合について説明する。   Each step of the inventory allocation method will be described as a specific example, for example, in the case where a combination of allocation numbers for each inventory lot is determined for the allocation combination solution shown in Table 1 below.

上記表1に示す引当組合せ解は、5種類の製品を作製するために引き当てる5種類の在庫品ロットの引当数を設定したものであり、具体的には各受注オーダーJ001〜J005に引き当てる各在庫品ロットA001〜A002及びB001〜B003の引当数を設定している。1つの受注オーダーは、1種類の製品を作製するために引き当てる在庫品の引当数を設定したものであり、表1の縦の列が受注オーダーに相当する。つまり、受注オーダーJ001は、在庫品ロットA001の引当数を2個、在庫品ロットA002の引当数を0個、在庫品ロットB001の引当数を1個、在庫品ロットB002の引当数を0個、在庫品ロットB003の引当数を1個を引き当てることを設定したものである。   The allocation combination solutions shown in Table 1 set the number of allocations of five types of inventory lots to be allocated to produce five types of products. Specifically, each inventory allocated to each of the order orders J001 to J005. The allocation number of product lots A001 to A002 and B001 to B003 is set. One order is set with the number of stocks allocated to produce one type of product, and the vertical column in Table 1 corresponds to the order. In other words, the received order J001 has 2 allocations for the inventory lot A001, 0 allocations for the inventory lot A002, 1 allocation for the inventory lot B001, and 0 allocations for the inventory lot B002. The allocation number of the inventory lot B003 is set to be allocated.

上記在庫品ロットは、同一の製造日時、製造場所、幅、長さ、重量及び各種性能等の属性に応じて在庫品に対し個別のロット番号を付してグループ分けした在庫品の管理番号であり、例えば、異なる製造日時で製造された同一材料の在庫品に対しそれぞれ製造日時ごとに個別のロット番号を付して別々にグループ分けして管理したものが挙げられる。上記表1における在庫品ロットA001及びA002と在庫品ロットB001〜B003とは、例えば同一材料の製造場所違いであり、在庫品ロットA001及びA002は例えば製造日時違いであり、在庫品ロットB001〜B003は例えば製造日時違いである。   The above-mentioned inventory lots are the management numbers of inventory items that are grouped by assigning individual lot numbers to the inventory items according to the same manufacturing date and time, manufacturing location, width, length, weight and various performance attributes. For example, the same material stock manufactured at different manufacturing dates / times may be individually grouped and managed by assigning individual lot numbers for each manufacturing date / time. The stock lots A001 and A002 and the stock lots B001 to B003 in Table 1 are, for example, different production locations of the same material. The stock lots A001 and A002 are, for example, different production dates and times, and the stock lots B001 to B003. Is, for example, a manufacturing date difference.

表1における「合計引当数」は、受注オーダーにおいて製品を作製するために必要な在庫品の引当数の合計を意味し、例えば受注オーダーJ001に必要な在庫品ロットの引当数の合計が4であることを意味している。なお、本発明の在庫引当方法においては、特定の1の受注オーダーの各在庫品ロットの引当数の合計が、受注オーダーの合計引当数を下回っていても有効な引当組合せ解として扱うこととする。なぜなら、現実問題として、いずれかの在庫品ロットの在庫数が足りずに受注オーダーで要求される引当数を充足させ得ない場合でも、在庫品ロットの在庫が納入され次第、その在庫品の不足分を引き当てる処理を行い得るからである。一方、各在庫品ロットの引当数の合計が、受注オーダーの合計引当数を上回る場合は、後述する引当数の制約条件を充足しないと判定し、その後の第1引当数修正工程によって余剰分の引当数を減算することで在庫品ロットの引当数の合計が合計引当数を上回らないように調整する。このような調整を行う理由は、受注オーダーが要求する引当数よりも多くの在庫品の引当数を確保する必要はないからである。   “Total number of provisions” in Table 1 means the total number of inventory items necessary to produce products in the order received. For example, the total number of inventory lots necessary for the order received J001 is 4. It means that there is. Note that in the inventory allocation method of the present invention, even if the total number of allocations of each inventory lot of a specific one order is less than the total allocation number of an order, it is treated as an effective allocation combination solution. . Because, as a practical matter, even if the inventory quantity of one of the inventory lots is not enough to satisfy the number of reserves required in the sales order, the inventory shortage will be short once the inventory lot inventory is delivered This is because the process of assigning minutes can be performed. On the other hand, if the total number of provisions for each inventory lot exceeds the total number of orders for the order received, it is determined that the constraint condition for the number of provisions, which will be described later, is not satisfied. By subtracting the number of provisions, the total number of provisions for the inventory lot is adjusted so as not to exceed the total number of provisions. The reason for making such adjustment is that it is not necessary to secure a larger number of inventory items than the number of allocations required by the order.

表1における「在庫量」は、在庫品ロットの在庫数を意味し、例えば在庫品ロットA001の在庫品の個数は12個存在し、最大12個を引き当てることができることを意味する。   “Inventory quantity” in Table 1 means the number of stocks of stock lots. For example, there are 12 stocks of stock lot A001, which means that a maximum of 12 can be allocated.

表1においては、5種類の受注オーダーと5種類の在庫品ロットとの組合せの引当組合せ解を示しているが、受注オーダーの種類数及び各受注オーダーで引き当てる在庫品ロットの種類数は5種類のみに限定されず、n(nは2以上の整数)種類以上の受注オーダーを任意に設定することができ、また各受注オーダーで引き当てる在庫品の種類数は、受注オーダーに在庫品ロットの種類の上限に制約がある場合を除き、m(mは自然数)種類以上の任意の在庫品ロットを引き当てることができる。以下に各工程を詳述する。   Table 1 shows an allocation combination solution of combinations of five types of order orders and five types of inventory lots, but the number of types of order orders and the number of types of inventory lots to be allocated in each order order is five. It is not limited to only, and n (n is an integer of 2 or more) types of order orders can be arbitrarily set, and the number of types of inventory items to be allocated in each order order is the type of inventory lot in the order order. Except when there is a restriction on the upper limit, any stock lot of m (m is a natural number) or more can be allocated. Each step will be described in detail below.

(ステップS1:初期解の設定)
ステップS1において、初期解設定部42は各受注オーダーに引き当てる各在庫品ロットの引当数を引当組合せ解の初期解として設定する。この初期解は、全ての受注オーダーに引き当てる全ての在庫品ロットの引当数を0に設定してもよいし、全ての在庫品ロットの引当数を任意の自然数に設定してもよいし、各受注オーダーに引き当てる各在庫品の引当数を乱数によって無作為に設定してもよい。一般に、引当組合せ解の解空間は1つの極大値が最適解となっている場合よりも、複数の極大値を有する多峰性の分布を含む場合が多いため、初期解で局所的な偏りを抑制するという観点から、引当組合せ解の初期解は全ての受注オーダーに引き当てる全ての在庫品ロットの引当数を同数に設定することが好ましい。また、後述する種々の制約条件を満たすように初期解を設定する観点から、全受注オーダーの各在庫品ロットの引当数を0に設定することが好ましい。全受注オーダーの各在庫品ロットの引当数を0に設定した場合の引当組合せ解を下記の表2に示す。上述のように初期解を設定することによりステップS1は完了し、制御処理部14はステップS2の処理に進む。
(Step S1: Initial solution setting)
In step S1, the initial solution setting unit 42 sets the allocation number of each inventory lot allocated to each order received as an initial solution of the allocation combination solution. In this initial solution, the number of allocations of all inventory lots allocated to all orders received may be set to 0, the number of allocations of all inventory lots may be set to an arbitrary natural number, It is also possible to randomly set the number of inventory items to be allocated to the received order by random numbers. In general, the solution space of an allocation combination solution often includes a multimodal distribution having a plurality of local maximum values, compared to the case where one local maximum value is an optimal solution. From the viewpoint of suppression, it is preferable that the initial number of allocation combination solutions is set to the same number of allocations for all inventory lots allocated to all orders. Further, from the viewpoint of setting an initial solution so as to satisfy various constraint conditions described later, it is preferable to set the number of provisions for each inventory lot of all orders received to 0. Table 2 below shows an allocation combination solution when the allocation number of each inventory lot of all orders is set to zero. By setting the initial solution as described above, step S1 is completed, and the control processing unit 14 proceeds to the process of step S2.

(ステップS2:ループ数設定)
ステップS2において、カウンタ部43は引当組合せ解を書き換えた回数(「ループ回数」とも記す)を示すカウンタnの値を0に設定する。カウンタnの値は、引当組合せ解の初期解から引当数を書き換えた回数を意味するが、ステップS2の段階では、引当組合せ解の初期解に対し、引当数の書き換えを一度も行っていないため、カウンタ部43は、カウンタnの値を0に設定する。このカウンタnの設定によりステップS2は完了し、制御処理部14はステップS3の処理に進む。
(Step S2: Loop number setting)
In step S <b> 2, the counter unit 43 sets the value of the counter n that indicates the number of times the allocation combination solution has been rewritten (also referred to as “loop number”) to 0. The value of the counter n means the number of times the number of allocations has been rewritten from the initial solution of the allocation combination solution. However, since the number of allocations has not been rewritten to the initial solution of the allocation combination solution at step S2. The counter unit 43 sets the value of the counter n to 0. By setting the counter n, step S2 is completed, and the control processing unit 14 proceeds to the process of step S3.

(ステップS3:ループ判定)
ステップS3において、カウンタ成否判定部44はカウンタnの値とループ数設定値Nとを比較し、カウンタnの値がループ数設定値Nであるか否かを判定する。カウンタnの値がループ数設定値Nである場合(S3:Yes)、カウンタ成否判定部44は、現在設定されている引当組合せ解を最良解と判定し、制御処理部14は引当組合せ解の書き換えを終了する(エンド)。一方、カウンタnの値がループ数設定値Nに達していない場合(S3:No)、カウンタ部43はカウンタnの値を1増数するステップS4を行う。これによりステップS4は完了し、制御処理部14はステップS5の処理に進む。
(Step S3: Loop determination)
In step S <b> 3, the counter success / failure determination unit 44 compares the value of the counter n with the loop number setting value N, and determines whether or not the value of the counter n is the loop number setting value N. When the value of the counter n is the loop number set value N (S3: Yes), the counter success / failure determination unit 44 determines that the currently set allocation combination solution is the best solution, and the control processing unit 14 determines the allocation combination solution. End rewriting (end). On the other hand, when the value of the counter n has not reached the loop number setting value N (S3: No), the counter unit 43 performs step S4 for incrementing the value of the counter n by one. Thereby, step S4 is completed, and the control processing unit 14 proceeds to the process of step S5.

(ステップS5:特定の引当数の変更:第1工程)
ステップS5において、引当数変更部45は、引当組合せ解における任意の1種の在庫品ロットの引当数を変更した仮引当組合せ解を作成する。例えば、引当組合せ解が下記の表3に示すものである場合、仮引当組合せ解は、下記表3の引当組合せ解に対して任意の1の在庫品ロットの引当数を変更したものとなり、例えば下記の表4に示すものとなる。
(Step S5: Change of specific allocation number: first step)
In step S5, the allocation number changing unit 45 creates a provisional allocation combination solution in which the allocation number of any one kind of inventory item lot in the allocation combination solution is changed. For example, when the allocation combination solution is as shown in Table 3 below, the provisional allocation combination solution is obtained by changing the allocation number of any one inventory lot with respect to the allocation combination solution in Table 3 below. The results are shown in Table 4 below.

表4においては、表3の受注オーダーJ002の在庫品ロットA002の引当数0を引当数2に変更した場合を示している。表3及び表4の仮引当組合せ解において、処理対象となる特定の1の受注オーダーの特定の1の在庫品ロットに対し網掛けを付しており、以下の各表においてもこの網掛けによる処理対象の特定手法を踏襲するものとする。なお、表3及び表4中の「ロット数上限」は、後述するステップS6において説明する。   Table 4 shows a case where the allocation number 0 of the inventory lot A002 of the order receipt J002 in Table 3 is changed to the allocation number 2. In the provisional allocation combination solutions in Tables 3 and 4, a specific stock lot of a specific sales order to be processed is shaded. It is assumed that the specific method of processing target is followed. The “lot number upper limit” in Tables 3 and 4 will be described in step S6 described later.

ここで、仮引当組合せ解において、特定の1の引当数を変更する在庫品ロットの選択方法は、特に限定されず、例えば特定の1の受注オーダーJ001の特定の1の在庫品ロットA001(表3の左上隅の引当数)を選択してもよいし、全受注オーダーの中からランダムに任意の1の受注オーダーを選択し、その選択した受注オーダーに対して引当可能な全ての在庫品ロットの中からランダムに任意の1の在庫品ロットを選択してもよい。また変更後の引当数(例えば表4においては「2」)は、受注オーダーの合計引当数又は在庫品ロットの在庫量のいずれか小さい方を上限とする0以上の整数から任意に選択することができる。つまり、表3に示す受注オーダーJ002の在庫品ロットA002の引当数を変更する場合、受注オーダーJ002の合計引当数3と、在庫品ロットの在庫数18とのうちの小さい方である3を上限とし、0〜3の範囲の中でランダムに変更後の引当数を設定することができ、表4においては、変更後の引当数を2としている。上記特定の在庫品ロットの引当数を変更することによりステップS5は完了し、制御処理部14はステップS6の処理に進む。   Here, in the provisional allocation combination solution, the method of selecting the inventory lot for changing the allocation number of the specific 1 is not particularly limited. For example, the specific inventory lot A001 of the specific order order J001 (Table 3) (the number of allocations in the upper left corner) or any one order order randomly selected from all the order orders, and all the inventory lots that can be allocated for the selected order order Any one stock lot may be selected at random from. In addition, the number of provisions after the change (for example, “2” in Table 4) is arbitrarily selected from an integer of 0 or more with the upper limit being the smaller of the total number of provisions for received orders or the stock quantity of inventory lots. Can do. That is, when changing the allocation number of the inventory lot A002 of the sales order J002 shown in Table 3, the upper limit is 3 which is the smaller of the total allocation number 3 of the sales order J002 and the inventory number 18 of the inventory lot In the range from 0 to 3, the number of provisions after change can be set at random. In Table 4, the number of provisions after change is 2. Step S5 is completed by changing the number of allocations of the specific inventory lot, and the control processing unit 14 proceeds to the process of step S6.

ステップS3〜ステップS13のループを繰り返す中でステップS5を複数回実行する場合、変更する引当数の受注オーダー又は在庫品ロットのいずれか一方若しくは両方を各ステップS5ごとに異ならしめることが好ましく、例えば受注オーダーJ001を一定として、在庫品ロットA001、A002、B001、B002、B003の引当数をこの順に変更した仮引当組合せ解を設定し、それを終えると受注オーダーJ002に変更して同様の操作を実行するというように複数回のステップS5を繰り返すことが好ましい。もちろん、各ステップS5ごとに、変更する受注オーダー及び在庫品ロットの組合せをランダムに設定してもよい。   When step S5 is executed a plurality of times while repeating the loop of step S3 to step S13, it is preferable that either one or both of the order received and the lot of inventory to be changed are made different for each step S5. A temporary provision combination solution is set in which the order number J001 is constant and the allocation numbers of the stock lots A001, A002, B001, B002, and B003 are changed in this order, and after that, the order is changed to the order order J002 and the same operation is performed. It is preferable to repeat step S5 a plurality of times so as to execute. Needless to say, for each step S5, the combination of the order to be changed and the inventory lot to be changed may be set at random.

ステップS5(第1工程)は、引当組合せ解における全ての受注オーダーに対する全ての在庫品ロットの組合せに対して実行することが好ましく、例えば上記表4に示す引当組合せ解の場合、5種類の受注オーダーに対する5種類の在庫品ロットの全組合せである25通りの引当数に対してそれぞれステップS5を1回以上実行して引当数を変更することが好ましい。ステップS5の実行順序(引当数の変更順序)は、表4に示す引当組合せ解の左上隅の引当数(受注オーダーJ001に対する在庫品ロットA001の引当数)から1つずつ下の引当数(つまり受注オーダーJ001に対する在庫品ロットA002、B001、B002、B003の順)を変更し、次に受注オーダーJ002に対する各在庫品ロットの引当数を変更するというように実行してもよいし、表4の引当組合せ解における各受注オーダーに対する各在庫品ロットの25通りの組合せの中からランダムに1つずつ選択してステップS5を実行し、各受注オーダーに対する各在庫品の引当数のそれぞれに対してステップS5を1回以上実行してもよい。   Step S5 (first step) is preferably executed for all stock lot combinations for all orders received in the allocation combination solution. For example, in the case of the allocation combination solution shown in Table 4 above, five types of orders are received. It is preferable to change the allocation number by executing step S5 once or more for each of the 25 allocation numbers, which are all combinations of the five types of inventory lots for the order. The order of execution of step S5 (the order of changing the number of allocations) is the number of allocations one by one lower than the number of allocations in the upper left corner of the allocation combination solution shown in Table 4 (the number of allocations of the inventory lot A001 for the order receipt J001) (ie The order of inventory lots A002, B001, B002, and B003 for the sales order J001 may be changed, and then the number of allocations of each stock lot for the sales order J002 may be changed. Step S5 is selected by randomly selecting one of 25 combinations of each inventory lot for each sales order for each sales order in the allocation combination solution, and the step is performed for each allocation quantity of each inventory for each sales order. S5 may be executed one or more times.

(ステップS6:ロット数制約条件の充足可否判断)
ステップS6において、ロット数制約成否判定部46は仮引当組合せ解がロット数制約条件を充足するか否かを判定する。ロット数制約条件は、受注オーダーのニーズに応えるための非線形的な制約条件であり、具体的には1つの受注オーダーに対して引き当てる在庫品ロットの種類数の上限の制約である。例えば表4における受注オーダーJ002に引き当てる在庫品ロットの種類数の上限は2であるため、受注オーダーJ002に引き当てる在庫品の種類数は、5種類の在庫品ロットA001〜A002及びB001〜B003のうちから2種以下の在庫品ロットを選択しなければならず、その選択した在庫品ロットの中で引当数を設定しなければならない。
(Step S6: Judgment of Satisfaction of Lot Number Restriction Condition)
In step S6, the lot number constraint success / failure determination unit 46 determines whether or not the provisional allocation combination solution satisfies the lot number constraint condition. The lot number constraint condition is a non-linear constraint condition to meet the needs of a received order, and specifically, is an upper limit constraint on the number of types of inventory lots to be allocated to one received order. For example, the upper limit of the number of types of inventory lots to be allocated to the order order J002 in Table 4 is 2, so the number of types of inventory items to be allocated to the order order J002 is one of five types of inventory lots A001 to A002 and B001 to B003. From this, two or less types of inventory lots must be selected, and the number of allocations must be set in the selected inventory lots.

ロット数制約成否判定部46は、仮引当組合せ解における引当数を変更した受注オーダーの種類数が、受注オーダーに引き当てる在庫品ロットの種類数の上限を超える場合(S6:No)、制御処理部14がステップS7の処理に進むように判定する。一方、ロット数制約成否判定部46は、仮引当組合せ解における引当数を変更した受注オーダーの種類数が、受注オーダーに引き当てる在庫品ロットの種類数の上限以下の場合(S6:Yes)、制御処理部14がステップS8の処理に進むように判定する。   The lot number constraint success / failure determination unit 46, when the number of types of the order received by changing the number of allocations in the provisional allocation combination solution exceeds the upper limit of the number of types of inventory lots to be allocated to the order received (S6: No), the control processing unit 14 determines to proceed to step S7. On the other hand, the lot number restriction success / failure determination unit 46 performs control when the number of types of the received order whose number of allocations in the provisional allocation combination solution is less than or equal to the upper limit of the number of types of inventory lots to be allocated to the received order (S6: Yes). It is determined that the processing unit 14 proceeds to the process of step S8.

表4に示す仮引当組合せ解の場合、第1工程において受注オーダーJ002の在庫品ロットA002の引当数を変更したことにより、受注オーダーJ002に引き当てる在庫品ロットが在庫品ロットA001、A002及びB002の3種類となるため、受注オーダーJ002に引き当てる在庫品ロットの種類数の上限2を超えている。よって、表4の具体例の場合、ロット数制約成否判定部46はステップS7に進むように判定する。   In the case of the provisional allocation combination solution shown in Table 4, by changing the allocation number of the inventory lot A002 of the sales order J002 in the first process, the inventory lot allocated to the sales order J002 becomes the inventory lots A001, A002 and B002. Since there are three types, the upper limit 2 of the number of types of inventory lots to be allocated to the order receipt J002 is exceeded. Therefore, in the specific example of Table 4, the lot number constraint success / failure determination unit 46 determines to proceed to step S7.

(ステップS7:ロット数修正工程)
ステップS7において、ロット数修正部47は、引当数を変更した受注オーダーの変更した在庫品ロット以外の在庫品ロットの引当数を0にする。表4の仮引当組合せ解の具体例で説明すると、ロット数修正部47は、受注オーダーJ002に引き当てる3種の在庫品ロットA001、A002及びB002のうち、在庫品ロットA002以外の在庫品ロットA001又はB002のいずれか一方の引当数を0にする。例えば後掲の表5は、表4の仮引当組合せ解に対し、ロット数修正部47が在庫品ロットB002の引当数を0に修正した場合の仮引当組合せ解を示している。これにより受注オーダーJ002に引き当てる在庫品ロットの種類数が、受注オーダーJ002のロット上限数を超えないように修正することができ、仮引当組合せ解がロット数の制約条件を充足するように仮引当組合せ解を修正することができる。これによりステップS7は完了し、制御処理部14はステップS8の処理に進む。
(Step S7: Lot number correction process)
In step S <b> 7, the lot number correcting unit 47 sets the number of reserved inventory lots other than the changed inventory lot of the received order whose number of allocation is changed to 0. Explaining with a specific example of the provisional allocation combination solution in Table 4, the lot number correction unit 47 among the three types of inventory lots A001, A002 and B002 allocated to the order receipt J002, the inventory lot A001 other than the inventory lot A002. Alternatively, the allocation number of either one of B002 is set to zero. For example, Table 5 below shows a provisional allocation combination solution when the lot number correction unit 47 corrects the allocation number of the inventory lot B002 to 0 with respect to the provisional allocation combination solution of Table 4. As a result, the number of types of inventory lots allocated to the sales order J002 can be corrected so as not to exceed the maximum number of lots of the sales order J002, and the provisional allocation is made so that the provisional allocation combination solution satisfies the restrictions on the number of lots. The combinatorial solution can be modified. Thereby, step S7 is completed, and the control processing unit 14 proceeds to the process of step S8.

(ステップS8:引当数合計制約条件の充足可否判断)
ステップS8において、引当数合計制約成否判定部48は仮引当組合せが引当数合計制約条件を充足するか否かを判定する。引当数合計制約条件は、ステップS5で変更した引当数の在庫品ロットを含む受注オーダーに引き当てる在庫品の合計引当数の上限の制約である。例えば表5においては、受注オーダーJ002に引き当てる在庫品の合計引当数が3であるため、5種類の在庫品ロットA001〜A002及びB001〜B003の合計引当数を3以下にする必要がある。
(Step S8: Judgment of Satisfaction of Total Provision Restriction)
In step S8, the allocation number total constraint success / failure determination unit 48 determines whether or not the provisional allocation combination satisfies the allocation number total constraint condition. The total allocation number constraint condition is a limitation on the upper limit of the total allocation number of inventory items to be allocated to the order received including the inventory lot of the allocation number changed in step S5. For example, in Table 5, since the total allocation number of inventory items to be allocated to the order receipt J002 is 3, the total allocation number of the five types of inventory lots A001 to A002 and B001 to B003 needs to be 3 or less.

引当数合計制約成否判定部48は、仮引当組合せ解において、引当数を変更した受注オーダーに引き当てる全ての在庫品ロットの引当数の合計が、当該受注オーダーの合計引当数を超える場合(S8:No)、制御処理部14がステップS9の処理に進むように判定する。一方、引当数合計制約成否判定部48は、仮引当組合せ解において、引当数を変更した受注オーダーに引き当てる全ての在庫品ロットの引当数の合計が、当該受注オーダーの合計引当数以下の場合(S8:Yes)、制御処理部14がステップS10の処理に進むように判定する。   The total number of provisions constraint success / failure determination unit 48, in the provisional allocation combination solution, when the total number of allocations of all inventory lots to be allocated to the received order whose allocation number has been changed exceeds the total number of allocations of the relevant order (S8: No), the control processing unit 14 determines to proceed to the process of step S9. On the other hand, if the total number of provisions of all the inventory lots to be allocated to the sales order whose allocation number has been changed is less than or equal to the total number of provisions of the sales order, in the provisional allocation combination solution, S8: Yes), the control processing unit 14 determines to proceed to the process of step S10.

表5に示す仮引当組合せ解の場合、引当数を変更した受注オーダーJ002に引き当てる在庫品ロットの引当数の合計が4であるため、受注オーダーJ002に引き当てる在庫品ロットの合計引当数の上限3を超えている。よって、表5の具体例の場合、引当数合計制約成否判定部48はステップS9の処理に進むように判定する。   In the case of the provisional allocation combination solution shown in Table 5, the total number of inventory lots allocated to the sales order J002 whose allocation number has been changed is 4, so the upper limit 3 of the total allocation number of inventory lots allocated to the sales order J002 Is over. Therefore, in the specific example of Table 5, the allocation number total constraint success / failure determination unit 48 determines to proceed to the process of step S9.

(ステップS9:第1引当数修正工程)
ステップS9において、第1引当数修正部49は、引当数を変更した受注オーダーの引当数の合計から受注オーダーの合計引当数を引いて得られた値を上限とする任意の自然数を設定し、前記受注オーダーに引き当てる全ての在庫品のうち、引当数を変更した在庫品以外の在庫品の引当数から上記自然数を減算した引当数を新たな引当数に設定する。
(Step S9: first allocation number correcting step)
In step S9, the first allocation number correction unit 49 sets an arbitrary natural number having an upper limit of a value obtained by subtracting the total number of provisions for the order received from the total number of orders for the order received with the number of provisions changed, Of all the inventory items to be allocated to the received order, the allocation number obtained by subtracting the natural number from the allocation number of inventory items other than the inventory item whose allocation number has been changed is set as a new allocation number.

表5の仮引当組合せ解の具体例で説明すると、第1引当数修正部49は、受注オーダーJ002に引き当てる在庫品ロットA001及びA002の合計引当数4から、受注オーダーJ002の合計引当数3を引いて得られた自然数1を設定し、受注オーダーJ002に引き当てる全ての在庫品ロットA001及びA002のうち、引当数を変更した在庫品ロットA002以外の在庫品(つまり在庫品ロットA001)の引当数2から上記自然数1を減算した引当数を新たな引当数1として設定する。この修正後の仮引当組合せ解を下記の表6に示す。これによりステップS9は完了し、制御処理部14はステップS8の処理に戻る。   To explain with a specific example of the provisional allocation combination solution in Table 5, the first allocation number correction unit 49 calculates the total allocation number 3 of the order receipt J002 from the total allocation number 4 of the inventory lots A001 and A002 to be allocated to the sales order J002. The natural number 1 obtained by subtraction is set, and among all the inventory lots A001 and A002 allocated to the sales order J002, the allocation number of inventory items other than the inventory lot A002 with the allocation number changed (that is, the inventory lot A001) The allocation number obtained by subtracting the natural number 1 from 2 is set as a new allocation number 1. The corrected provisional provision combination solution is shown in Table 6 below. Thereby, step S9 is completed, and the control processing unit 14 returns to the process of step S8.

上記ステップS9を含むことにより受注オーダーJ002に引き当てる在庫品ロットの引当数の合計が、受注オーダーJ002の合計引当数を超えないように仮引当組合せ解の引当数を修正することができる。これによりステップS9は完了し、制御処理部14はステップS8の処理に戻る。   By including the above step S9, it is possible to correct the provision number of the provisional provision combination solution so that the total number of provisions of the inventory lot to be allocated to the order order J002 does not exceed the total number of provisions of the order order J002. Thereby, step S9 is completed, and the control processing unit 14 returns to the process of step S8.

なお、表5の仮引当組合せ解においては、在庫品ロットA001の引当数を1減算することが一義的に設定し得る場合を説明したが、このように一義的に設定することができず、ステップS9を終えた後の仮引当組合せ解が引当数合計制約条件を充足しないこともあり得る。この場合には、制御処理部14は引当数合計制約条件を充足する仮引当組合せ解となるまでステップS8及びS9を繰り返す。これにより引当数を変更した在庫品以外の複数の在庫品の引当数を修正することができ、引当数の修正の網羅性を担保することができる。   In addition, in the provisional allocation combination solution of Table 5, a case has been described in which it is possible to unambiguously set 1 to subtract the allocation number of the inventory lot A001, but it cannot be uniquely set in this way. It is possible that the provisional allocation combination solution after step S9 does not satisfy the allocation total constraint condition. In this case, the control processing unit 14 repeats Steps S8 and S9 until the provisional allocation combination solution that satisfies the allocation total constraint condition is obtained. As a result, it is possible to correct the number of provisions of a plurality of inventory items other than the inventory items whose number of allocations has been changed, and to ensure the completeness of the correction of the number of allocations.

(ステップS10:在庫数制約条件の充足可否判断)
ステップS10において、在庫数制約成否判定部50は仮引当組合せが在庫数制約条件を充足するか否かを判定する。在庫数制約条件は、第1工程で変更した引当数の在庫品ロットの在庫数の制約である。例えば表6においては、第1工程で変更した引当数の在庫品ロットA002の在庫数が18であるため、全ての受注オーダーJ001〜J005に引き当てる在庫品ロットA002の引当数の合計を18以下にする必要がある。
(Step S10: Judgment of availability of stock quantity constraint)
In step S10, the stock quantity constraint success / failure determination unit 50 determines whether or not the provisional allocation combination satisfies the stock quantity constraint condition. The stock quantity constraint condition is a restriction on the stock quantity of the stock lot of the reserve quantity changed in the first step. For example, in Table 6, since the inventory quantity of the inventory lot A002 with the allocation quantity changed in the first step is 18, the total allocation quantity of the inventory lot A002 allocated to all the order orders J001 to J005 is set to 18 or less. There is a need to.

在庫数制約成否判定部50は、仮引当組合せ解における全ての受注オーダーにおける第1工程で引当数を変更した在庫品ロットの引当数の合計が、当該在庫品ロットの在庫数を超える場合(S10:No)、ステップS11の処理に進むように判定する。一方、在庫数制約成否判定部50は、仮引当組合せ解における第1工程で引当数を変更した在庫品ロットの引当数の合計が、当該在庫品ロットの在庫数以下の場合(S10:Yes)、制御処理部14がステップS12の処理に進むように判定する。   The stock quantity constraint success / failure determination unit 50, when the total number of the stock lots for which the number of provisions has been changed in the first step in all the orders received in the provisional provision combination solution exceeds the stock quantity of the stock lots (S10) : No), it is determined to proceed to step S11. On the other hand, the stock quantity constraint success / failure determination unit 50, when the total number of the stock lots for which the number of provisions has been changed in the first step in the provisional provision combination solution is less than or equal to the stock quantity of the stock lots (S10: Yes) Then, the control processing unit 14 determines to proceed to the process of step S12.

表6に示す仮引当組合せ解の場合、全ての受注オーダーJ001〜J005における第1工程で引当数を変更した在庫品ロットA002の引当数の合計(2+2+16=20)が、在庫品ロットA002の在庫数18を超えている。よって、表6の具体例の場合、在庫数制約成否判定部50は制御処理部14がステップS11の処理に進むように判定する。   In the case of the provisional allocation combination solution shown in Table 6, the total allocation number (2 + 2 + 16 = 20) of the inventory lot A002 in which the allocation number is changed in the first process in all the order orders J001 to J005 is the inventory of the inventory lot A002. The number 18 is exceeded. Therefore, in the case of the specific example of Table 6, the stock quantity constraint success / failure determination unit 50 determines that the control processing unit 14 proceeds to the process of step S11.

(ステップS11:第2引当数修正工程)
ステップS11において、第2引当数修正部51は、第1工程で引当数を変更した在庫品の引当数の合計から当該在庫品の在庫数を引いて得られた値を上限とする任意の自然数を設定し、前記第1工程で変更した引当数以外の在庫品の引当数から当該自然数を減算した引当数を新たな引当数に設定する。
(Step S11: Second allocation number correcting step)
In step S11, the second allocation number correction unit 51 sets an arbitrary natural number whose upper limit is a value obtained by subtracting the inventory number of the inventory item from the total allocation number of the inventory item whose allocation number has been changed in the first step. Is set, and the allocation number obtained by subtracting the natural number from the allocation number of the inventory other than the allocation number changed in the first step is set as a new allocation number.

表6の仮引当組合せ解の具体例で説明すると、第2引当数修正部51は、第1工程で引当数を変更した在庫品ロットA002の引当数の合計20から、在庫品ロットA002の在庫数18を引いて得られた値2を上限とする自然数(例えば2)を設定し、仮引当組合せ解における第1工程で変更した在庫品ロットA002の引当数以外の受注オーダーJ005の引当数16から上記自然数2を減算した引当数14を新たな引当数として設定する(下記表7参照)。   To explain with a specific example of the provisional allocation combination solution in Table 6, the second allocation number correction unit 51 calculates the inventory of the inventory lot A002 from the total allocation number 20 of the inventory lot A002 whose allocation number has been changed in the first step. A natural number (for example, 2) having an upper limit of the value 2 obtained by subtracting the number 18 is set, and the provision number 16 of the received order J005 other than the provision number of the inventory lot A002 changed in the first step in the provisional provision combination solution 16 The reserve number 14 obtained by subtracting the natural number 2 is set as a new reserve number (see Table 7 below).

上記ステップS11を含むことにより在庫品ロットA002の引当数の合計が、在庫品ロットA002の在庫数を超えないように仮引当組合せ解の引当数を修正することができる。これによりステップS11は完了し、制御処理部14はステップS10の処理に戻る。   By including the above step S11, it is possible to correct the provision number of the provisional provision combination solution so that the total number of provisions of the inventory item lot A002 does not exceed the inventory number of the inventory item lot A002. Thereby, step S11 is completed, and the control processing unit 14 returns to the process of step S10.

なお、表7の仮引当組合せ解においては、受注オーダーJ005の在庫品ロットA002の引当数を2減算することが一義的に設定し得る場合を説明したが、このように一義的に設定することができず、ステップS11を終えた後の仮引当組合せ解が在庫数制約条件を充足しないこともあり得る。この場合には、制御処理部14は在庫数制約条件を充足する仮引当組合せ解となるまでステップS10及びS11を繰り返す。これにより引当数を変更した在庫品以外の複数の在庫品の引当数を修正することができ、引当数の修正の網羅性を担保することができる。   In addition, in the provisional allocation combination solution in Table 7, a case has been described in which it is possible to unambiguously set 2 to subtract the allocation number of the inventory lot A002 of the order receipt J005. Therefore, the provisional allocation combination solution after step S11 may not satisfy the stock quantity constraint condition. In this case, the control processing unit 14 repeats steps S10 and S11 until a provisional allocation combination solution that satisfies the inventory quantity constraint condition is obtained. As a result, it is possible to correct the number of provisions of a plurality of inventory items other than the inventory items whose number of allocations has been changed, and to ensure the completeness of the correction of the number of allocations.

(ステップS12:評価値の比較)
ステップS12において、評価値比較部52は、所定の評価関数に基づいて、第1工程の前の引当組合せ解の評価値A、及びステップS10を通過した仮引当組合せ解の評価値Bを算出する。なお、評価値A及びBはいずれも具体的数値によって特定されるものであり、その数値が高いほど最適解に近いことを示すものである。上記評価値A及びBを算出するための評価関数としては、下記式(I)の評価関数Fを用いることが好ましい。
(Step S12: Comparison of evaluation values)
In step S12, the evaluation value comparison unit 52 calculates the evaluation value A of the provisional combination solution before the first step and the evaluation value B of the provisional provisioning combination solution that has passed step S10 based on a predetermined evaluation function. . The evaluation values A and B are both specified by specific numerical values, and the higher the numerical value, the closer to the optimal solution. As an evaluation function for calculating the evaluation values A and B, it is preferable to use an evaluation function F of the following formula (I).

ここで、上記式(I)中のpi,jは、n(nは2以上の整数)種類の製品のうちの特定の1の製品iを作製するために用いるm(mは自然数)種類の在庫品のうちの特定の1の在庫品jを引き当てるべき優先度を規定するパラメータであり、ai,jは、特定の1の製品iを作製するために引き当てる特定の1の在庫品jの引当数である。 Here, p i, j in the above formula (I) is m (m is a natural number) types used for producing one specific product i among n (n is an integer of 2 or more) types of products. Is a parameter that defines the priority to which a specific one of the inventory items j should be allocated, and a i, j is a specific one inventory item j to be allocated to produce a specific one product i. The number of provisions.

上記優先度は、各製品に関する条件(例えば要求性能、仕様、用途、大きさ等)と、各在庫品に関する条件(品質、原材料、有効期限、用途、形状等)とによって規定されるパラメータであり、例えば製品に関する条件に基づいて1〜10点の10段階評価で優先度を設定し、在庫品に関する条件に基づいて1〜10点の10段階評価で優先度を設定し、各製品及び各在庫品の双方の優先度を単純に足し合わせることによって各受注オーダーの各在庫品ロットの優先度を設定することができる。具体例として、上記受注オーダーJ001〜J005に引き当てるべき在庫品ロットA001〜A002及びB001〜B003の各優先度の数値を表8に示す。   The above-mentioned priority is a parameter defined by conditions regarding each product (for example, required performance, specifications, usage, size, etc.) and conditions regarding each inventory (quality, raw material, expiration date, usage, shape, etc.) For example, a priority is set by 10-level evaluation of 1 to 10 points based on conditions related to products, and a priority is set based on a 10-level evaluation of 1 to 10 points based on conditions related to stocks. The priority of each inventory lot of each order can be set by simply adding the priorities of both items. As a specific example, Table 8 shows numerical values of priorities of the stock lots A001 to A002 and B001 to B003 to be allocated to the order orders J001 to J005.

表8の優先度について、製品に対して在庫品を引き当てにくい制約がある製品及び在庫品ほど優先度は高くなる傾向にある。在庫管理上、制約が多い製品及び在庫品ほど早く引き当てた方が在庫品を少なくし得るからである。   Regarding the priorities in Table 8, products and stocks that have a constraint that it is difficult to allocate stocks to products tend to have higher priorities. This is because it is possible to reduce the number of inventories by assigning earlier to products and inventories that have more restrictions in terms of inventory management.

評価値Aは、例えば上記表3に示す引当組合せ解の示す各引当数ai,jと、表8に示す各優先度pi,jとを積算してその総和を算出することにより得ることができ、評価値Bは、例えば上記表7に示す仮引当組合せ解の示す各引当数ai,jと、表8に示す各優先度pi,jとを積算してその総和を算出することにより得ることができる。 The evaluation value A is obtained, for example, by accumulating the allocation numbers a i, j indicated by the allocation combination solutions shown in Table 3 above and the priorities p i, j shown in Table 8 and calculating the sum thereof. The evaluation value B is calculated, for example, by summing up the allocation numbers a i, j indicated by the provisional allocation combination solution shown in Table 7 and the priorities p i, j shown in Table 8 and summing them up. Can be obtained.

評価値比較部52は、上記引当組合せ解の評価値Aと仮引当組合せ解の評価値Bとを比較し、評価値Bが評価値A未満の場合(S12:No)、引当組合せ解を変更せず、ステップS3の処理に戻るように判定する。一方、評価値比較部52は評価値Bが評価値A以上の場合(S12:Yes)、ステップS13の処理に進むように判定し、引当組合せ更新部53はステップS13において仮引当組合せ解を新たな引当組合せ解に書き換える。このように引当組合せ解を書き換えることにより、引当組合せ解の各製品に対する各在庫品の引当数を最適解に近づけることができる。これによりステップS13は完了し、ステップS3の処理に戻る。以上のようにしてステップS3〜ステップS13の各工程を繰り返し、カウンタnの値がループ数設定値Nになった後にステップS3において、カウンタ成否判定部44は制御処理部14が処理を終了すると判定する(エンド)。   The evaluation value comparison unit 52 compares the evaluation value A of the allocation combination solution with the evaluation value B of the provisional allocation combination solution. If the evaluation value B is less than the evaluation value A (S12: No), the allocation combination solution is changed. Without determining, the process returns to the process of step S3. On the other hand, when the evaluation value B is equal to or higher than the evaluation value A (S12: Yes), the evaluation value comparison unit 52 determines to proceed to the process of step S13, and the allocation combination update unit 53 newly sets the provisional allocation combination solution in step S13. Rewrite to the appropriate allocation combination solution. By rewriting the allocation combination solution in this way, the number of allocations of each inventory item for each product of the allocation combination solution can be brought close to the optimal solution. Thereby, step S13 is completed, and the process returns to step S3. The steps S3 to S13 are repeated as described above, and after the value of the counter n reaches the loop number set value N, the counter success / failure determination unit 44 determines that the control processing unit 14 ends the process in step S3. (End)

(上記実施形態の変形例1)
上記実施形態の在庫引当方法は、仮引当組合せ解の評価値Bが引当組合せ解の評価値A未満の場合に仮引当組合せ解を引当組合せ解に設定する第3工程を含み、予め設定した確率で前記第2工程に代えて前記第3工程を行ってもよい。このような第3工程を組み入れる理由として、一般に、引当組合せ解における評価値の解空間は多峰性の評価値分布を有するものと推察され、その全ての峰のうちの評価値が最大となる峰において、局所探索法で引当組合せ解を探索することが好ましいからである。つまり、引当組合せ解のうちの特定の1の引当数を変更するだけでは解空間内の一峰から脱出して別の一峰に移動しにくく、特定の一峰における局所解に陥りやすい。このような局所解に陥ることを避け、全体の中で評価値が最大となる最適解を探索するために、所定の確率で第2工程に代えて第3工程を実行することが好ましい。上記第3工程を含むことにより、仮引当組合せ解の評価値が引当組合せ解の評価値よりも低くなった場合でも仮引当組合せ解を棄却せずに引当組合せ解として採用し、当該引当組合せ解に基づいて次の仮引当組合せ解を設定することができ、これにより一峰の局所解から脱出して別の峰に移動して解空間全体内の最適解を模索しやすくなる。
(Modification 1 of the above embodiment)
The inventory allocation method of the above embodiment includes the third step of setting the provisional allocation combination solution to the allocation combination solution when the evaluation value B of the provisional allocation combination solution is less than the evaluation value A of the allocation combination solution, and has a preset probability In place of the second step, the third step may be performed. As a reason for incorporating such third step, it is generally presumed that the solution space of the evaluation value in the allocation combination solution has a multi-modal evaluation value distribution, and the evaluation value of all the peaks becomes the maximum. This is because it is preferable to search for the allocation combination solution by the local search method at the peak. That is, it is difficult to escape from one peak in the solution space and move to another peak only by changing the specific number of allocations of the allocation combination solutions, and easily fall into a local solution at a specific peak. In order to avoid such a local solution and search for an optimal solution having the maximum evaluation value in the whole, it is preferable to execute the third step instead of the second step with a predetermined probability. By including the above third step, even if the evaluation value of the provisional provision combination solution is lower than the evaluation value of the provision combination solution, the provisional provision combination solution is adopted as the provision combination solution without rejecting, and the provision combination solution The next provisional allocation combination solution can be set based on the above, and it is easy to escape from one local solution and move to another peak to find the optimal solution in the entire solution space.

上記第2工程に代えて第3工程を実行する確率は、カウンタnの値との関係によって変動させることが好ましく、カウンタnの値が大きくなるにつれて第3工程を実行する確率を徐々に減らすことが好ましい。このようにループのカウンタnの値と第3工程を実行する確率を関連付け、ループ開始初期の段階では第3工程を実行する確率を高くすることにより、ループ開始初期の段階で局所解に陥ることを抑制するとともに、ループ終了時期で第3工程を実行する確率を低くすることにより、解空間における特定の峰の中での最適解を模索しやすくなる。   The probability of executing the third step instead of the second step is preferably varied depending on the relationship with the value of the counter n, and the probability of executing the third step is gradually reduced as the value of the counter n increases. Is preferred. Thus, by associating the value of the counter n of the loop with the probability of executing the third step, and increasing the probability of executing the third step at the initial stage of the loop, it falls into a local solution at the initial stage of the loop. As well as reducing the probability of executing the third step at the end of the loop, it becomes easier to search for an optimal solution in a specific peak in the solution space.

(実施形態の変形例2)
上記実施形態においては、カウンタnの値がループ数設定値Nになるまで引当組合せ解を模索する場合を説明したが、評価値が所定の数値以上となるまで引当組合せ解を模索してもよい。
(Modification 2 of embodiment)
In the above embodiment, the case where the allocation combination solution is searched until the value of the counter n reaches the loop number setting value N has been described. However, the allocation combination solution may be searched until the evaluation value becomes equal to or greater than a predetermined numerical value. .

(実施形態の変形例3)
上記実施形態の引当組合せ解において、特定の受注オーダーに対して特定の在庫品を引き当てることができないという引当可否の制約が存在する場合がある。このような引当可否のデータは、解探索条件データベース33に格納されるものであり、例えば、下記の表9に示すデータである。表9において、各受注オーダーに対して引当可能な在庫品ロットに「1」を表記し、引当不可の在庫品に「0」を表記している。
(Modification 3 of embodiment)
In the allocation combination solution of the above-described embodiment, there may be a restriction on whether or not to allow allocation that a specific stock item cannot be allocated to a specific order order. Such allocation availability data is stored in the solution search condition database 33 and is, for example, data shown in Table 9 below. In Table 9, “1” is indicated for the inventory lot that can be allocated for each order received, and “0” is indicated for the inventory that cannot be allocated.

表9の引当可否情報に基づく場合、受注オーダーJ003に対して在庫品ロットB001、B002及びB003が引当可能であり、在庫品ロットA001及びA002が引当不可である。   Based on the allocation availability information in Table 9, the inventory lots B001, B002, and B003 can be allocated to the sales order J003, and the inventory lots A001 and A002 cannot be allocated.

このような引当可否の制約が存在する場合、特定の製品に対する特定の在庫品の引当数を変更する第1工程において、引当不可の在庫品の引当数を選択せず、引当可能な在庫品の引当数のみを選択して変更するように第1工程を実行することが好ましい。つまり、表9における「1」の引当数のみを第1工程で変更し、表9における「0」の引当数は全て「0」に設定した上で、第1工程で引当数を変更しないようにすることが好ましい。このように第1工程を行うことで、引当可能な在庫品の引当数のみを変更することができ、引当組合せ解の最適解を模索しやすくなる。   If there is such a restriction on availability, the first step of changing the number of provisions for a specific inventory for a specific product does not select the number of provisions for a non-allocationable inventory, It is preferable to execute the first step so that only the number of allocations is selected and changed. That is, only the number of allocations of “1” in Table 9 is changed in the first step, and the number of allocations of “0” in Table 9 is set to “0”, and the number of allocations is not changed in the first step. It is preferable to make it. By performing the first step in this way, it is possible to change only the number of allocations of inventory items that can be allocated, and it is easy to search for an optimal solution for the allocation combination solution.

<実施形態2:在庫引当システム>
図3は、実施形態2の在庫引当方法を実行する在庫引当システムの構成を示す図である。本実施形態の在庫管理システムは、図3に示すように、実施形態1に対して引当数下限の制約条件及び在庫品群の概念を追加しており、かかる追加に伴って、制御処理部14には、記憶部13に記憶されている制御処理プログラムが実行されることによって、ロット数制約成否判定部46及びロット数修正部47に代えて在庫品群数制約成否判定部46’及び在庫品群数修正部47’がそれぞれ機能的に構成される。また実施形態1の在庫引当システムの各構成に加えて、過去引当情報取込部40、引当数下限成否判定部48a、引当数0解設定部49a、在庫品引当解除部54及び引当数減算部55が機能的に構成されることが異なる他は実施形態1と同様の各部が構成される。以下において、実施形態1の在庫引当システムと異なる構成についてのみ説明し、実施形態1のそれと同一の構成(例えば入力部11、出力部12及び記憶部13等)の説明は繰り返さない。
<Embodiment 2: Inventory allocation system>
FIG. 3 is a diagram illustrating a configuration of an inventory allocation system that executes the inventory allocation method according to the second embodiment. As shown in FIG. 3, the inventory management system according to the present embodiment adds a restriction condition for the lower limit of the number of allocations and the concept of the inventory group to the first embodiment. The control processing program stored in the storage unit 13 is executed to replace the lot number constraint success / failure determination unit 46 and the lot number correction unit 47 with the inventory group number constraint success / failure determination unit 46 ′ and the inventory item. Each group correction unit 47 'is functionally configured. In addition to the components of the inventory allocation system according to the first embodiment, the past allocation information capturing unit 40, the allocation number lower limit success / failure determination unit 48a, the allocation number 0 solution setting unit 49a, the inventory item allocation cancellation unit 54, and the allocation number subtraction unit Each part is the same as that of the first embodiment except that 55 is functionally configured. Only the configuration different from that of the inventory allocation system of the first embodiment will be described below, and the description of the same configuration (for example, the input unit 11, the output unit 12, the storage unit 13, etc.) as that of the first embodiment will not be repeated.

在庫品群は、品質トレーサビリティ上は単一の在庫品として扱うべきであるが、実体的な製品への引当においては別々の在庫品ロットを付して管理すべき複数の在庫品ロットをグループ化したものである。各在庫品ロットはいずれか1つの在庫品群に属しており、各在庫品群は、少なくとも1種類の在庫品ロットを有している。ここでは、1つの在庫品群に属する在庫品ロットが1つの場合もあり得る。   Inventories should be treated as a single inventory for quality traceability, but grouping multiple inventory lots that should be managed with separate inventory lots in the provision of substantive products It is a thing. Each stock lot belongs to one stock group, and each stock group has at least one kind of stock lot. Here, there may be one inventory lot belonging to one inventory group.

在庫品群と在庫品ロットとの関係の一例として、例えば、同一の製造日に同一の製造地で製造された在庫品は、本来であれば同一の在庫品ロットを付して管理すべきであるが、その在庫品の保管場所を異なる場所(例えば倉庫Aと倉庫B)にしたが故に、各場所によって在庫品ロットが異なる性質を示すものとなっていることが品質検査において判明した場合によって、それぞれの在庫品ロットは、品質トレーサビリティ上は単一の在庫品ロットで管理すべきでありながら、製品への引当においては保管場所に応じて別々の在庫品ロットとして引き当てるべき在庫品となる。本実施形態では、同一の製造地及び製造日で製造された一群の在庫品を一つの在庫品群として管理し、当該在庫品群の中で保管場所が異なったり、在庫品を作製する工程進捗が違ったり、等のように個別の条件が加わったことで引当を検討する上で異なる性質を示すことが判明した各在庫品に対しそれぞれ別々の在庫品ロットを付している。このような在庫品ロット及び在庫品群は、引当組合せ解を最適化するという観点では、個別の在庫品ロットの単位で各在庫品ロットを引き当てる必要があるが、品質トレーサビリティの観点からは在庫品群の単位で各在庫品ロットを管理すべきである。   As an example of the relationship between the inventory group and the inventory lot, for example, an inventory manufactured at the same manufacturing location on the same manufacturing date should be managed by attaching the same inventory lot. However, depending on the case where it is found in the quality inspection that the inventory lots show different properties depending on the location because the storage location of the inventory is different (for example, warehouse A and warehouse B). Each inventory lot should be managed as a single inventory lot in terms of quality traceability, but in the allocation to the product, it becomes an inventory to be allocated as a separate inventory lot depending on the storage location. In this embodiment, a group of inventory items manufactured at the same manufacturing location and date is managed as one inventory item group, and the storage location is different in the inventory item group, or the process progress of producing the inventory item Different inventory lots are attached to each inventory item that has been found to exhibit different characteristics when considering provisions due to the addition of individual conditions such as From the viewpoint of optimizing the allocation combination solution, such inventory lots and inventory groups need to be allocated to each inventory lot in units of individual inventory lots. Each inventory lot should be managed in groups.

引当数下限は、ある製品を作製するための受注オーダーに対し、1つの在庫品群に含まれる在庫品ロットの引当数の総和の最低数を設定したものであり、各受注オーダーに対して引き当てる各在庫品ロットを含む在庫品群の種類数を少なくするための制約条件である。例えば、ある受注オーダーに対して引当数の総和の最低数が3と定められている場合、その受注オーダーに対して1つの在庫品群に含まれる全ての在庫品の引当数の総和を1又は2とすることは許されず、その総和が0又は3以上となるように設定すべき制約条件である。このような制約条件を課すことにより、各製品を作製するために引き当てる在庫品ロットにおいて、別々の在庫品群に含まれる在庫品ロットから1つずつ細切れで引き当てられることを防止することができるので、製品に不具合が生じたときにその不具合の原因となる在庫品ロットを特定しやすくなり、品質トレーサビリティを向上させることができる。   The lower limit of the number of allocations is the minimum number of the total number of allocations of inventory lots included in one inventory group for an order received for producing a certain product, and is allocated to each order received. This is a constraint condition for reducing the number of types of inventory group including each inventory lot. For example, when the minimum total number of provisions for a certain order is determined to be 3, the total number of all the inventory items included in one inventory group for that order is 1 or It is not allowed to be 2, and is a constraint condition that should be set so that the sum is 0 or 3 or more. By imposing such a constraint condition, it is possible to prevent the inventory lots allocated to produce each product from being allocated one by one from the inventory lots included in different inventory groups. When a defect occurs in a product, it becomes easy to identify a stock lot that causes the defect, and quality traceability can be improved.

次に、本実施形態の在庫引当システムを構成する各部のうちの実施形態1の在庫引当システムから追加された部分及び変更された部分を説明する。   Next, the part added from the inventory allocation system of Embodiment 1 and the changed part of each part which comprises the inventory allocation system of this embodiment are demonstrated.

過去引当情報取込部40は、製品を作製するために過去に引き当てた在庫品が存在する場合において、当該過去に引き当てた在庫品の引当数を引当組合せ解に取り込むものである。   The past allocation information capturing unit 40 captures the number of allocations of the previously allocated inventory items in the allocation combination solution when there is an inventory allocated in the past for producing a product.

引当数変更部(第1処理部)45は、上記の引当数下限の概念が導入されたことに伴って変更が加えられている。すなわち、引当数変更部(第1処理部)45は、引当組合せ解のうちの特定の1の製品を作製するための特定の1の在庫品ロットの引当数を、当該製品を作製するために引き当てる各在庫品ロットの引当数の下限値以上の整数であって、かつ製品を作製するために必要な在庫品ロットの引当数又は在庫品ロットの在庫数のいずれか小さい方の数値を上限とする整数の中からランダムに変更するものである。なお、受注オーダーに対して引当数の下限値が定められていない場合には、各在庫品ロットの引当数は0以上の整数の中からランダムに変更するものとする。   The allocation number changing unit (first processing unit) 45 is changed in accordance with the introduction of the concept of the allocation number lower limit. That is, the allocation number changing unit (first processing unit) 45 uses the allocation number of a specific inventory lot for preparing a specific product in the allocation combination solution to generate the product. An integer greater than or equal to the lower limit of the number of allocations for each inventory lot to be allocated, and the upper limit is the smaller of the number of inventory lots necessary to produce a product or the number of inventory of inventory lots, whichever is smaller It is a random change from the integers to be. In addition, when the lower limit value of the allocation number is not defined for the order, the allocation number of each inventory lot is changed at random from an integer of 0 or more.

ここで、引当数変更部45は、上記引当数を変更した在庫品ロットが2以上の在庫品ロットを含む在庫品群に含まれる場合、上記で引当数を変更した在庫品ロット以外の当該在庫品群に含まれる在庫品ロットの引当数も併せて変更する。ここでの引当数の変更は、引当数を変更した在庫品を含む在庫品群に含まれる全ての在庫品の引当数の総和が、その受注オーダーに許容される前記在庫品群に含まれる全ての在庫品の引当数の総和の下限値以上の整数となるように当該在庫品群に含まれる各在庫品の引当数が設定される。   Here, in the case where the inventory lot that has changed the allocation number is included in the inventory group that includes two or more inventory lots, the allocation number changing unit 45 does not include the inventory lot other than the inventory lot that has changed the allocation number. The number of inventory lots included in the product group is also changed. The change in the number of allocations here means that the total number of allocations of all the inventory items included in the inventory group including the inventory items whose allocation number has been changed is all included in the inventory group allowed in the order. The number of provisions of each stock item included in the stock group is set to be an integer equal to or greater than the lower limit value of the total number of stock items.

このように引当数変更部45によって在庫品群に含まれる全ての在庫品ロットの引当数が変更されるように引当数を変更する範囲を広げることで、仮引当組合せ解が元の引当組合せ解の評価値を上回る評価値となるように仮引当組合せ解を設定することができる。仮に、本実施形態でも実施形態1のように引当数を変更する単位を在庫品ロットとすると、在庫品群に含まれる全ての在庫品の引当数の合計の下限値の制約条件や、各受注オーダーに引き当てる在庫品群数の上限の制約条件を在庫品群単位で調整することとのバランスがとれなくなるので、引当組合せ解の評価値を上回る評価値を示す仮引当組合せ解を設定しにくくなり、引当組合せ更新部53によって引当組合せ解を仮引当組合せ解で更新しにくくなる。   In this way, the provisional allocation combination solution is expanded by expanding the range of changing the allocation number so that the allocation number of all inventory lots included in the inventory group is changed by the allocation number changing unit 45, so that the provisional allocation combination solution is changed to the original allocation combination solution. The provisional allocation combination solution can be set so that the evaluation value exceeds the evaluation value. Assuming that the unit for changing the allocation number is an inventory lot as in the first embodiment as in the first embodiment, the constraint condition of the lower limit of the total allocation number of all the inventory items included in the inventory group and each order received It becomes difficult to set a provisional provision combination solution that shows an evaluation value that exceeds the evaluation value of the provision combination solution, because it becomes impossible to balance the restriction on the upper limit of the number of inventory items to be allocated to an order by adjusting the inventory unit. Therefore, it becomes difficult for the allocation combination updating unit 53 to update the allocation combination solution with the provisional allocation combination solution.

在庫品群数制約成否判定部46’は、引当数変更部45によって引当数を変更した在庫品ロットを用いて作製する製品を作製するために引き当てる在庫品ロットを含む在庫品群の種類数が、その在庫品群数制約条件を充足するか否かを判定するものである。上記実施形態1のロット数制約成否判定部46は、各受注オーダーに引き当てる在庫品ロットの単位で在庫品ロットの種類数の上限を充足するか否かを判定していたが、本実施形態では、在庫品群の概念を導入したことに伴って、在庫品ロットを含む在庫品群の単位で在庫品群種類数の上限を充足するか否かを判定する。   The inventory group number constraint success / failure determination unit 46 ′ determines the number of types of inventory group including the inventory lot to be allocated to produce a product to be manufactured using the inventory lot whose allocation number has been changed by the allocation number changing unit 45. It is determined whether or not the inventory group number constraint condition is satisfied. The lot number restriction success / failure determination unit 46 of the first embodiment determines whether or not the upper limit of the number of types of inventory lots is satisfied in units of inventory lots allocated to each order received. In the present embodiment, With the introduction of the concept of inventory group, it is determined whether or not the upper limit of the number of types of inventory group is satisfied in units of inventory group including inventory lots.

より具体的には、在庫品群数制約成否判定部46’は、当該製品に引き当てる在庫品ロットを含む在庫品群の種類数が、各製品に応じて当該製品を作製するために許容される在庫品を含む在庫品群の種類数の上限以下である場合に、在庫品群種類数制約条件を充足すると判定し、当該製品に引き当てる在庫品を含む在庫品群の種類数が前記上限を超える場合に、在庫品群種類数制約条件を充足しないと判定する。   More specifically, the inventory group number constraint success / failure determination unit 46 ′ allows the number of types of inventory groups including inventory lots to be allocated to the product to be allowed to produce the product according to each product. When the number of types of inventory group including the inventory item is less than the upper limit, it is determined that the inventory group type number constraint condition is satisfied, and the number of types of inventory group including the inventory item allocated to the product exceeds the upper limit. In this case, it is determined that the stock group type number constraint condition is not satisfied.

在庫品群数修正部47’は、在庫品群数制約成否判定部46’が上記在庫品群数制約条件を充足しないと判定した場合に、引当数を変更した在庫品を含む在庫品群以外の当該製品を作製するために引き当てる在庫品群に含まれる全ての在庫品ロットの引当数を0に修正するものである。これにより当該製品に引き当てる在庫品群の種類数を1減らすことができ、在庫品群数制約条件を充足するようにいずれか1つの在庫品群に含まれる全ての在庫品ロットの引当数を修正することができる。   The inventory item group number correcting unit 47 ′, except for the inventory item group number constraint success / failure determination unit 46 ′, determines that the above inventory item group number constraint condition is not satisfied, other than the inventory item group including the inventory item whose allocation number is changed. The number of provisions of all inventory lots included in the inventory group allocated to produce the product is corrected to zero. As a result, the number of types of inventory group allocated to the product can be reduced by 1, and the number of provisions for all inventory lots included in any one inventory group is corrected so as to satisfy the inventory group constraint condition. can do.

引当数下限成否判定部48aは、第1及び第2引当数修正部49、51によって引当数が修正された在庫品ロットを含む在庫品群に含まれる全ての在庫品ロットの引当数の総和が、引当数が修正された在庫品ロットによって作製される製品を作製するために許容される在庫品群に含まれる全ての在庫品ロットの引当数の総和の下限値を充足するか否かを判定する。   The allocation number lower limit success / failure determination unit 48a calculates the sum of the allocation numbers of all the inventory lots included in the inventory group including the inventory lots whose allocation numbers have been corrected by the first and second allocation number correction units 49 and 51. Determine whether the lower limit of the total number of provisions for all inventory lots included in the inventory group allowed to produce products made with inventory lots with revised provisions is satisfied To do.

より具体的には、引当数下限成否判定部48aは、第1及び第2引当数修正部49、51によって引当数が修正された在庫品ロットを含む在庫品群に含まれる全ての在庫品ロットの引当数の総和が、引当数が修正された在庫品ロットによって作製される製品を作製するために許容される在庫品群に含まれる全ての在庫品ロットの引当数の総和の下限値以上である場合に、引当数下限の制約条件を充足すると判定し、第1及び第2引当数修正部49、51によって修正された引当数が、引当数が修正された在庫品ロットによって作製される製品を作製するために許容される在庫品群に含まれる全ての在庫品ロットの引当数の総和の下限値未満である場合に、引当数下限の制約条件を充足しないと判定する。   More specifically, the allocation number lower limit success / failure determination unit 48a includes all inventory lots included in the inventory group including the inventory lots whose allocation numbers have been corrected by the first and second allocation number correction units 49 and 51. The total number of provisions in the inventory is greater than or equal to the lower limit of the total number of provisions for all inventory lots included in the inventory group allowed to produce products made with inventory lots with modified provision numbers In some cases, it is determined that the constraint condition of the lower limit of the number of allocations is satisfied, and the number of allocations corrected by the first and second allocation number correction units 49 and 51 are produced by the inventory lots whose allocation numbers are corrected. Is less than the lower limit of the total number of allocations of all the inventory lots included in the inventory group allowed to produce the item, it is determined that the constraint condition of the allocation number lower limit is not satisfied.

なお、本実施形態では、在庫品群の概念が導入されているので、引当数下限成否判定部48aは、受注オーダーごとに定められた在庫品群に含まれる全ての在庫品ロットの引当数の合計値の下限に基づいて、引当数下限の制約条件を充足するか否かを判定しているが、実施形態1のように在庫品群の概念が導入されておらずに各在庫品ロットの引当数に下限が設定される場合は、引当数下限成否判定部48aは、各受注オーダーに対する各在庫品ロットの引当数が、受注オーダーごとに定められた引当数下限の制約条件を充足するか否かを判定するものとする。   In this embodiment, since the concept of the inventory group is introduced, the allocation number lower limit success / failure determination unit 48a determines the allocation number of all inventory lots included in the inventory group determined for each order. Although it is determined whether or not the constraint condition of the lower limit of the number of allocation is satisfied based on the lower limit of the total value, the concept of the inventory group is not introduced as in the first embodiment, and each inventory lot When a lower limit is set for the number of allocations, the allocation number lower limit success / failure determination unit 48a determines whether the allocation number of each inventory lot for each order is satisfied the constraint condition of the lower limit of the number of allocations determined for each order. It shall be determined whether or not.

引当数0解設定部49aは、引当数下限成否判定部48aが上記引当数下限の制約条件を充足しないと判定した場合に、第1及び第2引当数修正部49、51によって引当数を修正された在庫品ロットを含む在庫品群に含まれる全ての在庫品ロットの引当数を0に修正するものである。このように引当数0解設定部49aによって引当数下限制約条件を充足しない在庫品群に含まれる全ての在庫品ロットの引当数を0とすることにより、引当数下限の制約条件を充足するように在庫品の引当数を設定することができる。   The allocation number 0 solution setting unit 49a corrects the allocation number by the first and second allocation number modification units 49 and 51 when the allocation number lower limit success / failure determination unit 48a determines that the constraint condition of the allocation number lower limit is not satisfied. The number of allocations of all the inventory lots included in the inventory group including the inventory lots thus made is corrected to zero. In this way, by setting the number of allocations of all inventory lots included in the inventory group not satisfying the allocation number lower limit constraint condition by the allocation number 0 solution setting unit 49a to 0, the constraint condition of the allocation number lower limit is satisfied. The number of inventory reserves can be set.

本実施形態のように在庫品群の概念が導入されている場合、上述のように、引当数0解設定部49aによって各受注オーダーの引当数下限を満たさない在庫品群に含まれる全ての在庫品ロットの引当数を0とすることにより、受注オーダーの引当数下限の制約条件を満たすように各在庫品ロットの引当数を修正することができる。   When the concept of the inventory group is introduced as in the present embodiment, as described above, all the inventory items included in the inventory group that does not satisfy the allocation number lower limit of each order received by the allocation number 0 solution setting unit 49a. By setting the number of product lots to be 0, it is possible to correct the number of stock lots to meet the constraint on the lower limit of the number of orders to be received.

在庫品引当解除部54は、製品を作製するために許容される前記在庫品群の種類数の上限をAとし、当該製品を作製するために必要な前記在庫品の引当数をBとし、当該製品を作製するために引き当てられる各在庫品の引当数の合計値をCとし、次に引当処理を実行するまでに補充される予定の1種の在庫品群に含まれる全ての在庫品の補充予定数をDとすると、当該製品を作製するために引き当てる前記在庫品群の種類数が、A−(B−C)÷Dによって算出される値の小数点以下を切り捨てた整数値以下となるように、当該製品を作製するために引き当てた在庫品群のうちのいずれか1以上の在庫品群に含まれる全ての在庫品の引当数を0にする。   The inventory allocation cancellation unit 54 sets A as the upper limit of the number of types of the inventory group allowed to produce the product, and B as the allocation number of the inventory necessary for producing the product. Replenish all stocks in one stock group that is to be replenished by the time the provisioning process is executed, where C is the total number of provisions for each stock that is allocated to produce a product. Assuming that the planned number is D, the number of types of the inventory group to be allocated to produce the product is equal to or less than an integer value obtained by rounding down the decimal point of the value calculated by A− (BC) ÷ D. In addition, the allocation number of all the inventory items included in any one or more of the inventory groups allocated to produce the product is set to zero.

なお、本実施形態では、在庫品群の概念が導入されているので、在庫品引当解除部54は、受注オーダーごとに定められた在庫品群に含まれる全ての在庫品ロットの引当数の合計値の下限に基づいて引当数下限の制約条件を充足するか否かを判定しているが、実施形態1のように在庫品群の概念が導入されておらずに各在庫品ロットの引当数に下限が設定される場合は、在庫品引当解除部54は、当該製品を作製するために引き当てる前記在庫品ロットの種類数が、A−(B−C)÷Dによって算出される値の小数点以下を切り捨てた整数値以下となるように、当該製品を作製するために引き当てた在庫品ロットのうちのいずれか1以上の在庫品ロットの引当数を0にするものとする。   In this embodiment, since the concept of the inventory group is introduced, the inventory allocation cancellation unit 54 calculates the total number of allocations of all inventory lots included in the inventory group determined for each order received. Although it is determined whether or not the constraint condition of the lower limit of the allocation number is satisfied based on the lower limit of the value, the concept of the inventory group is not introduced as in the first embodiment, and the allocation number of each inventory lot When the lower limit is set, the inventory allocation canceling unit 54 determines that the number of types of the inventory lot allocated to produce the product is the decimal point of the value calculated by A− (BC) ÷ D It is assumed that the number of provisions of any one or more inventory lots allocated to produce the product is set to 0 so that the following is less than an integer value rounded down.

引当数減算部55は、製品を作製するために引き当てる在庫品を含む在庫品群に含まれる全ての在庫品の引当数の総和に下限値が定められている場合において、当該製品を作製するために必要な在庫品の引当数から当該製品を作製するために引き当てられる各在庫品の引当数の合計値を引いた値が上記の下限値以上となるまで、当該製品を作製するために引き当てた在庫品の引当数を減算する。   The provision number subtraction unit 55 is for producing a product when a lower limit is set for the total number of provisions for all the inventory items included in the inventory group including the inventory items to be allocated for producing the product. Was allocated to produce the product until the value obtained by subtracting the total number of provisions for each inventory to be produced to produce the product equal to or greater than the lower limit above. Subtract the number of inventory reserves.

上記在庫引当システムは、各製品に対する各在庫品の引当数の決定に関して、大略、次のように動作する。   The above-described inventory allocation system generally operates as follows regarding the determination of the allocation number of each inventory item for each product.

図4において、まず、制御処理部14は、過去引当情報取込部40によって、製品を作製するために過去に引き当てた在庫品の引当数を取り込む(S0)。次に、初期解設定部42によって、前記引当組合せ解の初期解を設定する(S1)。   In FIG. 4, first, the control processing unit 14 uses the past allocation information capturing unit 40 to capture the number of inventory items allocated in the past for producing a product (S0). Next, the initial solution setting unit 42 sets an initial solution of the allocation combination solution (S1).

次に、制御処理部14は、カウンタ部43によって、引当組合せ解の引当数を変更した回数を示すカウンタnの値を0に設定する(S2)。   Next, the control processing unit 14 sets the value of the counter n indicating the number of times of changing the allocation number of the allocation combination solution to 0 by the counter unit 43 (S2).

次に、制御処理部14は、カウンタ成否判定部44によって、カウンタnの値がループ数設定値Nを満たすか否かを判定する。そして、カウンタnの値がループ数設定値Nと同値である場合(S3:Yes)、制御処理部14は、在庫品引当解除部54によって解除すべき引当数があればその引当数を0にし(S14)、さらに引当数減算部55によって減算すべき引当数があればその在庫品ロットの引当数を減算し(S15)、引当組合せ解を完成させる(エンド)。一方、カウンタnの値がループ数設定値Nと同値でない場合(S3:No)、カウンタ部43によってカウンタnの値を1増数させる(S4)。   Next, the control processing unit 14 uses the counter success / failure determination unit 44 to determine whether or not the value of the counter n satisfies the loop number setting value N. When the value of the counter n is the same as the loop number setting value N (S3: Yes), the control processing unit 14 sets the allocation number to 0 if there is an allocation number to be canceled by the inventory allocation cancellation unit 54. (S14) Further, if there is an allocation number to be subtracted by the allocation number subtraction unit 55, the allocation number of the inventory lot is subtracted (S15), and the allocation combination solution is completed (end). On the other hand, when the value of the counter n is not the same value as the loop number setting value N (S3: No), the counter unit 43 increments the value of the counter n by 1 (S4).

次に、制御処理部14は、引当数変更部45によって、引当組合せ解のうちの特定の1の製品を作製するための特定の1の在庫品ロットの引当数を、受注オーダーの引当数の下限以上の整数であって、かつ製品を作製するために必要な在庫品ロットの引当数又は在庫品ロットの在庫数のいずれか小さい方の数値を上限とする整数の中からランダムに変更する(S5)。上記引当数を変更した在庫品ロットを含む在庫品群が2種以上の在庫品ロットを含む場合、引当数変更部45によって変更した引当数の在庫品を含む在庫品群に含まれる全ての在庫品の引当数の総和が、前記下限値以上の整数となるように当該在庫品群に含まれる在庫品のうちの上記で変更した在庫品以外の全ての在庫品の引当数を変更する(S5’)。   Next, the control processing unit 14 uses the allocation number changing unit 45 to determine the allocation number of the specific one stock lot for producing the specific one product of the allocation combination solution as the allocation number of the order received. Randomly change an integer that is equal to or greater than the lower limit and that has an upper limit that is the smaller of the number of inventory lots required to produce products or the number of inventory lots in stock (whichever is smaller) ( S5). When the inventory group including the inventory lot whose inventory number has been changed includes two or more inventory lots, all the inventory items included in the inventory group including the inventory whose allocation number has been changed by the allocation number changing unit 45 The number of provisions of all the inventory items other than the inventory item changed in the above among the inventory items included in the inventory item group is changed so that the total sum of the allocation number of items becomes an integer equal to or greater than the lower limit (S5). ').

次に、制御処理部14は、在庫品群数制約成否判定部46’によって、引当数を変更した在庫品を用いて作製する前記製品を作製するために引き当てる前記在庫品を含む在庫品群の種類数が、当該製品を作製するために許容される前記在庫品群の種類数の上限を満たすか否かを判定する(S6’)。そして、当該製品を作製するために引き当てる在庫品を含む在庫品群の種類数が、当該製品を作製するために許容される在庫品群の種類数の上限を超える場合(S6’:No)、在庫品群数修正部47’は、引当数を変更した在庫品を含む在庫品群以外のいずれか1の在庫品群に含まれる全ての在庫品ロットの引当数を0にする(S7’)。一方、当該製品を作製するために引き当てる在庫品を含む在庫品群の種類数が、当該製品を作製するために許容される在庫品を含む在庫品群の種類数の上限以下の場合(S6’:Yes)、制御処理部14はステップS8の処理に進む。   Next, the control processing unit 14 uses the inventory group number constraint success / failure determination unit 46 ′ to determine the inventory group including the inventory items to be allocated in order to produce the product to be produced using the inventory item whose allocation number is changed. It is determined whether or not the number of types satisfies the upper limit of the number of types of the inventory group allowed for producing the product (S6 ′). And, when the number of types of the inventory group including the inventory to be allocated to produce the product exceeds the upper limit of the number of types of inventory group allowed to produce the product (S6 ′: No), The inventory group number correcting unit 47 ′ sets the allocation number of all inventory lots included in any one inventory group other than the inventory group including the inventory whose number of allocation is changed to 0 (S7 ′). . On the other hand, when the number of types of the inventory group including the inventory to be allocated to produce the product is equal to or less than the upper limit of the number of types of the inventory group including the inventory that is allowed to produce the product (S6 ′ : Yes), the control processing unit 14 proceeds to the process of step S8.

次に、制御処理部14は、引当数合計制約成否判定部48によって、引当数を変更した在庫品を用いて作製する特定の1の製品aを作製するために引き当てる全ての前記在庫品の引当数の合計が、当該製品aを作製するために必要な前記在庫品の引当数よりも多いか否かを判定する(S8)。そして、製品aを作製するために引き当てる全ての在庫品の引当数の合計が、製品aを作製するために必要な前記在庫品の引当数よりも多い場合(S8:No)、第1引当数修正部49は、前記引当数の合計から前記製品aを作製するために必要な前記在庫品の引当数を引いて得られた値を上限とする任意の自然数を設定し、前記製品aを作製するために引き当てる全ての在庫品のうち、引当数を変更した在庫品以外の前記在庫品の引当数から当該自然数を減算した引当数を新たな引当数に設定する(S9)。一方、製品aを作製するために引き当てる全ての在庫品の引当数の合計が、製品aを作製するために必要な前記在庫品の引当数以下の場合(S8:Yes)、制御処理部14はステップS8aの処理に進む。   Next, the control processing unit 14 allocates all the inventory items to be allocated by the allocation number total constraint success / failure determination unit 48 in order to create one specific product a to be manufactured using the inventory item whose allocation number is changed. It is determined whether or not the total number is larger than the number of inventory items necessary for producing the product a (S8). Then, when the total number of allocations of all the inventory items to be allocated for producing the product a is larger than the allocation number of the inventory items necessary for producing the product a (S8: No), the first allocation number The correction unit 49 sets an arbitrary natural number up to a value obtained by subtracting the number of inventory items necessary to produce the product a from the total number of provisions, and creates the product a Therefore, among all the inventory items to be allocated, the allocation number obtained by subtracting the natural number from the allocation number of the inventory items other than the inventory item whose allocation number has been changed is set as a new allocation number (S9). On the other hand, when the total number of all the inventory items allocated to produce the product a is equal to or less than the number of inventory items necessary to produce the product a (S8: Yes), the control processing unit 14 The process proceeds to step S8a.

次に、制御処理部14は、引当数下限成否判定部48aによって、上記ステップS9において新たに設定された引当数が設定された在庫品を含む在庫品群に含まれる全ての在庫品の引当数の総和が、当該新たな引当数の在庫品によって作製される製品を作製するために許容される前記在庫品群に含まれる全ての在庫品の引当数の総和の下限値であるか否かを判定する(S8a)。そして、ステップS9において新たに設定された引当数が設定された在庫品を含む在庫品群に含まれる全ての在庫品の引当数の総和が、当該新たな引当数の在庫品によって作製される製品を作製するために許容される前記在庫品群に含まれる全ての在庫品の引当数の総和の下限値未満の場合(S8a:No)、制御処理部14はステップS9aの処理に進み、当該ステップS9aにおいて、引当数0解設定部49aは、当該新たな引当数を設定した在庫品を含む在庫品群に含まれる全ての在庫品の引当数を0にする(S9a)。一方、ステップS9において新たに設定された引当数が設定された在庫品を含む在庫品群に含まれる全ての在庫品の引当数の総和が、当該新たな引当数の在庫品によって作製される製品を作製するために許容される前記在庫品群に含まれる全ての在庫品の引当数の総和の下限値以上である場合(S8a:Yes)、制御処理部14はステップS10の処理に進む。   Next, the control processing unit 14 uses the allocation number lower limit success / failure determination unit 48a to allocate all the inventory items included in the inventory group including the inventory items for which the allocation number newly set in step S9 is set. Is the lower limit of the sum of the total number of allocations of all the inventory items included in the inventory group that is allowed to produce a product produced by the new allocation number of inventory items. Determine (S8a). Then, a product in which the sum of the numbers of all the inventory items included in the inventory group including the inventory items for which the newly set allocation number has been set in step S9 is created by the new allocation number of inventory products Is less than the lower limit value of the total number of all the inventory items included in the inventory group allowed to produce (S8a: No), the control processing unit 14 proceeds to the process of step S9a, and the step In S9a, the allocation number 0 solution setting unit 49a sets the allocation number of all the inventory items included in the inventory group including the inventory item for which the new allocation number is set to 0 (S9a). On the other hand, a product in which the sum of the numbers of all the inventory items included in the inventory group including the inventory items for which the newly set allocation number has been set in step S9 is produced by the inventory items having the new allocation number If it is equal to or greater than the lower limit value of the total number of all the inventory items included in the inventory group allowed to produce (S8a: Yes), the control processing unit 14 proceeds to the process of step S10.

次に、制御処理部14は、在庫数制約成否判定部50によって、前記仮引当組合せ解において引当数を変更した在庫品bの全ての引当数の合計が、引当数を変更した在庫品bの在庫数よりも多いか否かを判定する(S10)。そして、在庫品bの全ての引当数の合計が在庫品bの在庫数よりも多い場合(S10:No)、制御処理部14はステップS11の処理に進み、当該ステップS11において、第2引当数修正部51は、引当数を変更した在庫品bの引当数の合計から当該在庫品bの在庫数を引いて得られた値を上限とする任意の自然数を設定し、引当数を変更した在庫品b以外の在庫品の引当数から当該自然数を減算した引当数を新たな引当数に設定する(S11)。一方、在庫品bの全ての引当数の合計が在庫品bの在庫数以下の場合(S10:Yes)、制御処理部14はステップS8bの処理に進む。   Next, the control processing unit 14 uses the inventory number constraint success / failure determination unit 50 to determine that the total of all the allocation numbers of the inventory item b whose allocation number has been changed in the provisional allocation combination solution is the same as that of the inventory item b whose allocation number has been changed. It is determined whether there is more than the stock quantity (S10). When the total of all the allocation numbers of the inventory item b is larger than the inventory number of the inventory item b (S10: No), the control processing unit 14 proceeds to the process of step S11, and in step S11, the second allocation number The correction unit 51 sets an arbitrary natural number whose upper limit is a value obtained by subtracting the inventory number of the inventory item b from the total allocation number of the inventory item b whose allocation number is changed, and changes the allocation number The number of allocations obtained by subtracting the natural number from the number of allocations of inventory items other than the product b is set as a new allocation number (S11). On the other hand, when the total of all the allocation numbers of the inventory item b is equal to or less than the inventory number of the inventory item b (S10: Yes), the control processing unit 14 proceeds to the process of step S8b.

次に、制御処理部14は、引当数下限成否判定部48aによって、上記ステップS11において新たに設定された引当数が設定された在庫品を含む在庫品群に含まれる全ての在庫品の引当数の総和が、当該新たな引当数の在庫品によって作製される製品を作製するために許容される前記在庫品群に含まれる全ての在庫品の引当数の総和の下限値であるか否かを判定する(S8b)。そして、ステップS11において新たに設定された引当数が設定された在庫品を含む在庫品群に含まれる全ての在庫品の引当数の総和が、当該新たな引当数の在庫品によって作製される製品を作製するために許容される前記在庫品群に含まれる全ての在庫品の引当数の総和の下限値未満の場合(S8b:No)、制御処理部14はステップS9bの処理に進み、当該ステップS9bにおいて、引当数0解設定部49aは、当該新たな引当数を設定した在庫品を含む在庫品群に含まれる全ての在庫品の引当数を0にする(S9b)。一方、ステップS11において新たに設定された引当数が設定された在庫品を含む在庫品群に含まれる全ての在庫品の引当数の総和が、当該新たな引当数の在庫品によって作製される製品を作製するために許容される前記在庫品群に含まれる全ての在庫品の引当数の総和の下限値以上である場合(S8b:Yes)、制御処理部14はステップS12の処理に進む。   Next, the control processing unit 14 uses the allocation number lower limit success / failure determination unit 48a to allocate all the inventory items included in the inventory group including the inventory items for which the allocation number newly set in step S11 is set. Is the lower limit of the sum of the total number of allocations of all the inventory items included in the inventory group that is allowed to produce a product produced by the new allocation number of inventory items. Determine (S8b). Then, a product in which the sum of the numbers of all the inventory items included in the inventory group including the inventory items for which the newly set allocation number has been set in step S11 is created by the new allocation number of inventory items Is less than the lower limit value of the total number of all the inventory items included in the inventory group allowed to produce (S8b: No), the control processing unit 14 proceeds to the process of step S9b, In S9b, the allocation number 0 solution setting unit 49a sets the allocation number of all the inventory items included in the inventory group including the inventory item for which the new allocation number is set to 0 (S9b). On the other hand, a product in which the sum of the numbers of all the inventory items included in the inventory group including the inventory items for which the newly set allocation number has been set in step S11 is created by the inventory items having the new allocation number If it is equal to or greater than the lower limit value of the total number of all the inventory items included in the inventory group allowed to produce (S8b: Yes), the control processing unit 14 proceeds to the process of step S12.

次に、制御処理部14は、評価値比較部52によって、前記引当組合せ解の評価値A及び前記仮引当組合せ解の評価値Bを算出し、評価値Aと評価値Bとを比較する(S12)。そして、前記仮引当組合せ解の評価値Bが前記引当組合せ解の評価値A未満の場合(S12:No)、前記引当組合せ解を変更せず、制御処理部14はステップS3の処理に戻る。一方、前記仮引当組合せ解の評価値Bが前記引当組合せ解の評価値A以上の場合(S12:Yes)、引当組合せ更新部53は、前記仮引当組合せ解を新たな引当組合せ解に書き換えた上で(S13)。制御処理部14はステップS3の処理に戻る。   Next, the control processing unit 14 calculates the evaluation value A of the allocation combination solution and the evaluation value B of the provisional allocation combination solution by the evaluation value comparison unit 52, and compares the evaluation value A and the evaluation value B ( S12). If the evaluation value B of the provisional allocation combination solution is less than the evaluation value A of the allocation combination solution (S12: No), the control processing unit 14 returns to the process of step S3 without changing the allocation combination solution. On the other hand, when the evaluation value B of the temporary allocation combination solution is equal to or higher than the evaluation value A of the allocation combination solution (S12: Yes), the allocation combination update unit 53 rewrites the temporary allocation combination solution to a new allocation combination solution. Above (S13). The control processing unit 14 returns to the process of step S3.

以上のようにしてステップS3〜S13の各工程を繰り返すことで、カウンタ部43がカウンタnの値を1ずつ増数させて、カウンタnの値がループ数設定値NになるまでステップS3〜ステップS13の各工程を繰り返す。このようにして引当組合せ解を書き換えることで引当組合せ解を最適解に近づける。このようにして算出された引当組合せ解に対し、ステップS14及びステップS15の修正工程を実行することにより、今回の引当処理で必要引当数を満足できなかった受注オーダー(未充当オーダー)に対して、次回の引当処理で各種制約条件を満たしながら在庫品ロットを引き当てることができるように引当組合せ解の一部の引当数を修正することができる。   By repeating the steps S3 to S13 as described above, the counter unit 43 increments the value of the counter n by 1, and the steps S3 to S3 are performed until the value of the counter n reaches the loop number set value N. Repeat each step of S13. By rewriting the allocation combination solution in this way, the allocation combination solution is brought close to the optimal solution. By executing the correction process of step S14 and step S15 for the allocation combination solution calculated in this way, an order that has not been able to satisfy the necessary allocation number in this allocation process (unapplied order) In the next allocation process, a part of the allocation number of the allocation combination solution can be corrected so that the inventory lot can be allocated while satisfying various constraint conditions.

<在庫引当方法>
次に、本実施形態の在庫引当方法の各工程を、一具体例として例えば下記の表10に示す引当組合せ問題に対し、各在庫品ロットの引当数の組合せを決定する場合について説明する。下記の表10に示す引当組合せ問題は、実施形態1の表9に相当するものであり、表2と同様、5種類の製品を作製するために引き当てる5種類の在庫品ロットの引当数を設定したものである。
<Inventory allocation method>
Next, each step of the inventory allocation method according to the present embodiment will be described as a specific example in which a combination of allocation numbers for each inventory lot is determined with respect to the allocation combination problem shown in Table 10 below. The allocation combination problem shown in Table 10 below corresponds to Table 9 in the first embodiment. Like Table 2, the allocation number of five types of inventory lots to be allocated to produce five types of products is set. It is a thing.

表10において、各受注オーダーに対して引当可能な在庫品ロットに「1」を表記し、引当不可の在庫品に「0」を表記している。表10は、実施形態1の表9に示す各受注オーダーに対し、在庫品群、在庫品群数上限及び引当数下限が設定されていることが異なる他は表9と同様のものである。以下に、在庫品群、在庫品群数上限及び引当数下限についてそれぞれ説明する。   In Table 10, “1” is indicated for the inventory lot that can be allocated for each order received, and “0” is indicated for the inventory that cannot be allocated. Table 10 is the same as Table 9 except that an inventory item group, an inventory item group upper limit, and an allocation number lower limit are set for each order received shown in Table 9 of the first embodiment. In the following, the inventory product group, the inventory product group upper limit and the allocation number lower limit will be described.

表10における「在庫品群」は、同一の製造地及び製造日に製造された一群の在庫品である。同一の在庫品群に属する在庫品であっても、製造後の品質検査において異なる性質を示す在庫品に対して別々の在庫品ロットを設定している。例えば、在庫品群G003に属する在庫品ロットB001及び在庫品ロットB002は、同一の製造日に同一の製造地で製造された在庫品群に含まれる在庫品であるが、その後の品質検査で異なる性質を示すことが明らかとなった2種類の在庫品ロットである。なお、在庫品群G003のように同一の在庫品群に含まれる在庫品ロットB001、B002であっても、特定の受注オーダー(例えば受注オーダーJ001)に引当可能な在庫品ロットと引当不可能な在庫品ロットとが存在することはあり得る。   “Inventory group” in Table 10 is a group of inventory items manufactured on the same manufacturing location and date. Even for stocks belonging to the same stock group, different stock lots are set for stocks that show different properties in quality inspection after manufacture. For example, the inventory lot B001 and the inventory lot B002 belonging to the inventory group G003 are inventory items included in the inventory group manufactured at the same manufacturing location on the same manufacturing date, but differ in subsequent quality inspections. There are two types of inventory lots that have been shown to exhibit properties. It should be noted that even in the case of inventory lots B001 and B002 included in the same inventory group such as the inventory group G003, the inventory lots that can be allocated to a specific sales order (for example, the sales order J001) cannot be allocated. There can be inventory lots.

表10における「在庫品群数上限」は、実施形態1の「ロット数上限」において在庫品ロットの単位で種類数の上限を設定していたものを在庫品群の単位で種類数の上限を設定したものであり、在庫品群の種類数の上限で設定された種類数の在庫品群に含まれる在庫品ロットのうちから在庫品ロットを引き当てる必要がある。例えば、表10の受注オーダーJ002に対し在庫品を引き当てる場合には、2種類以下の在庫品群に含まれる在庫品ロットの中から在庫品ロットを引き当てる必要がある。なお、在庫品ロットB001と在庫品ロットB002とは同一の在庫品群G003に属しているので、在庫品ロットB001及び在庫品ロットB002の両方を引き当てても在庫品群数としては1種類として数えられるものとする。   “Upper limit of number of inventory group” in Table 10 is the upper limit of the number of types in units of inventory lots in the “lot number upper limit” of the first embodiment. It is set, and it is necessary to allocate an inventory lot from among the inventory lots included in the inventory group of the number of types set at the upper limit of the number of types of the inventory group. For example, when a stock item is allocated to a sales order J002 in Table 10, it is necessary to allocate a stock lot from among stock lots included in two or less types of inventory groups. Since the stock lot B001 and the stock lot B002 belong to the same stock group G003, even if both the stock lot B001 and the stock lot B002 are allocated, the number of stock groups is counted as one type. Shall be.

表10における「引当数下限」は、受注オーダーに対して引き当てる在庫品が属する在庫品群に含まれる在庫品の引当数の総和の下限値を意味し、例えば受注オーダーJ002に在庫品を引き当てる場合には、最低でも1つの在庫品群に属する在庫品ロットの引当数の合計を3以上とする必要がある。引当数下限も、上記在庫品群数上限と同様に在庫品群単位で数えられる。したがって、例えば受注オーダーJ002に在庫品を引き当てる場合には、在庫品ロットB001の引当数を1とし、在庫品ロットB002の引当数を2としても、在庫品群G003に属する在庫品ロットの引当数の合計が3となるので、上記受注オーダーJ002の引当数下限3を満たす。   The “reserved number lower limit” in Table 10 means a lower limit value of the total number of reserved items included in the inventory group to which the stocks to be allocated to the received order belong. For example, when a reserved item is allocated to the received order J002 Therefore, it is necessary to set the total number of inventory lots belonging to at least one inventory group to 3 or more. The lower limit for the number of allocations is also counted in units of inventory items in the same manner as the upper limit for the number of inventory items. Therefore, for example, when a stock item is allocated to the sales order J002, even if the allocation number of the inventory lot B001 is 1 and the allocation number of the inventory lot B002 is 2, the allocation number of the inventory lot belonging to the inventory group G003 is 2 Therefore, the allocation number lower limit 3 of the received order J002 is satisfied.

以下においては、実施形態2の在庫引当方法を構成する各ステップを説明する。実施形態2では、実施形態1の各ステップに対する変更部分及び追加部分のみを説明し、実施形態1の各ステップと同内容のステップについてはその説明を繰り返さない。なお、ステップS0の過去の引当情報の取り込みについては変形例において説明するものとする。   Below, each step which comprises the inventory allocation method of Embodiment 2 is demonstrated. In the second embodiment, only a changed part and an added part with respect to each step of the first embodiment will be described, and the description of the step having the same contents as each step of the first embodiment will not be repeated. In addition, the acquisition of the past provision information of step S0 shall be demonstrated in a modification.

(ステップS1〜S4)
ステップS1〜S4は、上記実施形態1と同様にして行われる。すなわち、まず、初期解設定部42は、下記の表11の各受注オーダーに引き当てる各在庫品ロットの引当数の組合せを初期解として設定する(ステップS1)。なお、表11の初期解は、本実施形態の引当数の変更の過程を説明しやすくするために便宜的に設定されたものである。
(Steps S1-S4)
Steps S1 to S4 are performed in the same manner as in the first embodiment. That is, first, the initial solution setting unit 42 sets, as an initial solution, a combination of the allocation numbers of each stock lot allocated to each order received in Table 11 below (step S1). Note that the initial solution in Table 11 is set for convenience in order to facilitate the explanation of the process of changing the number of allocations in the present embodiment.

次に、カウンタ部43は、引当組合せ解の引当数を変更した回数を示すカウンタnの値を0に設定する(ステップS2)。次いで、カウンタ成否判定部44は、カウンタnの値とループ数設定値Nとを比較し、カウンタnの値がループ数設定値Nであるか否かを判定する(ステップS3)。この判定は、実施形態1と同様の判定基準によって判定され、当該判定結果に基づいて引当組合せ解の書き換えを終了するか(エンド)、カウンタnの値を1増数する(ステップS4)。ステップS4が完了した場合、制御処理部14はステップS5の処理に進む。   Next, the counter unit 43 sets the value of the counter n indicating the number of times of changing the allocation number of the allocation combination solution to 0 (step S2). Next, the counter success / failure determination unit 44 compares the value of the counter n with the loop number setting value N, and determines whether or not the value of the counter n is the loop number setting value N (step S3). This determination is made based on the same determination criteria as in the first embodiment. Based on the determination result, rewriting of the allocation combination solution is finished (end), or the value of the counter n is incremented by 1 (step S4). When step S4 is completed, the control processing unit 14 proceeds to the process of step S5.

(ステップS5:特定の引当数の変更:第1工程)
ステップS5において、引当数変更部45は、引当組合せ解における任意の1種の受注オーダーに対する任意の1種の在庫品ロットの引当数を変更した仮引当組合せ解を作成する(S5)。例えば、上記表11に示す引当組合せ解の場合、引当数変更部45は、上記表11の受注オーダーJ003の在庫品ロットB003の引当数0を引当数5に変更することで表12の仮引当組合せ解を作成する。ここで、引当数を変更する在庫品ロットは、実施形態1で説明した方法と同様にランダムに決定される。
(Step S5: Change of specific allocation number: first step)
In step S5, the allocation number changing unit 45 creates a provisional allocation combination solution in which the allocation number of any one type of inventory lot for any one order order in the allocation combination solution is changed (S5). For example, in the case of the allocation combination solution shown in Table 11, the allocation number changing unit 45 changes the allocation number 0 of the inventory lot B003 of the order receipt J003 in Table 11 to the allocation number 5 to change the provisional allocation in Table 12. Create a combinatorial solution. Here, the inventory lot for which the allocation number is changed is determined at random in the same manner as the method described in the first embodiment.

引当数変更部45によって変更された後の引当数(例えば表12における網掛け部の「5」)は、受注オーダーの合計引当数又は在庫品ロットの在庫量のいずれか小さい方を上限とし、受注オーダーの引当数下限を下限とする整数のうちから任意に選択されたものである。つまり、表11の引当組合せ解における受注オーダーJ003に対する在庫品ロットB003の引当数を変更する場合、受注オーダーJ003の合計引当数6と、在庫品ロットB003の在庫数6とのうちの小さい方である6を上限とし、受注オーダーJ003の引当数下限2を下限とする整数2〜6の範囲のうちからランダムに1つの整数(例えば表12においては変更後の引当数を「5」)に引当数を変更する。上記特定の在庫品ロットの引当数を変更することによりステップS5は完了し、制御処理部14はステップS5’の処理に進む。   The number of allocations after being changed by the allocation number changing unit 45 (for example, “5” in the shaded portion in Table 12) is limited to the smaller of the total number of provisions in the order received or the inventory quantity of the inventory lot, This is arbitrarily selected from integers with the lower limit of the number of orders received as the lower limit. That is, when changing the allocation number of the inventory lot B003 with respect to the sales order J003 in the allocation combination solution of Table 11, the smaller of the total allocation number 6 of the sales order J003 and the inventory number 6 of the inventory lot B003 Provision is randomly made to one integer (for example, the number of provisions after the change is “5” in Table 12) from the range of integers 2 to 6 with 6 as the upper limit and the lower limit 2 of the order quantity of the order received J003 as the lower limit. Change the number. Step S5 is completed by changing the number of allocations of the specific inventory lot, and the control processing unit 14 proceeds to the process of step S5 '.

(ステップS5’:同一在庫品群に含まれる在庫品の引当数の変更:準第1工程)
なお、上記ステップS5における引当数の変更は、在庫品群G004が在庫品ロットB003のみを有するものであるため、在庫品ロットB003の引当数のみを変更しているが、引当数変更部45が2以上の在庫品ロットを含む在庫品群(例えば在庫品群G003)に含まれるいずれか1の在庫品ロットの引当数を変更する場合(S5)、ステップS5で引当数を変更した在庫品ロットを含む在庫品群に含まれる全ての在庫品ロットの引当数の総和が、当該受注オーダーに対して設定された引当数下限以上の整数となるように当該在庫品群に含まれる在庫品ロットのうちのステップS5で引当数を変更した在庫品ロット以外の在庫品ロットの引当数を変更する準第1工程(ステップS5’)をさらに含む。
(Step S5 ′: Change in the number of inventory items included in the same inventory group: quasi first step)
Note that the change in the number of allocations in step S5 described above is that the inventory group G004 has only the inventory lot B003, and therefore only the allocation number of the inventory lot B003 is changed. When changing the allocation number of any one inventory lot included in an inventory group (for example, inventory group G003) including two or more inventory lots (S5), the inventory lot whose allocation number has been changed in step S5 Of inventory lots included in the inventory group so that the total number of allocations of all inventory lots included in the inventory group including It further includes a quasi first step (step S5 ′) for changing the number of inventory lots other than the inventory lot whose number of allocation has been changed in step S5.

ここでの「ステップS5で引当数を変更した在庫品ロット以外の在庫品ロットの引当数を変更する」とは、ステップS5で引当数を変更した在庫品ロットを含む在庫品群に含まれる全ての在庫品ロットのうちのステップS5で変更した在庫品ロット以外の全ての在庫品ロットの引当数が変更される場合のみに限られず、ステップS5で変更した在庫品ロット以外のいずれか1以上の在庫品ロットの引当数が、結果的に変更前の在庫品ロットの引当数と同値になっていてもよいものとする。   Here, “change the number of inventory lots other than the inventory lot whose number of allocations has been changed in step S5” means that all items included in the inventory group including the inventory lot whose number of allocations has been changed in step S5. This is not limited to the case where the number of provisions of all inventory lots other than the inventory lot changed in step S5 is changed, and any one or more other than the inventory lot changed in step S5 is changed. Assume that the number of inventory lots allocated may be the same as the number of inventory lots allocated prior to the change.

例えば、ステップS5において、引当数変更部45が、受注オーダーJ003に対する在庫品ロットB002の引当数を変更する場合、受注オーダーJ003は2種類の在庫品ロットB001、B002を含むので、制御処理部14は、ステップS5’の処理に進む。そして、当該ステップS5’において、引当数変更部45が、在庫品ロットB002が属する在庫品群G003の他の在庫品ロット(つまり在庫品ロットB001)の引当数を変更する。上記受注オーダーJ003に対する変更後の在庫品ロットB001及びB002の引当数は、在庫品ロットB001及びB002の在庫量10及び7をそれぞれ上限とし、受注オーダーJ003の引当数下限2を下限とする整数の範囲で、かつ在庫品ロットB001の引当数と在庫品ロットB002の引当数の合計が受注オーダーJ003の合計引当数6以下となるように各在庫品ロットの引当数がランダムに設定される。引当数変更部45が在庫品ロットB001及びB002の引当数をそれぞれ2及び3に変更する場合、在庫品群G003に属する在庫品ロットB001の引当数の合計が5となるので、在庫品群の引当数下限2を満たし、かつ受注オーダーJ003の合計引当数6以下を満たす。   For example, when the allocation number changing unit 45 changes the allocation number of the inventory lot B002 for the order order J003 in step S5, since the order order J003 includes two types of inventory lots B001 and B002, the control processing unit 14 Advances to step S5 ′. In step S5 ', the allocation number changing unit 45 changes the allocation number of other inventory lots (that is, inventory lot B001) of the inventory group G003 to which the inventory lot B002 belongs. The number of allocations for the stock lots B001 and B002 after the change to the order order J003 is an integer with the stock quantities 10 and 7 for the stock lots B001 and B002 as the upper limit and the allocation number lower limit 2 for the order order J003 as the lower limit. The allocation number of each inventory lot is randomly set so that the total of the allocation number of the inventory lot B001 and the allocation number of the inventory lot B002 is equal to or less than the total allocation number 6 of the sales order J003. When the allocation number changing unit 45 changes the allocation numbers of the inventory lots B001 and B002 to 2 and 3, respectively, the total allocation number of the inventory lot B001 belonging to the inventory group G003 is 5. The lower limit of the number of allocations 2 is satisfied, and the total allocation number 6 or less of the received order J003 is satisfied.

実施形態1のように在庫品ロットを構成単位として在庫品ロットの引当数を変更する場合、在庫品ロットの引当数の変更の制約が多すぎるので、仮引当組合せ解の評価値が引当組合せ解の評価値を超えにくい。このため、引当組合せ解が仮引当組合せ解によって更新されにくくなるが、本実施形態のように第1工程及び準第1工程を組み合わせて、各在庫品群を構成単位として在庫品群に含まれる全ての在庫品ロットの引当数が変更されることにより、引当数を変更する自由度を高めることができるので、引当組合せ解が仮引当組合せ解によって更新されやすくなる。上記特定の在庫品群に含まれる全ての在庫品ロットの引当数を変更することによりステップS5’は完了し、制御処理部14はステップS6’の処理に進む。   In the case where the number of inventory lots is changed using the inventory lot as a constituent unit as in the first embodiment, there are too many restrictions on the change in the number of inventory lots, so the evaluation value of the provisional allocation combination solution is the allocation combination solution. It is difficult to exceed the evaluation value. For this reason, although it becomes difficult to update the allocation combination solution by the provisional allocation combination solution, the first process and the quasi first process are combined as in this embodiment, and each inventory group is included in the inventory group as a constituent unit. Since the degree of freedom for changing the number of provisions can be increased by changing the number of provisions for all inventory lots, the provisional combination solution is easily updated by the provisional provisioning combination solution. Step S5 'is completed by changing the number of allotted inventory lots included in the specific inventory group, and the control processing unit 14 proceeds to the process of step S6'.

(ステップS6’:在庫品群数制約条件の充足可否判断)
実施形態2のステップS6’において、在庫品群数制約成否判定部46’は、仮引当組合せ解における引当数を変更した受注オーダーに引き当てる在庫品ロットを含む在庫品群の種類数が、受注オーダーに引き当てる在庫品ロットを含む在庫品群の種類数の上限を超えると判定すると(S6’:No)、制御処理部14がステップS7’の処理に進む。一方、在庫品群数制約成否判定部46’は、仮引当組合せ解における引当数を変更した受注オーダーに引き当てる在庫品ロットを含む在庫品群の種類数が、当該受注オーダーに引き当てる在庫品ロットを含む在庫品群の種類数の上限以下と判定すると(S6’:Yes)、制御処理部14がステップS8の処理に進む。
(Step S 6 ′: Judgment of Satisfaction of Number of Inventory Group Restriction Conditions)
In step S6 ′ of the second embodiment, the inventory group number constraint success / failure determination unit 46 ′ determines that the number of types of inventory groups including inventory lots to be allocated to an order received with a change in the number of provisions in the provisional allocation combination solution is the order order. If it is determined that the upper limit of the number of types of inventory group including the inventory lot to be allocated is exceeded (S6 ′: No), the control processing unit 14 proceeds to the process of step S7 ′. On the other hand, the inventory group number constraint success / failure determination unit 46 ′ determines that the number of types of inventory group including the inventory lot allocated to the order received with the changed allocation number in the provisional allocation combination solution indicates the inventory lot allocated to the received order. If it is determined that the number is less than the upper limit of the number of types of stock group to be included (S6 ′: Yes), the control processing unit 14 proceeds to the process of step S8.

表12に示す仮引当組合せ解の場合、ステップS5において受注オーダーJ003に対する在庫品ロットB002の引当数を変更したことにより、受注オーダーJ003に引き当てる在庫品ロットを含む在庫品群の種類数が在庫品群G001、G003及びG004の3種類となっているため、受注オーダーJ003に引き当て可能な在庫品群の種類数の上限2を超えている。よって、表12の具体例の場合、在庫品群数制約成否判定部46’は、仮引当組合せ解における引当数を変更した受注オーダーに引き当てる在庫品ロットを含む在庫品群の種類数が、受注オーダーに引き当てる在庫品ロットを含む在庫品群の種類数の上限を超えると判定する。これによりステップS6’は完了し、制御処理部14はステップS7’に進む。   In the case of the provisional allocation combination solution shown in Table 12, the number of types of the inventory group including the inventory lot allocated to the sales order J003 is changed to the inventory by changing the allocation number of the inventory lot B002 for the sales order J003 in step S5. Since there are three types of groups G001, G003, and G004, the upper limit of the number of types of inventory items that can be allocated to the order receipt J003 is exceeded. Therefore, in the case of the specific example of Table 12, the inventory group number constraint success / failure determination unit 46 ′ determines that the number of types of inventory group including the inventory lot assigned to the order received by changing the allocation number in the provisional allocation combination solution is the order received. It is determined that the upper limit of the number of types of the inventory group including the inventory lot allocated to the order is exceeded. Thereby, step S6 'is completed, and the control processing unit 14 proceeds to step S7'.

(ステップS7’:在庫品群数修正工程)
ステップS7’において、在庫品群数修正部47’は、引当数を変更した在庫品ロットを含む在庫品群以外のいずれか1の在庫品群に含まれる全ての在庫品ロットの引当数を0にする。表12の仮引当組合せ解の場合、在庫品群数修正部47’は、受注オーダーJ003に引き当てる3種の在庫品群G001、G003及びG004のうちのステップS5において引当数を変更した在庫品ロットB003を含む在庫品群G004以外の在庫品群G001又はG003のいずれか一方に含まれる全ての在庫品ロットの引当数を0にする。後掲の表13は、表12の仮引当組合せ解に対し、在庫品群数修正部47’が在庫品群G003に含まれる全ての在庫品ロットB001及びB003の引当数をいずれも0に修正した場合の仮引当組合せ解を示している。これにより受注オーダーJ003に引き当てる在庫品群の種類数が2となるので、受注オーダーJ003の在庫品群上限数2を充足するように仮引当組合せ解を修正することができる。これによりステップS7’は完了し、制御処理部14はステップS8の処理に進む。
(Step S7 ′: Inventory Group Number Correction Process)
In step S7 ′, the inventory group number correcting unit 47 ′ sets the allocation number of all inventory lots included in any one inventory group other than the inventory group including the inventory lot whose inventory number is changed to 0. To. In the case of the provisional allocation combination solution of Table 12, the inventory group number correcting unit 47 ′ changes the allocation number in step S5 among the three types of inventory groups G001, G003, and G004 to be allocated to the order receipt J003. The number of allocations of all inventory lots included in either one of the inventory group G001 or G003 other than the inventory group G004 including B003 is set to zero. As shown in Table 13 below, with respect to the provisional allocation combination solution in Table 12, the inventory group number correction unit 47 ′ corrects the allocation numbers of all inventory lots B001 and B003 included in the inventory group G003 to zero. The provisional provisioning combination solution is shown. As a result, the number of types of inventory group allocated to the order order J003 becomes 2, so that the provisional allocation combination solution can be corrected so as to satisfy the inventory group upper limit number 2 of the order order J003. Thereby, step S7 ′ is completed, and the control processing unit 14 proceeds to the process of step S8.

(ステップS8:引当数合計制約条件の充足可否判断)
ステップS8において、引当数合計制約成否判定部48は、上記実施形態1と同様に、仮引当組合せが引当数合計制約条件を充足するか否かを判定し(S8:Yes又はNo)、当該判定結果に応じて、制御処理部14はステップS9の処理に進むかステップS8aの処理に進む。
(Step S8: Judgment of Satisfaction of Total Provision Restriction)
In step S8, the allocation number total constraint success / failure determination unit 48 determines whether or not the provisional allocation combination satisfies the allocation number total constraint condition (S8: Yes or No) in the same manner as in the first embodiment. Depending on the result, the control processing unit 14 proceeds to step S9 or proceeds to step S8a.

表13に示す仮引当組合せ解の場合、在庫品ロットA001の引当数2と在庫品ロットB003の引当数5とを足し合わせた引当数の合計7が、引当数を変更した受注オーダーJ003に引き当てる在庫品ロットの合計引当数の上限6を超えているので、引当数合計制約成否判定部48は、引当数合計制約条件を充足しないと判定する(S8:No)。これによりステップS8は完了し、制御処理部14はステップS9の処理に進む。   In the case of the provisional allocation combination solution shown in Table 13, a total of 7 allocations obtained by adding the allocation number 2 of the inventory lot A001 and the allocation number 5 of the inventory lot B003 is allocated to the received order J003 with the allocation number changed. Since the upper limit 6 of the total allocation number of the inventory lot is exceeded, the allocation number total constraint success / failure determination unit 48 determines that the allocation number total constraint condition is not satisfied (S8: No). Thereby, step S8 is completed, and the control processing unit 14 proceeds to the process of step S9.

(ステップS9:第1引当数修正工程)
ステップS9において、上記実施形態1と同様に、第1引当数修正部49は、第1工程で引当数を変更した在庫品ロットを含む在庫品群以外のいずれかの在庫品群に含まれる在庫品ロットの引当数に新たな引当数を設定する。表13の仮引当組合せ解の具体例で説明すると、第1引当数修正部49は、受注オーダーJ003に引き当てる在庫品ロットA001及びB002の引当数の合計7から、受注オーダーJ003の合計引当数6を引いて得られた自然数1を設定し、受注オーダーJ002に引き当てる全ての在庫品ロットA001及びB002のうち、引当数を変更した在庫品ロットB002以外の在庫品ロットA001の引当数2から上記自然数1を減算した引当数を新たな引当数1として設定する。この修正後の仮引当組合せ解を下記の表14に示す。
(Step S9: first allocation number correcting step)
In step S9, as in the first embodiment, the first allocation number correction unit 49 includes the inventory included in any inventory group other than the inventory group including the inventory lot whose inventory number has been changed in the first step. A new allocation number is set as the allocation number of the product lot. Explaining with a specific example of the provisional allocation combination solution in Table 13, the first allocation number correction unit 49 calculates the total allocation number 6 of the sales order J003 from the total allocation number 7 of the inventory lots A001 and B002 allocated to the sales order J003. The natural number 1 obtained by subtracting the natural number 1 is set, and the natural number is calculated from the reserved number 2 of the inventory lot A001 other than the inventory lot B002 whose allocation number is changed among all the inventory lots A001 and B002 allocated to the order J002. The number of allocations obtained by subtracting 1 is set as a new allocation number of 1. The corrected provisional provision combination solution is shown in Table 14 below.

上記ステップS9を含むことにより受注オーダーJ002に引き当てる在庫品ロットの引当数の合計が、受注オーダーJ002の合計引当数を超えないように仮引当組合せ解の引当数を修正することができる。これによりステップS9は完了し、制御処理部14はステップS8の処理に戻る。   By including the above step S9, it is possible to correct the provision number of the provisional provision combination solution so that the total number of provisions of the inventory lot to be allocated to the order order J002 does not exceed the total number of provisions of the order order J002. Thereby, step S9 is completed, and the control processing unit 14 returns to the process of step S8.

上記表14の仮引当組合せ解においては、在庫品ロットA001の引当数を1減算する場合を説明したが、ステップS9を終えた後の仮引当組合せ解が引当数合計制約条件を充足しないこともあり得る。この場合には、制御処理部14は、引当数合計制約条件を充足する仮引当組合せ解となるまでステップS8及びS9を繰り返す。これにより引当数を変更した在庫品以外の複数の在庫品の引当数を修正することができ、引当数の修正の網羅性を担保することができる。そして、ステップS8において、引当数合計制約成否判定部48が引当数合計制約条件を充足すると判定すると(S8:Yes)、制御処理部14はステップS8aの処理に進む。   In the provisional allocation combination solution of Table 14 above, a case has been described in which the number of allocations for the inventory lot A001 is decremented by 1. However, the provisional allocation combination solution after step S9 may not satisfy the allocation number total constraint condition. possible. In this case, the control processing unit 14 repeats Steps S8 and S9 until the provisional allocation combination solution that satisfies the allocation total sum constraint is obtained. As a result, it is possible to correct the number of provisions of a plurality of inventory items other than the inventory items whose number of allocations has been changed, and to ensure the completeness of the correction of the number of allocations. In step S8, if the allocation number total constraint success / failure determination unit 48 determines that the allocation number total constraint condition is satisfied (S8: Yes), the control processing unit 14 proceeds to the process of step S8a.

(ステップS8a:引当数下限制約条件の充足可否判断)
ステップS8aは、本実施形態において引当数下限の制約が新たに設定されたことによって追加される工程である。ステップS8aにおいて、引当数下限成否判定部48aは、上記ステップS9で修正された後の引当数が、その引当数を変更した在庫品ロットを引き当てる受注オーダーの引当数下限以上であるか否かを判定する。引当数下限成否判定部48aは、ステップS9で引当数を修正した後の引当数が、受注オーダーの引当数下限未満と判定すると(S8a:No)、制御処理部14がステップS9aの処理に進む。一方、引当数下限成否判定部48aは、仮引当組合せ解における引当数を修正した後の引当数が、受注オーダーの引当数下限以上であると判定すると(S8a:Yes)、制御処理部14がステップS10の処理に進む。
(Step S8a: Judgment of Satisfaction of Lower Limit of Provision Number Restriction Condition)
Step S8a is a step that is added when a restriction on the lower limit of the allocation number is newly set in the present embodiment. In step S8a, the allocation number lower limit success / failure determination unit 48a determines whether or not the allocation number corrected in step S9 is equal to or greater than the allocation number lower limit of the order received to allocate the inventory lot that has changed the allocation number. judge. If the allocation number lower limit success / failure determination unit 48a determines that the allocation number after the allocation number is corrected in step S9 is less than the lower limit of the allocation number of the received order (S8a: No), the control processing unit 14 proceeds to the process of step S9a. . On the other hand, if the allocation number lower limit success / failure determination unit 48a determines that the allocation number after correcting the allocation number in the provisional allocation combination solution is equal to or greater than the allocation number lower limit of the received order (S8a: Yes), the control processing unit 14 The process proceeds to step S10.

表14に示す仮引当組合せ解の場合、ステップS9において受注オーダーJ003の在庫品ロットA001の引当数を1に変更したことにより、変更後の引当数が受注オーダーJ003の引当数下限2未満となっているので、引当数下限成否判定部48aは、引当数下限制約条件を満たさないと判定し(ステップS8a:No)、制御処理部14がステップS9aの処理に進む。   In the case of the provisional allocation combination solution shown in Table 14, since the number of allocations of the inventory lot A001 of the sales order J003 is changed to 1 in step S9, the number of allocations after the change is less than the lower limit 2 of the allocation number of the sales order J003. Therefore, the allocation number lower limit success / failure determination unit 48a determines that the allocation number lower limit constraint condition is not satisfied (step S8a: No), and the control processing unit 14 proceeds to the process of step S9a.

(ステップS9a:第1引当数0解工程)
ステップS9aは、上記ステップS8aと同様に、本実施形態で引当数下限の制約が新たに設定されたことによって追加される工程である。引当数下限成否判定部48aは、ステップS9において設定された新たな引当数が、当該新たな引当数の在庫品によって作製される製品を作製するために許容される前記在庫品の引当数の下限値未満であると判断する場合(ステップS8a:No)、引当数0解設定部49aは、ステップS9で設定された新たな引当数を0にする。
(Step S9a: first allocation number 0 solution process)
Step S9a is a step that is added when a restriction on the lower limit of the number of allocations is newly set in the present embodiment, similarly to step S8a. The allocation number lower limit success / failure determination unit 48a determines that the new allocation number set in step S9 is the lower limit of the allocation number of the inventory that is allowed to produce a product produced by the inventory of the new allocation number. When it is determined that the value is less than the value (step S8a: No), the allocation number 0 solution setting unit 49a sets the new allocation number set in step S9 to zero.

表14の仮引当組合せ解の場合、ステップS9において設定された新たな引当数1が、当該新たな引当数を設定した受注オーダーJ003に許容される在庫品群に含まれる全ての在庫品ロットの引当数の総和の下限値2未満であるので、引当数0解設定部49aは、後掲の表15に示すように受注オーダーJ003に引き当てる在庫品群のうちのいずれか1の在庫品群(表15の場合、在庫品群G001)に含まれる全ての在庫品ロットA001の引当数を0にする。   In the case of the provisional allocation combination solution shown in Table 14, the new allocation number 1 set in step S9 is the value of all inventory lots included in the inventory group permitted in the sales order J003 in which the new allocation number is set. Since it is less than the lower limit value 2 of the total number of allocations, the allocation number 0 solution setting unit 49a, as shown in Table 15 below, selects one of the inventory groups (inventory groups allocated to the order receipt J003) ( In the case of Table 15, the allocation number of all the inventory lots A001 included in the inventory group G001) is set to zero.

上記ステップS9aを含むことにより受注オーダーJ003の引当数下限を下回る引当数をなくすように引当数を修正することができる。これによりステップS9aは完了し、制御処理部14はステップS10の処理に進む。   By including the step S9a, it is possible to correct the number of allocations so as to eliminate the number of allocations below the lower limit of the allocation number of the order received J003. Thereby, step S9a is completed, and the control processing unit 14 proceeds to the process of step S10.

(ステップS10:在庫数制約条件の充足可否判断)
ステップS10において、在庫数制約成否判定部50は、実施形態1と同様に、仮引当組合せが在庫数制約条件を充足するか否かを判定し(S10:Yes又はNo)、当該在庫数制約条件を充足すると判定する場合(S10:Yes)、制御処理部14がステップS8bの処理に進み、在庫数制約条件を充足しないと判定する場合(S10:No)、制御処理部14がステップS11の処理に進む。表15に示す仮引当組合せ解の場合、全ての受注オーダーJ001〜J005における第1工程で引当数を変更した在庫品ロットB002の引当数の合計(5+6=11)が、在庫品ロットB002の在庫数6を超えているので、在庫数制約成否判定部50は在庫数制約条件を充足しないと判定し(S10:No)、制御処理部14がステップS11の処理に進む。
(Step S10: Judgment of availability of stock quantity constraint)
In step S10, the inventory quantity constraint success / failure determination unit 50 determines whether or not the provisional allocation combination satisfies the inventory quantity constraint condition (S10: Yes or No) as in the first embodiment, and the inventory quantity constraint condition is determined. Is determined to be satisfied (S10: Yes), the control processing unit 14 proceeds to the process of step S8b, and when it is determined that the inventory quantity constraint condition is not satisfied (S10: No), the control processing unit 14 performs the process of step S11. Proceed to In the provisional allocation combination solution shown in Table 15, the total allocation number (5 + 6 = 11) of the inventory lot B002 in which the allocation number is changed in the first process in all the order orders J001 to J005 is the inventory of the inventory lot B002. Since the number 6 is exceeded, the inventory number constraint success / failure determination unit 50 determines that the inventory number constraint condition is not satisfied (S10: No), and the control processing unit 14 proceeds to the process of step S11.

(ステップS11:第2引当数修正工程)
ステップS11において、第2引当数修正部51は、実施形態1と同様に、第1工程で引当数を変更した在庫品の引当数の合計から当該在庫品の在庫数を引いて得られた値を上限とする任意の自然数を設定し、上記ステップS5で引当数を変更した在庫品以外の在庫品の引当数から当該自然数を減算した引当数を新たな引当数に設定する。
(Step S11: Second allocation number correcting step)
In step S11, as in the first embodiment, the second allocation number correction unit 51 obtains a value obtained by subtracting the inventory number of the inventory item from the total allocation number of the inventory item whose allocation number has been changed in the first step. Is set as an upper limit, and the allocation number obtained by subtracting the natural number from the allocation number of inventory items other than the inventory item whose allocation number has been changed in step S5 is set as a new allocation number.

表15の仮引当組合せ解の具体例で説明すると、第2引当数修正部51は、第1工程で引当数を変更した在庫品ロットB002の引当数の合計11から、在庫品ロットB002の在庫数6を引いて得られた値5を上限とする自然数(例えば5)を設定し、仮引当組合せ解における第1工程で変更した在庫品ロットB002の引当数以外の受注オーダーJ005の引当数6から上記自然数5を減算した引当数1を新たな引当数として設定する(下記表16参照)。   To explain with a specific example of the provisional allocation combination solution in Table 15, the second allocation number correction unit 51 calculates the inventory of the inventory lot B002 from the total allocation number 11 of the inventory lot B002 whose allocation number has been changed in the first step. A natural number (for example, 5) whose upper limit is 5 obtained by subtracting the number 6 is set, and the provision number 6 of the order received J005 other than the provision number of the inventory lot B002 changed in the first step in the provisional provision combination solution 6 Then, the allocation number 1 obtained by subtracting the natural number 5 is set as a new allocation number (see Table 16 below).

上記ステップS11を含むことにより在庫品ロットB003の引当数の合計が、在庫品ロットB003の在庫数6を超えないように仮引当組合せ解の引当数を修正することができる。これによりステップS11は完了し、制御処理部14はステップS10の処理に戻る。   By including the above step S11, the number of provisions of the provisional provision combination solution can be corrected so that the total number of provisions of the inventory lot B003 does not exceed the inventory number 6 of the inventory lot B003. Thereby, step S11 is completed, and the control processing unit 14 returns to the process of step S10.

上記表16の仮引当組合せ解においては、在庫品ロットB003の引当数を5減算する場合を説明したが、ステップS11を終えた後の仮引当組合せ解が在庫数制約条件を充足しないこともあり得る。この場合には、制御処理部14は、在庫数制約条件を充足する仮引当組合せ解となるまでステップS10及びS11を繰り返す。これにより引当数を変更した在庫品以外の複数の在庫品の引当数を修正することができ、引当数の修正の網羅性を担保することができる。   In the provisional allocation combination solution in Table 16 above, the case where the allocation number of the inventory lot B003 is subtracted by 5 has been described. However, the provisional allocation combination solution after step S11 may not satisfy the inventory number constraint condition. obtain. In this case, the control processing unit 14 repeats Steps S10 and S11 until a provisional allocation combination solution that satisfies the inventory quantity constraint condition is obtained. As a result, it is possible to correct the number of provisions of a plurality of inventory items other than the inventory items whose number of allocations has been changed, and to ensure the completeness of the correction of the number of allocations.

(ステップS8b及びS9b:第2引当数修正工程)
上記ステップS11の終えた後の引当組合せ解に対し、上記ステップS8b及びステップS9bを実行する。ステップS8b及びステップS9bはそれぞれ、上記ステップS8a及びステップS9aと同様の工程である。すなわち、ステップS8bにおいて、上記ステップS11で変更された引当数が、その変更後の引当数の在庫品ロットを引き当てる受注オーダーの引当数下限未満であると引当数下限成否判定部48aが判定した場合には制御処理部14はステップS9bに進む。そして、当該ステップS9bにおいて、引当数0解設定部49aが変更された引当数を0に修正する。一方、上記ステップS8bにおいて、ステップS11で変更された引当数が、その変更後の引当数の在庫品ロットを引き当てる受注オーダーの引当数下限以上であると引当数下限成否判定部48aが判定した場合には、制御処理部14はステップS12の処理に進む。
(Steps S8b and S9b: second allocation number correcting step)
The step S8b and the step S9b are executed for the allocation combination solution after the completion of the step S11. Steps S8b and S9b are the same steps as steps S8a and S9a, respectively. That is, in step S8b, when the allocation number lower limit success / failure determination unit 48a determines that the number of allocations changed in step S11 is less than the lower limit of the allocation number of the order received to allocate the inventory lot of the allocation number after the change Then, the control processing unit 14 proceeds to step S9b. In step S9b, the allocation number 0 solution setting unit 49a corrects the changed allocation number to 0. On the other hand, when the allocation number lower limit success / failure determination unit 48a determines in step S8b that the allocation number changed in step S11 is equal to or greater than the allocation number lower limit of the order received to allocate the inventory lot of the allocation number after the change. In step S12, the control processing unit 14 proceeds to the process.

表16に示す仮引当組合せ解の場合、ステップS11において受注オーダーJ005に対する在庫品ロットB003の引当数を1に変更したことにより、変更後の引当数が受注オーダーJ005の引当数下限2未満となっているので、引当数下限成否判定部48aは、受注オーダーJ002の引当数下限を充足しないと判定し、制御処理部14がステップS9bの処理に進む。そして、続くステップS9bにおいて、引当数0解設定部49aは、ステップS11で設定された新たな引当数を0に変更する。この変更後の仮引当組合せ解を下記の表17に示す。   In the case of the provisional allocation combination solution shown in Table 16, the number of allocations of the inventory lot B003 for the order order J005 is changed to 1 in step S11, so that the number of allocations after the change is less than the lower limit number of allocations of the order order J005 Therefore, the allocation number lower limit success / failure determination unit 48a determines that the allocation number lower limit of the order receipt J002 is not satisfied, and the control processing unit 14 proceeds to the process of step S9b. In step S9b, the allocation number 0 solution setting unit 49a changes the new allocation number set in step S11 to zero. The provisional allocation combination solution after this change is shown in Table 17 below.

上記ステップS9bを含むことにより受注オーダーJ003の引当数下限を下回る引当数をなくすように仮引当組合せ解の引当数を修正することができる。これによりステップS9bは完了し、制御処理部14はステップS12の処理に進む。   By including the step S9b, it is possible to correct the provisioning number of the provisional provisioning combination solution so as to eliminate the provisioning number that falls below the lower limit of the provisioning order of the order receipt J003. Thereby, step S9b is completed, and the control processing unit 14 proceeds to the process of step S12.

(ステップS12及びS13)
ステップS12及びS13は、上記実施形態1と同様にして行われる。すなわち、評価値比較部52は、実施形態1と同様の方法で、上記引当組合せ解の評価値Aと仮引当組合せ解の評価値Bとを比較し、評価値Bが評価値A未満の場合(S12:No)、引当組合せ解を変更せずにステップS3の処理に戻り、評価値Bが評価値A以上の場合(S12:Yes)、ステップS13の処理に進むように判定する(ステップ12)。引当組合せ更新部53は、評価値Bが評価値A以上の場合に、仮引当組合せ解を新たな引当組合せ解に書き換える(ステップS13)。これによりステップS13は完了し、ステップS3の処理に戻る。以上のようにしてステップS3〜ステップS13の各工程を繰り返し、カウンタnの値がループ数設定値Nになった後に、ステップS3において、カウンタ成否判定部44は制御処理部14がステップS14の処理に進むように判定する(ステップS3:Yes)。
(Steps S12 and S13)
Steps S12 and S13 are performed in the same manner as in the first embodiment. That is, the evaluation value comparison unit 52 compares the evaluation value A of the allocation combination solution with the evaluation value B of the provisional allocation combination solution in the same manner as in the first embodiment, and the evaluation value B is less than the evaluation value A (S12: No), it returns to the process of step S3 without changing the allocation combination solution, and when the evaluation value B is equal to or higher than the evaluation value A (S12: Yes), it is determined to proceed to the process of step S13 (step 12). ). When the evaluation value B is equal to or higher than the evaluation value A, the allocation combination updating unit 53 rewrites the provisional allocation combination solution with a new allocation combination solution (step S13). Thereby, step S13 is completed, and the process returns to step S3. As described above, steps S3 to S13 are repeated, and after the value of the counter n reaches the loop number setting value N, in step S3, the counter success / failure determination unit 44 is controlled by the control processing unit 14 in step S14. (Step S3: Yes).

上記ステップS3において、カウンタ成否判定部44は制御処理部14がステップS14の処理に進むように判定した場合に、引当組合せ解における全ての受注オーダーの合計引当数を満たすように各在庫品ロットの引当数が設定されているとは限らず、一部の受注オーダーは、その合計引当数に対して各在庫品ロットの引当数の合計が不足していることがある。このような受注オーダーに対しても、製品の納期に余裕があるのであれば、引き当てた在庫品のみで先に一部の製品を作製し、残りの不足分の製品を、他の在庫品ロットが新たに納入された後に、その納入された在庫品ロットを引き当てることで製造されることは行われる。このような引当処理を行う上で、在庫品群種類数の制約条件や引当数下限の制約条件が予め設定されている場合には、次回の引当処理でもこれらの制約条件を満たしつつ在庫品ロットを引き当てることができるように、今回の引当組合せ解における一部の引当数を修正する必要がある場合がある。以下においては、このような引当組合せ解の修正について説明する。   In step S3, when the control success / failure determination unit 44 determines that the control processing unit 14 proceeds to the processing of step S14, the counter lot determination unit 44 determines whether the inventory lots satisfy the total allocation number of all the order orders in the allocation combination solution. The number of provisions is not always set, and some orders may have a shortage of the total number of provisions for each inventory lot relative to the total number of provisions. For such orders, if there is a margin for the delivery date of the product, a part of the product is first made only from the allocated inventory, and the remaining shortage is transferred to other inventory lots. After a new delivery is made, it is manufactured by allocating the delivered inventory lot. In performing the allocation process, if the constraint condition for the number of types of inventory group and the constraint condition for the lower limit of the allocation number are set in advance, the inventory lot will be satisfied while satisfying these constraint conditions in the next allocation process. In some cases, it may be necessary to modify some provisions in the current provision combination solution. In the following, correction of such a provision combination solution will be described.

引当組合せ解に修正が必要な場合の例として、例えばステップS3を終えた後の引当組合せ解が以下の表18の引当組合せ解である場合を説明する。表18の引当組合せ解では、受注オーダーJ001、J003及びJ004に必要な在庫品の引当数(合計引当数)と、受注オーダーJ001、J003及びJ004に引き当てられた各在庫品ロットの引当数の合計値とは一致しているので、受注オーダーJ001、J003及びJ004の合計引当数は満たされている。一方、受注オーダーJ002及びJ005に必要な在庫品の引当数(合計引当数)は、受注オーダーJ002及びJ005に引き当てられた各在庫品ロットの引当数の合計値よりも多く、つまり、受注オーダーJ002は、在庫品ロットの引当数が2不足しており、受注オーダーJ005は、在庫品ロットの引当数が1不足している。   As an example of the case where correction is necessary for the allocation combination solution, for example, a case will be described in which the allocation combination solution after step S3 is the allocation combination solution in Table 18 below. In the allocation combination solution of Table 18, the total number of inventory items necessary for the order orders J001, J003 and J004 (total number of allocations) and the total number of allocations for each inventory lot allocated to the order orders J001, J003 and J004 Since the values agree with each other, the total number of provisions for the order orders J001, J003, and J004 is satisfied. On the other hand, the number of provisions of inventory necessary for the order orders J002 and J005 (total number of provisions) is larger than the total number of provisions of each inventory lot allocated to the order orders J002 and J005, that is, the order order J002. In this case, the number of inventory lots allocated is insufficient by 2, and the order receipt J005 has an insufficient inventory lot allocation of 1.

上記受注オーダーJ002及びJ005に対し、次回の在庫品の納品後に再度の引当処理を行う場合にも、各受注オーダーの合計引当数の制約条件、在庫品群種類数の制約条件、及び引当数下限の制約条件を満たす必要がある。よって、上記受注オーダーJ002及びJ005に対し、以下の在庫品群種類数による修正工程(ステップS14)及び引当数下限による修正工程(ステップS15)を実行することにより、次回の引当処理で在庫品ロットが引き当てることができるように引当組合せ解の一部の引当数を修正する。なお、下記のステップS14及びステップS15の修正工程の順序は一例に過ぎず、各修正工程を入れ替えて実行してもよい。   Even when re-allocation processing is performed for the order orders J002 and J005 after delivery of the next inventory item, the constraint condition of the total allocation number of each order order, the constraint condition of the number of types of inventory group, and the allocation number lower limit It is necessary to satisfy the constraints. Therefore, by executing the following correction process based on the number of types of inventory group (step S14) and correction process based on the lower limit of the number of allocations (step S15) for the order orders J002 and J005, the inventory lot in the next allocation process. The number of provisions of a part of the provision combination solution is corrected so that can be allocated. In addition, the order of the correction process of following step S14 and step S15 is only an example, and you may replace and perform each correction process.

(ステップS14:引当解除工程)
ステップS14では、上記製品を作製するために許容される在庫品群の種類数の上限が設定されている場合において、在庫品群の種類数の上限をAとし、当該製品を作製するために必要な前記在庫品ロットの引当数をBとし、当該製品を作製するために引き当てられる各在庫品ロットの引当数の合計値をCとし、次に引当処理を実行するまでに補充される予定の1種の在庫品群に含まれる全ての在庫品ロットの補充予定数をDとすると、在庫品引当解除部54は、上記製品を作製するために引き当てる在庫品群の種類数が、A−(B−C)÷Dによって算出される値の小数点以下を切り捨てた整数値以下となるように、当該製品を作製するために引き当てた在庫品群のうちのいずれか1以上の在庫品群に含まれる全ての在庫品ロットの引当数を0にする(S14)。このような引当数の修正工程を含むことにより、次の引当処理までに納品された在庫品ロットを、引当数が不足している受注オーダーに引き当てることができるように引当可能な在庫品群の種類数に余裕を持たせることができる。なお、上記製品を作製するために必要な在庫品ロットの引当数のある程度の幅がある場合には、必要な引当数の下限を上記Bとして設定するものとする。
(Step S14: Reserve cancellation step)
In step S14, when the upper limit of the number of types of inventory group allowed to produce the product is set, the upper limit of the number of types of inventory group is A, which is necessary for producing the product. 1 is scheduled to be replenished until the next allocation process is executed, where B is the allocation number of the inventory lot and B is the total allocation number of each inventory lot allocated to produce the product. If the planned replenishment number of all the inventory lots included in the seed inventory group is D, the inventory allocation release unit 54 determines that the number of types of the inventory group allocated to produce the product is A− (B -It is included in any one or more of the inventory groups allocated to produce the product so that the value calculated by -C) ÷ D is equal to or less than the integer value obtained by rounding down the decimal point. Number of provisions for all stock lots To 0 (S14). By including such a process for correcting the number of allocations, the inventory lots that have been delivered up to the next allocation process can be allocated to order orders that have insufficient allocation numbers. It is possible to give a margin to the number of types. In addition, when there is a certain range of the allocation number of inventory lots necessary for producing the product, the lower limit of the necessary allocation number is set as B.

例えば、表18の受注オーダーJ002は、在庫品群の種類数の上限Aが2であり、受注オーダーJ002を満たすために必要な在庫品ロットの引当数Bが8であり、当該受注オーダーJ002に引き当てられる各在庫品ロットの引当数の合計値Cが6であるので、在庫品ロットの引当数が2不足している。このため、次回の引当処理を実行するときには受注オーダーJ002に対していずれかの在庫品ロットを引き当てる必要がある。一方、受注オーダーJ002に引当可能な在庫品群の種類数の上限は2種であるため、次の引当時に引当可能な在庫品ロットが納入されると、その在庫品ロットを引き当てる余地がある。このため、受注オーダーJ002に対してはステップS14の引当解除を実行しなくてもよい。   For example, in the order receipt J002 in Table 18, the upper limit A of the number of types of inventory group is 2, the number B of inventory lots necessary to satisfy the order order J002 is 8, and the order quantity J002 Since the total value C of the allocated number of each inventory lot allocated is 6, the allocated number of the inventory lot is insufficient by 2. For this reason, when executing the next allocation process, it is necessary to allocate one of the stock lots to the sales order J002. On the other hand, since the upper limit of the number of types of inventory items that can be allocated to the order receipt J002 is two, when an inventory lot that can be allocated at the time of the next allocation is delivered, there is room to allocate the inventory lot. For this reason, it is not necessary to execute the deallocation cancellation in step S14 for the order receipt J002.

上記受注オーダーJ002の上記A、B及びCの各値と、引当処理を実行するまでに補充される在庫品の補充予定数Dである15とをそれぞれ、上記数式A−(B−C)÷Dに代入すると、2−(8−6)÷15=1.86667・・・となり、この右辺の小数点以下を切り捨てた整数値1が算出される。したがって、受注オーダーJ002に引き当てられる在庫品群の種類数は1種類以下に設定されるべきと判定される。実際に受注オーダーJ002に対しては在庫品群G001の1種類のみの在庫品ロットが引き当てられているので、受注オーダーJ002に対してはステップS14の引当解除を実行しなくてもよい。   Each value of A, B, and C of the received order J002 and 15 that is the planned replenishment number D of stock items to be replenished before the allocation process is executed are respectively represented by the above formula A− (BC) ÷ Substituting for D results in 2- (8-6) ÷ 15 = 1.86667..., And an integer value 1 is calculated by rounding down the decimals on the right side. Therefore, it is determined that the number of types of inventory group allocated to the order receipt J002 should be set to one or less. Actually, since only one kind of inventory lot of the inventory group G001 is allocated to the order order J002, it is not necessary to execute the deallocation cancellation in step S14 for the order order J002.

これに対し、表18の受注オーダーJ005は在庫品群の種類数の上限Aが3であり、受注オーダーJ005を満たすために必要な在庫品ロットの引当数Bが30であり、当該受注オーダーJ005に引き当てられる各在庫品ロットの引当数の合計値Cが29であるので、在庫品ロットの引当数が1不足している。このため、次回の引当処理を実行するときには受注オーダーJ005に対していずれかの在庫品ロットを引き当てる必要がある。一方、受注オーダーJ005に引当可能な在庫品群の種類数は3種であるため、次の引当時に引当可能な在庫品ロットが納入されても、その納入された在庫品ロットを新たに引き当てる余地がない。つまり、新たに納入された在庫品ロットを受注オーダーJ005に引き当てると、在庫品群の種類数が4種類となって在庫品群種類数の制約条件を満たさなくなる。   On the other hand, the upper limit A of the number of types of inventory group is 3 for the order order J005 in Table 18, and the reserve number B of the inventory lot necessary to satisfy the order order J005 is 30, and the order order J005 Since the total value C of the allocation number of each inventory lot allocated to 29 is 29, the allocation number of the inventory lot is insufficient by one. For this reason, when executing the next allocation process, it is necessary to allocate one of the inventory lots to the order receipt J005. On the other hand, since there are three types of inventory items that can be allocated to the order J005, there is room for newly allocated inventory lots to be allocated even if the inventory lots that can be allocated at the next allocation are delivered. There is no. That is, when a newly delivered inventory lot is allocated to the order receipt J005, the number of types of inventory group becomes 4 and the constraint condition on the number of types of inventory group is not satisfied.

このような事態を回避するために、ステップS14において、受注オーダーJ005に引き当てられた在庫品群のうちのいずれか1の在庫品群に含まれる全ての在庫品ロットの引当数を0に設定(解除)することにより、受注オーダーJ005に引当可能な在庫品群の種類数を1減らす。これにより受注オーダーJ005に引当可能な在庫品群の種類数に1種類分の余裕を持たせることができ、次に引当処理を実行するまでに新たに納入される予定の在庫品ロットを受注オーダーJ005に引き当てることができる。   In order to avoid such a situation, in step S14, the allocation number of all the inventory lots included in any one of the inventory groups allocated to the order receipt J005 is set to 0 ( By canceling), the number of types of inventory items that can be allocated to the order receipt J005 is reduced by one. As a result, the number of types of inventory group that can be allocated to the sales order J005 can be increased by one, and the inventory lot that is scheduled to be delivered before the allocation process is executed next. J005 can be allocated.

例えば、受注オーダーJ005の上記A、B及びCの各値と、引当処理を実行するまでに補充される在庫品の補充予定数Dである15とをそれぞれ、上記数式A−(B−C)÷Dに代入すると、3−(30−29)÷15=2.933・・・となり、この右辺の小数点以下を切り捨てた整数値2が算出される。したがって、受注オーダーJ005に引き当てられる在庫品群の種類数は2種類以下に設定されるべきと判定される。   For example, each of the values A, B, and C of the sales order J005 and 15 that is the planned replenishment number D of inventory items to be replenished before the allocation process is executed are respectively represented by the above formulas A− (B−C). When substituting for ÷ D, 3- (30−29) ÷ 15 = 2.933..., And an integer value 2 is calculated by rounding down the decimals on the right side. Therefore, it is determined that the number of types of inventory group allocated to the order receipt J005 should be set to two or less.

一方、表18の受注オーダーJ005に引き当てられる在庫品群の種類数は3種類(在庫品群G002、G003、G004)であるので、受注オーダーJ005に引き当てる在庫品群の種類数が2種類となるまで、当該製品を作製するために引き当てた在庫品群のうちのいずれか1の在庫品群に含まれる全ての在庫品ロットの引当数を0にする。言い換えると、いずれか1の在庫品群に含まれる全ての在庫品ロットの引当を解除する。ここで引当を解除する(引当数を0にする)在庫品群は、引当数が設定された在庫品ロットを含む在庫品群のうちの優先度が低い在庫品ロットを含む在庫品群から順番に引当を解除することが好ましく、表18の例では、在庫品群G004に含まれる在庫品ロットB003の引当数を0にすることが好ましい。以下の表19は、表18の引当組合せ解における在庫品群G004に含まれる在庫品ロットB003の引当数を0に修正した後の引当組合せ解である。これにより受注オーダーJ005に引当可能な在庫品群の種類数に1種類分の余裕を持たせることができ、次に引当処理を実行するまでに新たに納入される予定の在庫品ロットを受注オーダーJ005に引き当てても在庫品群の上限を超えることなく、在庫品ロットの引当数を設定することができる。   On the other hand, the number of types of inventory group allocated to the order order J005 in Table 18 is three (inventory group G002, G003, G004), so the number of types of inventory group allocated to the order order J005 is two. Until then, the number of allocations of all the inventory lots included in any one of the inventory groups allocated to produce the product is set to zero. In other words, the allocation of all inventory lots included in any one inventory group is canceled. Here, the inventory group for which the allocation is to be released (the allocation number is set to 0) is the order from the inventory group including the inventory lot with the low priority among the inventory group including the inventory lot for which the allocation number is set. It is preferable to cancel the allocation, and in the example of Table 18, it is preferable to set the allocation number of the inventory lot B003 included in the inventory group G004 to 0. Table 19 below shows the allocation combination solution after the allocation number of the inventory lot B003 included in the inventory group G004 in the allocation combination solution of Table 18 is corrected to zero. As a result, the number of types of inventory group that can be allocated to the sales order J005 can be increased by one, and the inventory lot that is scheduled to be delivered before the allocation process is executed next. Even if J005 is allocated, the number of inventory lots can be set without exceeding the upper limit of the inventory group.

上記修正を終えた表19の受注オーダーJ005において、在庫品群の種類数の上限Aが3であり、受注オーダーJ005を満たすために必要な在庫品ロットの引当数Bが30であり、当該受注オーダーJ005に引き当てられる各在庫品ロットの引当数の合計値Cが23であり、次に引当処理を実行するまでに補充される在庫品の補充予定数Dが15であるので、上記数式A−(B−C)÷Dに代入すると、3−(30−23)÷15=2.533・・・の小数点以下を切り捨てた整数値2が算出される。したがって、受注オーダーJ005に引き当てられる在庫品群の種類数は2種類以下に設定されるべきと判定される。   In the received order J005 in Table 19 after the above correction, the upper limit A of the number of types of inventory group is 3, and the reserve number B of the inventory lot necessary to satisfy the received order J005 is 30, Since the total value C of the allocation number of each inventory lot allocated to the order J005 is 23 and the planned replenishment number D of inventory to be replenished until the next allocation process is performed is 15, the above formula A− Substituting into (B−C) ÷ D, an integer value 2 is calculated by rounding off the decimal part of 3- (30-23) ÷ 15 = 2.533. Therefore, it is determined that the number of types of inventory group allocated to the order receipt J005 should be set to two or less.

これに対し、表19の受注オーダーJ005に引き当てられる在庫品群の種類数は2種類(在庫品群G002、G003)であるので、表19の受注オーダーJ005に対して、これ以上の在庫品群の種類数を修正する必要はない。表19の受注オーダーJ005に対し、次に引当処理を実行するまでに15個の補充予定数の在庫品ロットのうちの一部の在庫品ロットを引き当てることにより、受注オーダーJ005の在庫品群種類数の上限3を満たしつつ受注オーダーの引当数30を満たせるように各在庫品ロットの引当数を設定することができる。   On the other hand, since the number of types of inventory group allocated to the order order J005 in Table 19 is two (inventory group G002, G003), more inventory groups than the order order J005 in Table 19 There is no need to modify the number of types. By assigning a part of the inventory lots of the 15 replenished inventory lots until the next allocation process is executed for the sales order J005 in Table 19, the inventory group type of the sales order J005 The number of provisions for each inventory lot can be set so that the number of orders to be reserved 30 can be satisfied while satisfying the upper limit 3 of the number.

なお、本実施形態では、各在庫品ロットに対してそれぞれ個別の在庫品群が設定されているので、各在庫品群の種類数に基づいて在庫品群の種類数を修正しているが、実施形態1のように在庫品群の概念が導入されていない場合は、在庫品ロットの種類数の上限に基づいて在庫品ロットの種類数を修正するものとする。   In this embodiment, since each individual inventory group is set for each inventory lot, the number of types of inventory group is corrected based on the number of types of each inventory group. When the concept of inventory group is not introduced as in the first embodiment, the number of types of inventory lots is corrected based on the upper limit of the number of types of inventory lots.

(ステップS15:引当数減算工程)
ステップS15では、製品を作製するために引き当てる各在庫品ロットの引当数に下限値が定められている場合において、引当数減算部55は、当該製品を作製するために必要な前記在庫品ロットの引当数から当該製品を作製するために引き当てられる各在庫品ロットの引当数の合計値を引いた値が前記下限値以上となるまで、当該製品を作製するために引き当てた在庫品ロットの引当数を減算する。なお、上記製品を作製するために必要な在庫品ロットの引当数のある程度の幅がある場合には、必要な引当数の上限から当該製品を作製するために引き当てられる各在庫品ロットの引当数の合計値を引いた値が前記下限値以上となるまで、当該製品を作製するために引き当てた在庫品ロットの引当数を減算するものとする。
(Step S15: Provision number subtraction step)
In step S15, when a lower limit is set for the number of allocations of each inventory lot to be allocated for producing a product, the allocation number subtracting unit 55 determines the number of inventory lots necessary for producing the product. Number of provisions for inventory lots allocated to produce the product until the value obtained by subtracting the total number of provisions for each inventory lot allocated to produce the product from the provision number is equal to or greater than the lower limit. Is subtracted. If there is a certain range of the number of inventory lots required to produce the product, the number of inventory lots allocated to produce the product from the upper limit of the necessary number of inventory. Until the value obtained by subtracting the total value is equal to or greater than the lower limit value, the number of inventory lots allocated to produce the product is subtracted.

例えば、表19の受注オーダーJ002を充当するために必要な各在庫品ロットの合計引当数が8であり、当該受注オーダーに引き当てられる各在庫品ロットの引当数の合計値が6であるため、受注オーダーJ002の合計引当数を充当させるためには、あと2つの引当数を確保する必要がある。しかし、受注オーダーJ002の引当数下限は3に設定されているので、在庫品ロットの引当数を1又は2に設定することができない。   For example, since the total provision number of each inventory lot necessary for applying the order order J002 in Table 19 is 8, and the total value of the provision number of each inventory lot allocated to the order order is 6, In order to use the total number of provisions for the order received J002, it is necessary to secure two more provisions. However, since the lower limit of the number of reservations for the sales order J002 is set to 3, the number of allocations for the inventory lot cannot be set to 1 or 2.

よって、ステップS15において、引当数減算部55は、受注オーダーJ002を充当するために必要な前記在庫品ロットの合計引当数8から受注オーダーに引き当てられる各在庫品ロット(在庫品ロットA001)の引当数の合計値(6)を引いた値(2)が前記下限値(3)以上となるまで、受注オーダーJ002に引き当てた在庫品ロット(例えば在庫品ロットA001)の引当数を減算する。上記表19の引当組合せ解の場合、受注オーダーJ002に引き当てる在庫品ロットA001の引当数を1減算し、下記の表20に示すように在庫品ロットA001の引当数を5とすることで、受注オーダーJ002に対して在庫品ロットA001以外のいずれか1の在庫品ロットを引き当てることができる。   Therefore, in step S15, the allocation number subtraction unit 55 allocates each inventory lot (inventory item lot A001) allocated to the order from the total allocation number 8 of the inventory lot necessary for approving the order order J002. Until the value (2) obtained by subtracting the total number (6) is equal to or greater than the lower limit (3), the allocated number of inventory lots (for example, inventory lot A001) allocated to the sales order J002 is subtracted. In the case of the allocation combination solution shown in Table 19, the order quantity for the inventory lot A001 allocated to the order receipt J002 is decremented by 1, and the allocation quantity for the inventory lot A001 is set to 5 as shown in Table 20 below. Any one inventory lot other than the inventory lot A001 can be allocated to the order J002.

上記ステップS15において減算された引当数が設定された在庫品を含む在庫品群に含まれる全ての在庫品ロットの引当数の総和が、当該新たな引当数の在庫品ロットを含む受注オーダーに許容される前記在庫品群に含まれる全ての在庫品ロットの引当数の総和の下限値未満の場合、引当数減算部55は、減算された引当数が設定された在庫品ロットを含む在庫品群に含まれる全ての在庫品ロットの引当数を0にすることが好ましい。これにより引当数の総和の下限値の制約条件を満たすように各在庫品ロットの引当数を修正することができる。   The sum of the allocation numbers of all the inventory lots included in the inventory group including the inventory items to which the allocation number subtracted in step S15 is set is allowed for the sales order including the inventory lots of the new allocation number. When the total number of allocations of all the inventory lots included in the inventory group is less than the lower limit value, the allocation number subtracting unit 55 includes the inventory lots including the inventory lot in which the reduced allocation number is set. It is preferable that the number of allocations of all the inventory lots included in is set to zero. As a result, the allocation number of each inventory lot can be corrected so as to satisfy the constraint condition of the lower limit value of the total allocation number.

上記ステップS15において、引当数を減算する場合、引当数の下限値が定められた受注オーダーに対して引き当てたいずれか1の在庫品ロットの引当数を1ずつ減算することが好ましい。このように在庫品ロットの引当数を徐々に減らしていくことで、当該減算後の引当数が、受注オーダーに許容される在庫品群に含まれる全ての在庫品ロットの引当数の総和の下限値未満となりにくくなるので、引当数減算部55によって過剰に引当数が減算されることを防止することができる。   In step S15, when the number of allocations is subtracted, it is preferable to subtract one at a time from the number of allocations for any one inventory lot allocated to an order for which the lower limit of the number of allocations is defined. In this way, by gradually reducing the number of provisions for inventory lots, the number of provisions after the subtraction is the lower limit of the total number of provisions for all inventory lots included in the inventory group allowed in the order. Since it becomes difficult to become less than the value, it is possible to prevent the allocation number subtraction unit 55 from excessively subtracting the allocation number.

なお、表19の受注オーダーJ005を充当するために必要な各在庫品ロットの合計引当数が30であり、当該受注オーダーに引き当てられる各在庫品ロットの引当数の合計値が23であるため、受注オーダーJ005の合計引当数を充当させるためには、あと7つの引当数を確保する必要がある。一方、受注オーダーJ005の引当数下限は6に設定されているので、次の引当処理において、新たに納品された在庫品ロットを7つ引き当てることにより、受注オーダーJ005の引当数下限を満たしつつ、不足分の在庫品ロットを引き当てることができる。このため、受注オーダーJ005に対してはステップS15の修正工程を実行しなくてもよい。   In addition, since the total provision number of each inventory lot necessary for applying the order order J005 in Table 19 is 30, and the total number of provision quantities of each inventory lot allocated to the order order is 23, In order to use the total allocation number of the order received J005, it is necessary to secure another seven allocation numbers. On the other hand, since the lower limit of the number of reservations for the sales order J005 is set to 6, in the next allocation process, by allocating seven newly delivered inventory lots, while satisfying the lower limit of the allocation number of the sales order J005, A shortage of inventory lots can be allocated. For this reason, it is not necessary to perform the correction process of step S15 with respect to the order receipt J005.

以上のように引当組合せ解を設定することにより、次回の引当処理においても引当数下限の制約条件や在庫品群種類数の制約条件を満たすように引当組合せ解の引当数を修正することができる。   By setting the allocation combination solution as described above, it is possible to correct the allocation number of the allocation combination solution so that the constraint condition of the lower limit of the allocation number and the limitation of the number of types of inventory group are satisfied even in the next allocation process. .

<その他の実施形態>
上記各実施形態においては、過去に受注オーダーに引き当てた在庫品ロットの引当数を加味していないが、実際の引当処理においては過去に受注オーダーに対して既に引当済の在庫品ロットが存在する場合もある。このような過去の引当情報が存在する場合には、上記局所探索法が実行される前に過去に引き当てた在庫品の引当数を引当組合せ解に取り込む工程(ステップS0)をさらに含む。過去に受注オーダーに対して引き当てた在庫品の情報の一例を表21に示す。
<Other embodiments>
In each of the above-described embodiments, the number of inventory lots allocated to a sales order in the past is not taken into account, but in the actual allocation process, there are inventory lots already allocated to the sales order in the past. In some cases. If there is such past allocation information, the method further includes a step (step S0) of taking the allocation number of inventory items allocated in the past before the local search method is executed into the allocation combination solution. Table 21 shows an example of information on inventory items that have been allocated to orders in the past.

上記表21の過去の引当情報によると、前回までの引当処理によって、受注オーダーJ005に対して在庫品群G004に属する在庫品ロットを2の引当数だけ引き当てられており、受注オーダーJ003に対して在庫品群G005に属する在庫品ロットを3の引当数だけ引き当てられている。この場合、引当組合せ解の初期解を設定する工程(ステップS1)の前に、過去引当情報取込部40は、上記表21に示す過去に引き当てた在庫品の引当数を取り込む(ステップS0)。   According to the past allocation information in Table 21 above, according to the allocation process up to the previous time, an inventory lot belonging to the inventory group G004 is allocated to the sales order J005 by the allocation number of 2, and the sales order J003 The inventory lot belonging to the inventory group G005 is allocated by the number of allocations of 3. In this case, prior to the step of setting the initial solution for the allocation combination solution (step S1), the past allocation information capturing unit 40 captures the number of allocations of inventory items allocated in the past shown in Table 21 (step S0). .

上記ステップS0において、過去の引当情報で取り込む場合、過去に引き当てられた在庫品ロットの引当数を変更することはできないので、過去に引き当てられた在庫品ロットの引当数は、在庫品群数修正工程S7’、第1引当数修正工程S9、第1引当数0解工程S9a及び第2引当数0解工程S9bにおける引当数の変更対象から除外されるように設定される。また、第1引当数0解工程S9a、第2引当数0解工程S9b、及び引当解除工程S14において、過去に引き当てられた在庫品ロットが存在する在庫品群に含まれる各在庫品ロットの引当数を解除(0に設定)しても、過去に引き当てられた在庫品ロットが存在する限りは在庫品群の種類数を減らすことができないので、過去に引き当てられた在庫品ロットが存在する在庫品群に対しては、第1引当数0解工程S9a、第2引当数0解工程S9b及び引当解除工程S14による引当数の変更対象から除外される。   In the above-described step S0, when the past allocation information is taken in, the allocation number of the inventory lot allocated in the past cannot be changed. Therefore, the allocation number of the inventory lot allocated in the past is corrected by the number of inventory groups. It is set to be excluded from the change target of the allocation number in the step S7 ′, the first allocation number correction step S9, the first allocation number 0 solution step S9a, and the second allocation number 0 solution step S9b. In addition, in the first allocation number 0 solution step S9a, the second allocation number 0 solution step S9b, and the allocation release step S14, the allocation of each inventory lot included in the inventory group in which the inventory lots allocated in the past exist. Even if the number is canceled (set to 0), as long as there are inventory lots allocated in the past, the number of types of inventory group cannot be reduced, so inventory with inventory lots allocated in the past exists. The product group is excluded from the allocation number change target by the first allocation number 0 solution step S9a, the second allocation number 0 solution step S9b, and the allocation release step S14.

このように過去の引当情報を加味して引当組合せ解の初期解を設定することにより過去の引当処理で引き当てられた在庫品ロットの引当数を勘案しつつ、各種の制約条件を満たすように各在庫品ロットの引当数を設定することができる。   In this way, by setting the initial solution of the allocation combination solution in consideration of the past allocation information, each constraint condition is satisfied so that various constraint conditions are satisfied while taking into account the number of allocations of inventory lots allocated in the past allocation process. The number of stock lots can be set.

本発明を表現するために、上述において図面を参照しながら実施形態を通して本発明を適切且つ十分に説明したが、当業者であれば上述の実施形態を変更および/または改良することは容易に為し得ることであると認識すべきである。したがって、当業者が実施する変更形態または改良形態が、請求の範囲に記載された請求項の権利範囲を離脱するレベルのものでない限り、当該変更形態または当該改良形態は、当該請求項の権利範囲に包括されると解釈される。   In order to express the present invention, the present invention has been properly and fully described through the embodiments with reference to the drawings. However, those skilled in the art can easily change and / or improve the above-described embodiments. It should be recognized that this is possible. Therefore, unless the modifications or improvements implemented by those skilled in the art are at a level that departs from the scope of the claims recited in the claims, the modifications or improvements are not covered by the claims. To be construed as inclusive.

1 在庫引当システム
11 入力部
12 出力部
13 記憶部
14 制御処理部
31 製品情報データベース
32 在庫品情報データベース
33 解探索条件データベース
40 過去引当情報取込部
41 制御部
42 初期解設定部
43 カウンタ部
44 カウンタ成否判定部
45 引当数変更部(第1処理部)
46 ロット数制約成否判定部
46’ 在庫品群数制約成否判定部
47 ロット数修正部
47’ 在庫品群数修正部
48 引当数合計制約成否判定部
48a 引当数下限成否判定部
49 第1引当数修正部
49a 引当数0解設定部
50 在庫数制約成否判定部
51 第2引当数修正部
52 評価値比較部
53 引当組合せ更新部(第2処理部)
54 在庫品引当解除部
55 引当数減算部
DESCRIPTION OF SYMBOLS 1 Inventory allocation system 11 Input part 12 Output part 13 Storage part 14 Control processing part 31 Product information database 32 Inventory item information database 33 Solution search condition database 40 Past allocation information acquisition part 41 Control part 42 Initial solution setting part 43 Counter part 44 Counter success / failure determination unit 45 Number of allocation change unit (first processing unit)
46 Lot number constraint success / failure determination unit 46 'Inventory product group number constraint success / failure determination unit 47 Lot number correction unit 47' Inventory product group number correction unit 48 Allocation number total constraint success / failure determination unit 48a Allocation number lower limit success / failure determination unit 49 First allocation number Correction unit 49a Allocation number 0 solution setting unit 50 Inventory number constraint success / failure determination unit 51 Second allocation number correction unit 52 Evaluation value comparison unit 53 Allocation combination update unit (second processing unit)
54 Inventory Release Cancellation Unit 55 Reserve Number Subtraction Unit

Claims (21)

同一又は相異なる複数種の製品を作製するために引き当てる1種又は複数種の在庫品の引当数の組合せを設定した引当組合せ解において、任意の1種の前記製品に対する任意の1種の前記在庫品の引当数を変更した仮引当組合せ解を作成する第1工程と、
前記引当組合せ解の評価値A及び前記仮引当組合せ解の評価値Bを同一の評価関数を用いて算出し、前記仮引当組合せ解の評価値Bが前記引当組合せ解の評価値A未満の場合に前記引当組合せ解を変更せず、前記仮引当組合せ解の評価値Bが前記引当組合せ解の評価値A以上の場合に前記仮引当組合せ解を新たな引当組合せ解に書き換える第2工程と、を含み、
前記第1工程及び前記第2工程を1回以上行うことを特徴とする在庫引当方法。
In an allocation combination solution in which a combination of allocation numbers of one or a plurality of types of inventory to be allocated to produce the same or different types of products is set, any one type of the inventory for any one type of the product A first step of creating a provisional provision combination solution in which the number of provisions of goods is changed;
When the evaluation value A of the provisional combination solution and the evaluation value B of the provisional provisioning combination solution are calculated using the same evaluation function, and the evaluation value B of the provisional provisioning combination solution is less than the evaluation value A of the provisioning combination solution The provisional combination solution without changing the provisional combination solution, and when the evaluation value B of the provisional provision combination solution is equal to or higher than the evaluation value A of the provisional combination solution, Including
The inventory allocation method, wherein the first step and the second step are performed once or more.
n(nは2以上の整数)種類の製品のうちの前記特定の1の製品iを作製するために用いるm(mは自然数)種類の在庫品のうちから特定の1の在庫品jを選択して当該在庫品jを引き当てるべき優先度をpi,jとし、当該製品iを作製するために引き当てる前記在庫品jの引当数をai,jとする場合、前記評価値A及びBは下記式(I)の評価関数Fによって算出されることを特徴とする請求項1に記載の在庫引当方法。
Select one specific inventory item j from m (m is a natural number) inventory items used to produce the specific one product i among n (n is an integer of 2 or more) types of products If the priority to which the inventory item j should be allocated is p i, j and the allocation number of the inventory item j allocated to produce the product i is a i, j , the evaluation values A and B are The inventory allocating method according to claim 1, wherein the inventory allocating method is calculated by an evaluation function F of the following formula (I).
前記第1工程で変更する引当数の在庫品を用いて作製する製品を作製するために引き当てる各在庫品の引当数の下限値が定められている場合、前記第1工程で変更される引当数は、前記下限値以上の整数とされる請求項1又は2に記載の在庫引当方法。   The number of provisions to be changed in the first step when a lower limit value of the number of provisions of each stock to be allocated to produce a product manufactured using the inventory of the number of provisions to be changed in the first step is defined The inventory allocation method according to claim 1, wherein is an integer greater than or equal to the lower limit value. 前記仮引当組合せ解において、前記第1工程で変更した引当数の在庫品を用いて作製する特定の1種の製品aを作製するために引き当てる全ての前記在庫品の引当数の合計が、当該製品aを作製するために必要な前記在庫品の引当数よりも多い場合、前記引当数の合計から前記製品aを作製するために必要な前記在庫品の引当数を引いて得られた値を上限とする任意の自然数を設定し、前記製品aを作製するために引き当てる全ての在庫品のうち、前記第1工程で変更した引当数の在庫品以外の前記在庫品の引当数から当該自然数を減算した引当数を新たな引当数に設定する第1引当数修正工程を含む、請求項1〜3のいずれか一項に記載の在庫引当方法。   In the provisional allocation combination solution, the total of the allocation numbers of all the inventory items to be allocated to produce one specific type of product a to be manufactured using the inventory number of the allocation number changed in the first step is When there is more than the number of provisions of the inventory necessary for producing the product a, a value obtained by subtracting the number of provisions of the inventory necessary for producing the product a from the total of the provisions An arbitrary natural number as an upper limit is set, and the natural number is calculated from the reserved number of the inventory items other than the allocated number of inventory items changed in the first step among all the inventory items allocated to produce the product a. The inventory allocation method according to claim 1, further comprising a first allocation number correction step of setting the subtracted allocation number as a new allocation number. 前記第1引当数修正工程において設定された新たな引当数が、当該新たな引当数の在庫品によって作製される製品を作製するために許容される前記在庫品の引当数の下限値未満の場合、当該新たな引当数を0にする工程を含む、請求項4に記載の在庫引当方法。   The new allocation number set in the first allocation number correction step is less than the lower limit value of the allocation number of the inventory that is allowed to produce a product manufactured by the inventory of the new allocation number The inventory allocation method according to claim 4, further comprising a step of setting the new allocation number to zero. 前記複数種の在庫品のうちの互いに連関する性質を示す2種以上の在庫品を含む在庫品群が1以上存在する場合であって、前記第1引当数修正工程において新たに引当数が設定された在庫品を含む在庫品群に含まれる全ての在庫品の引当数の総和が、当該新たな引当数の在庫品によって作製される製品を作製するために許容される前記在庫品群に含まれる全ての在庫品の引当数の総和の下限値未満の場合、当該新たな引当数を設定した在庫品を含む在庫品群に含まれる全ての在庫品の引当数を0にする工程を含む、請求項4に記載の在庫引当方法。   In the case where there is one or more inventory groups including two or more types of inventory items that are related to each other among the plurality of types of inventory items, a new allocation number is set in the first allocation number correction step The sum of the numbers of all inventory items included in the inventory group including the inventory items that were included is included in the inventory group that is allowed to produce products made with the new allocation number of inventory items Including the step of setting the number of all inventory items included in the inventory group including the inventory item for which the new allocation number is set to 0 when the total number of all inventory items to be allocated is less than the lower limit value, The inventory allocation method according to claim 4. 前記仮引当組合せ解における前記第1工程で引当数を変更した在庫品bの全ての引当数の合計が、当該在庫品bの在庫数よりも多い場合、前記在庫品bの引当数の合計から当該在庫品bの在庫数を引いて得られた値を上限とする任意の自然数を設定し、前記第1工程で変更した引当数以外の前記在庫品bの引当数から当該自然数を減算した引当数を新たな引当数に設定する第2引当数修正工程を含む、請求項1〜5のいずれか一項に記載の在庫引当方法。   When the total number of all the inventory items b whose number of allocations has been changed in the first step in the provisional allocation combination solution is larger than the inventory number of the inventory item b, the total allocation number of the inventory item b An arbitrary natural number whose upper limit is a value obtained by subtracting the inventory number of the inventory item b is set, and an allocation amount obtained by subtracting the natural number from the allocation number of the inventory item b other than the allocation number changed in the first step The inventory allocation method according to claim 1, further comprising a second allocation number correcting step of setting the number to a new allocation number. 前記第2引当数修正工程において設定された新たな引当数が、当該新たな引当数の在庫品によって作製される製品を作製するために許容される前記在庫品の引当数の下限値未満の場合、当該新たな引当数を0にする工程を含む、請求項7に記載の在庫引当方法。   When the new allocation number set in the second allocation number correction step is less than the lower limit value of the allocation number of the inventory that is allowed to produce a product manufactured by the inventory of the new allocation number The inventory allocation method according to claim 7, further comprising a step of setting the new allocation number to 0. 前記複数種の在庫品のうちの互いに連関する性質を示す2種以上の在庫品を含む在庫品群が1以上存在する場合であって、前記第2引当数修正工程において新たに引当数が設定された在庫品を含む在庫品群に含まれる全ての在庫品の引当数の総和が、当該新たな引当数の在庫品によって作製される製品を作製するために許容される前記在庫品群に含まれる全ての在庫品の引当数の総和の下限値未満の場合、当該新たな引当数を設定した在庫品を含む在庫品群に含まれる全ての在庫品の引当数を0にする工程を含む、請求項7に記載の在庫引当方法。   In the case where there is one or more inventory groups including two or more types of inventory items that are associated with each other among the plurality of types of inventory items, a new allocation number is set in the second allocation number correction step The sum of the numbers of all inventory items included in the inventory group including the inventory items that were included is included in the inventory group that is allowed to produce products made with the new allocation number of inventory items Including the step of setting the number of all inventory items included in the inventory group including the inventory item for which the new allocation number is set to 0 when the total number of all inventory items to be allocated is less than the lower limit value, The inventory allocation method according to claim 7. 前記第1工程で引当数を変更した在庫品を用いて作製する前記製品を作製するために引き当てる前記在庫品の種類数が、当該製品を作製するために許容される前記在庫品の種類数の上限よりも多い場合、前記第1工程で引当数を変更した在庫品以外の当該製品を作製するために引き当てる在庫品の引当数を0にする工程を含む、請求項1〜7のいずれか一項に記載の在庫引当方法。   The number of types of the inventory to be allocated to produce the product produced using the inventory whose number of allocations has been changed in the first step is the number of types of the inventory that are allowed to produce the product. When there is more than an upper limit, the process includes the step of setting the number of inventory items to be allocated to produce a product other than the inventory item whose allocation number has been changed in the first step to 0. The inventory allocation method described in the paragraph. 前記複数種の在庫品のうちの互いに連関する性質を示す2種以上の在庫品を含む在庫品群が1以上存在する場合であって、前記第1工程で引当数を変更した在庫品を用いて作製する前記製品を作製するために引き当てる前記在庫品を含む在庫品群の種類数が、当該製品を作製するために許容される前記在庫品群の種類数の上限よりも多い場合、前記第1工程で引当数を変更した在庫品を含む在庫品群以外のいずれか1の在庫品群に含まれる全ての在庫品の引当数を0にする工程をさらに含む、請求項1〜10のいずれか一項に記載の在庫引当方法。   Among the plurality of types of inventory, when there is one or more inventory group including two or more types of inventory items that are related to each other, the inventory item whose number of allocation is changed in the first step is used When the number of types of inventory group including the inventory to be allocated to produce the product to be produced is greater than the upper limit of the number of types of the inventory group allowed to produce the product, the first 11. The method according to any one of claims 1 to 10, further comprising the step of setting the number of allocations of all the inventory items included in any one inventory item group other than the inventory item group including the inventory item whose allocation number is changed in one step to 0. The inventory allocation method according to claim 1. 前記仮引当組合せ解の評価値Bが前記引当組合せ解の評価値A未満の場合に前記仮引当組合せ解を引当組合せ解に設定する第3工程を含み、
予め設定した確率で前記第2工程に代えて前記第3工程を行う、請求項1〜11のいずれか一項に記載の在庫引当方法。
A third step of setting the provisional provision combination solution to the provision combination solution when the evaluation value B of the provisional provision combination solution is less than the evaluation value A of the provision combination solution;
The inventory allocation method according to any one of claims 1 to 11, wherein the third step is performed instead of the second step with a preset probability.
前記複数種の在庫品のうちの互いに連関する性質を示す2種以上の在庫品を含む在庫品群が1以上存在する場合であって、かつ前記第1工程で変更した引当数の在庫品を用いて作製する製品を作製するために引き当てる在庫品を含む在庫品群に対し、当該在庫品群に含まれる全ての在庫品の引当数の総和の下限値が定められている場合、前記第1工程で変更した引当数の在庫品を含む在庫品群に含まれる全ての在庫品の引当数の総和が、前記下限値以上の整数となるように当該在庫品群に含まれる在庫品のうちの前記第1工程で引当数を変更した在庫品以外の在庫品の引当数を変更する準第1工程をさらに含む、請求項1〜12のいずれか一項に記載の在庫引当方法。   In the case where there is one or more inventory groups including two or more types of inventory items that are associated with each other among the plurality of types of inventory items, and the number of inventory items changed in the first step, When a lower limit value of the total number of provisions of all the inventory items included in the inventory group is determined for the inventory group including the inventory to be allocated to produce the product to be used, the first Among the inventory items included in the inventory group, the sum of the allocation numbers of all inventory items included in the inventory group including the inventory number of the allocation number changed in the process is an integer equal to or greater than the lower limit. The inventory allocation method according to any one of claims 1 to 12, further comprising a quasi first step of changing the allocation number of inventory items other than the inventory item whose allocation number has been changed in the first step. 製品を作製するために許容される前記在庫品の種類数に上限が設定されている場合において、当該上限をAとし、当該製品を作製するために必要な前記在庫品の引当数をBとし、当該製品を作製するために引き当てられる各在庫品の引当数の合計値をCとし、次に引当処理を実行するまでに補充される予定の1種の在庫品の補充予定数をDとすると、
当該製品を作製するために引き当てる前記在庫品の種類数が、A−(B−C)÷Dによって算出される値の小数点以下を切り捨てた整数値以下となるように、当該製品を作製するために引き当てた在庫品のうちのいずれか1以上の在庫品の引当数を0にする工程を含む請求項1〜13のいずれか一項に記載の在庫引当方法。
In the case where an upper limit is set for the number of types of inventory that is allowed to produce a product, the upper limit is A, and the number of provisions of the inventory necessary to produce the product is B. Assuming that the total number of allocations for each inventory allocated to produce the product is C, and D is the planned replenishment of one type of inventory that is scheduled to be replenished until the next allocation process is performed,
In order to produce the product so that the number of types of inventory to be allocated to produce the product is equal to or less than an integer value obtained by rounding down the decimal point of the value calculated by A− (BC) ÷ D The inventory allocation method according to any one of claims 1 to 13, further comprising a step of setting the allocation number of any one or more of the inventory items allocated to 0 to zero.
製品を作製するために許容される前記在庫品群の種類数に上限が設定されている場合において、当該上限をAとし、当該製品を作製するために必要な前記在庫品の引当数をBとし、当該製品を作製するために引き当てられる各在庫品の引当数の合計値をCとし、次に引当処理を実行するまでに補充される予定の1種の在庫品群に含まれる全ての在庫品の補充予定数をDとすると、当該製品を作製するために引き当てる前記在庫品群の種類数が、A−(B−C)÷Dによって算出される値の小数点以下を切り捨てた整数値以下となるように、当該製品を作製するために引き当てた在庫品群のうちのいずれか1以上の在庫品群に含まれる全ての在庫品の引当数を0にする工程を含む請求項6、9、11及び13のいずれか一項に記載の在庫引当方法。   In the case where an upper limit is set for the number of types of the inventory group allowed to produce a product, the upper limit is A, and the provision amount of the inventory necessary for producing the product is B. , Where C is the total number of allocations for each inventory allocated to produce the product, and all inventory included in one inventory group to be replenished before the allocation process is executed If the planned replenishment number of D is D, the number of types of the stock group allocated to produce the product is equal to or less than an integer value obtained by rounding down the decimal point of the value calculated by A− (BC) ÷ D. The method further comprises the step of reducing the number of provisions of all the inventory items included in any one or more of the inventory groups allocated to produce the product to 0, Inventory allocation according to any one of 11 and 13 . 製品を作製するために許容される前記在庫品の引当数に下限値が定められている場合において、当該製品を作製するために必要な前記在庫品の引当数から当該製品を作製するために引き当てられる各在庫品の引当数の合計値を引いた値が前記下限値以上となるまで、当該製品を作製するために引き当てた在庫品の引当数を減算する工程を含む請求項1〜15のいずれか一項に記載の在庫引当方法。   In the case where a lower limit is set for the number of inventory items allowed to produce a product, an allocation is made to produce the product from the number of inventory items necessary to produce the product. 16. The method according to any one of claims 1 to 15, further comprising a step of subtracting a reserve number of the inventory allocated to produce the product until a value obtained by subtracting a total value of the allocation count of each inventory product to be equal to or greater than the lower limit value. The inventory allocation method according to claim 1. 前記引当数を減算する工程によって減算された引当数が前記下限値未満となる場合には、当該減算した後の在庫品の引当数を0にする工程を含む請求項16に記載の在庫引当方法。   17. The inventory allocating method according to claim 16, further comprising a step of setting the allocated number of inventory items after the subtraction to 0 when the allocated number subtracted by the step of subtracting the allocated number is less than the lower limit value. . 前記複数種の在庫品のうちの互いに連関する性質を示す2種以上の在庫品を含む在庫品群が1以上存在する場合であって、製品を作製するために引き当てる在庫品を含む在庫品群に含まれる全ての在庫品の引当数の総和に下限値が定められている場合において、当該製品を作製するために必要な前記在庫品の引当数から当該製品を作製するために引き当てられる各在庫品の引当数の合計値を引いた値が前記下限値以上となるまで、当該製品を作製するために引き当てた在庫品の引当数を減算する工程を含む請求項1〜16のいずれか一項に記載の在庫引当方法。   Among the plurality of types of inventory items, there is one or more inventory groups including two or more types of inventory items that exhibit the properties associated with each other, and the inventory items group includes inventory items to be allocated to produce a product. In the case where a lower limit is set for the total number of provisions for all inventory items included in the inventory, each inventory allocated to produce the product from the number of provisions for the inventory necessary to produce the product 17. The method according to any one of claims 1 to 16, further comprising a step of subtracting a reserve number of inventory allocated to produce the product until a value obtained by subtracting a total value of the reserve number of the product is equal to or greater than the lower limit value. The inventory allocation method described in 1. 前記引当数を減算する工程によって引当数を減算された在庫品を含む在庫品群に含まれる全ての在庫品の引当数の総和が、当該製品を作製するために引き当てる在庫品を含む在庫品群に含まれる全ての在庫品の引当数の総和の下限値未満となる場合には、当該減算した後の在庫品を含む在庫品群に含まれる全ての在庫品の引当数を0にする工程を含む請求項18に記載の在庫引当方法。   The inventory group that includes the inventory that the sum of the allocation numbers of all the inventory items included in the inventory group that includes the inventory item that has been subtracted from the allocation number by the step of subtracting the allocation number includes the inventory item that is allocated to produce the product. When the total number of all inventory items included in the inventory is less than the lower limit of the total number of inventory items, the step of setting the number of all inventory items included in the inventory group including the inventory items after the subtraction to zero. The inventory allocation method according to claim 18. 製品を作製するために過去に引き当てた在庫品が存在する場合において、当該過去に引き当てた在庫品の引当数を前記引当組合せ解に取り込む工程をさらに含む請求項1〜17のいずれか一項に記載の在庫引当方法。   18. The method according to any one of claims 1 to 17, further comprising the step of incorporating the number of allocations of the inventory allocated in the past into the allocation combination solution when there is inventory allocated in the past for producing a product. The inventory allocation method described. 同一又は相異なる複数種の製品を作製するために引き当てる1種又は複数種の在庫品の引当数の組合せを設定した引当組合せ解において、任意の1種の前記在庫品の引当数を変更した仮引当組合せ解を作成する第1処理を行う第1処理部と、
前記引当組合せ解の評価値A及び前記仮引当組合せ解の評価値Bを算出し、前記仮引当組合せ解の評価値Bが前記引当組合せ解の評価値A未満の場合に前記引当組合せ解を変更せず、前記仮引当組合せ解の評価値Bが前記引当組合せ解の評価値A以上の場合に前記仮引当組合せ解を新たな引当組合せ解に書き換える第2処理を行う第2処理部と、を含み、
前記第1処理及び前記第2処理を1回以上行うことを特徴とする在庫引当装置。
In a provision combination solution in which a combination of the number of provisions of one or more types of inventory to be allocated in order to produce the same or different types of products, a provisional solution in which the number of provisions of any one type of inventory is changed A first processing unit for performing a first process for creating an allocation combination solution;
An evaluation value A of the provisional combination solution and an evaluation value B of the provisional provisioning combination solution are calculated, and the provisional combination solution is changed when the evaluation value B of the provisional provisioning combination solution is less than the evaluation value A of the provisioning combination solution And a second processing unit that performs a second process of rewriting the provisional provision combination solution to a new provision combination solution when the evaluation value B of the provisional provision combination solution is equal to or greater than the evaluation value A of the provision combination solution, Including
An inventory allocating apparatus that performs the first process and the second process at least once.
JP2016112383A 2015-09-08 2016-06-06 Inventory allocation device and inventory allocation method Active JP6673750B2 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2015176447 2015-09-08
JP2015176447 2015-09-08

Publications (2)

Publication Number Publication Date
JP2017054485A true JP2017054485A (en) 2017-03-16
JP6673750B2 JP6673750B2 (en) 2020-03-25

Family

ID=58320930

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016112383A Active JP6673750B2 (en) 2015-09-08 2016-06-06 Inventory allocation device and inventory allocation method

Country Status (1)

Country Link
JP (1) JP6673750B2 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0796311A (en) * 1993-06-08 1995-04-11 Kobe Steel Ltd Blank layout method
JP2000293595A (en) * 1999-04-01 2000-10-20 Hitachi Ltd Order processing system, delivery time reply system, and order processing / delivery time reply system
JP2003300622A (en) * 2002-04-11 2003-10-21 Sumitomo Light Metal Ind Ltd System and method for assigning surplus material to metal product orders
JP2011197885A (en) * 2010-03-18 2011-10-06 Fujitsu Ltd Apparatus and method for simulating stock allocation
JP2013134651A (en) * 2011-12-27 2013-07-08 Jfe Steel Corp Product allocation method and product allocation device for inventory intermediate product
JP2014102749A (en) * 2012-11-21 2014-06-05 Mitsubishi Heavy Ind Ltd Reserve management device, reserve management program, and reserve management method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0796311A (en) * 1993-06-08 1995-04-11 Kobe Steel Ltd Blank layout method
JP2000293595A (en) * 1999-04-01 2000-10-20 Hitachi Ltd Order processing system, delivery time reply system, and order processing / delivery time reply system
JP2003300622A (en) * 2002-04-11 2003-10-21 Sumitomo Light Metal Ind Ltd System and method for assigning surplus material to metal product orders
JP2011197885A (en) * 2010-03-18 2011-10-06 Fujitsu Ltd Apparatus and method for simulating stock allocation
JP2013134651A (en) * 2011-12-27 2013-07-08 Jfe Steel Corp Product allocation method and product allocation device for inventory intermediate product
JP2014102749A (en) * 2012-11-21 2014-06-05 Mitsubishi Heavy Ind Ltd Reserve management device, reserve management program, and reserve management method

Also Published As

Publication number Publication date
JP6673750B2 (en) 2020-03-25

Similar Documents

Publication Publication Date Title
Méndez et al. Dynamic scheduling in multiproduct batch plants
Paiva et al. Improved heuristic algorithms for the job sequencing and tool switching problem
Mendez et al. An MILP framework for batch reactive scheduling with limited discrete resources
JPH05225205A (en) Sequential defined production planning system
US20140222491A1 (en) Systems and Methods for Determining Pack Allocations
CN114862045A (en) Scheduling optimization method and device, electronic equipment and storage medium
KR20240003201A (en) Scheduling method and apparatus for producing plan
JP4135311B2 (en) Production planning method and system
JP5153668B2 (en) Priority calculation apparatus, program, priority calculation system, and priority calculation method
JP5202177B2 (en) Production planning method, execution program thereof, and execution apparatus thereof
JP2017054485A (en) Stock allocation device and stock allocation method
JP6647966B2 (en) Inventory allocation device and inventory allocation method
JP4909869B2 (en) Material assignment system
JP5442526B2 (en) Schedule creation method, schedule creation program, and schedule creation device
JP6389817B2 (en) Production plan optimization system and production plan optimization method
JP6382766B2 (en) Production plan creation method, production plan creation program, and production plan creation device
Sawik Integer programming approach to reactive scheduling in make-to-order manufacturing
JP5905786B2 (en) Costing program, costing computer, costing device
JP6947517B2 (en) Inventory allocation device and inventory allocation method
JP7603569B2 (en) Work allocation device, work allocation method, and computer program
JP6776157B2 (en) Appropriation work support method and appropriation work support device
US6970756B2 (en) Computer-assisted pull flow production management method
Bilgin et al. Operation assignment and capacity allocation problem in automated manufacturing systems
KR101498528B1 (en) Steel bias cutter allocating plan system and method in cutting Process
JP6425879B2 (en) Process planning system and method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20181203

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20191031

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20191112

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20191206

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20200128

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200218

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20200303

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20200305

R150 Certificate of patent or registration of utility model

Ref document number: 6673750

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150