JP2008276486A - Item distribution system and method - Google Patents

Item distribution system and method Download PDF

Info

Publication number
JP2008276486A
JP2008276486A JP2007118945A JP2007118945A JP2008276486A JP 2008276486 A JP2008276486 A JP 2008276486A JP 2007118945 A JP2007118945 A JP 2007118945A JP 2007118945 A JP2007118945 A JP 2007118945A JP 2008276486 A JP2008276486 A JP 2008276486A
Authority
JP
Japan
Prior art keywords
item
component
initial condition
condition setting
composition ratio
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
JP2007118945A
Other languages
Japanese (ja)
Other versions
JP4035557B1 (en
Inventor
Musashi Shimizu
武左史 清水
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.)
JEANS MATE CORP
Original Assignee
JEANS MATE CORP
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 JEANS MATE CORP filed Critical JEANS MATE CORP
Priority to JP2007118945A priority Critical patent/JP4035557B1/en
Application granted granted Critical
Publication of JP4035557B1 publication Critical patent/JP4035557B1/en
Publication of JP2008276486A publication Critical patent/JP2008276486A/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

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

Abstract

<P>PROBLEM TO BE SOLVED: To properly distribute various types of merchandise to a plurality of retail stores. <P>SOLUTION: This item distribution system is configured to distribute whole or a portion of p types of items to first or q-th reception means, and provided with a storage means for storing the total number of items and the number of items to be received by each reception means; an initial condition setting means for reading and setting initial conditions; a configuration ratio calculation means for calculating a horizontal configuration ratio and a vertical configuration ratio, and for calculating the configuration ratio of components a<SB>mn</SB>as the product of the calculated horizontal configuration ratio and the vertical configuration ratio; a proportional division means for proportionally dividing numerics into components a<SB>mn</SB>; and an adjusting means for adjusting the excess and deficiency of the numerics proportionally divided into the components a<SB>mn</SB>by the proportional division means. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、広くは、商品配分システム及び方法に関し、更に詳しくは、多種類の商品を複数の小売店に適切に配分するシステム及び方法に関する。更に、本発明は、多種類の物品を保管能力に応じて特定の倉庫又は1つの倉庫の特定の格納場所に配分するシステム及び方法や、多くの人員をそれぞれの役割及び適性に応じて様々な部署に配分するシステム及び方法など、多くの分野に応用する可能性を有している。   The present invention generally relates to a product distribution system and method, and more particularly, to a system and method for appropriately distributing various types of products to a plurality of retail stores. Furthermore, the present invention provides a system and method for distributing various types of articles to a specific warehouse or a specific storage location of one warehouse according to storage capacity, and various personnel according to their roles and suitability. It has the potential to be applied in many fields, such as systems and methods for allocating to departments.

小売業において、多種類の商品を扱う企業が、多数の店舗を展開している例を考えよう。現在では、このような例は非常に多く、すぐに、スーパーマーケット、コンビニエンスストア、100円ショップ、洋品店、書店、CDショップ、携帯電話販売店、ドラッグストアなどの典型的な例が考えられる。これらの例から明らかなように、配分すべき商品の種類は膨大であり、配分可能な商品の数も商品ごとに異なる。また、店舗の規模もそれぞれに異なっている。このような場合、どの店舗にどの商品をいくつ配分したらよいのかを決定するのは、困難な問題である。   Let's consider an example where a company that handles many types of products has a large number of stores in the retail industry. At present, there are so many examples, and typical examples such as a supermarket, a convenience store, a 100-yen shop, a clothing store, a bookstore, a CD shop, a mobile phone store, and a drug store can be considered immediately. As is clear from these examples, the types of products to be allocated are enormous, and the number of products that can be allocated varies from product to product. In addition, the scale of the stores is also different. In such a case, it is a difficult problem to determine how many products should be distributed to which stores.

本発明の目的は、従来は解決が困難であったこのアイテム配分問題を解決することである。なお、本発明が適用して配分されるアイテムは、上述したように、商品などの物には限定されず、特定の能力を有する人間を特定の職務の担当と決定する場合なども含む広い概念である。   An object of the present invention is to solve this item allocation problem that has been difficult to solve in the past. Note that the items to which the present invention is applied are not limited to items such as merchandise, as described above, and include a wide concept including the case where a person having a specific ability is determined to be in charge of a specific job. It is.

本発明によると、mを1からpまでの正の整数、nを1からqまでの正の整数として、p行q列のマトリクス(amn)のpq個の非負整数成分amnをコンピュータを用いて決定することによって、T個の第1のアイテムからT個の第pのアイテムまでのp種類のアイテムの全部又は一部を、p種類の合計でV個のアイテムを受け取る第1の受取手段からp種類の合計でV個のアイテムを受け取る第qの受取手段までに配分するアイテム配分システムが提供される。このアイテム配分システムは、各アイテムの総数TないしTと各受取手段が受け取るアイテム数VないしVとが記憶された記憶手段と、前記記憶手段に記憶されている前記第1ないし第pのアイテムのそれぞれの総数であるTないしTと、前記第1ないし第qの受取手段がそれぞれ受け取るVないしVとの初期条件を読み出して設定する初期条件設定手段であって、ただし、前記初期条件と前記マトリクスの非負整数成分との間には、T≧a11+a12+・・・+a1q、T≧a21+a22+・・・+a2q、・・・、T≧ap1+ap2+・・・+apqであり、V=a11+a21+・・・+ap1、V=a12+a22+・・・+ap2、・・・、V=a1q+a2q+・・・+apq)が成立する、初期条件設定手段と、前記初期条件設定手段によって設定された初期条件を用いて、前記マトリクスの第m行第n列の成分amnに関し、水平方向の構成比V/(T+T+・・・+T)と、垂直方向の構成比T/(T+T+・・・+T)とを計算し、計算された水平方向の構成比と垂直方向の構成比との積である成分amnの構成比(V/(T+T+・・・+T))×(T/(T+T+・・・+T))を計算する構成比計算手段と、各成分amnに関し、前記構成比計算手段によって計算された水平方向の構成比と垂直方向の構成比との積と各アイテムの総数との積(V/(T+T+・・・+T))×(T/(T+T+・・・+T))・(T+T+・・・+T)=V・T/(T+T+・・・+T)を計算して、計算の結果として得られる数値の小数点以下を処理し、整数にした上で各成分amnに按分する按分手段と、前記按分手段によって各成分amnに按分された数値において小数点以下を処理した結果として生じた過剰分及び過小分を調整し、前記初期条件設定手段によって設定された初期条件と前記マトリクスの非負整数成分との間の関係を満足するようにする調整手段と、を備えている。 According to the present invention, m is a positive integer from 1 to p, n is a positive integer from 1 to q, and pq non-negative integer components a mn of a matrix of p rows and q columns (a mn ) by determining the, all or part of the p type of item from one of the first item T to the item of T p pieces of the p, first receives 1 item V the sum of p type An item distribution system is provided that distributes from a single receiving means to a qth receiving means for receiving a total of V q items of p types. The item distribution system includes storage means for storing the total number T 1 to T p of each item and the number of items V 1 to V q received by each receiving means, and the first to first items stored in the storage means. initial condition setting means for reading and setting initial conditions of T 1 to T p that are the total number of items of p and V 1 to V q received by the first to qth receiving means, respectively, However, between the initial condition and the non-negative integer component of the matrix, T 1 ≧ a 11 + a 12 +... + A 1q , T 2 ≧ a 21 + a 22 +... + A 2q,. T pa p1 + a p2 is + ··· + a pq, V 1 = a 11 + a 21 + ··· + a p1, V 2 = a 12 + a 22 + ··· + a p2, ···, V q = a 1q + 2q + ··· + a pq) is satisfied, the initial condition setting means, using the set initial condition by the initial condition setting means relates component a mn of the m-th row and n columns of said matrix, horizontal The composition ratio V n / (T 1 + T 2 +... + T p ) and the composition ratio T m / (T 1 + T 2 +... + T p ) in the vertical direction are calculated, and the calculated horizontal direction Of the component a mn , which is the product of the component ratio and the component ratio in the vertical direction (V n / (T 1 + T 2 +... + T p )) × (T m / (T 1 + T 2 +) + T p )) for calculating the composition ratio, and for each component a mn , the product of the horizontal composition ratio and the vertical composition ratio calculated by the composition ratio computation means and the total number of each item Product (V n / (T 1 + T 2 +... + T p )) × (T m / (T 1 + T 2 +... + T p )) · (T 1 + T 2 +... + T p ) = V n · T m / (T 1 + T 2 +... + T p ) processing the decimal numerical value obtained following the apportioning means for apportioning the components a mn in terms of the integer, the excess produced as a result of processing the decimal in the numerical values are proportionally distributed to each component a mn by said proportional division means Adjusting means for adjusting the minutes and the under minutes so as to satisfy the relationship between the initial condition set by the initial condition setting means and the non-negative integer component of the matrix.

また、本発明によると、mを1からpまでの正の整数、nを1からqまでの正の整数として、p行q列のマトリクス(amn)のpq個の非負整数成分amnをコンピュータを用いて決定することによって、T個の第1のアイテムからT個の第pのアイテムまでのp種類のアイテムの全部又は一部を、p種類の合計でV個のアイテムを受け取る第1の受取手段からp種類の合計でV個のアイテムを受け取る第qの受取手段までに配分するアイテム配分システムが提供される。このアイテム配分システムは、各アイテムの総数TないしTと各受取手段が受け取るアイテム数VないしVとが記憶された記憶手段と、前記記憶手段に記憶されている前記第1ないし第pのアイテムのそれぞれの総数であるTないしTと、前記第1ないし第qの受取手段がそれぞれ受け取るVないしVとの初期条件を読み出して設定する初期条件設定手段であって、ただし、前記初期条件と前記マトリクスの非負整数成分との間には、T≧a11+a12+・・・+a1q、T≧a21+a22+・・・+a2q、・・・、T≧ap1+ap2+・・・+apqであり、V=a11+a21+・・・+ap1、V=a12+a22+・・・+ap2、・・・、V=a1q+a2q+・・・+apq)が成立する、初期条件設定手段と、前記初期条件設定手段によって設定された初期条件を用いて、前記マトリクスの第m行第n列の成分amnに関し、水平方向の構成比V/(T+T+・・・+T)と、垂直方向の構成比T/(T+T+・・・+T)とを計算し、計算された水平方向の構成比と垂直方向の構成比との積である成分amnの構成比(V/(T+T+・・・+T))×(T/(T+T+・・・+T))を計算する構成比計算手段と、各成分amnに関し、前記構成比計算手段によって計算された水平方向の構成比と垂直方向の構成比との積と各アイテムの総数との積(V/(T+T+・・・+T))×(T/(T+T+・・・+T))・(T+T+・・・+T)=V・T/(T+T+・・・+T)を計算して、計算の結果として得られる数値の小数点以下を切り上げ処理し、整数にした上で各成分amnに按分する按分手段と、前記按分手段によって各成分amnに按分された数値において小数点以下を切り上げた結果として生じた過剰分及び過小分を調整し、前記初期条件設定手段によって設定された初期条件と前記マトリクスの非負整数成分との間の関係を満足するようにする調整手段と、を備えている。 Further, according to the present invention, m is a positive integer from 1 to p, n is a positive integer from 1 to q, and pq non-negative integer components a mn of a matrix of (a mn ) in p rows and q columns are by determining using a computer, all or part of the p type of item from the first item one T of T to p number of items of the p, 1 item V the sum of p type An item distribution system is provided that distributes from a first receiving means for receiving to a qth receiving means for receiving a total of p types of V q items. The item distribution system includes storage means for storing the total number T 1 to T p of each item and the number of items V 1 to V q received by each receiving means, and the first to first items stored in the storage means. initial condition setting means for reading and setting initial conditions of T 1 to T p that are the total number of items of p and V 1 to V q received by the first to qth receiving means, respectively, However, between the initial condition and the non-negative integer component of the matrix, T 1 ≧ a 11 + a 12 +... + A 1q , T 2 ≧ a 21 + a 22 +... + A 2q,. T pa p1 + a p2 is + ··· + a pq, V 1 = a 11 + a 21 + ··· + a p1, V 2 = a 12 + a 22 + ··· + a p2, ···, V q = a 1q + 2q + ··· + a pq) is satisfied, the initial condition setting means, using the set initial condition by the initial condition setting means relates component a mn of the m-th row and n columns of said matrix, horizontal The composition ratio V n / (T 1 + T 2 +... + T p ) and the composition ratio T m / (T 1 + T 2 +... + T p ) in the vertical direction are calculated, and the calculated horizontal direction Of the component a mn , which is the product of the component ratio and the component ratio in the vertical direction (V n / (T 1 + T 2 +... + T p )) × (T m / (T 1 + T 2 +) + T p )) for calculating the composition ratio, and for each component a mn , the product of the horizontal composition ratio and the vertical composition ratio calculated by the composition ratio computation means and the total number of each item Product (V n / (T 1 + T 2 +... + T p )) × (T m / (T 1 + T 2 +... + T p )) · (T 1 + T 2 +... + T p ) = V n · T m / (T 1 + T 2 +... + T p ) decimal numbers obtained following the round-up process, a proportional division means for proportionally to each component a mn in terms of the integer, caused as a result of rounding up the decimal point in numeric values are proportionally distributed to each component a mn by said proportional division means Adjusting means for adjusting the excess and the under, and satisfying the relationship between the initial condition set by the initial condition setting means and the non-negative integer component of the matrix.

更に、本発明によるアイテム配分システムにおいて、前記調整手段は、前記過剰分及び過小分の調整の順序を予め設定するランキング処理手段と、前記按分手段によって按分された各成分amnの各行及び各列の総和が前記初期条件設定手段によって予め設定されている初期条件を超える場合には、前記ランキング処理手段によって設定された順序に従い、前記初期条件設定手段によって予め設定されている初期条件の範囲までの各成分amnを1とし、前記総和を超える成分からは0とする基本調整手段と、垂直方向の成分の総和が前記初期条件設定手段によって設定されたV未満である列に含まれるp個の成分において、前記ランキング処理手段によって設定された順序に従い、前記初期条件設定手段によって設定された各成分Vと等しくなるまで各成分amnに1を加算する加算処理手段と、前記マトリクスの水平方向の成分の総和が前記初期条件設定手段によって設定されたTを超えている行に含まれるq個の成分において、前記ランキング処理手段によって設定された順序に従い、各成分amnから1を減算する過剰分緩和手段と、垂直方向の成分の総和が前記初期条件設定手段によって設定されたVを超えている列に含まれるp個の成分において、前記ランキング処理手段によって設定された順序に従い、前記初期条件設定手段によって設定されたVと等しくなるまで各成分amnから1を減算し、すべての列における垂直成分の総和を前記初期条件設定手段によって設定されたVと等しくする減算処理手段と、水平方向の成分の総和が前記初期条件設定手段によって設定されたTを超えている第1の行と、水平方向の成分の総和が前記初期条件設定手段によって設定されたT未満である第2の行とを特定し、第1の行の成分から1を減算し第2の行の成分に1を加算する処理を、すべての行における水平方向の成分の総和が前記初期条件設定手段によって設定されたT以下となるまで継続するスワップ処理手段と、を含みうる。 Furthermore, in the item distribution system according to the present invention, the adjusting means includes a ranking processing means for presetting the adjustment order of the excess and undersize, and each row and each column of each component a mn apportioned by the apportioning means. If the sum exceeds the initial condition preset by the initial condition setting means, it follows the order set by the ranking processing means and reaches the range of the initial condition preset by the initial condition setting means. Basic adjustment means for setting each component a mn to 1 and 0 for components exceeding the sum, and p pieces included in a column in which the sum of the components in the vertical direction is less than V n set by the initial condition setting means In accordance with the order set by the ranking processing means, each component V n set by the initial condition setting means Addition processing means for adding 1 to each component a mn until equal to, q q included in a row in which the sum of the horizontal components of the matrix exceeds T m set by the initial condition setting means In the component, according to the order set by the ranking processing means, excess relaxation means for subtracting 1 from each component a mn, and the sum of vertical components exceeds V n set by the initial condition setting means Subtracting 1 from each component a mn according to the order set by the ranking processing means until it becomes equal to V n set by the initial condition setting means, Subtracting means for making the sum of vertical components equal to V n set by the initial condition setting means, and the sum of horizontal components is the initial condition. Identifying a first line exceeds a set T m by matter setting means, and a second row sum of the horizontal component is T less than m, which is set by the initial condition setting means, the the process of adding 1 to the component of the second row by subtracting 1 from the components of the first row, until the sum of the horizontal component in all rows equal to or smaller than T m which is set by the initial condition setting means Continued swap processing means.

以上では、本発明をアイテム配分システムとして把握したが、本発明を、特許請求の範囲の請求項4ないし請求項6に記載されたアイテム配分方法として把握することも可能であるし、更に、請求項7及び請求項8に記載されたように、請求項4ないし請求項6のいずれかの請求項に記載されたアイテム配分方法に含まれる各ステップをコンピュータに実行させるコンピュータ・プログラムが記憶されたコンピュータ可読な記憶媒体、又は、そのようなコンピュータ・プログラム自体として把握することも可能である。   Although the present invention has been grasped as an item distribution system in the above, the present invention can be grasped as an item distribution method described in claims 4 to 6 of the claims. As described in Item 7 and Item 8, a computer program for causing a computer to execute each step included in the item distribution method described in any one of Items 4 to 6 is stored. It can also be understood as a computer-readable storage medium or such a computer program itself.

1.具体例を用いた説明
以下では、本発明を、「12種類の商品の在庫を、20店舗に配分する」という処理を例に用いて説明する。本発明のパーソナル・コンピュータなどにおける処理を示すため、コンピュータのディスプレイ上に、縦軸(Y軸)に在庫を、横軸(X軸)に店舗をとったマトリクスを考える。そのようなマトリクスの例が、図1に示されている。なお、ここで在庫とは、配分される商品の現在数を意味する。縦軸には12種類の商品があり、横軸には20店舗があるから、このマトリクスを構成するセルの数は、12X20=240である。図1に示されているように、商品(アイテム)は、Item_01からItem_12まで合計400点の在庫がある。これらの在庫について、1号店から20号店まで、50点、45点、40点、・・・、5点というように合計の投入指示数を設定する。すると、本発明による商品配分システムの動作により、各アイテムについて、各店舗に配分する数量が自動的に決定される。
1. Explanation using a specific example :
Hereinafter, the present invention will be described using an example of a process of “allocating stocks of 12 types of products to 20 stores”. In order to show the processing in the personal computer or the like of the present invention, consider a matrix on the computer display with inventory on the vertical axis (Y axis) and stores on the horizontal axis (X axis). An example of such a matrix is shown in FIG. Here, the stock means the current number of products to be allocated. Since there are 12 types of products on the vertical axis and 20 stores on the horizontal axis, the number of cells constituting this matrix is 12 × 20 = 240. As shown in FIG. 1, the items (items) have a total of 400 items from Item — 01 to Item — 12. For these stocks, the total number of input instructions is set to 50 points, 45 points, 40 points,..., 5 points from the 1st store to the 20th store. Then, by the operation of the product distribution system according to the present invention, the quantity to be distributed to each store is automatically determined for each item.

詳細は後述するが、本発明では、合計で400点の在庫を、まず最初に、縦の構成比と横の構成比とに従って按分して各セルの値を決定する。次に、縦数値(在庫)の多い順、横数値(投入指示数)の多い順にそれぞれの順位を決定し、その順位に従って各セルの値を調整し、縦計及び横計を合わせる端数処理を行う。以上は、在庫数の合計と投入指示数の合計とが等しい場合であるが、本発明は、在庫の全部ではなく一部のみを投入する場合、すなわち、在庫数合計≧投入指示数合計の場合にも用いることができる。   Although the details will be described later, in the present invention, the total of 400 stocks are first divided according to the vertical composition ratio and the horizontal composition ratio to determine the value of each cell. Next, determine each rank in the order of descending numerical value (inventory) and horizontal value (number of input instructions), adjust the value of each cell according to the rank, and perform the rounding process to match the vertical and horizontal scales. Do. The above is the case where the total number of stocks is equal to the total number of input instructions. However, the present invention applies only a part rather than all of the stock, that is, the case where the total number of stocks ≧ the total number of input instructions. Can also be used.

本発明による例1の場合の処理では、第1に、在庫が多いアイテムは各店においても多く配分されること、第2に、各店舗においてなるべくたくさんのアイテムが配分されることの2点を基本方針とする。その上で、(1)初期処理、(2)基本調整、(3)投入指示数合わせ(加算)、(4)過剰分の緩和、(5)投入指示数合わせ(減算)、(6)スワップ処理(アイテム間の在庫数合わせ)という6つの処理を行う。   In the processing in the case of Example 1 according to the present invention, firstly, there are two basic points: items with a large stock are allocated at each store, and secondly, as many items as possible are allocated at each store. A policy. In addition, (1) initial processing, (2) basic adjustment, (3) input instruction number adjustment (addition), (4) excess relaxation, (5) input instruction number adjustment (subtraction), (6) swap Six processes of processing (matching the number of inventory between items) are performed.

(1)初期処理:
最初に、初期処理について説明する。初期処理では、入力処理、構成比による按分、ランキング処理という3つの処理が行われる。
(1) Initial processing:
First, the initial process will be described. In the initial process, three processes are performed: input process, apportioning by composition ratio, and ranking process.

(1−1)入力処理:
入力処理では、図1に示されているように、計算の元データとなる数値が入力データとしてX軸及びY軸に入力される。その際、X軸には店舗別に投入指示数が入力され、Y軸にはアイテム別の在庫数が入力される。この例では、12種類のアイテムを20店舗に配分することを考えているのであるが、12種類のアイテムの合計は400であるとする。アイテム1からアイテム12まで、それぞれのアイテムの数は図1の縦軸に示されている通りであり、それぞれの店舗に配分されるアイテムの総数は図1の横軸に示されている通りである。この例の場合、すべてのアイテムがいずれかの店舗に配分されることを想定しているので、X軸合計=Y軸合計=400となる。
(1-1) Input processing:
In the input process, as shown in FIG. 1, numerical values that are the original data of the calculation are input as input data to the X axis and the Y axis. At that time, the number of input instructions is input for each store on the X axis, and the number of stocks for each item is input on the Y axis. In this example, 12 types of items are considered to be distributed to 20 stores, but the total of 12 types of items is assumed to be 400. From item 1 to item 12, the number of each item is as shown on the vertical axis in FIG. 1, and the total number of items allocated to each store is as shown on the horizontal axis in FIG. is there. In this example, since it is assumed that all items are distributed to any store, X-axis total = Y-axis total = 400.

(1−2)構成比による按分:
最初に、各セルにおける数値の全体の合計に対する構成比を計算し、その比率を用いて在庫の全体を各セルに按分する。この例の場合、小数点以下は切り上げて整数とした。
(1-2) Apportionment by composition ratio:
First, the composition ratio with respect to the total sum of the numerical values in each cell is calculated, and the entire inventory is allocated to each cell using the ratio. In this example, the decimal part is rounded up to an integer.

実際には、X軸構成比=店舗投入指示数÷在庫総数とY軸構成比=在庫数÷在庫総数とを計算し、(X軸構成比)×(Y軸構成比)=セルの構成比を計算する。具体例を用いて計算を実行してみると、1号店とアイテム1(Item_01)との交点におけるセルの構成比は、(店舗投入指示数÷在庫総数)×(在庫数÷在庫総数)=(50÷400)×(120÷400)=0.125×0.3=3.75%となる。そして、このセルに配分される値は、在庫数総数×セルの構成比であるから、400×3.75%=15となる。以上の計算において、セルの値を算出する時に生じる小数点以下は切り上げている。切り上げとしている理由は、各店舗においてなるべくたくさんのアイテムを配分するためである。図2には、以上の計算をすべてのセルに対して行い、得られた数値をすべてのセルに配分した状態が示されている。図2の右下に示されているように、配分されたアイテム数が10以上、配分されたアイテム数が4から9、配分されたアイテムが2から3のセルには、3段階の濃度でドットが付されている。配分されたアイテムが1のセルにはドットは付されていない。   Actually, X-axis composition ratio = store input instruction number / total number of inventory and Y-axis composition ratio = inventory quantity / total number of inventory is calculated, and (X-axis composition ratio) × (Y-axis composition ratio) = cell composition ratio Calculate When calculation is performed using a specific example, the composition ratio of the cells at the intersection of the first store and item 1 (Item_01) is (store input instruction number ÷ total number of stocks) × (inventory number ÷ total number of stocks) = (50 ÷ 400) × (120 ÷ 400) = 0.125 × 0.3 = 3.75%. Since the value allocated to this cell is the total number of stocks × the composition ratio of the cells, 400 × 3.75% = 15. In the above calculation, the decimal part generated when calculating the cell value is rounded up. The reason for rounding up is to distribute as many items as possible at each store. FIG. 2 shows a state in which the above calculation is performed for all the cells and the obtained numerical values are distributed to all the cells. As shown in the lower right of FIG. 2, a cell having 10 or more allocated items, 4 to 9 allocated items, and 2 to 3 allocated items has three levels of density. A dot is attached. No dot is attached to a cell in which the allocated item is 1.

(1−3)ランキング処理:
次に、X軸及びY軸のそれぞれに対しランキング処理をする。ランキング処理の結果として得られる順位は、後述するプロセスにおいて、各セルの加算や減算処理を行なう時の順番として使用される。X軸のランキング処理では、投入指示数の大きい順に順位が付される。同着の場合は処理の早い方を上位とする。Y軸のランキング処理では、在庫数の大きい順に順位が付され、同着の場合は処理の早い方を上位とする。図3には、X軸の上側及びY軸の左側にランキングが付された様子が示されている。
(1-3) Ranking process:
Next, ranking processing is performed for each of the X axis and the Y axis. The order obtained as a result of the ranking process is used as an order when adding or subtracting each cell in the process described later. In the X-axis ranking process, the rank is assigned in descending order of the number of input instructions. In the case of arrival at the same time, the one with the faster processing is the higher rank. In the ranking process on the Y-axis, the order is assigned in descending order of the number of stocks. FIG. 3 shows the ranking on the upper side of the X axis and the left side of the Y axis.

(2)基本調整:
次は、基本調整である。これまでの処理の結果、構成比に従ってセルの値が埋まっているが、X軸及びY軸においてセルの個数が入力値より大きい場合には、すべてのセルにおいて小数点以下の切り上げ処理により1以上の数値が配分されているので、合計が入力値を上回る。これに該当する列または行について、ランキング順に入力値順位まではセルに1を配分し、その他は0を配分する調整を最初に行なう。
(2) Basic adjustment:
Next is the basic adjustment. As a result of the processing so far, the cell values are filled according to the composition ratio, but when the number of cells is larger than the input value on the X-axis and Y-axis, all cells are rounded up to one or more by rounding up the decimal point. Since the numerical values are allocated, the total exceeds the input value. For the column or row corresponding to this, the adjustment is performed such that 1 is allocated to the cells up to the input value rank in the ranking order and 0 is allocated to the others.

(2−1)投入指示数<アイテム数の場合:
構成比による按分を行った際に、小数点以下を切り上げる処理を行っているため、現時点では、図2及び図3に示されているように、すべてのセルに最低でも1が配分されており、アイテム数が12なので各店舗に配分されている投入数は、理論的には、最低でも12である(実際には、図2及び図3に示されているように、18号店から20号店では最低でも13になっている)。しかし、投入指示数が5や10のように12よりも小さな店舗には余分に配分されていることになり、投入指示数に合わせる処理が必要となる。投入指示数がアイテム数である12に満たない店舗を検索すると、この例の場合には、10号店、11号店、13号店、17号店から20号店の7店舗が該当する。これら7つの店舗に対しては、在庫ランクの高い順に、投入指示数分まではセルに1を配分し、それ以外のセルには0を配分する。例えば、20号店の場合、アイテム1からアイテム5までには1を配分し、アイテム6からアイテム12までには0を配分する。以上の調整を行った結果が図4に示されている。図4において、太い点線で囲まれているのが、以上の処理がなされた箇所である。
(2-1) When the number of input instructions <the number of items:
At the time of apportioning by the composition ratio, since the process of rounding up the decimal point is performed, as shown in FIGS. 2 and 3, at least 1 is allocated to all the cells at this time. Since the number of items is 12, the number of inputs allocated to each store is theoretically at least 12 (in practice, as shown in FIGS. 2 and 3, the 18th store to the 20th store). The minimum is 13 in the store). However, since the number of input instructions is excessively distributed to stores smaller than 12 such as 5 or 10, processing corresponding to the number of input instructions is required. In the case of this example, when the number of input instructions is less than 12, which is the number of items, 7 stores from the 10th store, the 11th store, the 13th store, and the 17th store to the 20th store are applicable. For these seven stores, 1 is allocated to the cells up to the number of input instructions in descending order of inventory rank, and 0 is allocated to the other cells. For example, in the case of the 20th store, 1 is allocated to items 1 to 5 and 0 is allocated to items 6 to 12. The result of the above adjustment is shown in FIG. In FIG. 4, a portion surrounded by a thick dotted line is a place where the above processing is performed.

(2−2)在庫数<店舗数の場合:
図4に示された処理では、列方向すなわち縦方向の合計を考察したのであるが、行方向すなわち横方向の合計を考察して、在庫についても同様の調整を行なう。図5において、太い点線で囲まれているのが今回の処理の対象となる箇所である。店舗数である20よりも配分可能な数が少ないアイテムに着目すると、この例の場合、アイテム6からアイテム12である。これらのアイテムについては、投入指示数ランクの高い順に在庫数分まではセルに1を配分し、それ以外のセルには0を配分する。しかし、注意すべきは、図4での処理で店舗投入数を調整した時に「0」にしたセルには「1」を入れないことである。具体的には、アイテム12の場合、投入指示数ランクの高い方から1号店、2号店、3号店、15号店、4号店には1を配分し、それ以外の店舗には0を配分する。
(2-2) If the number of stocks <the number of stores:
In the processing shown in FIG. 4, the sum in the column direction, that is, the vertical direction is considered, but the same adjustment is performed for the stock in consideration of the sum in the row direction, that is, the horizontal direction. In FIG. 5, a portion to be processed this time is surrounded by a thick dotted line. When attention is paid to an item whose number that can be allocated is less than 20, which is the number of stores, in this example, items 6 to 12 are used. For these items, 1 is allocated to cells up to the number of stocks in descending order of input instruction rank, and 0 is allocated to other cells. However, it should be noted that “1” is not placed in a cell that is set to “0” when the number of stores input is adjusted in the process of FIG. Specifically, in the case of item 12, 1 is allocated to the 1st store, the 2nd store, the 3rd store, the 15th store, the 4th store from the one with the highest input instruction rank, and the other stores are allocated. Allocate 0.

(3)投入指示数合わせ(加算):
次に、当初に想定されていた投入指示数よりもこの段階までの計算結果の方が少ない店舗に対して加算処理を行う。具体的には、在庫の多いアイテムの順に、店舗投入数=投入指示数となるまで、セルに1を加算する。具体的には、以下で詳述するが、店舗投入数<投入指示数となっている店舗を特定する、在庫数ランク1位のアイテムのセルを特定する、該当セルに1を加算する、まだ店舗投入数<投入指示数であれば次の在庫数ランクのアイテムに移り1を加算する、店舗投入数=投入指示数となるまで以上の処理を繰り返す、店舗投入数=投入指示数となったら次の投入が足りない店舗へ移り同様の加算処理を行なう、という手順で処理が進行する。
(3) Matching the number of input instructions (addition):
Next, an addition process is performed for a store whose calculation result up to this stage is smaller than the number of input instructions assumed at the beginning. Specifically, 1 is added to a cell in the order of items in stock until the number of stores input = the number of input instructions. Specifically, as will be described in detail below, the number of stores input <the number of input instructions is specified, the cell of the item with the highest inventory rank is specified, 1 is added to the corresponding cell, If store input count <input instruction number, move to item of next inventory number rank and add 1; repeat above process until store input number = input instruction number, if store input number = input instruction number The process proceeds according to the procedure of moving to the store where the next input is insufficient and performing the same addition process.

(3−1)投入指示数合わせ(加算1):
以上の処理の結果である現在の店舗投入数(縦計)が投入指示数に満たない店舗に対して加算処理を行い、指示数に一致させる。図5に示されている現在までの配分数を参照すると、現時点までに1号店には49点が配分されており、投入指示数より1だけ不足していることがわかる。他にも不足している店舗はあるが、投入指示数の多い店舗の順に処理を行うので、1号店に対して最初に加算を行う。よって、アイテム1に1を加算すると、セルの値は15から16に変更され、図6に示されているように、投入が指示された50点が1号店に配分されたことになる。
(3-1) Adjustment of the number of input instructions (addition 1):
Addition processing is performed on stores where the current store input number (vertical total), which is the result of the above processing, is less than the input instruction number, to match the instruction number. Referring to the number of distributions up to now shown in FIG. 5, it can be seen that 49 points have been distributed to the first store so far, which is one less than the number of input instructions. Although there are other shortages, the processing is performed in the order of the stores with the largest number of input instructions, so the first addition is performed for the first store. Therefore, when 1 is added to item 1, the value of the cell is changed from 15 to 16, and as shown in FIG. 6, 50 points instructed to be placed are distributed to the first store.

(3−2)投入指示数合わせ(加算2):
同様に、図6に示されている現在までの配分数を参照すると、現時点までに10号店には7点が配分されており、投入指示数より3だけ不足していることがわかる。よって、アイテム1に1を加算するとセルの値は1から2に変更され、アイテム2に1を加算するとセルの値は1から2に変更され、アイテム3に1を加算するとセルの値は1から2に変更され、以上の結果として、図7に示されているように、投入が指示された10点が10号店に配分されたことになる。
(3-2) Matching the number of input instructions (addition 2):
Similarly, referring to the distribution number up to the present shown in FIG. 6, it can be seen that seven points have been distributed to the tenth store so far, which is three less than the number of input instructions. Thus, adding 1 to item 1 changes the cell value from 1 to 2, adding 1 to item 2 changes the cell value from 1 to 2, and adding 1 to item 3 causes the cell value to be 1 As a result of the above, as shown in FIG. 7, 10 points instructed to be distributed are distributed to the tenth store.

(3−3)投入指示数合わせ(加算3):
同様に、図7に示されている現在までの配分数を参照すると、現時点までに11号店には7点が配分されており、投入指示数より3だけ不足していることがわかる。よって、アイテム1に1を加算するとセルの値は1から2に変更され、アイテム2に1を加算するとセルの値は1から2に変更され、アイテム3に1を加算するとセルの値は1から2に変更され、以上の結果として、図8に示されているように、投入が指示された10点が11号店に配分されたことになる。
(3-3) Matching the number of input instructions (addition 3):
Similarly, referring to the distribution number up to the present shown in FIG. 7, it can be seen that seven points have been distributed to the 11th store so far, which is three less than the number of input instructions. Thus, adding 1 to item 1 changes the cell value from 1 to 2, adding 1 to item 2 changes the cell value from 1 to 2, and adding 1 to item 3 causes the cell value to be 1 As a result of the above, as shown in FIG. 8, 10 points instructed to be distributed are distributed to the 11th store.

(3−4)投入指示数合わせ(加算4):
同様に、図8に示されている現在までの配分数を参照すると、現時点までに13号店には5点が配分されており、投入指示数より5だけ不足していることがわかる。よって、アイテム1に1を加算するとセルの値は1から2に変更され、アイテム2に1を加算するとセルの値は1から2に変更され、アイテム3に1を加算するとセルの値は1から2に変更され、アイテム4に1を加算するとセルの値は1から2に変更され、アイテム5に1を加算するとセルの値は1から2に変更され、以上の結果として、図9に示されているように、投入が指示された10点が13号店に配分されたことになる。
(3-4) Adjusting the number of input instructions (addition 4):
Similarly, referring to the distribution number up to the present shown in FIG. 8, it is understood that five points have been distributed to the 13th store so far, which is 5 less than the input instruction number. Thus, adding 1 to item 1 changes the cell value from 1 to 2, adding 1 to item 2 changes the cell value from 1 to 2, and adding 1 to item 3 causes the cell value to be 1 From 1 to 2, adding 1 to item 4 changes the cell value from 1 to 2, and adding 1 to item 5 changes the cell value from 1 to 2. As a result of the above, FIG. As shown, 10 points instructed to be input are distributed to the 13th store.

(3−5)投入指示数合わせ(加算5):
同様に、図9に示されている現在までの配分数を参照すると、現時点までに17号店には5点が配分されており、投入指示数より5だけ不足していることがわかる。よって、アイテム1に1を加算するとセルの値は1から2に変更され、アイテム2に1を加算するとセルの値は1から2に変更され、アイテム3に1を加算するとセルの値は1から2に変更され、アイテム4に1を加算するとセルの値は1から2に変更され、アイテム5に1を加算するとセルの値は1から2に変更され、以上の結果として、図10に示されているように、投入が指示された10点が17号店に配分されたことになる。
(3-5) Matching the number of input instructions (addition 5):
Similarly, referring to the number of distributions up to now shown in FIG. 9, it can be seen that five points have been allocated to the 17th store so far, which is five less than the number of input instructions. Thus, adding 1 to item 1 changes the cell value from 1 to 2, adding 1 to item 2 changes the cell value from 1 to 2, and adding 1 to item 3 causes the cell value to be 1 From 1 to 2, adding 1 to item 4 changes the cell value from 1 to 2, and adding 1 to item 5 changes the cell value from 1 to 2. As a result of the above, FIG. As shown, 10 points instructed to be input are distributed to the 17th store.

(4)過剰分の緩和:
ここまでの処理で、投入指示数に対し計算結果の店舗投入数が足りない店舗に加算処理をして数合わせが済んだので、次は逆に投入が指示されている数量を超えて配分がなされている店舗に対して減算処理を行うのであるが、その前にセルの歯抜け緩和のための処理を行う。
(4) Mitigation of excess:
In the processing so far, the addition processing was done to the store where the number of store inputs in the calculation result is insufficient for the number of input instructions, and the number adjustment was completed, so the next allocation will exceed the number instructed to input A subtraction process is performed on the store that has been made, but before that, a process for reducing the missing teeth of the cell is performed.

この過剰分緩和処理は、上述した(3)の加算処理とは逆に減算処理を行う前段階の処理である。過剰分緩和処理がなされない場合には、店舗投入数>投入指示数の店舗に対して各セルから1を減算すると0になってしまうセルが頻発し、マトリクス全体を見ると歯抜けの箇所が多くなる可能性がある。しかし、大前提として既に述べたように、本発明における商品配分での基本方針は、第1に、在庫が多いアイテムは各店においても多く配分されること、第2に、各店舗においてなるべくたくさんのアイテムが配分されることの2点であった。後者の「各店舗においてなるべくたくさんのアイテムが配分されること」という条件は、「欠番が生じる店舗を可能な限り少なくする」と言い換えることが可能であり、多種類の商品を多くの店舗に配分する際に要求される極めて自然な条件といえるだろう。セルの歯抜け緩和のための処理が必要なのは、この条件を満たすためである。   This excess mitigation process is a process in the previous stage in which a subtraction process is performed contrary to the addition process of (3) described above. When the excessive amount mitigation process is not performed, a cell that becomes 0 when subtracting 1 from each cell for stores with the number of stores input> the number of input instructions is frequently generated. There is a possibility of increasing. However, as already described as a major premise, the basic policy for product distribution in the present invention is that, firstly, many items in stock are distributed at each store, and second, as many items as possible at each store. It was two points that items were allocated. The latter condition of “allocating as many items as possible at each store” can be rephrased as “to minimize the number of stores with missing numbers as much as possible”, and distribute many types of products to many stores. It can be said that it is a very natural condition that is required when doing so. The treatment for alleviating the missing teeth of the cell is necessary to satisfy this condition.

実際には、店舗投入数>投入指示数の店舗において、在庫オーバーしているアイテムがあるのならば、そのアイテムについて前もって1を減算して、在庫オーバー分だけ店舗投入数の過剰分を緩和しておく。具体的な処理としては、在庫数ランクの低い順に在庫オーバーしているアイテムを特定する、そのアイテム特定後に店舗投入数>投入指示数となっている店舗のセルを特定する、そのセルの値が1より大きければ1だけ減算する、という手順で処理がなされる。店舗投入数を優先的に揃えるためであるから、アイテム特定後は店舗の減算処理は優先的に行なう。従って、途中で在庫オーバーではなくなる場合があっても、減算処理は継続される。   Actually, if there is an item that is overstocked at the store where the number of store inputs> the number of input instructions, subtract 1 in advance for that item to reduce the excess of store inputs by the excess inventory. Keep it. As specific processing, an item that is overstocked in order from the lowest inventory number rank is specified. After specifying the item, a store cell in which the number of store inputs> the number of input instructions is specified. If it is greater than one, the process is performed by subtracting one. This is for preferentially arranging the number of stores inserted, and therefore, after the item is specified, the store subtraction process is performed with priority. Therefore, the subtraction process is continued even if the stock is not over on the way.

なお、この過剰分の緩和処理は、在庫オーバー、投入オーバーの過剰分を少し減らして緩和しているに留まる。上述の通り、この処理の後で、店舗投入数の過剰店舗に対して完全な数合わせのための減算処理を行なう。   Note that this excess mitigation process only mitigates by slightly reducing the excess of inventory over and input over. As described above, after this process, a subtraction process for complete number adjustment is performed on the excessive number of stores input.

(4−1)過剰分の緩和(減算1):
在庫オーバーしているアイテムを在庫数ランクの低い順に特定し、店舗投入数(縦計)が投入指示数を超えている店舗に対し減算処理をして過剰分を緩和する。この時点までの処理結果が示されている図10を参照すると、アイテム5は配分可能な在庫が20であるにもかかわらず、この時点までに30が配分され、過剰分が10である。従って、投入オーバーしている店舗のセルの減算処理を行う。具体的には、2号店セルで1を減算してセルの値を3から2に変更し、4号店セルで1を減算してセルの値を2から1に変更し、6号店セルで1を減算してセルの値を2から1に変更し、15号店セルで1を減算してセルの値を2から1に変更する。この減算の結果として配分済の数量は30から26に変更されたので、過剰分は10から6に減少した。
(4-1) Mitigation of excess (subtraction 1):
Items that are in stock are identified in ascending order of the inventory number rank, and the excess is reduced by subtracting the stores whose number of stores (vertical total) exceeds the number of inputs. Referring to FIG. 10 in which the processing result up to this point is shown, even though the inventory that can be allocated to the item 5 is 20, 30 is allocated up to this point and the excess is 10. Therefore, the subtraction process is performed on the cell of the store that has been overfilled. Specifically, 1 is subtracted from the 2nd store cell to change the cell value from 3 to 2, and 1 is subtracted from the 4th store cell to change the cell value from 2 to 1. 1 is subtracted from the cell to change the cell value from 2 to 1, and 1 is subtracted from the 15th store cell to change the cell value from 2 to 1. As a result of this subtraction, the allocated quantity was changed from 30 to 26, so the excess was reduced from 10 to 6.

(4−2)過剰分の緩和(減算2):
この時点までの処理の結果が示された図11を参照して、次に在庫数ランクが低い順で見ていくと、アイテム4は配分可能な在庫が40であるにもかかわらず、この時点までに47が配分され、過剰分が7である。従って、投入オーバーしている店舗のセルの減算処理を行う。具体的には、4号店セルで1を減算してセルの値を3から2に変更し、5号店セルで1を減算してセルの値を2から1に変更し、6号店セルで1を減算してセルの値を3から2に変更し、7号店セルで1を減算してセルの値を2から1に変更し、8号店セルで1を減算してセルの値を2から1に変更し、9号店セルで1を減算してセルの値を2から1に変更し、12号店セルで1を減算してセルの値を2から1に変更し、14号店セルで1を減算してセルの値を2から1に変更し、15号店セルで1を減算してセルの値を4から3に変更し、16号店セルで1を減算してセルの値を2から1に変更する。この減算の結果として配分済の数量は47から37に変更されたので、7だけ過剰だったのが、逆に3だけ不足となるが、先に述べたように、店舗投入数の減算を優先する。この不足分は、後の在庫スワップ処理で調整される。
(4-2) Mitigation of excess (subtraction 2):
Referring to FIG. 11 showing the results of the processing up to this point, when looking at the next lowest stock quantity rank, item 4 has a distributionable inventory of 40. 47 is allocated until now, and the excess is 7. Therefore, the subtraction process is performed on the cell of the store that has been overfilled. Specifically, 1 is subtracted from the 4th store cell to change the cell value from 3 to 2, and 1 is subtracted from the 5th store cell to change the cell value from 2 to 1. Subtract 1 in the cell to change the cell value from 3 to 2, subtract 1 in the 7th store cell to change the cell value from 2 to 1 and subtract 1 in the 8th store cell Change the value from 2 to 1 and subtract 1 from the 9th store cell to change the cell value from 2 to 1 and subtract 1 from the 12th store cell to change the cell value from 2 to 1 Then, 1 is subtracted from the 14th store cell to change the cell value from 2 to 1, and 1 is subtracted from the 15th store cell to change the cell value from 4 to 3, and 1 from the 16th store cell. To change the value of the cell from 2 to 1. As a result of this subtraction, the allocated quantity has been changed from 47 to 37. Therefore, the excess of 7 is not enough, but conversely, it is insufficient by 3. However, as mentioned above, priority is given to subtraction of store input. To do. This shortage will be adjusted later in the inventory swap process.

(4−3)過剰分の緩和(減算3):
この時点までの処理の結果が示された図12を参照して、次に在庫数ランクが低い順に見ていくと、アイテム3は配分可能な在庫が70であるにもかかわらず、この時点までに77が配分され、過剰分が7である。従って、投入オーバーしている店舗のセルの減算処理を行う。具体的には、4号店セルで1を減算してセルの値を5から4に変更し、5号店セルで1を減算してセルの値を4から3に変更し、6号店セルで1を減算してセルの値を5から4に変更し、7号店セルで1を減算してセルの値を4から3に変更し、15号店セルで1を減算してセルの値を7から6に変更する。この減算の結果として配分済の数量は77から72に変更されたので、過剰分は、7から2に減少した。
(4-3) Mitigation of excess (subtraction 3):
Referring to FIG. 12 showing the result of the processing up to this point, when looking at the next lowest stock quantity rank, Item 3 has reached 70 up to this point even though the allocable stock is 70. 77 is allocated, and the excess is 7. Therefore, the subtraction process is performed on the cell of the store that has been overfilled. Specifically, 1 is subtracted from the 4th store cell to change the cell value from 5 to 4, and 1 is subtracted from the 5th store cell to change the cell value from 4 to 3. Subtract 1 in the cell to change the cell value from 5 to 4, change 1 in the 7th store cell to change the cell value from 4 to 3, and subtract 1 in the 15th store cell The value of is changed from 7 to 6. As a result of this subtraction, the allocated quantity was changed from 77 to 72, so the excess was reduced from 7 to 2.

(5)投入指示数合わせ(減算):
既に述べた(3)での加算処理とは逆に、投入指示数に対し計算結果の店舗投入数がオーバーしている店舗に減算処理を行う。在庫の少ないアイテム順に、店舗投入数=投入指示数となるまで、セルから1を減算する処理を行う。実際には、在庫数ランク最下位のアイテムのセルを特定する、店舗投入数>投入指示数となっている店舗を特定する、そのセルの値が1より大きければ1を減算する、次の在庫数ランクのアイテムに移り上記処理を実行する、店舗投入数=投入指示数となるまで繰り返す(1より大きいセルでの減算調整が出来なくなった場合は1以上の条件で上記処理を繰り返す)、という手順で処理が進行する。
(5) Adjusting the number of input instructions (subtraction):
Contrary to the addition process in (3) already described, the subtraction process is performed on the stores whose calculated number of stores exceeds the number of input instructions. A process of subtracting 1 from the cell is performed in the order of items with a small stock until the number of stores input = the number of input instructions. Actually, specify the cell of the item with the lowest inventory number rank, specify the store where the store input number> the input instruction number, and subtract 1 if the value of the cell is greater than 1, the next inventory Move to several rank items and execute the above process, repeat until the number of stores input = input instruction number (if the subtraction adjustment in a cell larger than 1 is no longer possible, repeat the above process under one or more conditions) Processing proceeds with the procedure.

(5−1)投入指示数合わせ(減算1):
ここまでの処理の結果である現在の店舗投入数(縦計)が投入指示数を超えている店舗に対して減算処理を行い、指示数に一致させる。図13に示されている現在までの配分数を参照すると、在庫数ランクが最下位のアイテムから検索していき、店舗投入数>投入指示数の店舗でセルの値が1より大きく減算可能となるアイテムはアイテム4である。店舗投入数>投入指示数の店舗は、4号店、5号店、6号店である。このアイテム4について4号店セルから1を減算するとセルの値は2から1に変更され、店舗投入数は27から26に変更される。次に、6号店セルから1を減算するとセルの値は2から1に変更され、店舗投入数は26から25に変更され、6号店については、投入指示数に一致する。
(5-1) Matching the number of input instructions (subtraction 1):
A subtraction process is performed on the stores where the current store input number (vertical total), which is the result of the processing so far, exceeds the input instruction number, to match the instruction number. Referring to the number of distributions up to now shown in FIG. 13, it is possible to search from the item with the lowest inventory number rank, and the cell value can be subtracted from 1 in stores where the number of store inputs> the number of input instructions The resulting item is item 4. The stores with the number of store inputs> the number of input instructions are the fourth store, the fifth store, and the sixth store. When 1 is subtracted from the No. 4 store cell for this item 4, the value of the cell is changed from 2 to 1, and the number of store inputs is changed from 27 to 26. Next, when 1 is subtracted from the 6th store cell, the value of the cell is changed from 2 to 1, and the number of store inputs is changed from 26 to 25. For the 6th store, the number of input instructions coincides.

(5−2)投入指示数合わせ(減算2)
次に、図14に示されている現在までの配分数を参照すると、次に減算可能なアイテムはアイテム3である。このアイテム3について4号店セルから1を減算するとセルの値は4から3に変更され、店舗投入数は26から25に変更され、投入指示数に一致する。次に、5号店セルから1を減算するとセルの値は3から2に変更され、店舗投入数は21から20に変更され、投入指示数に一致する。
(5-2) Adjusting the number of input instructions (subtraction 2)
Next, referring to the current allocation number shown in FIG. 14, the next subtractable item is item 3. When 1 is subtracted from the No. 4 store cell for this item 3, the value of the cell is changed from 4 to 3, and the number of store inputs is changed from 26 to 25, which matches the input instruction number. Next, when 1 is subtracted from the No. 5 store cell, the value of the cell is changed from 3 to 2, and the number of store inputs is changed from 21 to 20, which matches the input instruction number.

以上の処理の結果は図15に示されているが、1号店から20号店まで、すべての店舗に関して、店舗に配分されたアイテム総数が当初に設定された投入指示数と一致したことになる。   The result of the above processing is shown in FIG. 15, but the total number of items allocated to the stores for all stores from the 1st store to the 20th store coincided with the initially set input instruction number. Become.

(6)スワップ処理:
この段階までに行われた処理の結果、すべての店舗について、配分されたアイテム総数が当初に設定された投入指示数と一致したので、X軸方向の数合わせが完了した。この段階以降の処理は、Y軸方向の数合わせを目的とする。X軸方向に関しては、各店舗で店舗投入数=投入指示数となっているので、いったん得られたこの関係を崩さないように、アイテム間で在庫数の入れ替えを行う。
(6) Swap processing:
As a result of the processing performed up to this stage, since the total number of items allocated for all stores coincides with the number of input instructions set initially, the number alignment in the X-axis direction is completed. The processing after this stage is aimed at the number alignment in the Y-axis direction. Regarding the X-axis direction, the number of stores inserted = the number of input instructions at each store, so that the number of stocks is exchanged between items so as not to destroy this relationship once obtained.

実際には、全アイテムに対し在庫数オーバーをしているかどうかをチェックし、在庫オーバーしている場合には次の処理を実行する。まず、(a)投入数ランク1位(多い順)の店舗を特定する、次に、(b)在庫ランクの高い順に検索し、在庫不足(計算結果が在庫数に満たない)アイテムを特定する、そして、(c)該当店舗の在庫オーバーのアイテムのセルから1を減算し、在庫不足アイテムのセルに1を加算する(ただし、減算されるセルが0の場合はスキップ)、更に、(d)まだ在庫オーバーしていれば次の投入ランクの店舗に移り(b)及び(c)の処理を実行する、(e)以上の処理を、計算結果(横計)≦在庫数となるまで繰り返す、という手順で処理が進行する。   Actually, it is checked whether or not the number of stocks is over for all items. If the stock is over, the following processing is executed. First, (a) specify the store with the highest number of input ranks (in descending order), then (b) search in descending order of the inventory rank, and specify items that are out of stock (calculation results are less than the number of inventory) (C) 1 is subtracted from the cell of the over-stock item in the corresponding store, and 1 is added to the cell of the shortage item (however, if the subtracted cell is 0), (d) ) If the stock is still over, move to the store of the next input rank and execute the processing of (b) and (c). Repeat the processing of (e) and above until the calculation result (horizontal total) ≤ stock quantity. The process proceeds according to the procedure.

(6−1)アイテム間のスワップ処理(1)
在庫がオーバーしている場合、投入数ランク順に店舗を特定し、その中で在庫不足のアイテムへのスワップ処理を行なう。具体的には、この時点までの処理の結果が示されている図15を参照すると、アイテム5は配分された数が6だけ過剰である。アイテム5について、投入数ランクで店舗を特定すると、1号店が該当する。次に在庫が不足しているアイテムを探すと、アイテム1であり、不足分は1である。従って、図16に示されているように、アイテム5とアイテム1との間で、アイテムを1つだけ移動させるスワップを行う。
(6-1) Swap processing between items (1)
When the stock is over, the stores are specified in the order of the number of inputs, and the swap process is performed for items that are short of stock. Specifically, referring to FIG. 15 in which the result of the processing up to this point is shown, the allocated number of items 5 is excessive by six. For item 5, if the store is specified by the number of input ranks, the first store corresponds. Next, when searching for an item whose inventory is insufficient, it is item 1 and the shortage is 1. Therefore, as shown in FIG. 16, swap is performed between item 5 and item 1 to move only one item.

(6−2)アイテム間のスワップ処理(2):
この時点までの処理の結果が示されている図16を参照すると、アイテム5は配分された数が5だけ過剰である。アイテム5について、投入数ランクで店舗を特定すると、2号店が該当する。次に在庫が不足しているアイテムを探すと、アイテム4であり、不足分は5である。従って、図17に示されているように、アイテム5とアイテム4との間で、アイテムを1だけ移動させるスワップを行う。
(6-2) Swap process between items (2):
Referring to FIG. 16 in which the result of processing up to this point is shown, the number of items 5 is excessive by five. For item 5, if a store is specified by the number of input ranks, the second store corresponds. Next, when an item for which inventory is insufficient is searched, it is item 4 and the shortage is 5. Accordingly, as shown in FIG. 17, swap is performed between the item 5 and the item 4 to move the item by one.

(6−3)アイテム間のスワップ処理(3):
この時点までの処理の結果が示されている図17を参照すると、アイテム5は配分された数が4だけ過剰である。アイテム5について、投入数ランクで店舗を特定すると、3号店が該当する。次に在庫が不足しているアイテムを探すと、アイテム4であり、不足分は4である。従って、図18に示されているように、アイテム5とアイテム4との間で、アイテムを1だけ移動させるスワップを行う。
(6-3) Swap process between items (3):
Referring to FIG. 17 in which the result of the processing up to this point is shown, the allocated number of item 5 is excessive by four. For item 5, if a store is specified by the number of input ranks, No. 3 store corresponds. Next, when an item for which inventory is insufficient is searched, it is item 4 and the shortage is 4. Therefore, as shown in FIG. 18, swap is performed between the item 5 and the item 4 to move the item by one.

(6−4)アイテム間のスワップ処理(4):
この時点までの処理の結果が示されている図18を参照すると、アイテム5は配分された数が3だけ過剰である。アイテム5について、投入数ランクで店舗を特定すると、15号店が該当する。次に在庫が不足しているアイテムを探すと、アイテム4であり、不足分は3である。従って、図19に示されているように、アイテム5とアイテム4との間で、アイテムを1だけ移動させるスワップを行う。
(6-4) Swap process between items (4):
Referring to FIG. 18 in which the result of the processing up to this point is shown, the number of items 5 allocated is excessive by three. For the item 5, if the store is specified by the number of input ranks, the 15th store corresponds. Next, when searching for an item whose inventory is insufficient, it is item 4 and the shortage is 3. Accordingly, as shown in FIG. 19, swap is performed between the item 5 and the item 4 to move the item by one.

(6−5)アイテム間のスワップ処理(5):
この時点までの処理の結果が示されている図19を参照すると、アイテム5は配分された数が2だけ過剰である。アイテム5について、投入数ランクで店舗を特定すると、4号店が該当する。次に在庫が不足しているアイテムを探すと、アイテム4であり、不足分は2である。従って、図20に示されているように、アイテム5とアイテム4との間で、アイテムを1だけ移動させるスワップを行う。
(6-5) Swap process between items (5):
Referring to FIG. 19 in which the result of the processing up to this point is shown, the number of items 5 allocated is excessive by two. For item 5, if a store is specified by the number of input ranks, No. 4 store corresponds. Next, when searching for an item whose inventory is insufficient, it is item 4 and the shortage is 2. Therefore, as shown in FIG. 20, swap is performed between the item 5 and the item 4 to move the item by one.

(6−6)アイテム間のスワップ処理(6):
この時点までの処理の結果が示されている図20を参照すると、アイテム5は配分された数が1だけ過剰である。アイテム5について、投入数ランクで店舗を特定すると、6号店が該当する。次に在庫が不足しているアイテムを探すと、アイテム4であり、不足分は1である。従って、図21に示されているように、アイテム5とアイテム4との間で、アイテムを1だけ移動させるスワップを行う。
(6-6) Swap process between items (6):
Referring to FIG. 20 in which the result of the processing up to this point is shown, the allocated number of item 5 is excessive by one. For item 5, if a store is specified by the number of input ranks, No. 6 store corresponds. Next, when searching for an item whose inventory is insufficient, it is item 4 and the shortage is 1. Accordingly, as shown in FIG. 21, swap is performed between the item 5 and the item 4 to move the item by one.

以上の処理により在庫オーバーのアイテムがなくなり、スワップ処理が終了する。この結果として、図22に示されているように、X軸・Y軸の計算結果がそれぞれの入力値と完全に一致している。以上のような処理方法に従ってマトリクスへの分解を行った結果として、最初に述べた(1)在庫が多いアイテムは各店においても多く配分される、(2)各店舗においてなるべくたくさんのアイテムが配分される、という基本方針を満足した態様で数値の配分が実現できた。   With the above processing, the items that are out of stock disappear, and the swap processing ends. As a result, as shown in FIG. 22, the calculation results of the X axis and the Y axis completely coincide with the respective input values. As a result of decomposition into a matrix according to the processing method as described above, (1) items with a large amount of stock are allocated at each store as described above, and (2) as many items as possible are allocated at each store. The distribution of numerical values could be realized in a manner that satisfied the basic policy of the

上で述べた処理では、2つ目の基本方針に従うため、なるべくたくさんのアイテムが配分されるようにするように、端数処理の際にセル値の切り上げをした。しかし、これ以外の処理も可能である。例えば、切り上げでなく四捨五入をすると、セルの値が0になる個数が多くなるが、構成比の影響をより強くすることができる。また、切り捨て処理を行うと、更に構成比の影響を強くした結果が得られる。このように、端数処理の仕方によって、マトリクス内で異なる数値分布が得られる。   In the process described above, in order to follow the second basic policy, the cell value is rounded up during the rounding process so that as many items as possible are allocated. However, other processes are possible. For example, if rounding is performed instead of rounding up, the number of cells having a value of 0 increases, but the influence of the composition ratio can be made stronger. Moreover, when the truncation process is performed, a result in which the influence of the composition ratio is further increased is obtained. In this way, different numerical distributions are obtained in the matrix depending on the method of fraction processing.

更に他の方法として、在庫数を合わせてから店舗間で投入数のスワップ処理をすることが可能であるし、数の合わせ方についても、処理の順番に応じて多数の異なる方法が得られる。従って、本発明を応用する目的に応じて、端数処理について、「切り上げ」、「切り捨て」、「四捨五入」の中のいずれかを採用し、X軸及びY軸のどちらか一方の軸についての数合わせをしてから他方の軸についてスワップ処理をすることも可能である。このように、本発明に従って様々なアイテムを配分する際には、目的に応じた多種多様なマトリクスへの分解が可能となる。   Furthermore, as another method, it is possible to swap the number of inputs between stores after the number of stocks is matched, and a number of different methods can be obtained according to the order of processing as to how the numbers are matched. Therefore, depending on the purpose of applying the present invention, the rounding process employs any one of “rounded up”, “rounded down”, and “rounded off”, and the number for either the X axis or the Y axis. It is also possible to perform swap processing for the other axis after matching. As described above, when various items are allocated according to the present invention, it can be decomposed into various matrices according to the purpose.

しかし、いずれの処理においても共通していることは、X軸及びY軸のそれぞれに並べられた数字配列を、それぞれの軸の構成比に応じてマトリクスへの基本的な按分を最初に行い、次に、「切り上げ」、「切り捨て」、「四捨五入」のいずれかを用いて端数処理を行った後で、X軸及びY軸の数値ランキングに従ってそれぞれの軸の数合わせを行なう点である。   However, what is common in both processes is that the numerical arrangement arranged in each of the X-axis and the Y-axis is subjected to basic apportionment to the matrix first according to the composition ratio of each axis, Next, after performing rounding using any of “rounded up”, “rounded down”, and “rounded off”, the numbers of the respective axes are adjusted according to the numerical ranking of the X axis and the Y axis.

従来、X軸に並んだ数値とY軸に並んだ数値とを、マトリクスにおける縦計及び横計が一致するようにセルの値を決めていくことは困難であったが、本発明による処理を実行することにより、従来技術における困難が解消される。本発明による処理は、Y軸合計≧X軸のすべての範囲で可能であり、Y軸に並んだ各数値の範囲内で、構成比に従ってX軸の数値合わせが可能である。もちろん、軸が逆の場合にも同様である。   Conventionally, it has been difficult to determine the cell values so that the vertical and horizontal totals in the matrix match the numerical values aligned on the X axis and the numerical values aligned on the Y axis. By doing so, the difficulties in the prior art are eliminated. The processing according to the present invention is possible in the entire range of the Y-axis total ≧ X-axis, and the X-axis numerical value can be adjusted according to the composition ratio within the range of the numerical values arranged on the Y-axis. Of course, the same applies when the axes are reversed.

以上では、「12種類の商品の在庫を、20店舗に配分する」という例で説明したが、他の技術分野においても本発明による処理を用いることが可能である。例えば、小売業では店舗等のロケーションに対する発注及び出荷配分全般に応用可能であり、対象ロケーションが数百以上ある場合などは特に有用である。また、製造業、卸業等では、倉庫の指定格納個所へのキャパシティに応じた割り当てにも応用できる。製品の容量を加味すればキャパシティ管理も可能となる。また、専門分野や役割に応じた人員の配置にも応用可能である。   In the above, the example of “allocating the inventory of 12 kinds of merchandise to 20 stores” has been described, but the processing according to the present invention can also be used in other technical fields. For example, in the retail industry, the present invention can be applied to general ordering and shipping distribution for locations such as stores, and is particularly useful when there are several hundred or more target locations. In the manufacturing industry, wholesale trade, etc., it can also be applied to the allocation according to the capacity to the designated storage location of the warehouse. Capacity management is also possible if the capacity of the product is taken into account. It can also be applied to staffing according to specialized fields and roles.

2.数式を用いた一般的な説明
次に、本発明によるアイテム配分に関する発明者の基本アイデアを説明するため、以上で具体例を用いて例示的に述べた処理を、若干の数式を用いて抽象的に再度説明する。本発明におけるマトリクスは、非負である整数を縦横に矩形状に並べた数表であって、線形代数における行列とは異なる。しかし、本発明におけるマトリクスを表現するには、線形代数で行列について用いられる記号を用いるのが便利であり、当業者であればきわめて容易に理解することができ、誤解も生じないはずである。
2. General explanation using mathematical formulas :
Next, in order to explain the inventor's basic idea regarding item distribution according to the present invention, the processing described above using the specific examples will be described again abstractly using some mathematical expressions. The matrix in the present invention is a number table in which non-negative integers are arranged in a rectangular shape in the vertical and horizontal directions, and is different from the matrix in linear algebra. However, to express the matrix in the present invention, it is convenient to use symbols used for the matrix in the linear algebra, which can be easily understood by those skilled in the art and should not be misunderstood.

まず、p個の行(X軸方向)とq個の列(Y軸方向)とによって構成されるp行q列のマトリクスAを考える。p行q列のマトリクスとは、横方向にq個の数字を並べた行が第1行から第p行まであり、縦方向にp個の数字を並べた列が第1列から第q列まであるものを意味する。マトリクスAの第m行第n列の要素(成分とも称する)を、amnで表す。要素に着目するならば、p×q個の成分amnで構成されるマトリクスAを(amn)で表す。ここで、同じ行の要素つまりマトリクスにおける横方向の数値の和を考え、第1行目の要素の総和a11+a12+・・・+a1q=H、第2行目の要素の総和a21+a22+・・・+a2q=H、・・・、第p行目の要素の総和ap1+ap2+・・・+apq=Hとする。同様に、同じ列の要素つまり縦方向の数値の和を考え、第1列目の要素の総和a11+a21+・・・+ap1=V、第2列目の要素の総和a12+a22+・・・+ap2=V、・・・、第q列目の要素の総和a1q+a2q+・・・+apq=Vとする。 First, consider a matrix A of p rows and q columns composed of p rows (X-axis direction) and q columns (Y-axis direction). The matrix of p rows and q columns is a row in which q numbers are arranged in the horizontal direction from the first row to the p th row, and a column in which p numbers are arranged in the vertical direction is from the first column to the q th column. It means something up to. An element (also referred to as a component) in the m-th row and the n-th column of the matrix A is represented by a mn . If attention is paid to elements, a matrix A composed of p × q components a mn is represented by (a mn ). Here, considering the sum of numerical values in the horizontal direction in the elements in the same row, that is, the matrix, the sum of the elements in the first row a 11 + a 12 +... + A 1q = H 1 , the sum of the elements in the second row a 21 + a 22 +... + A 2q = H 2 ,..., The sum of the elements in the p-th row is a p1 + a p2 +... + A pq = H p . Similarly, considering the sum of the elements in the same column, that is, the numerical values in the vertical direction, the sum a 11 + a 21 +... + A p1 = V 1 of the elements in the first column and the sum a 12 + a of the elements in the second column 22 +... + A p2 = V 2 ,..., The sum of elements in the q-th column is a 1q + a 2q +... + A pq = V q .

以上の行列記号の意味を確認しておきたい。マトリクスがp行q列であるというのは、p種類のアイテムをq個の店舗に配分する問題を考察することを意味する。このマトリクスのm行n列の要素amnは、m番目のアイテムがn番目の店舗に配分される数を意味する。第1行目の要素の総和a11+a12+・・・+a1q=Hとは、q個の店舗に配分される1番目のアイテムの総数であり、第1列目の要素の総和a11+a21+・・・+ap1=Vとは、1番目の店舗に配分されるp種類のアイテムの総数である。これらの記号を用いると、本発明は、在庫として存在しているアイテムのすべてを配分する場合には、マトリクスA=(amn)について、H、H、・・・、HとV、V、・・・、Vとが与えられた場合に、マトリクスAのすべての非負整数成分amnを決定するシステム及び方法ということになる。 I would like to confirm the meaning of the above matrix symbols. The fact that the matrix is p rows and q columns means that the problem of allocating p types of items to q stores is considered. An element a mn of m rows and n columns of the matrix means the number of m-th items allocated to the n-th store. The sum total of elements in the first row a 11 + a 12 +... + A 1q = H 1 is the total number of first items distributed to q stores, and the sum a of elements in the first column a 11 + a 21 +... + A p1 = V 1 is the total number of p-type items allocated to the first store. Using these symbols, the present invention allows H 1 , H 2 ,..., H p and V for the matrix A = (a mn ) when allocating all of the items that are in stock. 1 , V 2 ,..., V q is a system and method for determining all non-negative integer components a mn of matrix A.

なお、既に簡単に触れたことであるが、本発明は、在庫として存在するアイテムの全体を各店舗に配分するだけではなく、在庫総数の一部だけを各店舗に配分する場合にも適用できる。1年分の在庫総数の中から1月に各店舗に配分する数量を決定する場合などがこの一部配分の例である。例えば、在庫が全部で1万点あるときに、その中の1千点だけを配分する場合である。このように在庫総数の一部だけを配分する場合には、それぞれのアイテムの在庫の中に、店舗に配分されない部分が存在することになる。つまり、第1番目のアイテムの在庫がTであるとすると、Tの中で各店舗に配分されるのはHだけであり、T−H(≠0)は配分されずに残る。第2番目のアイテムから第p番目のアイテムについても同様である。このように配分されないアイテムが存在する場合も含むように定義し直すと、本発明は、マトリクスA=(amn)について、T、T、・・・、TとV、V、・・・、Vとが与えられた場合に、マトリクスAのすべての非負整数成分amnを決定するシステム及び方法である。ただし、T、T、・・・、Tは、T≧H(mは1からpまでの整数)を満たす非負整数である。 As already mentioned briefly, the present invention can be applied not only to distributing all items existing as stock to each store but also to distributing only a part of the total stock to each store. . An example of this partial allocation is when the quantity to be allocated to each store in January is determined from the total inventory for one year. For example, when there are 10,000 items in total, only 1,000 of them are allocated. When only a part of the total inventory is allocated in this way, there is a part that is not allocated to the store in the inventory of each item. That is, when the stock 1st item is assumed to be T 1, being allocated to each store in T 1 is only H 1, T 1 -H 1 ( ≠ 0) is not allocated Remain. The same applies to the second to p-th items. When redefined so as to include the case where there is an item that is not distributed in this way, the present invention is T 1 , T 2 ,..., T p and V 1 , V 2 for the matrix A = (a mn ). A system and method for determining all non-negative integer components a mn of matrix A given V q . However, T 1, T 2, ··· , T p is, T mH m (m is an integer from 1 to p) is a non-negative integer satisfying.

(1)初期処理:
(1−1)入力処理:
まず、初期処理として、入力処理を行う。入力処理とは、図1を参照して既に述べたように、計算の元データとなる数値を入力データとしてX軸及びY軸に入力することである。つまり、本発明によって各アイテムの各店舗への配分数を決定する前提となる所与の数値が入力される。上述の記号を用いると、第1番目のアイテムの在庫総数であるTから第p番目のアイテムの在庫総数であるTまでを入力し、第1番目の店舗への投入指示数であるVから第q番目の店舗への投入指示数であるVまでを入力する。ここで、店舗数が50、在庫総数が21600点、アイテム数が12の例が示されている図23を参照すると、在庫総数として、T=3000、T=2900、・・・、T12=800を入力し、投入指示数として、V=120、V=120、・・・、V50=6を入力することになる。図23に示された表の左上に、矢印付きで在庫及び投入指示数として示されている通りである。
(1) Initial processing:
(1-1) Input processing:
First, input processing is performed as initial processing. As described above with reference to FIG. 1, the input process is to input numerical values serving as calculation original data to the X axis and the Y axis as input data. That is, according to the present invention, a given numerical value that is a premise for determining the number of distribution of each item to each store is input. Using the above-mentioned symbols, T 1 which is the total number of stocks of the first item to T p which is the total number of stocks of the pth item is input, and V which is the number of inputs to the first store. Enter from 1 to V q which is the number of inputs to the q-th store. Here, referring to FIG. 23 showing an example in which the number of stores is 50, the total number of inventory is 21,600 points, and the number of items is 12, the total number of inventory is T 1 = 3000, T 2 = 2900,. 12 = 800 is input, and V 1 = 120, V 2 = 120,..., V 50 = 6 are input as the number of input instructions. 23. As shown in the upper left of the table shown in FIG.

(1−2)構成比による按分:
次は、構成比による按分である。まず、各セルにおける数値の在庫合計に対する構成比を計算し、その比率を用いて在庫の全体を各セルに按分する。例えば、a11つまり1号店へのアイテム1の投入指示数について考察する。a11の場合には、(X軸構成比)=(在庫総数の中での1号店への投入指示数の比率)=(1号店への投入指示数)/(在庫総数)=V/(T+T+・・・+T)、(Y軸構成比)=(在庫総数の中でのアイテム1の在庫数の比率)=(アイテム1の在庫数)/(在庫総数)=T/(T+T+・・・+T)であるから、セルa11の構成比は、これらの構成比の積を計算して、(V/(T+T+・・・+T))×(T/(T+T+・・・+T))である。同様に、例えば、a12の場合には、(X軸構成比)=V/(T+T+・・・+T)、(Y軸構成比)=T/(T+T+・・・+T)であるから、セルa12の構成比は、(V/(T+T+・・・+T))×(T/(T+T+・・・+T))である。従って、一般的には、アイテムmをn号店に投入する数であるamnの構成比は、(X軸構成比)=V/(T+T+・・・+T)、(Y軸構成比)=T/(T+T+・・・+T)であるから、セルamnの構成比は、(V/(T+T+・・・+T))×(T/(T+T+・・・+T))である。
(1-2) Apportionment by composition ratio:
The following is a proration according to the composition ratio. First, the composition ratio of the numerical value in each cell to the total inventory is calculated, and the entire inventory is allocated to each cell using the ratio. For example, consider the on instruction number for items 1 to a 11, i.e. No. 1 store. In the case of a 11 , (X-axis composition ratio) = (ratio of the number of instructions for introduction to the first store in the total number of inventory) = (number of instructions for introduction to the first store) / (total number of inventory) = V 1 / (T 1 + T 2 +... + T p ), (Y-axis composition ratio) = (ratio of the inventory number of item 1 in the total inventory quantity) = (stock quantity of item 1) / (total inventory quantity) = T 1 / (T 1 + T 2 +... + T p ), the component ratio of the cell a 11 is calculated by calculating the product of these component ratios (V 1 / (T 1 + T 2 + · ·· + T p )) × (T 1 / (T 1 + T 2 +... + T p )). Similarly, for example, in the case of a 12 is, (X-axis component ratio) = V 2 / (T 1 + T 2 + ··· + T p), (Y -axis component ratio) = T 1 / (T 1 + T 2 + ... + T p ), the composition ratio of the cell a 12 is (V 2 / (T 1 + T 2 +... + T p )) × (T 1 / (T 1 + T 2 +...). + T p )). Therefore, generally, the composition ratio of a mn , which is the number of items m to be introduced into the nth store, is (X-axis composition ratio) = V n / (T 1 + T 2 +... + T p ), ( Since the Y axis composition ratio) = T m / (T 1 + T 2 +... + T p ), the composition ratio of the cell a mn is (V n / (T 1 + T 2 +... + T p )). × (T m / (T 1 + T 2 +... + T p )).

このように計算したセル構成比を用いて、各セルに按分される数値を計算する。a11の場合には、(在庫総数)×(セル構成比)=(T+T+・・・+T)×(V/(T+T+・・・+T))×(T/(T+T+・・・+T))=V・T/(T+T+・・・+T)となる。また、例えば、a12の場合には、(T+T+・・・+T)×(V/(T+T+・・・+T))×(T/(T+T+・・・+T))=V・T/(T+T+・・・+T)となる。従って、一般的に、構成比に応じてセルamnに按分される数値は、V・T/(T+T+・・・+T)である。これらの計算を実行することにより、マトリクスのすべてのセルに按分されるべきアイテムの数量が確定する。 Using the cell composition ratio calculated in this way, a numerical value distributed to each cell is calculated. In the case of a 11 , (total number of stocks) × (cell composition ratio) = (T 1 + T 2 +... + T p ) × (V 1 / (T 1 + T 2 +... + T p )) × ( T 1 / (T 1 + T 2 +... + T p )) = V 1 · T 1 / (T 1 + T 2 +... + T p ). Further, for example, in the case of a 12 is, (T 1 + T 2 + ··· + T p) × (V 2 / (T 1 + T 2 + ··· + T p)) × (T 1 / (T 1 + T 2 +... + T p )) = V 2 · T 1 / (T 1 + T 2 +... + T p ). Therefore, in general, a numerical value that is prorated to the cell a mn according to the composition ratio is V n · T m / (T 1 + T 2 +... + T p ). By performing these calculations, the quantity of items to be apportioned to all cells of the matrix is determined.

ただし、既に述べたように、本発明においてマトリクスの各セルに配分される数値は、アイテムの個数に相当するのであるから、非負である整数でなければならない。しかし、例えば、セルamnに按分されるV・T/(T+T+・・・+T)は整数値をとるとは限らない。よって、小数点以下の数値の処理が必要になるのであるが、処理方法としては、少なくとも3つの選択肢がある。すなわち、切り上げ、四捨五入、切り捨ての3つである。もちろん、これら3つの選択肢以外に、特殊な処理をすることも可能であろう。しかし、これら3つ以外の処理(例えば、四捨五入を逆転させた四入五捨など)はそれほど一般的とは言えないので、ここでは考察しない。 However, as already described, the numerical value allocated to each cell of the matrix in the present invention corresponds to the number of items, and therefore must be a non-negative integer. However, for example, V n · T m / (T 1 + T 2 +... + T p ) apportioned to the cell a mn does not always take an integer value. Therefore, processing of numerical values after the decimal point is necessary, but there are at least three options as processing methods. In other words, they are rounded up, rounded off, and rounded down. Of course, in addition to these three options, special processing may be possible. However, processing other than these three (for example, rounding off with rounding off) is not so general and will not be considered here.

以下の説明では、既に行った具体例でなされていたように、切り上げ処理の場合を考察する。代表的な処理として切り上げ処理を行う理由は、按分の段階ではどのセルにもゼロは配置されず、最小の場合でも1が配分されるようにするためである。本発明による配分がすべて終了した時点では結果的に0となるセルが生じるとしても、例えば洋品店の例で考えてみると、各店舗になるべくたくさんのアイテムが配分されるようにする、つまり、特定のサイズが配分されていないなどの欠番は可能な限り回避する、という実質的な理由に基づいている。しかし、例えば、多くの小規模な店舗において欠番が生じたとしても、集客力の大きな大規模な店舗に配分を集中化するというのであれば、四捨五入や切り捨ての方が適切である可能性がある。本発明では、アイテムの配分が実行される個別の状況において最適となるように、切り上げ、四捨五入、切り捨ての3つから、更には、これら以外の処理を選択することが可能である。   In the following description, the case of round-up processing will be considered as was done in the specific examples that have already been made. The reason why the round-up process is performed as a representative process is that zero is not allocated to any cell at the apportioning stage, and 1 is allocated even in the minimum case. Even if a cell resulting in 0 is generated at the end of the allocation according to the present invention, for example, in the case of a clothing store, as many items as possible are allocated to each store, that is, This is based on the substantive reason that missing numbers such as a specific size is not allocated are avoided as much as possible. However, for example, even if missing numbers occur in many small stores, rounding or truncation may be more appropriate if the distribution is to be concentrated in large stores with a large ability to attract customers. . In the present invention, it is possible to select from three processes, rounding up, rounding off, and rounding down, and processing other than these so as to be optimal in an individual situation in which item allocation is executed.

参考のため、図24及び図25に、四捨五入及び切り捨てを採用した場合の本発明による配分結果が示されている。   For reference, FIG. 24 and FIG. 25 show distribution results according to the present invention when rounding and truncation are employed.

また、図26には、本発明によるアイテム配分システムを用い、切り上げ処理を採用した場合に、12種類のアイテムの在庫総数が2000であり、この在庫総数のすべてを50店舗に配分した結果が示されている。   FIG. 26 shows the result of allocating the total number of 12 types of items to 50 stores when the rounding process is employed using the item distribution system according to the present invention, and the total number of the 12 types of items is 2000. Has been.

(1−3)ランキング処理:
次は、ランキング処理である。本発明のランキング処理とは、後述するプロセスにおいて各セルの加算や減算処理を行なう際の順序を決定する処理を意味する。上述の具体例では、在庫数の大きい順、投入指示数の大きい順に順位を付し、同順位の場合は先に処理すべき順に順位を決定した。このように、降べき順のランキングを決定するのが通常であるが、実際の具体的事情に応じ、これ以外のランキング決定も可能である。
(1-3) Ranking process:
Next is the ranking process. The ranking processing of the present invention means processing for determining the order in which addition and subtraction processing of each cell is performed in a process described later. In the specific example described above, the order is assigned in descending order of the number of stocks and in descending order of the number of input instructions. In the case of the same order, the order is determined in the order to be processed first. Thus, it is normal to determine the ranking in descending order, but other rankings can be determined according to actual specific circumstances.

以上の処理によってマトリクスへの数値の一応の配分がなされたのであるが、小数点以下の処理(切り上げ、四捨五入、切り捨てなど)を行っているため、この段階では、水平方向に関するa11+a12+・・・+a1q=H≦T、a21+a22+・・・+a2q=H≦T、・・・、ap1+ap2+・・・+apq=H≦T、また、垂直方向に関するa11+a21+・・・+ap1=V、a12+a22+・・・+ap2=V、・・・、a1q+a2q+・・・+apq=Vという関係が必ずしも満たされていない。以下の処理では、個々のセルの数値を修正することにより、水平方向及び垂直方向の総和が当初の条件を満足するように処理を行う。 Although the numerical values are temporarily distributed to the matrix by the above processing, since processing after the decimal point (rounding up, rounding off, rounding down, etc.) is performed, at this stage, a 11 + a 12 +.・ ・ + A 1q = H 1 ≦ T 1 , a 21 + a 22 +... + A 2q = H 2 ≦ T 2 ,..., A p1 + a p2 +... + A pq = H p ≦ T p A 11 + a 21 +... + A p1 = V 1 , a 12 + a 22 +... + A p2 = V 2 ,..., A 1q + a 2q +... + A pq = V q The relationship is not always fulfilled. In the following processing, processing is performed so that the sum of the horizontal and vertical directions satisfies the initial condition by correcting the numerical value of each cell.

(2)基本調整:
まず、基本調整である。これまでの処理の結果では、すべてのセルにおいて小数点以下の切り上げ処理がなされているため、最小でも1が配分されており、その結果として、合計が入力値を上回る。これに該当する列または行について、ランキング順に入力値順位まではセルに1を配分し、その他は0を配分する調整を最初に行なう。
(2−1)投入指示数<アイテム数である店舗の場合:
最初に、縦方向について、投入指示数<アイテム数の場合を考察する。ここで考察しているマトリクスはp行q列であることに注意したい。つまり、このマトリクスはp行を有しているのであるが、例えばn番目の列において、p>投入指示数Vという関係が成立する場合である。上述の理由により、この段階ではすべてのセルに最低でも1が配分されていることにより、この時点でのV(n番目の列が有するp個のセルにおける数値の垂直方向の総和)が実際の投入指示数Vを超えた状態が生じる可能性がある。この場合には、在庫数ランキング順位が最上位のセルから順に投入指示数V番目のセルまでには1を配分し、投入指示数V+1番目以降のセルには0を配分する。
(2) Basic adjustment:
First, basic adjustment. As a result of the processing so far, since rounding-up processing is performed in all cells, 1 is allocated at the minimum, and as a result, the sum exceeds the input value. For the column or row corresponding to this, the adjustment is performed such that 1 is allocated to the cells up to the input value rank in the ranking order and 0 is allocated to the others.
(2-1) For stores where the number of input instructions is smaller than the number of items:
First, consider the case where the number of input instructions is smaller than the number of items in the vertical direction. Note that the matrix considered here is p rows q columns. That is, although this matrix has p rows, for example, in the nth column, the relationship of p> the number of input instructions V n is established. For the reasons described above, at least 1 is allocated to all the cells at this stage, so that V n (the sum in the vertical direction of the numerical values in the p cells of the nth column) at this point is actually there is a possibility that a state beyond the on instruction number V n occurs. In this case, the inventory Ranking is allocating one in from a cell of the top up-on instruction number of V n-th cell in the order, the on instruction number of V n +1 th and subsequent cell to allocate 0.

(2−2)在庫数<店舗数の場合:
横方向についても同様の処理を行うために、在庫数<店舗数の場合を考察する。考察しているマトリクスはq列を有しているのであるが、例えばm番目の行において、q>在庫数Tという関係が成立する場合である。上述の理由により、すべてのセルに最低でも1が配分されていることにより、この時点でのH(m番目の列が有するq個のセルにおける数値の水平方向の総和)が実際の在庫数Tを超えた状態が生じる可能性がある。この場合には、投入指示数ランキング順位が最上位のセルから順に在庫数T番目のセルまでには1を配分し、在庫数T+1番目以降のセルには0を配分する。しかし、注意すべきは、(2−1)で「0」にしたセルには、調整した投入数を崩さないために「1」を入れないことである。
(2-2) If the number of stocks <the number of stores:
In order to perform the same processing in the horizontal direction, the case where the number of stocks <the number of stores is considered. The matrix under consideration has q columns. For example, in the m-th row, the relationship q> stock quantity T m is established. For the reasons described above, since at least 1 is allocated to all the cells, H m (the total sum of the numerical values in q cells of the m-th column) at this time is the actual number of stocks. There is a possibility that a state exceeding Tm may occur. In this case, 1 is allocated to the cell of the inventory number T m in order from the cell having the highest insertion instruction number ranking, and 0 is allocated to the cells after the inventory number T m +1. However, it should be noted that the cell set to “0” in (2-1) should not be set to “1” in order to keep the adjusted number of inputs.

(3)投入指示数合わせ(加算):
次に、当初に想定されていた投入指示数よりもこの段階までの計算結果として生じている数値の方が少ない列を特定し、その列の中のセルにおいて加算処理を行う。
(3) Matching the number of input instructions (addition):
Next, a column having fewer numerical values generated as a result of the calculation up to this stage than the number of input instructions assumed at the beginning is specified, and addition processing is performed in cells in the column.

例えばn番目の列において、以上の処理の結果である現在の店舗投入数(縦方向の総和V)が当初に設定された投入指示数(V)未満である場合には、そのn列に含まれるp個のセルにおいて、店舗投入数(縦方向の総和V)=投入指示数Vとなるまで、先に設定されているランキング順に、1を加算する処理を行う。 For example, in the n-th column, if the current number of store inputs (vertical sum V n ) as a result of the above processing is less than the initially set input instruction number (V n ), the n columns In the p number of cells included in, a process of adding 1 is performed in the order of ranking previously set until the number of stores inserted (total V n in the vertical direction) = the number of input instructions V n .

n番目の列についてこの加算処理が終了したら、別の列についても同様の処理を行う。   When this addition process is completed for the nth column, the same process is performed for another column.

(4)過剰分の緩和:
以上の処理により、投入指示数に対し計算結果の店舗投入数が足りない店舗に加算処理をして数合わせが済んだ。次には、逆に投入が指示されている数量を超えて配分がなされている店舗に対して減算処理を行うのであるが、その前にセルの歯抜け緩和のための処理を行う。
(4) Mitigation of excess:
With the above processing, the addition processing is performed on the stores where the calculated number of store inputs is insufficient with respect to the number of input instructions, and the number adjustment is completed. Next, on the contrary, the subtraction process is performed on the stores that have been allocated in excess of the quantity instructed to be thrown in, but before that, the process for reducing the missing teeth of the cell is performed.

この過剰分緩和処理は、既に述べたように、次の段階で減算処理を行う前段階の処理であり、マトリクス全体において0となるセルの数を最小化するための処理である。0となるセルの数を最小化するというのは、「各店舗においてなるべくたくさんのアイテムが配分される」すなわち「欠番が生じる店舗を可能な限り少なくする」ためである。   As described above, the excess relaxation process is a process in the previous stage in which the subtraction process is performed in the next stage, and is a process for minimizing the number of cells that become 0 in the entire matrix. The reason for minimizing the number of cells that are 0 is to “allocate as many items as possible at each store”, that is, “to minimize the number of stores where missing numbers occur”.

(5)投入指示数合わせ(減算):
既に述べた(3)での加算処理とは逆に、投入指示数に対し計算結果の店舗投入数がオーバーしている店舗、換言すると、この時点までの処理により、当初の配分予定数を超えて、配分がなされているセルにおいて減算処理を行う。
(5) Adjusting the number of input instructions (subtraction):
Contrary to the addition process in (3) already mentioned, the number of store inputs in the calculation result exceeds the number of input instructions, in other words, the process up to this point has exceeded the initially planned number of allocations. Then, the subtraction process is performed in the cell to which the distribution is made.

例えばn番目の列において、以上の処理の結果である現在の店舗投入数(縦方向の総和V)が当初に設定された投入指示数(V)を超えている場合には、そのn列に含まれるp個のセルにおいて、店舗投入数(縦方向の総和V)=投入指示数Vとなるまで、先に設定されているランキング順に、1を減算する処理を行う。 For example, in the n-th column, if the current number of store inputs (vertical sum V n ) as a result of the above processing exceeds the initially set input instruction number (V n ), then n In the p cells included in the column, a process of subtracting 1 is performed in the order of ranking set in advance until the number of stores inserted (total V n in the vertical direction) = the number of input instructions V n .

n番目の列についてこの減算処理が終了したら、別の列についても同様の処理を行う。   When this subtraction process is completed for the nth column, the same process is performed for another column.

(6)スワップ処理:
以上の処理により、すべての店舗について、配分されたアイテム総数が当初に設定された投入指示数と一致したので、X軸方向の数合わせが完了した。換言すると、VからVについては、当初予定された数値と現在の数値とが一致している。この関係を維持しながら、TからTについても当初予定された数値を現在の数値が超えないように、同一の列における2つのセルの間で、一方から1を減算し他方に1を加算するという方法のスワップ処理を行う。すなわち、一方のセルから他方のセルへ数値を1だけ移動させる。すべての行について現在のHからHの値が最初に設定したTからTの値と一致する、もしくはそれより小さくなるまで、先に決定されているランキングの順に、このスワップ処理を順に実行する。ここで、現在のHからHの値が最初に設定したTからTの値よりも小さくなる場合を含めているのは、上述したように、(在庫総数≧投入指示数の総数)という一般的な条件において、本発明による配分を考察しているからである。
(6) Swap processing:
As a result of the above processing, since the total number of allocated items for all stores coincided with the initially set number of input instructions, the number alignment in the X-axis direction was completed. In other words, for V 1 to V q , the originally planned numerical value and the current numerical value match. While maintaining this relationship, subtract 1 from one cell and set 1 to the other between two cells in the same column so that the current value does not exceed the originally planned value for T 1 to T p. Performs swap processing by adding. That is, the numerical value is moved by 1 from one cell to the other cell. This swap process is performed in the order of the rankings determined in advance until the current values of H 1 to H p match or become smaller than the initially set values of T 1 to T p for all rows. Run in order. Here, as described above, the case where the current value of H 1 to H p is smaller than the initially set value of T 1 to T p includes (total number of stocks ≧ total number of input instructions) This is because the distribution according to the present invention is considered under the general condition of).

3.ハードウェア
本発明によるマトリクスの中の複数のセルへの数値の配分は、上述した各処理に対応するステップをコンピュータに実行させる命令セットから構成されるソフトウェアによって実現される。以下では、ソフトウェアによる情報処理がハードウェア資源をどのように用いて具体的に実現されるのか、また、ソフトウェアがハードウェア資源とどのように協働して本発明の所期の目的が達成されるのか、について説明する。
3. Hardware :
The distribution of numerical values to a plurality of cells in the matrix according to the present invention is realized by software including an instruction set that causes a computer to execute the steps corresponding to the above-described processes. In the following, how information processing by software is specifically realized using hardware resources, and how the software cooperates with hardware resources to achieve the intended purpose of the present invention. Will be described.

図27は、本発明によるマトリクスの中の複数のセルへの数値配分を実行するソフトウェアが動作する典型的なコンピュータ・ハードウェアを図解するブロック図である。本発明が行う情報処理は、抽象的には、マトリクスの中の複数のセルへ数値を配分することであるが、より具体的には、複数種類が存在する複数のアイテム(例えば、衣料品)の複数の受取手段(例えば、店舗)への配分と表現することも可能である。本発明によるアイテム配分を実行するソフトウェアによって動作するコンピュータ11の概要が図27に示されている。コンピュータ11は、バス12を介して相互に接続されたプロセッサ13とメモリ14と記憶装置15と出力インターフェース16と入力インターフェース17とから構成される。そして、出力インターフェース16にはディスプレイ20が接続され、入力インターフェース17にはキーボード18やマウス19が接続されている。   FIG. 27 is a block diagram illustrating exemplary computer hardware on which software that performs numerical allocation to multiple cells in a matrix according to the present invention operates. The information processing performed by the present invention is abstractly distributing numerical values to a plurality of cells in a matrix, but more specifically, a plurality of items having a plurality of types (for example, clothing) It can also be expressed as distribution to a plurality of receiving means (for example, stores). An overview of a computer 11 operating with software for performing item allocation according to the present invention is shown in FIG. The computer 11 includes a processor 13, a memory 14, a storage device 15, an output interface 16, and an input interface 17 that are connected to each other via a bus 12. A display 20 is connected to the output interface 16, and a keyboard 18 and a mouse 19 are connected to the input interface 17.

本発明によるアイテム配分システムを構成するそれぞれの手段に所定の処理を実行させる命令セットから構成されるコンピュータ・プログラムは、記憶装置15に記憶されている。本発明によるアイテム配分のための情報処理が実行される際には、所定の命令が、バス12を介してメモリ14に転送される。メモリ14に読み出された命令は、プロセッサ13によって解釈され実行される。このように、本発明によるアイテム配分システムを構成する初期条件設定手段と構成比計算手段と按分手段と調整手段とは、更に、調整手段に含まれるランキング処理手段と加算処理手段と過剰分緩和手段と減算処理手段とスワップ処理手段とは、プロセッサ13がメモリ14にロードされた命令を解釈して実行する機能として実現される。メモリ14は、プロセッサ13によって実行される命令を、その結果と共に保持する。プロセッサ13は、メモリ14からフェッチすることによって、本発明によるアイテム配分を構成するそれぞれの段階における処理を行う命令を実行する。プロセッサ13は、パーソナル・コンピュータやワークステーションの場合にはマイクロプロセッサであり、専用のASICでもありうる。キーボード18やマウス19の入力装置と入力インターフェース17とを介して、コンピュータ11への入力がなされ、出力装置であるディスプレイ20と出力インターフェース16とを介して、コンピュータ11からの出力がなされる。なお、図27のコンピュータ11は、スタンドアロンの単独のコンピュータとして図解されているが、ネットワークを構成する複数のコンピュータが別々に本発明を構成する特定の機能を担当することもありうる。そのような複数のコンピュータによってネットワークが構成されている場合については、この技術分野の当業者であれば必要な修正を容易に理解することができるので、詳細を述べることは割愛する。   A computer program composed of an instruction set for causing each means constituting the item distribution system according to the present invention to execute a predetermined process is stored in the storage device 15. When information processing for item allocation according to the present invention is executed, a predetermined command is transferred to the memory 14 via the bus 12. The instruction read into the memory 14 is interpreted and executed by the processor 13. As described above, the initial condition setting means, the composition ratio calculation means, the apportioning means, and the adjusting means constituting the item distribution system according to the present invention further include a ranking processing means, an addition processing means, and an excess amount reducing means included in the adjusting means. The subtraction processing means and the swap processing means are realized as a function that the processor 13 interprets and executes an instruction loaded in the memory 14. The memory 14 holds instructions executed by the processor 13 together with the results. The processor 13 executes instructions to perform processing at each stage constituting the item allocation according to the present invention by fetching from the memory 14. The processor 13 is a microprocessor in the case of a personal computer or workstation, and may be a dedicated ASIC. Input to the computer 11 is made via the input device 17 of the keyboard 18 and mouse 19 and the input interface 17, and output from the computer 11 is made via the display 20 and the output interface 16 that are output devices. Note that the computer 11 in FIG. 27 is illustrated as a stand-alone single computer, but a plurality of computers constituting the network may be responsible for specific functions constituting the present invention separately. In the case where a network is configured by such a plurality of computers, those skilled in the art can easily understand the necessary corrections, and thus will not be described in detail.

本発明によるアイテム配分システムは、上述のように、記憶手段と、初期条件設定手段と、構成比計算手段と、按分手段と、調整手段と、を備えている。調整手段は、更に、ランキング処理手段と、基本調整手段と、加算処理手段と、過剰分緩和手段と、減算処理手段と、スワップ処理手段と、を含む。これらの手段が、本発明を構成するそれぞれのデータ処理を行う。図27に示されているブロック図に即して考察すると、それぞれのデータ処理は、記憶装置15に記憶されておりメモリ14に読み出されプロセッサ13によって解釈され所定の処理をコンピュータ11に実行させる命令セットから構成されるソフトウェアによって実現される。   As described above, the item distribution system according to the present invention includes storage means, initial condition setting means, component ratio calculation means, apportioning means, and adjustment means. The adjustment means further includes a ranking processing means, a basic adjustment means, an addition processing means, an excess mitigation means, a subtraction processing means, and a swap processing means. These means perform each data processing which constitutes the present invention. Considering according to the block diagram shown in FIG. 27, each data processing is stored in the storage device 15, read out to the memory 14, is interpreted by the processor 13, and causes the computer 11 to execute a predetermined processing. It is realized by software composed of an instruction set.

この技術分野の当業者であれば理解するように、上述の各手段によって実行されるそれぞれのデータ処理は、対応する命令で構成されるコンピュータ・プログラムによって、コンピュータ11上で実行される。これらの手段は、図27のプロセッサ13の枠の中に記載されているように、そのようなコンピュータ・プログラムを実行するコンピュータ・ハードウェアの中に埋め込まれた形式で存在することが可能であるし、あるいは、様々なコンピュータ可読媒体に記憶されることもありうる。コンピュータ可読媒体は、特定の情報処理システムにおいて実際に用いる際には復号可能な符号化された形式を有する。この出願において、ソフトウェア又はコンピュータ・プログラムとは、情報処理能力を有するコンピュータ・ハードウェアに特定の機能を実行させる命令セットの任意のプログラミング言語による表現を意味する。   As will be understood by those skilled in the art, each data processing executed by each of the above-described means is executed on the computer 11 by a computer program composed of corresponding instructions. These means may exist in an embedded form in computer hardware executing such a computer program, as described in the processor 13 frame of FIG. Alternatively, it may be stored on various computer readable media. The computer-readable medium has a coded format that can be decoded when actually used in a specific information processing system. In this application, software or computer program means an expression in an arbitrary programming language of an instruction set for causing a computer hardware having information processing capability to execute a specific function.

図27に示されているのはあくまで一例であり、本発明は、図27に図解されている特定のアーキテクチャに限定されることはない。本発明によるアイテム配分システムを構成する手段が組み入れられるハードウェアの構成は、個々の実装によって変動する。このように、本発明によるアイテム配分システム及び方法は、ハードウェアとソフトウェアとの組合せとして実現される。ハードウェアとソフトウェアとの典型的な組合せは、メモリにロードされプロセッサによって解釈され実行されるとコンピュータを制御して本発明を構成する手段及びステップを実行するコンピュータ・プログラムがインストールされたコンピュータ・システムである。   27 is merely an example, and the present invention is not limited to the specific architecture illustrated in FIG. The hardware configuration into which the means for configuring the item distribution system according to the present invention is incorporated varies depending on the individual implementation. Thus, the item distribution system and method according to the present invention is implemented as a combination of hardware and software. A typical combination of hardware and software is a computer system installed with a computer program that controls the computer to execute means and steps constituting the present invention when loaded into memory, interpreted and executed by a processor It is.

4.システムの動作について
図28には、本発明によるアイテム配分システムの動作の概略を示す流れ図が示されている。
4). About system operation :
FIG. 28 is a flowchart showing an outline of the operation of the item distribution system according to the present invention.

コンピュータのディスプレイ上において、縦軸(Y軸)に在庫を、横軸(X軸)に店舗をとったマトリクスの例である。この図1では、本発明による配分されるアイテム別の在庫数と配分される店舗別の投入指示数が入力されている。This is an example of a matrix in which the vertical axis (Y axis) represents inventory and the horizontal axis (X axis) represents stores on a computer display. In FIG. 1, the number of stocks by item to be distributed and the number of input instructions by store to be distributed according to the present invention are input. 構成比による按分計算をマトリクスのすべてのセルに対して行い、得られた数値をすべてのセルに配分した状態を示す図である。It is a figure which shows the state which performed the distribution calculation by a structure ratio with respect to all the cells of a matrix, and allocated the obtained numerical value to all the cells. ランキング処理の結果として得られた順位(ランキング)がX軸の上側及びY軸の左側に付された図である。It is the figure which attached | subjected the ranking (ranking) obtained as a result of the ranking process on the upper side of the X axis and the left side of the Y axis. 投入指示数がアイテム数よりも小さい場合に基本調整がなされた後の状態を示す図である。It is a figure which shows the state after a basic adjustment is made when the insertion instruction | indication number is smaller than the number of items. 在庫数が店舗数よりも小さい場合に基本調整がなされた後の状態を示す図である。It is a figure which shows the state after a basic adjustment is made when the number of stock is smaller than the number of stores. 投入指示数合わせのための第1の加算処理がなされた後の状態を示す図である。It is a figure which shows the state after the 1st addition process for injection instruction number adjustment was made. 投入指示数合わせのための第2の加算処理がなされた後の状態を示す図である。It is a figure which shows the state after the 2nd addition process for injection instruction number adjustment was made. 投入指示数合わせのための第3の加算処理がなされた後の状態を示す図である。It is a figure which shows the state after the 3rd addition process for injection instruction number adjustment was made. 投入指示数合わせのための第4の加算処理がなされた後の状態を示す図である。It is a figure which shows the state after the 4th addition process for the instruction | indication instruction number adjustment was made. 投入指示数合わせのための第5の加算処理がなされた後の状態を示す図である。It is a figure which shows the state after the 5th addition process for injection instruction number adjustment was made. 過剰分の緩和のための第1の減算処理がなされた後の状態を示す図である。It is a figure which shows the state after the 1st subtraction process for relaxation of excess was made. 過剰分の緩和のための第2の減算処理がなされた後の状態を示す図である。It is a figure which shows the state after the 2nd subtraction process for relaxation of excess was made. 過剰分の緩和のための第3の減算処理がなされた後の状態を示す図である。It is a figure which shows the state after the 3rd subtraction process for relaxation of excess was made. 投入指示数合わせのための第1の減算処理がなされた後の状態を示す図である。It is a figure which shows the state after the 1st subtraction process for injection instruction number adjustment was made. 投入指示数合わせのための第2の減算処理がなされた後の状態を示す図である。It is a figure which shows the state after the 2nd subtraction process for injection instruction number adjustment was made. アイテム間で第1のスワップ処理がなされた後の状態を示す図である。It is a figure which shows the state after the 1st swap process was made between items. アイテム間で第2のスワップ処理がなされた後の状態を示す図である。It is a figure which shows the state after the 2nd swap process was made between items. アイテム間で第3のスワップ処理がなされた後の状態を示す図である。It is a figure which shows the state after the 3rd swap process was made between items. アイテム間で第4のスワップ処理がなされた後の状態を示す図である。It is a figure which shows the state after the 4th swap process was made between items. アイテム間で第5のスワップ処理がなされた後の状態を示す図である。It is a figure which shows the state after the 5th swap process was made between items. アイテム間で第6のスワップ処理がなされた後の状態を示す図である。It is a figure which shows the state after the 6th swap process was made between items. 必要なすべてのスワップ処理が終了し、本発明によるアイテム配分が完了した状態を示す図である。It is a figure which shows the state which all the required swap processes were complete | finished and the item allocation by this invention was completed. 本発明により、在庫総数の全部ではなく一部だけを各店舗に配分した場合の配分結果である。ただし、構成比による按分の際に切り上げ処理を行った場合である。It is an allocation result when only a part of the total number of inventory is allocated to each store according to the present invention. However, this is a case where the round-up process is performed at the time of apportioning by the composition ratio. 本発明により、在庫総数の全部ではなく一部だけを各店舗に配分した場合の配分結果である。ただし、構成比による按分の際に四捨五入処理を行った場合である。It is an allocation result when only a part of the total number of inventory is allocated to each store according to the present invention. However, this is the case where the rounding process is performed when apportioning according to the composition ratio. 本発明により、在庫総数の全部ではなく一部だけを各店舗に配分した場合の配分結果である。ただし、構成比による按分の際に切り捨て処理を行った場合である。It is an allocation result when only a part of the total number of inventory is allocated to each store according to the present invention. However, this is the case where the truncation process is performed when allocating according to the composition ratio. 本発明によるアイテム配分システムを用い、切り上げ処理を採用した場合に、12種類のアイテムの在庫総数が2000であり、この在庫総数のすべてを50店舗に配分した結果が示されている。When the rounding-up process is employed using the item distribution system according to the present invention, the total number of stocks of 12 types of items is 2000, and the result of distributing all of the total number of stocks to 50 stores is shown. 本発明による数値配分を実現するコンピュータ・ハードウェアの概略を示すブロック図である。It is a block diagram which shows the outline of the computer hardware which implement | achieves numerical value distribution by this invention. 本発明によるアイテム配分の各段階を構成する情報処理を示す流れ図である。It is a flowchart which shows the information processing which comprises each step of the item allocation by this invention.

Claims (8)

mを1からpまでの正の整数、nを1からqまでの正の整数として、p行q列のマトリクス(amn)のpq個の非負整数成分amnをコンピュータを用いて決定することによって、T個の第1のアイテムからT個の第pのアイテムまでのp種類のアイテムの全部又は一部を、p種類の合計でV個のアイテムを受け取る第1の受取手段からp種類の合計でV個のアイテムを受け取る第qの受取手段までに配分するアイテム配分システムであって、
各アイテムの総数TないしTと各受取手段が受け取る数VないしVとが記憶された記憶手段と、
前記記憶手段に記憶されている前記第1ないし第pのアイテムのそれぞれの総数であるTないしTと、前記第1ないし第qの受取手段がそれぞれ受け取るVないしVとの初期条件を読み出して設定する初期条件設定手段であって、ただし、前記初期条件と前記マトリクスの非負整数成分との間には、T≧a11+a12+・・・+a1q、T≧a21+a22+・・・+a2q、・・・、T≧ap1+ap2+・・・+apqであり、V=a11+a21+・・・+ap1、V=a12+a22+・・・+ap2、・・・、V=a1q+a2q+・・・+apq)が成立する、初期条件設定手段と、
前記初期条件設定手段によって設定された初期条件を用いて、前記マトリクスの第m行第n列の成分amnに関し、水平方向の構成比V/(T+T+・・・+T)と、垂直方向の構成比T/(T+T+・・・+T)とを計算し、計算された水平方向の構成比と垂直方向の構成比との積である成分amnの構成比(V/(T+T+・・・+T))×(T/(T+T+・・・+T))を計算する構成比計算手段と、
各成分amnに関し、前記構成比計算手段によって計算された水平方向の構成比と垂直方向の構成比との積と各アイテムの総数との積(V/(T+T+・・・+T))×(T/(T+T+・・・+T))・(T+T+・・・+T)=V・T/(T+T+・・・+T)を計算して、計算の結果として得られる数値の小数点以下を処理し、整数にした上で各成分amnに按分する按分手段と、
前記按分手段によって各成分amnに按分された数値において小数点以下を処理した結果として生じた過剰分及び過小分を調整し、前記初期条件設定手段によって設定された初期条件と前記マトリクスの非負整数成分との間の関係を満足するようにする調整手段と、
を備えていることを特徴とするアイテム配分システム。
Determining, using a computer, pq non-negative integer components a mn of a p-by-q matrix (a mn ), where m is a positive integer from 1 to p and n is a positive integer from 1 to q Accordingly, all or part of the p type of item from the first item 1 T until the item of T p pieces of the p, from the first receiving means for receiving one item V the sum of p type An item distribution system that distributes up to q-th receiving means that receives V q items in total of p types,
Storage means for storing the total number T 1 to T p of each item and the numbers V 1 to V q received by each receiving means;
Initial conditions of T 1 to T p that are the total number of the first to p-th items stored in the storage means and V 1 to V q received by the first to q-th receiving means, respectively. Initial condition setting means for reading out and setting T 1 ≧ a 11 + a 12 +... + A 1q , T 2 ≧ a 21 between the initial condition and the non-negative integer component of the matrix. + A 22 + ... + a 2q ,..., T p ≧ a p1 + a p2 +... + A pq , V 1 = a 11 + a 21 +... + A p1 , V 2 = a 12 + a 22 + ... + a p2 ,..., V q = a 1q + a 2q +... + A pq )
Using the initial condition set by the initial condition setting means, the horizontal composition ratio V n / (T 1 + T 2 +... + T p ) regarding the component a mn in the m-th row and the n-th column of the matrix. And the vertical component ratio T m / (T 1 + T 2 +... + T p ), and the component a mn , which is the product of the calculated horizontal component ratio and the vertical component ratio, is calculated. A composition ratio calculating means for calculating a composition ratio (V n / (T 1 + T 2 +... + T p )) × (T m / (T 1 + T 2 +... + T p ));
For each component a mn , the product (V n / (T 1 + T 2 +...) Of the product of the horizontal composition ratio and the vertical composition ratio calculated by the composition ratio calculation means and the total number of each item. + T p )) × (T m / (T 1 + T 2 +... + T p )) · (T 1 + T 2 +... + T p ) = V n · T m / (T 1 + T 2 + ··· A distribution means for calculating + T p ), processing the decimal part of the numerical value obtained as a result of the calculation, making it an integer, and distributing it to each component a mn ;
The initial condition set by the initial condition setting means and the non-negative integer component of the matrix are adjusted by adjusting the excess and undersize generated as a result of processing the fractional part in the numerical value prorated to each component a mn by the apportioning means Adjustment means to satisfy the relationship between and
Item distribution system characterized by comprising.
mを1からpまでの正の整数、nを1からqまでの正の整数として、p行q列のマトリクス(amn)のpq個の非負整数成分amnをコンピュータを用いて決定することによって、T個の第1のアイテムからT個の第pのアイテムまでのp種類のアイテムの全部又は一部を、p種類の合計でV個のアイテムを受け取る第1の受取手段からp種類の合計でV個のアイテムを受け取る第qの受取手段までに配分するアイテム配分システムであって、
各アイテムの総数TないしTと各受取手段が受け取るアイテム数VないしVとが記憶された記憶手段と、
前記記憶手段に記憶されている前記第1ないし第pのアイテムのそれぞれの総数であるTないしTと、前記第1ないし第qの受取手段がそれぞれ受け取るVないしVとの初期条件を読み出して設定する初期条件設定手段であって、ただし、前記初期条件と前記マトリクスの非負整数成分との間には、T≧a11+a12+・・・+a1q、T≧a21+a22+・・・+a2q、・・・、T≧ap1+ap2+・・・+apqであり、V=a11+a21+・・・+ap1、V=a12+a22+・・・+ap2、・・・、V=a1q+a2q+・・・+apq)が成立する、初期条件設定手段と、
前記初期条件設定手段によって設定された初期条件を用いて、前記マトリクスの第m行第n列の成分amnに関し、水平方向の構成比V/(T+T+・・・+T)と、垂直方向の構成比T/(T+T+・・・+T)とを計算し、計算された水平方向の構成比と垂直方向の構成比との積である成分amnの構成比(V/(T+T+・・・+T))×(T/(T+T+・・・+T))を計算する構成比計算手段と、
各成分amnに関し、前記構成比計算手段によって計算された水平方向の構成比と垂直方向の構成比との積と各アイテムの総数との積(V/(T+T+・・・+T))×(T/(T+T+・・・+T))・(T+T+・・・+T)=V・T/(T+T+・・・+T)を計算して、計算の結果として得られる数値の小数点以下を切り上げ処理し、整数にした上で各成分amnに按分する按分手段と、
前記按分手段によって各成分amnに按分された数値において小数点以下を切り上げた結果として生じた過剰分及び過小分を調整し、前記初期条件設定手段によって設定された初期条件と前記マトリクスの非負整数成分との間の関係を満足するようにする調整手段と、
を備えていることを特徴とするアイテム配分システム。
Determining, using a computer, pq non-negative integer components a mn of a p-by-q matrix (a mn ), where m is a positive integer from 1 to p and n is a positive integer from 1 to q Accordingly, all or part of the p type of item from the first item 1 T until the item of T p pieces of the p, from the first receiving means for receiving one item V the sum of p type An item distribution system that distributes up to q-th receiving means that receives V q items in total of p types,
Storage means for storing the total number T 1 to T p of each item and the number of items V 1 to V q received by each receiving means;
Initial conditions of T 1 to T p that are the total number of the first to p-th items stored in the storage means and V 1 to V q received by the first to q-th receiving means, respectively. Initial condition setting means for reading out and setting T 1 ≧ a 11 + a 12 +... + A 1q , T 2 ≧ a 21 between the initial condition and the non-negative integer component of the matrix. + A 22 + ... + a 2q ,..., T p ≧ a p1 + a p2 +... + A pq , V 1 = a 11 + a 21 +... + A p1 , V 2 = a 12 + a 22 + ... + a p2 ,..., V q = a 1q + a 2q +... + A pq )
Using the initial condition set by the initial condition setting means, the horizontal composition ratio V n / (T 1 + T 2 +... + T p ) regarding the component a mn in the m-th row and the n-th column of the matrix. And the vertical component ratio T m / (T 1 + T 2 +... + T p ), and the component a mn , which is the product of the calculated horizontal component ratio and the vertical component ratio, is calculated. A composition ratio calculating means for calculating a composition ratio (V n / (T 1 + T 2 +... + T p )) × (T m / (T 1 + T 2 +... + T p ));
For each component a mn , the product (V n / (T 1 + T 2 +...) Of the product of the horizontal composition ratio and the vertical composition ratio calculated by the composition ratio calculation means and the total number of each item. + T p )) × (T m / (T 1 + T 2 +... + T p )) · (T 1 + T 2 +... + T p ) = V n · T m / (T 1 + T 2 + ··· A distribution means for calculating + T p ), rounding up the fractional part of the numerical value obtained as a result of the calculation to an integer, and dividing the result into each component a mn ;
In the numerical values that are prorated to the respective components a mn by the apportioning means, the excess and subtraction resulting from rounding up the decimal point are adjusted, the initial condition set by the initial condition setting means and the non-negative integer component of the matrix Adjustment means to satisfy the relationship between and
Item distribution system characterized by comprising.
請求項2記載のアイテム配分システムにおいて、前記調整手段は、
前記過剰分及び過小分の調整の順序を予め設定するランキング処理手段と、
前記按分手段によって按分された各成分amnの各行及び各列の総和が前記初期条件設定手段によって予め設定されている初期条件を超える場合には、前記ランキング処理手段によって設定された順序に従い、前記初期条件設定手段によって予め設定されている初期条件の範囲までの各成分amnを1とし、前記総和を超える成分からは0とする基本調整手段と、
垂直方向の成分の総和が前記初期条件設定手段によって設定されたV未満である列に含まれるp個の成分において、前記ランキング処理手段によって設定された順序に従い、前記初期条件設定手段によって設定された各成分Vと等しくなるまで各成分amnに1を加算する加算処理手段と、
前記マトリクスの水平方向の成分の総和が前記初期条件設定手段によって設定されたTを超えている行に含まれるq個の成分において、前記ランキング処理手段によって設定された順序に従い、各成分amnから1を減算する過剰分緩和手段と、
垂直方向の成分の総和が前記初期条件設定手段によって設定されたVを超えている列に含まれるp個の成分において、前記ランキング処理手段によって設定された順序に従い、前記初期条件設定手段によって設定されたVと等しくなるまで各成分amnから1を減算し、すべての列における垂直成分の総和を前記初期条件設定手段によって設定されたVと等しくする減算処理手段と、
水平方向の成分の総和が前記初期条件設定手段によって設定されたTを超えている第1の行と、水平方向の成分の総和が前記初期条件設定手段によって設定されたT未満である第2の行とを特定し、第1の行の成分から1を減算し第2の行の成分に1を加算する処理を、すべての行における水平方向の成分の総和が前記初期条件設定手段によって設定されたT以下となるまで継続するスワップ処理手段と、
を含むことを特徴とするアイテム配分システム。
The item distribution system according to claim 2, wherein the adjustment unit includes:
Ranking processing means for presetting the order of adjustment of the excess and the minor;
When the sum of each row and each column of each component a mn apportioned by the apportioning unit exceeds the initial condition preset by the initial condition setting unit, according to the order set by the ranking processing unit, Basic adjustment means for setting each component a mn up to a range of initial conditions set in advance by the initial condition setting means as 1, and setting 0 as the component exceeding the sum,
In the p components included in the column in which the sum of the components in the vertical direction is less than V n set by the initial condition setting unit, the initial condition setting unit sets the p components in the order set by the ranking processing unit. Addition processing means for adding 1 to each component a mn until equal to each component V n ;
In q components included in a row in which the sum of horizontal components of the matrix exceeds T m set by the initial condition setting unit, each component a mn follows the order set by the ranking processing unit. Excess relaxation means for subtracting 1 from
Set by the initial condition setting means in accordance with the order set by the ranking processing means in the p components included in the column in which the sum of the components in the vertical direction exceeds V n set by the initial condition setting means Subtracting means for subtracting 1 from each component a mn until equal to V n, and making the sum of vertical components in all columns equal to V n set by the initial condition setting means;
A first row sum of the horizontal component is greater than the T m, which is set by the initial condition setting means, the sum of the horizontal component is T less than m, which is set by the initial condition setting means 2 is specified, the process of subtracting 1 from the component of the first row and adding 1 to the component of the second row, the sum of horizontal components in all rows is determined by the initial condition setting means Swap processing means that continues until the set T m or less,
An item distribution system characterized by including:
mを1からpまでの正の整数、nを1からqまでの正の整数として、p行q列のマトリクス(amn)のpq個の非負整数成分amnをコンピュータを用いて決定することによって、T個の第1のアイテムからT個の第pのアイテムまでのp種類のアイテムの全部又は一部を、p種類の合計でV個のアイテムを受け取る第1の受取手段からp種類の合計でV個のアイテムを受け取る第qの受取手段までに配分するアイテム配分方法であって、
各アイテムの総数TないしTと各受取手段が受け取るアイテム数VないしVとが記憶された記憶手段に記憶されている前記第1ないし第pのアイテムのそれぞれの総数であるTないしTと、前記第1ないし第qの受取手段がそれぞれ受け取るVないしVとの初期条件を読み出して設定するステップであって、ただし、前記初期条件と前記マトリクスの非負整数成分との間には、T≧a11+a12+・・・+a1q、T≧a21+a22+・・・+a2q、・・・、T≧ap1+ap2+・・・+apqであり、V=a11+a21+・・・+ap1、V=a12+a22+・・・+ap2、・・・、V=a1q+a2q+・・・+apq)が成立する、初期条件設定ステップと、
前記初期条件設定ステップによって設定された初期条件を用いて、前記マトリクスの第m行第n列の成分amnに関し、水平方向の構成比V/(T+T+・・・+T)と、垂直方向の構成比T/(T+T+・・・+T)とを計算し、計算された水平方向の構成比と垂直方向の構成比との積である成分amnの構成比(V/(T+T+・・・+T))×(T/(T+T+・・・+T))を計算する構成比計算ステップと、
各成分amnに関し、前記構成比計算ステップによって計算された水平方向の構成比と垂直方向の構成比との積と各アイテムの総数との積(V/(T+T+・・・+T))×(T/(T+T+・・・+T))・(T+T+・・・+T)=V・T/(T+T+・・・+T)を計算して、計算の結果として得られる数値の小数点以下を処理し、整数にした上で各成分amnに按分する按分ステップと、
前記按分ステップによって各成分amnに按分された数値において小数点以下を処理した結果として生じた過剰分及び過小分を調整し、前記初期条件設定ステップによって設定された初期条件と前記マトリクスの非負整数成分との間の関係を満足するようにする調整ステップと、
を含むことを特徴とするアイテム配分方法。
Determining, using a computer, pq non-negative integer components a mn of a p-by-q matrix (a mn ), where m is a positive integer from 1 to p and n is a positive integer from 1 to q by all or part of the p type of item from the first item 1 T until the item of T p pieces of the p, from the first receiving means for receiving one item V the sum of p type An item allocation method for distributing up to q-th receiving means for receiving a total of V q items of p types,
T 1 respectively of the total number of items of the total number T 1 to T p and the first to p to no number V 1 item receives the receiving means and V q are stored in the stored storage means of each item to a T p, the receiving means of the first to q is a step of reading out the initial condition set in the V q to no V 1 received respectively, however, the non-negative integer component of the initial conditions and the matrix between, T 1 ≧ a 11 + a 12 + ··· + a 1q, T 2 ≧ a 21 + a 22 + ··· + a 2q, ···, at T p ≧ a p1 + a p2 + ··· + a pq There, V 1 = a 11 + a 21 + ··· + a p1, V 2 = a 12 + a 22 + ··· + a p2, ···, V q = a 1q + a 2q + ··· + a pq) is satisfied The initial condition setting Tep,
Using the initial condition set in the initial condition setting step, the horizontal composition ratio V n / (T 1 + T 2 +... + T p ) regarding the component a mn in the m-th row and the n-th column of the matrix. And the vertical component ratio T m / (T 1 + T 2 +... + T p ), and the component a mn , which is the product of the calculated horizontal component ratio and the vertical component ratio, is calculated. A composition ratio calculating step for calculating a composition ratio (V n / (T 1 + T 2 +... + T p )) × (T m / (T 1 + T 2 +... + T p ));
For each component a mn , the product of the product of the horizontal composition ratio and the vertical composition ratio calculated by the composition ratio calculation step and the total number of each item (V n / (T 1 + T 2 +...). + T p )) × (T m / (T 1 + T 2 +... + T p )) · (T 1 + T 2 +... + T p ) = V n · T m / (T 1 + T 2 + ··· A distribution step of calculating + T p ), processing the decimal part of the numerical value obtained as a result of the calculation, making it an integer, and distributing it to each component a mn ;
In the numerical values distributed to the respective components a mn by the apportioning step, the excess and subtraction resulting from the processing of the fractional part are adjusted, and the initial condition set by the initial condition setting step and the non-negative integer component of the matrix An adjustment step to satisfy the relationship between
Item distribution method characterized by including.
mを1からpまでの正の整数、nを1からqまでの正の整数として、p行q列のマトリクス(amn)のpq個の非負整数成分amnをコンピュータを用いて決定することによって、T個の第1のアイテムからT個の第pのアイテムまでのp種類のアイテムの全部又は一部を、p種類の合計でV個のアイテムを受け取る第1の受取手段からp種類の合計でV個のアイテムを受け取る第qの受取手段までに配分するアイテム配分方法であって、
各アイテムの総数TないしTと各受取手段が受け取るアイテム数VないしVとが記憶された記憶手段に記憶されている前記第1ないし第pのアイテムのそれぞれの総数であるTないしTと、前記第1ないし第qの受取手段がそれぞれ受け取るVないしVとの初期条件を読み出して設定するステップであって、ただし、前記初期条件と前記マトリクスの非負整数成分との間には、T≧a11+a12+・・・+a1q、T≧a21+a22+・・・+a2q、・・・、T≧ap1+ap2+・・・+apqであり、V=a11+a21+・・・+ap1、V=a12+a22+・・・+ap2、・・・、V=a1q+a2q+・・・+apq)が成立する、初期条件設定ステップと、
前記初期条件設定ステップによって設定された初期条件を用いて、前記マトリクスの第m行第n列の成分amnに関し、水平方向の構成比V/(T+T+・・・+T)と、垂直方向の構成比T/(T+T+・・・+T)とを計算し、計算された水平方向の構成比と垂直方向の構成比との積である成分amnの構成比(V/(T+T+・・・+T))×(T/(T+T+・・・+T))を計算する構成比計算ステップと、
各成分amnに関し、前記構成比計算ステップによって計算された水平方向の構成比と垂直方向の構成比との積と各アイテムの総数との積(V/(T+T+・・・+T))×(T/(T+T+・・・+T))・(T+T+・・・+T)=V・T/(T+T+・・・+T)を計算して、計算の結果として得られる数値の小数点以下を切り上げ処理し、整数にした上で各成分amnに按分する按分ステップと、
前記按分ステップによって各成分amnに按分された数値において小数点以下を切り上げた結果として生じた過剰分及び過小分を調整し、前記初期条件を設定するステップによって設定された初期条件と前記マトリクスの非負整数成分との間の関係を満足するようにする調整ステップと、
を含むことを特徴とするアイテム配分方法。
Determining, using a computer, pq non-negative integer components a mn of a p-by-q matrix (a mn ), where m is a positive integer from 1 to p and n is a positive integer from 1 to q Accordingly, all or part of the p type of item from the first item 1 T until the item of T p pieces of the p, from the first receiving means for receiving one item V the sum of p type An item allocation method for distributing up to q-th receiving means for receiving a total of V q items of p types,
T 1 respectively of the total number of items of the total number T 1 to T p and the first to p to no number V 1 item receives the receiving means and V q are stored in the stored storage means of each item to a T p, the receiving means of the first to q is a step of reading out the initial condition set in the V q to no V 1 received respectively, however, the non-negative integer component of the initial conditions and the matrix between, T 1 ≧ a 11 + a 12 + ··· + a 1q, T 2 ≧ a 21 + a 22 + ··· + a 2q, ···, at T p ≧ a p1 + a p2 + ··· + a pq There, V 1 = a 11 + a 21 + ··· + a p1, V 2 = a 12 + a 22 + ··· + a p2, ···, V q = a 1q + a 2q + ··· + a pq) is satisfied The initial condition setting Tep,
Using the initial condition set in the initial condition setting step, the horizontal composition ratio V n / (T 1 + T 2 +... + T p ) regarding the component a mn in the m-th row and the n-th column of the matrix. And the vertical component ratio T m / (T 1 + T 2 +... + T p ), and the component a mn , which is the product of the calculated horizontal component ratio and the vertical component ratio, is calculated. A composition ratio calculating step for calculating a composition ratio (V n / (T 1 + T 2 +... + T p )) × (T m / (T 1 + T 2 +... + T p ));
For each component a mn , the product of the product of the horizontal composition ratio and the vertical composition ratio calculated by the composition ratio calculation step and the total number of each item (V n / (T 1 + T 2 +...). + T p )) × (T m / (T 1 + T 2 +... + T p )) · (T 1 + T 2 +... + T p ) = V n · T m / (T 1 + T 2 + ··· A distribution step of calculating + T p ), rounding up the decimal point of the numerical value obtained as a result of the calculation, making it an integer, and dividing the result into each component a mn ;
In the numerical values allocated to the respective components a mn in the apportioning step, the excess and subtraction resulting from rounding up the fractional part are adjusted, and the initial condition set by the step of setting the initial condition and the non-negative of the matrix An adjustment step to satisfy the relationship between the integer components;
Item distribution method characterized by including.
請求項5記載のアイテム配分方法において、前記調整ステップは、
前記過剰分及び過小分の調整の順序を予め設定するランキング処理ステップと、
前記按分ステップによって按分された各成分amnの各行及び各列の総和が前記初期条件設定ステップによって予め設定されている初期条件を超える場合には、前記ランキング処理ステップによって設定された順序に従い、前記初期条件設定ステップによって予め設定されている初期条件の範囲までの各成分amnを1とし、前記総和を超える成分からは0とする基本調整ステップと、
垂直方向の成分の総和が前記初期条件設定ステップによって設定されたV未満である列に含まれるp個の成分において、前記ランキング処理ステップによって設定された順序に従い、前記初期条件設定ステップによって設定された各成分Vと等しくなるまで各成分amnに1を加算する加算処理ステップと、
前記マトリクスの水平方向の成分の総和が前記初期条件設定ステップによって設定されたTを超えている行に含まれるq個の成分において、前記ランキング処理ステップによって設定された順序に従い、各成分amnから1を減算する過剰分緩和ステップと、
垂直方向の成分の総和が前記初期条件設定ステップによって設定されたVを超えている列に含まれるp個の成分において、前記ランキング処理ステップによって設定された順序に従い、前記初期条件設定ステップによって設定されたVと等しくなるまで各成分amnから1を減算し、すべての列における垂直成分の総和を前記初期条件設定ステップによって設定されたVと等しくする減算処理ステップと、
水平方向の成分の総和が前記初期条件設定ステップによって設定されたTを超えている第1の行と、水平方向の成分の総和が前記初期条件設定ステップによって設定されたT未満である第2の行とを特定し、第1の行の成分から1を減算し第2の行の成分に1を加算する処理を、すべての行における水平方向の成分の総和が前記初期条件設定ステップによって設定されたT以下となるまで継続するスワップ処理ステップと、
を含むことを特徴とするアイテム配分方法。
6. The item distribution method according to claim 5, wherein the adjustment step includes:
A ranking process step for presetting the order of adjustment of the excess and the minor;
When the sum of each row and each column of each component a mn apportioned by the apportioning step exceeds the initial condition set in advance by the initial condition setting step, according to the order set by the ranking processing step, A basic adjustment step in which each component a mn up to a range of initial conditions set in advance by the initial condition setting step is set to 1, and 0 is set for components exceeding the total sum;
In the p components included in the column in which the sum of the components in the vertical direction is less than V n set by the initial condition setting step, the initial condition setting step sets the p components in the order set by the ranking processing step. An addition processing step of adding 1 to each component a mn until equal to each component V n ;
In the q components included in the rows in which the total sum of the horizontal components of the matrix exceeds T m set by the initial condition setting step, each component a mn follows the order set by the ranking processing step. An excess relaxation step of subtracting 1 from
Set by the initial condition setting step according to the order set by the ranking processing step in the p components included in the column whose total sum of vertical components exceeds V n set by the initial condition setting step Subtracting 1 from each component a mn until it equals V n, and subtracting the sum of vertical components in all columns equal to V n set by the initial condition setting step;
A first row sum of the horizontal component is greater than the T m, which is set by the initial condition setting step, the sum of the horizontal component is lower than T m, which is set by the initial condition setting step 2 is specified, the process of subtracting 1 from the component of the first row and adding 1 to the component of the second row, the sum of the horizontal components in all rows is determined by the initial condition setting step. A swap process step that continues until the Tm is less than or equal to the set Tm ;
Item distribution method characterized by including.
請求項4ないし請求項6のいずれかの請求項に記載のアイテム配分方法に含まれる各ステップをコンピュータに実行させるコンピュータ・プログラムが記憶されているコンピュータ可読な記憶媒体。   A computer-readable storage medium storing a computer program that causes a computer to execute each step included in the item distribution method according to claim 4. 請求項4ないし請求項6のいずれかの請求項に記載のアイテム配分方法に含まれる各ステップをコンピュータに実行させるコンピュータ・プログラム。   A computer program for causing a computer to execute each step included in the item distribution method according to any one of claims 4 to 6.
JP2007118945A 2007-04-27 2007-04-27 Item distribution system and method Expired - Fee Related JP4035557B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007118945A JP4035557B1 (en) 2007-04-27 2007-04-27 Item distribution system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007118945A JP4035557B1 (en) 2007-04-27 2007-04-27 Item distribution system and method

Publications (2)

Publication Number Publication Date
JP4035557B1 JP4035557B1 (en) 2008-01-23
JP2008276486A true JP2008276486A (en) 2008-11-13

Family

ID=39078274

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007118945A Expired - Fee Related JP4035557B1 (en) 2007-04-27 2007-04-27 Item distribution system and method

Country Status (1)

Country Link
JP (1) JP4035557B1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009184744A (en) * 2008-02-01 2009-08-20 Nec Corp Stock management support device, stock management support method, and program
JP2010181963A (en) * 2009-02-03 2010-08-19 Ntt Data Corp Demand prediction device, demand prediction method and program
JP2013225340A (en) * 2013-07-22 2013-10-31 Ntt Data Corp Demand prediction device, demand prediction method and program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009184744A (en) * 2008-02-01 2009-08-20 Nec Corp Stock management support device, stock management support method, and program
JP2010181963A (en) * 2009-02-03 2010-08-19 Ntt Data Corp Demand prediction device, demand prediction method and program
JP2013225340A (en) * 2013-07-22 2013-10-31 Ntt Data Corp Demand prediction device, demand prediction method and program

Also Published As

Publication number Publication date
JP4035557B1 (en) 2008-01-23

Similar Documents

Publication Publication Date Title
Pan et al. Order batching in a pick-and-pass warehousing system with group genetic algorithm
Hausman et al. Multiproduct production scheduling for style goods with limited capacity, forecast revisions and terminal delivery
Thiagarajan et al. Scheduling in dynamic assembly job-shops to minimize the sum of weighted earliness, weighted tardiness and weighted flowtime of jobs
US6014640A (en) Accounting allocation method
JP7062561B2 (en) Stock allocation design equipment and inventory allocation design method
US20120130907A1 (en) Project management system and method
CN104123304B (en) The sorting in parallel system and method for data-driven
Paul et al. A disruption recovery plan in a three-stage production-inventory system
EP1619593A1 (en) Computer-Implemented method and system for performing a product availability check
CN110633820B (en) Warehouse address recommendation method and device and computer readable storage medium
Zohali et al. The economic lot scheduling problem in limited-buffer flexible flow shops: Mathematical models and a discrete fruit fly algorithm
Drwal Robust scheduling to minimize the weighted number of late jobs with interval due-date uncertainty
Carvalho et al. A kernel search to the multi-plant capacitated lot sizing problem with setup carry-over
JP4035557B1 (en) Item distribution system and method
Vink et al. Optimal appointment scheduling in continuous time: The lag order approximation method
US11294712B2 (en) Method, device and computer program product for task management
Shaik et al. Unification of STN and RTN based models for short-term scheduling of batch plants with shared resources
Kaczmarczyk Valid inequalities for proportional lot-sizing and scheduling problem with fictitious microperiods
Pan Efficient nested pricing in the simplex algorithm
JP2009098924A (en) Member assignment system
Malmborg et al. A model based evaluation of a commonly used rule of thumb for warehouse layout
JP2009199397A (en) Inventory management device, inventory management method and computer program
EP1612696A1 (en) Computer-implemented method and system for checking the availability of products
JP6806885B2 (en) Logistics support system and logistics support method
Tyagi An optimization of an inventory model of decaying-lot depleted by declining market demand and extended with discretely variable holding costs

Legal Events

Date Code Title Description
TRDD Decision of grant or rejection written
A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20071029

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101102

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees