JP2021103377A - Ordering recommendation system, ordering recommendation method, and program - Google Patents

Ordering recommendation system, ordering recommendation method, and program Download PDF

Info

Publication number
JP2021103377A
JP2021103377A JP2019233500A JP2019233500A JP2021103377A JP 2021103377 A JP2021103377 A JP 2021103377A JP 2019233500 A JP2019233500 A JP 2019233500A JP 2019233500 A JP2019233500 A JP 2019233500A JP 2021103377 A JP2021103377 A JP 2021103377A
Authority
JP
Japan
Prior art keywords
product
sales
data
amount
time
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.)
Pending
Application number
JP2019233500A
Other languages
Japanese (ja)
Inventor
昌樹 酒井
Masaki Sakai
昌樹 酒井
崇 益田
Takashi Masuda
崇 益田
加納 誠
Makoto Kano
誠 加納
晋一郎 川野
Shinichiro Kawano
晋一郎 川野
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.)
Toshiba Digital Solutions Corp
Toshiba Digital and Consulting Corp
Original Assignee
Toshiba Digital Solutions Corp
Toshiba Digital and Consulting 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 Toshiba Digital Solutions Corp, Toshiba Digital and Consulting Corp filed Critical Toshiba Digital Solutions Corp
Priority to JP2019233500A priority Critical patent/JP2021103377A/en
Publication of JP2021103377A publication Critical patent/JP2021103377A/en
Pending legal-status Critical Current

Links

Images

Landscapes

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

Abstract

To provide an ordering recommendation system, an ordering recommendation method, and a program that can increase accuracy in calculation of a recommended amount of ordering.SOLUTION: An ordering recommendation system of an embodiment has an ordering recommended amount calculation unit. At the time of ordering products, the ordering recommended amount calculation unit subtracts a predicted quantity of products in stock at the timing of delivery from a standard quantity of stock at the timing of delivery to calculate an insufficient number of products for the standard quantity of stock at the timing of delivery. The ordering recommended amount calculation unit adds, to the insufficient number of products for the standard quantity of stock at the time of delivery, the predicted number of products demanded in a period from the timing of delivery to earlier timing of the timing of delivery for the next ordering and the timing at which a sales expiration date of products to be ordered this time arrives, to thereby calculate the recommended amount of ordering the products.SELECTED DRAWING: Figure 1

Description

本発明の実施形態は、発注推奨システム、発注推奨方法、およびプログラムに関する。 Embodiments of the present invention relate to ordering recommendation systems, ordering recommendation methods, and programs.

従来、発注日に発注した商品が店舗に着荷する日までに店舗において欠品が生じないように、発注日における商品の発注推奨量を算出する技術が知られている。 Conventionally, there has been known a technique for calculating a recommended order quantity of a product on the order date so that the product ordered on the order date does not run out in the store by the day when the product arrives at the store.

しかしながら、従来の技術では、商品の品質維持等の理由から、商品の販売期間が発注間隔に比較して短くなることが有り得る場合について、発注推奨量の算出方法について十分に検討されていなかった。 However, in the conventional technique, the method of calculating the recommended order quantity has not been sufficiently examined in the case where the sales period of the product may be shorter than the ordering interval for the reason of maintaining the quality of the product.

特開2007−200185号公報Japanese Unexamined Patent Publication No. 2007-200185

本発明が解決しようとする課題は、発注推奨量の算出の精度を高めることができる発注推奨システム、発注推奨方法、およびプログラムを提供することである。 An object to be solved by the present invention is to provide an ordering recommendation system, an ordering recommendation method, and a program capable of improving the accuracy of calculating the ordering recommended quantity.

実施形態の発注推奨システムは、発注推奨量計算部を持つ。発注推奨量計算部は、商品を発注する時点において、納品タイミングにおける商品の予測在庫数を納品タイミングにおける基準在庫数から減算することにより納品タイミングにおける基準在庫数に対する不足数を計算する。また、発注推奨量計算部は、納品タイミングにおける基準在庫数に対する不足数に対して、納品タイミングから、次回発注の納品タイミング、および、今回発注する商品の販売期限が満了するタイミングのうち早いタイミングまでの間の期間の、商品の予測需要数を加算して、商品の発注推奨量を算出する。 The ordering recommendation system of the embodiment has an ordering recommended quantity calculation unit. At the time of ordering a product, the order recommended quantity calculation unit calculates the shortage with respect to the standard stock quantity at the delivery timing by subtracting the estimated stock quantity of the product at the delivery timing from the standard stock quantity at the delivery timing. In addition, the ordering recommended quantity calculation unit responds to the shortage of the standard stock quantity at the delivery timing from the delivery timing to the delivery timing of the next order and the earlier timing of the expiration of the sales deadline of the product ordered this time. The recommended quantity for ordering the product is calculated by adding the estimated demand for the product during the period between them.

在庫最適化システムの一例を示す図。The figure which shows an example of the inventory optimization system. 理論在庫数の計算処理を説明するための図。The figure for demonstrating the calculation process of the theoretical stock quantity. 理論在庫数の計算処理を説明するための図。The figure for demonstrating the calculation process of the theoretical stock quantity. 補正理論在庫数の時系列データの一例を示す図。The figure which shows an example of the time series data of the correction theoretical stock quantity. 補正理論在庫数の計算処理を説明するための図。The figure for demonstrating the calculation process of the correction theory stock quantity. 値引き集計データの計算過程を説明するための図。The figure for demonstrating the calculation process of discount aggregate data. 廃棄集計データの計算過程を説明するための図。The figure for demonstrating the calculation process of the waste aggregate data. 単品別理論在庫データの計算過程を説明するための図。The figure for demonstrating the calculation process of the theoretical inventory data for each individual item. カテゴリ別理論在庫データの計算過程を説明するための図。Diagram to explain the calculation process of theoretical inventory data by category. 購入客数データの計算過程を説明するための図。The figure for demonstrating the calculation process of the purchase customer number data. 売り逃し数算出用データの計算過程を説明するための図。The figure for demonstrating the calculation process of the data for calculating the number of missed sales. 売り逃し数算出用データの一例を示す図。The figure which shows an example of the data for calculating the number of missed sales. 想定購入率および単品別売り逃し数の計算過程を説明するための図。The figure for demonstrating the calculation process of the estimated purchase rate and the number of missed sales by individual item. 代替商品購入を考慮した欠品期間における単品別売り逃し金額の計算過程を説明するための図。The figure for demonstrating the calculation process of the oversold amount by individual item in the shortage period considering the purchase of a substitute product. 学習用データの前処理を説明するための図。The figure for demonstrating the preprocessing of training data. 学習用データの前処理を説明するための図。The figure for demonstrating the preprocessing of training data. 学習用データの一例を示す図。The figure which shows an example of the learning data. 需要予測処理の一例を示すフローチャート。A flowchart showing an example of demand forecast processing. 学習用データの一例を示す図。The figure which shows an example of the learning data. 需要予測処理の一例を示すフローチャート。A flowchart showing an example of demand forecast processing. 基準在庫量の計算処理の一例を示すフローチャート。The flowchart which shows an example of the calculation process of a reference stock amount. 単位売残損失の算出方法の一例を示す図。The figure which shows an example of the calculation method of a unit unsold loss. 商品の需要予測残差分布の一例を示す図。The figure which shows an example of the demand forecast residual distribution of a product. 商品の需要予測残差分布の一例を示す図。The figure which shows an example of the demand forecast residual distribution of a product. 商品の需要予測残差分布と商品の売逃損失額および売残損失額とを重ねて示す図。The figure which superimposes the demand forecast residual distribution of a product, the amount of a loss on sale of a product, and the amount of a loss on sale of a product. 商品の需要予測残差分布と商品の売逃損失額および売残損失額とを重ねて示す図。The figure which superimposes the demand forecast residual distribution of a product, the amount of a loss on sale of a product, and the amount of a loss on sale of a product. 商品の需要予測残差分布と商品の売逃損失額および売残損失額とを重ねて示す図。The figure which superimposes the demand forecast residual distribution of a product, the amount of a loss on sale of a product, and the amount of a loss on sale of a product. 商品の需要予測残差分布と商品の売逃損失額および売残損失額とを重ねて示す図。The figure which superimposes the demand forecast residual distribution of a product, the amount of a loss on sale of a product, and the amount of a loss on sale of a product. 基準在庫量の計算処理の一例を説明するための図。The figure for demonstrating an example of the calculation process of a reference stock amount. 基準在庫量の計算処理の一例を説明するための図。The figure for demonstrating an example of the calculation process of a reference stock amount. 発注推奨量の計算過程を説明するための図。The figure for demonstrating the calculation process of the recommended order quantity. 発注推奨量の計算過程を説明するための図。The figure for demonstrating the calculation process of the recommended order quantity. 不定貫商品の内容量ごとの販売実績によって発注推奨量を補正する計算過程を説明するための図。The figure for demonstrating the calculation process which corrects the recommended order quantity based on the sales performance for each content of an uncertain product. 不定貫商品の内容量ごとの販売実績によって発注推奨量を補正する計算処理の一例を示すフローチャート。The flowchart which shows an example of the calculation process which corrects the recommended order quantity based on the sales performance for each content of an indefinite product. 商品の販売期限を考慮した発注推奨量の計算処理を説明するための図。The figure for demonstrating the calculation process of the recommended order quantity considering the sale deadline of a product. 商品の販売期限を考慮した発注推奨量の計算処理を説明するための図。The figure for demonstrating the calculation process of the recommended order quantity considering the sale deadline of a product. 商品の販売期限を考慮した発注推奨量の計算処理を説明するための図。The figure for demonstrating the calculation process of the recommended order quantity considering the sale deadline of a product. 商品の販売期限を考慮した発注推奨量の計算処理を説明するための図。The figure for demonstrating the calculation process of the recommended order quantity considering the sale deadline of a product. 商品の販売期限を考慮した発注推奨量の計算処理を説明するための図。The figure for demonstrating the calculation process of the recommended order quantity considering the sale deadline of a product.

以下、実施形態の在庫最適化システム、在庫最適化方法、およびプログラムを、図面を参照して説明する。 Hereinafter, the inventory optimization system, the inventory optimization method, and the program of the embodiment will be described with reference to the drawings.

図1は、実施形態の在庫最適化システム10の構成図である。在庫最適化システム10は、例えば、損失推定システム100と、発注推奨システム200とを含む。発注推奨システム200は、損失推定システム100により推定された商品の売り逃しデータと、商品の販売実績データとに基づいて、商品の需要を予測し、予測した商品の需要に基づいて、商品の在庫を最適化するように、商品の発注推奨量を決定するシステムである。なお、商品には、店舗内で生産する商品と、店舗外への発注に基づいて配送される商品とがある。したがって、実施形態で使用される「発注」という言葉は、店内で生産される商品については「生産」と読み替えた方がよい場合がある。同様に、「発注推奨」を「生産推奨」、「発注推奨量」を「生産推奨量」とそれぞれ読み替えた方がよい場合がある。実施形態では、これら読み替えにより発生する説明文は省略している。 FIG. 1 is a configuration diagram of the inventory optimization system 10 of the embodiment. The inventory optimization system 10 includes, for example, a loss estimation system 100 and an ordering recommendation system 200. The ordering recommendation system 200 predicts the demand for the product based on the missed sale data of the product estimated by the loss estimation system 100 and the sales performance data of the product, and the inventory of the product is based on the predicted demand for the product. It is a system that determines the recommended quantity for ordering products so as to optimize. The products include products produced in the store and products delivered based on orders placed outside the store. Therefore, the word "ordering" used in the embodiment may be better read as "production" for products produced in the store. Similarly, it may be better to read "ordering recommendation" as "production recommendation" and "ordering recommended amount" as "production recommended amount". In the embodiment, the explanatory text generated by these replacements is omitted.

[損失推定システム]
損失推定システム100は、一以上のプロセッサにより実現される。損失推定システム100は、商品の値引き損失、廃棄損失、および、売り逃し損失を推定するシステムである。損失推定システム100は、例えば、制御部110と、記憶部140とを備える。制御部110は、例えば、在庫数計算部112と、在庫数補正部114と、値引き損失計算部116と、廃棄損失計算部118と、欠品判定部120と、売り逃し計算部122と、単品別需要金額計算部124と、カテゴリ別需要金額計算部126と、評価部128と、売り逃し補正部130と、売り逃し出力部132とを備える。これらの構成要素は、例えば、CPUなどのハードウェアプロセッサがプログラム(ソフトウェア)を実行することにより実現される。これらの構成要素のうち一部または全部は、LSI(Large-scale integrated circuit)やASIC(Application Specific integrated circuit)、FPGA(Field-Programmable gate array)、GPU(Graphics Processing Unit)などのハードウェア(回路部;circuitryを含む)によって実現されてもよいし、ソフトウェアとハードウェアの協働によって実現されてもよい。プログラムは、予めHDDやフラッシュメモリなどの記憶装置(非一過性の記憶媒体を備える記憶装置)に格納されていてもよいし、DVDやCD−ROMなどの着脱可能な記憶媒体(非一過性の記憶媒体)に格納されており、記憶媒体がドライブ装置に装着されることでインストールされてもよい。
[Loss estimation system]
The loss estimation system 100 is realized by one or more processors. The loss estimation system 100 is a system for estimating discount loss, disposal loss, and oversold loss of goods. The loss estimation system 100 includes, for example, a control unit 110 and a storage unit 140. The control unit 110 includes, for example, an inventory quantity calculation unit 112, an inventory quantity correction unit 114, a discount loss calculation unit 116, a disposal loss calculation unit 118, a shortage determination unit 120, a missed sale calculation unit 122, and a single item. It includes a separate demand amount calculation unit 124, a category-specific demand amount calculation unit 126, an evaluation unit 128, a missed sale correction unit 130, and a missed sale output unit 132. These components are realized, for example, by a hardware processor such as a CPU executing a program (software). Some or all of these components are hardware (circuits) such as LSI (Large-scale integrated circuit), ASIC (Application Specific integrated circuit), FPGA (Field-Programmable gate array), and GPU (Graphics Processing Unit). It may be realized by the part; including circuitry), or it may be realized by the cooperation of software and hardware. The program may be stored in advance in a storage device such as an HDD or a flash memory (a storage device including a non-transient storage medium), or a removable storage medium such as a DVD or a CD-ROM (non-transient). It is stored in a sex storage medium) and may be installed by attaching the storage medium to a drive device.

在庫数計算部112は、商品の在庫数を計算する。在庫数計算部112は、例えば、記憶部140から読み出した理論在庫データ142に基づいて商品の在庫数を計算する。理論在庫データ142とは、在庫数の増減に関わる情報をもとに、商品の在庫数を時系列で算出したデータ、および、それと関係するデータ群である。 The inventory quantity calculation unit 112 calculates the inventory quantity of the product. The inventory quantity calculation unit 112 calculates the inventory quantity of the product based on, for example, the theoretical inventory data 142 read from the storage unit 140. The theoretical inventory data 142 is data obtained by calculating the inventory quantity of a product in time series based on information related to an increase or decrease in the inventory quantity, and a data group related thereto.

在庫数補正部114は、在庫数計算部112により計算された商品の在庫数が負の値である場合、商品の在庫数を正の値に補正し、補正後の商品の在庫数の計算結果を理論在庫データ142として記憶部140に保存する。在庫数補正部114は、例えば、商品の在庫数を負でない値に補正すると共に、商品について補正済みであることを示す情報を保存してもよい。在庫数補正部114は、例えば、商品の補正フラグをオフからオンに切り換えることで、商品が補正済みであることを示してもよい。 When the inventory quantity of the product calculated by the inventory quantity calculation unit 112 is a negative value, the inventory quantity correction unit 114 corrects the inventory quantity of the product to a positive value, and the calculation result of the inventory quantity of the corrected product. Is stored in the storage unit 140 as theoretical inventory data 142. The inventory quantity correction unit 114 may, for example, correct the inventory quantity of the product to a non-negative value and store information indicating that the product has been corrected. The inventory quantity correction unit 114 may indicate that the product has been corrected, for example, by switching the correction flag of the product from off to on.

値引き損失計算部116は、商品の値引き損失を計算し、商品の値引き損失の計算結果を商品データ144として記憶部140に保存する。値引き損失計算部116は、例えば、商品の値引き販売数に対し、商品の値引き額を積算することで、商品の値引き損失を計算する。 The discount loss calculation unit 116 calculates the discount loss of the product, and stores the calculation result of the discount loss of the product as the product data 144 in the storage unit 140. The discount loss calculation unit 116 calculates the discount loss of a product by, for example, integrating the discount amount of the product with the number of discounted sales of the product.

廃棄損失計算部118は、商品の廃棄損失を計算し、商品の廃棄損失の計算結果を商品データ144として記憶部140に保存する。廃棄損失計算部118は、例えば、商品の廃棄数に対し、商品の原価を積算することで、商品の廃棄損失を計算する。 The disposal loss calculation unit 118 calculates the disposal loss of the product, and stores the calculation result of the disposal loss of the product as the product data 144 in the storage unit 140. The disposal loss calculation unit 118 calculates the disposal loss of the product by, for example, integrating the cost price of the product with the number of discarded products.

欠品判定部120は、商品の在庫数に基づいて、商品の欠品の有無を判定する。欠品判定部120は、商品の在庫数の時系列データにおいて商品の在庫数が正の値の場合は商品の欠品の判定を行わず、商品の在庫数が「0(零)」である場合には商品が欠品していると判定する。このとき、欠品判定部120は、例えば、在庫数補正部114により商品の補正フラグがオンに切り替えられている場合には、商品の欠品の判定を行わないとしてもよい。 The shortage determination unit 120 determines whether or not the product is out of stock based on the number of products in stock. The out-of-stock determination unit 120 does not determine the out-of-stock of the product when the in-stock quantity of the product is a positive value in the time-series data of the in-stock quantity of the product, and the in-stock quantity of the product is "0 (zero)". In that case, it is determined that the product is out of stock. At this time, the shortage determination unit 120 may not determine the shortage of the product, for example, when the correction flag of the product is switched on by the inventory quantity correction unit 114.

売り逃し計算部122は、商品の売り逃し量を計算し、売り逃し量の計算結果を売り逃しデータ146として記憶部140に保存する。売り逃し量は、欠品により販売機会を逃したと考えられる商品の数量であり、売り逃し損失とはその数にその商品の一単位あたりの値入れ高を積算して算出する損失である。売り逃し計算部122は、例えば、商品の時間帯ごとの販売実績に基づいて、商品の売り逃し量を計算する。 The oversold calculation unit 122 calculates the oversold amount of the product, and stores the calculation result of the oversold amount as the unsold data 146 in the storage unit 140. The oversold amount is the quantity of products that are considered to have missed a sales opportunity due to a shortage, and the oversold loss is a loss calculated by integrating the number of products with the price per unit of the product. The missed-sale calculation unit 122 calculates the missed-sale amount of the product based on, for example, the sales performance of the product for each time zone.

単品別需要金額計算部124は、売り逃し計算部122により計算された商品の売り逃し量に基づいて売り逃し高を計算し、それら単品の売り逃し高をカテゴリ別に集計し、カテゴリの単品別の売上実績を加算することで、カテゴリの需要金額を計算する。 The demand amount calculation unit 124 for each individual item calculates the unsold amount based on the unsold amount of the product calculated by the unsold calculation unit 122, totals the unsold amount of each individual item by category, and divides the unsold amount of each item into categories. The demand amount of the category is calculated by adding the sales results.

カテゴリ別需要金額計算部126は、欠品判定部120により商品が欠品していないと判定された曜日・時間帯のカテゴリ売上を基に、複数の商品を含むカテゴリの需要金額を計算する。 The category-specific demand amount calculation unit 126 calculates the demand amount of a category including a plurality of products based on the category sales of the day of the week / time zone in which the product is determined not to be out of stock by the shortage determination unit 120.

評価部128は、同一カテゴリに含まれる代替商品の販売による商品の販売実績への影響度合いを評価する。評価部128は、例えば、カテゴリ別需要金額計算部126により計算されたカテゴリの需要金額に対する、単品別需要金額計算部124により計算する商品の単品別の需要金額の合計値の比率が大きいほど、代替商品の影響度合いを大きく評価する。代替商品の影響度合いを大きくするとは、代替商品が多く売れていることを意味する。 The evaluation unit 128 evaluates the degree of influence of the sale of alternative products included in the same category on the sales performance of the product. In the evaluation unit 128, for example, the larger the ratio of the total value of the demand amount for each product calculated by the demand amount calculation unit 124 for each item to the demand amount for the category calculated by the demand amount calculation unit 126 for each category, the greater the ratio. Greatly evaluate the degree of influence of alternative products. Increasing the degree of influence of alternative products means that many alternative products are sold.

売り逃し補正部130は、評価部128により評価された影響度合いに基づいて、売り逃し計算部122により計算された商品の売り逃し量を補正する。 The oversold correction unit 130 corrects the oversold amount of the product calculated by the oversold calculation unit 122 based on the degree of influence evaluated by the evaluation unit 128.

売り逃し出力部132は、記憶部140から売り逃しデータ146を読み出し、売り逃しデータ146が示す商品の売り逃し量を外部装置に出力する。 The missed sale output unit 132 reads the missed sale data 146 from the storage unit 140, and outputs the missed sale amount of the product indicated by the missed sale data 146 to the external device.

[発注推奨システム]
発注推奨システム200は、一以上のプロセッサにより実現される。発注推奨システム200は、商品の販売実績データと商品の売り逃しデータとに基づいて商品の需要を予測する。商品の売り逃しデータとは、商品が欠品により販売機会を逃した場合に売り逃しと推定する数量および推定損失額を示すデータである。また、発注推奨システム200は、商品の売残損失と商品の売逃損失とを考慮して、商品の期待損失額が最小となるように、商品の需要予測に基づく予測販売量に対する在庫量を基準在庫量として決定する。そして、発注推奨システム200は、基準在庫量と、商品の需要予測に基づく予測在庫量との差を発注推奨量として決定する。
[Ordering recommendation system]
The ordering recommendation system 200 is realized by one or more processors. The ordering recommendation system 200 predicts the demand for a product based on the sales performance data of the product and the missed sales data of the product. The missed-selling data of a product is data showing the quantity and the estimated loss amount estimated to be missed-sold when the product misses a sales opportunity due to a shortage. In addition, the ordering recommendation system 200 considers the unsold loss of the product and the lost sales of the product, and sets the inventory amount with respect to the predicted sales amount based on the demand forecast of the product so that the expected loss amount of the product is minimized. Determined as the standard inventory amount. Then, the ordering recommendation system 200 determines the difference between the standard inventory amount and the predicted inventory amount based on the demand forecast of the product as the ordering recommended amount.

発注推奨システム200は、例えば、制御部210と、記憶部230とを備える。制御部210は、例えば、需要予測部212と、基準在庫計算部214と、発注推奨量計算部216と、発注推奨量出力部218とを備える。これらの構成要素は、例えば、CPUなどのハードウェアプロセッサがプログラム(ソフトウェア)を実行することにより実現される。これらの構成要素のうち一部または全部は、LSIやASIC、FPGA、GPUなどのハードウェア(回路部:circuitryを含む)によって実現されてもよいし、ソフトウェアとハードウェアの協働によって実現されてもよい。プログラムは、予めHDDやフラッシュメモリなどの記憶装置(非一過性の記憶媒体を備える記憶装置)に格納されていてもよいし、DVDやCD−ROMなどの着脱可能な記憶媒体(非一過性の記憶媒体)に格納されており、記憶媒体がドライブ装置に装着されることでインストールされてもよい。 The ordering recommendation system 200 includes, for example, a control unit 210 and a storage unit 230. The control unit 210 includes, for example, a demand forecasting unit 212, a reference inventory calculation unit 214, an ordering recommended quantity calculation unit 216, and an ordering recommended quantity output unit 218. These components are realized, for example, by a hardware processor such as a CPU executing a program (software). Some or all of these components may be realized by hardware such as LSI, ASIC, FPGA, GPU (including circuit part: circuitry), or realized by collaboration between software and hardware. May be good. The program may be stored in advance in a storage device such as an HDD or a flash memory (a storage device including a non-transient storage medium), or a removable storage medium such as a DVD or a CD-ROM (non-transient). It is stored in a sex storage medium) and may be installed by attaching the storage medium to a drive device.

需要予測部212は、記憶部230に格納された商品の販売実績データ232を基に需要予測モデルM1を生成し、需要予測モデルM1に予測時間帯や気象予測情報などを入力することで、商品の需要予測を行う。需要予測部212は、例えば、商品の販売時間帯ごとの販売実績データ232に基づく販売数に対し、欠品により商品の販売機会を逃した商品の販売時間帯ごとの売り逃し数を合算することで、商品の販売時間帯ごとの販売数を補正する。そして、需要予測部212は、補正された商品の販売時間帯ごとの販売数を含む学習用データを用いて学習された需要予測モデルM1に対し、予測対象の販売時間帯や気象予測情報を入力することで、商品の需要予測を行う。 The demand forecast unit 212 generates a demand forecast model M1 based on the sales record data 232 of the product stored in the storage unit 230, and inputs a forecast time zone, weather forecast information, etc. into the demand forecast model M1 to produce the product. Demand forecast. For example, the demand forecasting unit 212 adds up the number of missed sales for each sales time zone of the product that missed the sales opportunity of the product due to the shortage to the number of sales based on the sales performance data 232 for each sales time zone of the product. Then, the number of products sold for each sales time zone is corrected. Then, the demand forecast unit 212 inputs the forecast target sales time zone and weather forecast information into the demand forecast model M1 learned using the learning data including the number of sales of the corrected product for each sales time zone. By doing so, the demand forecast of the product is made.

需要予測部212は、例えば、補正された商品の販売時間帯ごとの販売数に基づいて、商品の販売時間帯ごとの品揃えの有無を判定し、品揃えが無いと判定した販売時間帯を除外した販売時間帯における商品の販売数を含む学習用データを用いて需要予測モデルM1を学習する。需要予測部212は、例えば、補正された商品の販売時間帯ごとの販売数が当該日の全ての時間帯で「0(零)」である場合、当該日全ての時間帯における商品の品揃えが無いものとして、商品の品揃えの判定結果を補正する。あるいは、需要予測部212は、例えば、補正された商品の販売時間帯ごとの販売数が当該日の全ての時間帯で「0(零)」である場合において、商品の販売期間が所定長さ未満である場合には、当該日全ての時間帯における商品の品揃えが無いものとして、商品の品揃えの判定結果を補正する。尚、ここで言う品揃え無しの判定は、後述する損失推定システム100の理論在庫データ142の品揃え対象判定とは別の処理である。販売期間が所定長さ未満である商品は、例えば、肉、魚、野菜、惣菜を含む。需要予測部212は、商品の需要の予測結果を、商品の販売時における気象情報およびカレンダー情報に対応付けて需要予測データ234として記憶部230に保存する。気象情報は、天気だけでなく、例えば、平均気温、降水量、日照時間等でもよい。 The demand forecasting unit 212 determines, for example, whether or not there is an assortment of products for each sales time zone based on the number of sales of the corrected product for each sales time zone, and determines the sales time zone for which it is determined that there is no assortment. The demand forecast model M1 is trained using the training data including the number of products sold in the excluded sales time zone. For example, when the number of products sold for each sales time zone of the corrected product is "0 (zero)" in all the time zones of the day, the demand forecasting unit 212 has an assortment of products in all the time zones of the day. Assuming that there is no product, the judgment result of the product assortment is corrected. Alternatively, the demand forecasting unit 212 sets the sales period of the product to a predetermined length, for example, when the number of sales of the corrected product for each sales time zone is "0 (zero)" in all the time zones of the day. If it is less than, it is assumed that there is no product assortment in all time zones of the day, and the judgment result of the product assortment is corrected. The determination of no assortment referred to here is a process different from the assortment target determination of the theoretical inventory data 142 of the loss estimation system 100 described later. Products whose sales period is less than a predetermined length include, for example, meat, fish, vegetables, and prepared foods. The demand forecasting unit 212 stores the forecasting result of the demand of the product in the storage unit 230 as the demand forecasting data 234 in association with the weather information and the calendar information at the time of selling the product. The weather information may be not only the weather but also, for example, average temperature, precipitation, sunshine duration, and the like.

基準在庫計算部214は、商品の期待損失額が最小になる在庫量を基準在庫量として計算し、基準在庫量の計算結果を基準在庫データ236として記憶部230に保存する。 The reference inventory calculation unit 214 calculates the inventory amount that minimizes the expected loss amount of the product as the reference inventory amount, and stores the calculation result of the reference inventory amount as the reference inventory data 236 in the storage unit 230.

発注推奨量計算部216は、商品の発注推奨量を計算し、発注推奨量の計算結果を発注推奨データ238として記憶部230に保存する。発注推奨量計算部216は、例えば、発注した商品が店頭に並ぶ将来時点の商品予測在庫数を計算し、同じ将来時点における基準在庫数との差を当該将来時点で不足する数量として計算する。また、発注推奨量計算部216は、現時点で発注する商品が店頭に並ぶ時点よりも後で次回発注する商品が店頭に並ぶ時点よりも前までの予測需要数の合計を、前記不足する数量として計算した数に加算することで、商品の発注推奨量を計算する。 The ordering recommended quantity calculation unit 216 calculates the ordering recommended quantity of the product, and stores the calculation result of the ordering recommended quantity as the ordering recommended data 238 in the storage unit 230. The ordering recommended quantity calculation unit 216 calculates, for example, the estimated stock quantity of products at a future point in time when the ordered products are lined up in the store, and calculates the difference from the standard stock quantity at the same future time point as the quantity that is insufficient at the future time point. In addition, the ordering recommended quantity calculation unit 216 sets the total number of predicted demands after the time when the products to be ordered at the present time are lined up in the store and before the time when the products to be ordered next time are lined up in the store as the insufficient quantity. By adding to the calculated number, the recommended order quantity of the product is calculated.

発注推奨量出力部218は、記憶部230から発注推奨データ238を読み出し、発注推奨データ238により示される商品の発注推奨量を外部装置に出力する。 The ordering recommended quantity output unit 218 reads the ordering recommended data 238 from the storage unit 230, and outputs the ordering recommended quantity of the product indicated by the ordering recommended data 238 to the external device.

[理論在庫の計算]
次に、理論在庫の計算処理について説明する。
[Calculation of theoretical inventory]
Next, the calculation process of the theoretical inventory will be described.

在庫数計算部112は、商品の理論在庫データを計算する。在庫数計算部112は、例えば、時間帯の開始時刻から終了時刻までの在庫変動数を用いて、商品の理論在庫数を計算する。在庫変動数の評価項目は、例えば、仕入数、移動入庫数、移動出庫数、返品数、生産数、廃棄数、および、販売数を含む。仕入数は、店舗が販売業者から仕入れた商品の数を示すデータである。移動入庫数は、別の店舗から入荷した商品、および同一店舗内の別部から入荷した商品(例えば、精肉部門から惣菜部門へ入荷した商品)の数を示すデータである。移動出庫数は、別の店舗へ出荷した商品および同一店舗内の別部門へ出荷した商品(例えば、精肉部門から惣菜部門へ出荷した商品)の数を示すデータである。返品数は、店舗から販売業者および店舗から自社の物流倉庫に返品された商品の数を示すデータである。生産数は、例えば惣菜など、店舗内で生産した商品の数を示すデータである。廃棄数は、店舗が廃棄した商品の数を示すデータである。販売数は、店舗が販売した商品の数を示すデータである。 The inventory quantity calculation unit 112 calculates the theoretical inventory data of the product. The inventory quantity calculation unit 112 calculates the theoretical inventory quantity of a product by using, for example, the inventory fluctuation number from the start time to the end time of the time zone. The evaluation items of the inventory fluctuation number include, for example, the number of purchases, the number of moving goods received, the number of moving goods issued, the number of returned goods, the number of productions, the number of wastes, and the number of sales. The number of purchases is data indicating the number of products purchased by the store from the seller. The number of moving goods is data indicating the number of products received from another store and products received from another department in the same store (for example, products received from the meat department to the side dish department). The number of moving shipments is data indicating the number of products shipped to another store and products shipped to another department in the same store (for example, products shipped from the meat department to the side dish department). The number of returned goods is data indicating the number of goods returned from the store to the seller and from the store to the company's distribution warehouse. The number of products produced is data indicating the number of products produced in the store, such as prepared foods. The number of discarded items is data indicating the number of items discarded by the store. The number of sales is data indicating the number of products sold by the store.

在庫数計算部112は、原価法で評価する商品と売価還元法で評価する商品とで商品の理論在庫データの計算方法を変更する。原価法で評価する商品とは、商品の販売期間が比較的短く、棚卸を考慮しない商品である。売価還元法で評価する商品とは、商品の販売期間が比較的長く、棚卸を実施する商品である。 The inventory quantity calculation unit 112 changes the calculation method of the theoretical inventory data of the product between the product evaluated by the cost method and the product evaluated by the selling price reduction method. A product evaluated by the cost method is a product that has a relatively short sales period and does not take inventory into consideration. A product evaluated by the selling price reduction method is a product that has a relatively long sales period and is inventoried.

図2に示すように、在庫数計算部112は、原価法で評価する商品の理論在庫データを計算する場合には、まず、現在時点よりも過去の時点である時間帯t1を計算開始時点とし、時間帯t1の開始時刻の理論在庫数を「0(零)」とする。これは、原価法で評価する商品は、ある時点の在庫量を算出したり管理したりすることが困難なためである。そして、在庫数計算部112は、時間帯t1の開始時刻の理論在庫数に対し、時間帯t1の在庫変動数を加算することで、時間帯t1の終了時刻の理論在庫数「X1」を計算する。ここで、在庫変動数は、マイナスの値であることもある。また、在庫数計算部112は、時間帯t1の終了時刻の理論在庫数「X1」を、時間帯t2の開始時刻の理論在庫数として適用する。そして以降、在庫数計算部112は、現在時点である時間帯t6を計算終了時点とし、時間帯t1から時間帯t6まで理論在庫数を順次計算する。 As shown in FIG. 2, when calculating the theoretical inventory data of the product to be evaluated by the cost method, the inventory quantity calculation unit 112 first sets the time zone t1, which is a time point past the current time point, as the calculation start time point. , The theoretical stock quantity at the start time of the time zone t1 is set to "0 (zero)". This is because it is difficult to calculate and manage the inventory amount of products evaluated by the cost method at a certain point in time. Then, the inventory quantity calculation unit 112 calculates the theoretical inventory quantity "X1" at the end time of the time zone t1 by adding the inventory fluctuation number of the time zone t1 to the theoretical inventory quantity of the start time of the time zone t1. To do. Here, the number of inventory fluctuations may be a negative value. Further, the inventory quantity calculation unit 112 applies the theoretical inventory quantity “X1” at the end time of the time zone t1 as the theoretical inventory quantity at the start time of the time zone t2. After that, the inventory quantity calculation unit 112 sets the time zone t6, which is the current time point, as the calculation end time point, and sequentially calculates the theoretical inventory quantity from the time zone t1 to the time zone t6.

図3に示すように、在庫数計算部112は、売価還元法で評価する商品の理論在庫データを計算する場合、まず、棚卸タイミングである時間帯t4の終了時刻の理論在庫数「Y」を計算する。また、在庫数計算部112は、時間帯t4の終了時刻の理論在庫数「Y」に対し、時間帯t4の在庫変動数を減算することで、時間帯t4の開始時刻の理論在庫数「Y1」を計算する。また、在庫数計算部112は、時間帯t4の開始時刻の理論在庫数「Y1」を、時間帯t3の終了時刻の理論在庫数「Y1」として適用する。そして以降、在庫数計算部112は、棚卸タイミング以前の時間帯において、時間帯t1を計算開始時点とし、時間帯t4から時間帯t1まで理論在庫数を順次計算する。また、在庫数計算部112は、時間帯t4の終了時刻の理論在庫数「Y」を、時間帯t5の開始時刻の理論在庫数に適用する。そして、在庫数計算部112は、時間帯t5の開始時刻の理論在庫数「Y」に対し、時間帯t5の在庫変動数を加算することで、時間帯t5の終了時刻の理論在庫数「Y5」を計算する。また、在庫数計算部112は、時間帯t5の終了時刻の理論在庫数「Y5」を、時間帯t6の開始時刻の理論在庫数「Y5」として適用する。そして以降、在庫数計算部112は、棚卸タイミング以降の時間帯において、現在時点である時間帯t6を計算終了時点とし、時間帯t5から時間帯t6までの理論在庫数を順次計算する。 As shown in FIG. 3, when calculating the theoretical inventory data of the product to be evaluated by the selling price reduction method, the inventory quantity calculation unit 112 first calculates the theoretical inventory quantity “Y” at the end time of the time zone t4, which is the inventory timing. calculate. Further, the inventory quantity calculation unit 112 subtracts the inventory fluctuation number of the time zone t4 from the theoretical inventory quantity "Y" at the end time of the time zone t4, so that the theoretical inventory quantity "Y1" at the start time of the time zone t4 Is calculated. Further, the inventory quantity calculation unit 112 applies the theoretical inventory quantity “Y1” at the start time of the time zone t4 as the theoretical inventory quantity “Y1” at the end time of the time zone t3. After that, the inventory quantity calculation unit 112 sequentially calculates the theoretical inventory quantity from the time zone t4 to the time zone t1 with the time zone t1 as the calculation start time in the time zone before the inventory timing. Further, the inventory quantity calculation unit 112 applies the theoretical inventory quantity “Y” at the end time of the time zone t4 to the theoretical inventory quantity at the start time of the time zone t5. Then, the inventory quantity calculation unit 112 adds the inventory fluctuation number of the time zone t5 to the theoretical inventory quantity "Y" at the start time of the time zone t5, so that the theoretical inventory quantity "Y5" at the end time of the time zone t5 Is calculated. Further, the inventory quantity calculation unit 112 applies the theoretical inventory quantity “Y5” at the end time of the time zone t5 as the theoretical inventory quantity “Y5” at the start time of the time zone t6. After that, the inventory quantity calculation unit 112 sequentially calculates the theoretical inventory quantity from the time zone t5 to the time zone t6, with the time zone t6 as the current time point as the calculation end time in the time zone after the inventory timing.

在庫数補正部114は、商品の理論在庫数が何らかのデータに起因して不整合を起こして負の値となった場合、商品の理論在庫数を補正して補正理論在庫数として算出する。補正理論在庫数は、例えば、正の値である。在庫数補正部114が商品の補正理論在庫数を算出した場合、その商品は欠品判定の対象から除外される。これにより、商品が欠品していると誤って判定されることが抑制される。 When the theoretical inventory quantity of the product becomes inconsistent due to some data and becomes a negative value, the inventory quantity correction unit 114 corrects the theoretical inventory quantity of the product and calculates it as the corrected theoretical inventory quantity. The corrected theoretical inventory quantity is, for example, a positive value. When the inventory quantity correction unit 114 calculates the correction theoretical inventory quantity of a product, the product is excluded from the target of the out-of-stock determination. As a result, it is possible to prevent the product from being erroneously determined to be out of stock.

[補正理論在庫数の計算]
次に、商品の補正理論在庫数の計算処理について説明する。
[Calculation of corrected theoretical inventory quantity]
Next, the calculation process of the correction theoretical inventory quantity of the product will be described.

在庫数補正部114は、在庫数計算部112により計算された在庫数の時系列データを補正する場合、在庫数の時系列データに対し、補正対象期間を定めて当該期間の時間軸を遡るように在庫数の時系列データを順に補正する。 When the inventory quantity correction unit 114 corrects the time series data of the inventory quantity calculated by the inventory quantity calculation unit 112, the inventory quantity correction unit 114 determines a period to be corrected with respect to the time series data of the inventory quantity and traces back the time axis of the period. The time series data of the number of stocks is corrected in order.

在庫数補正部114は、補正対象の在庫数が負の値である場合、正の値(例えば、「1」)に補正する。在庫数補正部114は、補正対象の在庫数が「0(零)」である場合、一つ前の時刻の在庫数の補正を行った場合には、在庫数を正の値(例えば、「1」)に補正し、一つ前の時刻の在庫数の補正を行っていない場合には、在庫数を補正しない。在庫数補正部114は、補正対象の在庫数が正の値である場合、在庫数を補正しない。 When the inventory quantity to be corrected is a negative value, the inventory quantity correction unit 114 corrects it to a positive value (for example, "1"). The inventory quantity correction unit 114 sets the inventory quantity to a positive value (for example, when the inventory quantity to be corrected is "0 (zero)" and the inventory quantity at the previous time is corrected. 1 ”) is corrected, and if the stock quantity at the previous time is not corrected, the stock quantity is not corrected. The inventory quantity correction unit 114 does not correct the inventory quantity when the inventory quantity to be corrected is a positive value.

図4は、商品の理論在庫数が補正される前後の時系列データを示すグラフである。在庫数補正部114は、例えば、商品の損失推定の期間ごとに、理論在庫数の時系列データを補正することで、補正理論在庫数の時系列データを計算する。理論在庫数の時系列データは、例えば、店舗が対象商品を初回に入荷した時点から一定の時間間隔で計算された理論在庫数を含むデータである。図示の例では、商品の損失推定の期間は、時間帯t1から時間帯t10までの期間である。 FIG. 4 is a graph showing time-series data before and after the theoretical inventory quantity of commodities is corrected. The inventory quantity correction unit 114 calculates the time-series data of the corrected theoretical inventory quantity by correcting the time-series data of the theoretical inventory quantity for each period of estimation of the loss of the product, for example. The time-series data of the theoretical inventory quantity is, for example, data including the theoretical inventory quantity calculated at regular time intervals from the time when the store first receives the target product. In the illustrated example, the period of product loss estimation is the period from the time zone t1 to the time zone t10.

在庫数補正部114は、理論在庫数の時系列データを補正する場合には、まず、商品の損失推定の期間に含まれる理論在庫数のデータの中から、理論在庫数が負の値となるデータを探索する。在庫数補正部114は、例えば、商品の損失推定の期間に含まれる最終時点を計算開始時点とし、その時点から時間軸を遡りながら、理論在庫数が負の値となるデータを探索する。図示の例では、在庫数補正部114は、時間帯t10の終了時刻の理論在庫数のデータを負の値となるデータとして探索する。 When the inventory quantity correction unit 114 corrects the time-series data of the theoretical inventory quantity, first, the theoretical inventory quantity becomes a negative value from the data of the theoretical inventory quantity included in the period of estimating the loss of the product. Search for data. For example, the inventory quantity correction unit 114 sets the final time point included in the period of estimation of the loss of the product as the calculation start time point, and searches for data in which the theoretical inventory quantity has a negative value while tracing back the time axis from that time point. In the illustrated example, the inventory quantity correction unit 114 searches for the theoretical inventory quantity data at the end time of the time zone t10 as data having a negative value.

在庫数補正部114は、次に計算対象となる理論在庫数を補正する。図示の例では、在庫数補正部114は、時間帯t10の終了時刻の理論在庫数から時間軸を遡って、時間帯t10の開始時刻の理論在庫数を次の計算対象とする。そして、在庫数補正部114は、時間帯t10の終了時刻の理論在庫数のデータに続いて、時間帯t10の開始時刻の理論在庫数のデータを負の値となるデータとして探索する。 The inventory quantity correction unit 114 corrects the theoretical inventory quantity to be calculated next. In the illustrated example, the inventory number correction unit 114 traces the time axis back from the theoretical inventory number at the end time of the time zone t10, and sets the theoretical inventory quantity at the start time of the time zone t10 as the next calculation target. Then, the inventory quantity correction unit 114 searches for the data of the theoretical inventory quantity at the start time of the time zone t10 as data having a negative value, following the data of the theoretical inventory quantity at the end time of the time zone t10.

在庫数補正部114は、例えば、ある時間帯の理論在庫数が時間軸に遡って補正されている場合、その時間帯の開始時刻の理論在庫数を、次に計算対象となる時間帯(時間軸を遡った直前の時間帯)の終了時刻の理論在庫数として適用する。図示の例では、在庫数補正部114は、時間帯t10の開始時刻の理論在庫数を補正しているため、その理論在庫数を、次に計算対象となる時間帯t9の終了時刻の理論在庫数として適用する。 For example, when the theoretical stock quantity in a certain time zone is corrected retroactively on the time axis, the stock quantity correction unit 114 calculates the theoretical stock quantity at the start time of the time zone in the time zone (time) to be calculated next. It is applied as the theoretical stock quantity at the end time (the time zone immediately before going back the axis). In the illustrated example, since the stock quantity correction unit 114 corrects the theoretical stock quantity at the start time of the time zone t10, the theoretical stock quantity is calculated by calculating the theoretical stock quantity at the end time of the time zone t9 to be calculated next. Apply as a number.

在庫数補正部114は、ある時間帯の終了時刻の理論在庫数を補正している場合において、その時間帯の開始時刻の理論在庫数が「0(零)」である場合、その時間帯の開始時刻の理論在庫数の補正を行い、ある時間帯の終了時刻の理論在庫数を補正していない場合において、その時間帯の開始時刻の理論在庫数が「0(零)」である場合、その時間帯の開始時刻の理論在庫数の補正を行わない。図示の例では、在庫数補正部114は、時間帯t4の終了時刻の理論在庫数を補正し、かつ、時間帯t4の開始時刻の理論在庫数が「0(零)」であるため、時間帯t4の開始時刻の理論在庫数を補正する。また、在庫数補正部114は、時間帯t2の終了時刻の理論在庫数を補正せず、かつ、時間帯t2の開始時刻の理論在庫数が「0(零)」であるため、時間帯t2の開始時刻の理論在庫数を補正しない。 When the stock quantity correction unit 114 corrects the theoretical stock quantity at the end time of a certain time zone and the theoretical stock quantity at the start time of the time zone is "0 (zero)", the stock quantity correction unit 114 of the time zone When the theoretical stock quantity at the start time is corrected and the theoretical stock quantity at the end time of a certain time zone is not corrected, and the theoretical stock quantity at the start time of the time zone is "0 (zero)", The theoretical stock quantity at the start time of that time zone is not corrected. In the illustrated example, the inventory number correction unit 114 corrects the theoretical inventory quantity at the end time of the time zone t4, and the theoretical inventory quantity at the start time of the time zone t4 is “0 (zero)”. The theoretical stock quantity at the start time of the band t4 is corrected. Further, since the inventory quantity correction unit 114 does not correct the theoretical inventory quantity at the end time of the time zone t2 and the theoretical inventory quantity at the start time of the time zone t2 is "0 (zero)", the time zone t2 Do not correct the theoretical stock quantity at the start time of.

図5は、商品の損失推定の期間ごとの補正理論在庫数の計算処理を説明するための図である。図示の例では、在庫数計算部112は、所定期間ごとに時間軸を順方向に沿って在庫計算している。図5では、在庫数計算部112が最初の所定期間に含まれる在庫数の時系列データの初期値を「0(零)」として計算する。そして、在庫数補正部114は、損失推定期間単位で時間軸に沿って補正計算を行う。在庫数補正部114は、各損失推定期間の中で、前述のとおり、時間軸を遡るように補正計算を行う。在庫数補正部114は、第1損失推定期間の理論在庫数が負の値を含むため、これらの値を正の値に補正する。これにより、在庫数計算部112は、第2損失推定期間における理論在庫数の初期値を正の値として在庫計算する。また、在庫数補正部114は、第2損失推定期間における理論在庫数の時系列データが負の値を含むため、これらの値を正の値に補正する。在庫数補正部114は、第3損失推定期間の理論在庫数が負の値を含まないため、理論在庫数の補正を行わない。 FIG. 5 is a diagram for explaining the calculation process of the corrected theoretical inventory quantity for each period of the loss estimation of the product. In the illustrated example, the inventory quantity calculation unit 112 calculates the inventory along the time axis in the forward direction for each predetermined period. In FIG. 5, the inventory quantity calculation unit 112 calculates the initial value of the time series data of the inventory quantity included in the first predetermined period as “0 (zero)”. Then, the inventory quantity correction unit 114 performs correction calculation along the time axis in units of loss estimation periods. In each loss estimation period, the inventory quantity correction unit 114 performs the correction calculation so as to go back in time as described above. Since the theoretical inventory quantity in the first loss estimation period includes negative values, the inventory quantity correction unit 114 corrects these values to positive values. As a result, the inventory quantity calculation unit 112 calculates the inventory with the initial value of the theoretical inventory quantity in the second loss estimation period as a positive value. Further, since the inventory quantity correction unit 114 includes negative values in the time series data of the theoretical inventory quantity in the second loss estimation period, these values are corrected to positive values. The inventory quantity correction unit 114 does not correct the theoretical inventory quantity because the theoretical inventory quantity in the third loss estimation period does not include a negative value.

[売り逃しの計算]
次に、商品の売り逃しの計算処理について説明する。
[Calculation of missed sales]
Next, the calculation process of the missed sale of the product will be described.

まず、図6に示すように、値引き損失計算部116は、購入履歴データ150と、値引き履歴データ152とに基づいて、値引き集計データ154を作成する。 First, as shown in FIG. 6, the discount loss calculation unit 116 creates the discount total data 154 based on the purchase history data 150 and the discount history data 152.

値引き履歴データ152は、値引きされた商品の販売履歴に関するデータである。値引き履歴データ152は、値引き損失計算部116が購入履歴データ150から事前に作成するデータであり、購入履歴データ150の売上コードまたは売上コード名から値引きとなるレコードを抽出することで作成する。値引き履歴データ152のデータ項目は、例えば、店舗コード、商品コード、取引日時、値引き販売数、および、値引き金額である。値引き販売数は、値引きされた商品が販売された数量に関するデータである。値引き金額は、商品が値引きされた金額に関するデータである。 The discount history data 152 is data relating to the sales history of the discounted product. The discount history data 152 is data created in advance by the discount loss calculation unit 116 from the purchase history data 150, and is created by extracting a record to be a discount from the sales code or the sales code name of the purchase history data 150. The data items of the discount history data 152 are, for example, a store code, a product code, a transaction date and time, a discount sales number, and a discount amount. The discounted sales quantity is data on the quantity of the discounted product sold. The discount amount is data on the amount of the discounted goods.

値引き集計データ154は、例えば一時間単位を最小のレコードとした、値引きされた商品の販売履歴の時間帯ごとの集計データである。値引き集計データ154のデータ項目は、例えば、店舗コード、商品コード、日付・時間帯の開始時刻、日付・時間帯の終了時刻、値引き販売数、値引き金額を含む。値引き販売数は、値引きされた商品の販売数の時間帯ごとの合計値を示すデータである。値引き金額は、商品の値引き金額の時間帯ごとの合計値を示すデータである。 The discount aggregated data 154 is aggregated data for each time zone of the sales history of the discounted product, for example, with the hourly unit as the minimum record. The data items of the discount aggregate data 154 include, for example, a store code, a product code, a start time of a date / time zone, an end time of a date / time zone, a number of discounted sales, and a discount amount. The discounted number of sales is data showing the total value of the number of discounted products sold for each time zone. The discount amount is data showing the total value of the discount amount of the product for each time zone.

値引き損失計算部116は、値引き履歴データ152を参照し、店舗コード、商品コード、日付・時間帯の開始時刻、日付・時間帯の終了時刻をキーとして、購入履歴データ150に含まれる商品の値引き販売数および商品の値引き金額を、店舗、商品、日付・時間帯の別に集計することで、値引き集計データ154を作成する。 The discount loss calculation unit 116 refers to the discount history data 152, and uses the store code, the product code, the start time of the date / time zone, and the end time of the date / time zone as keys to discount the products included in the purchase history data 150. The discount total data 154 is created by totaling the number of sales and the discount amount of the product by store, product, date / time zone.

次に、図7に示すように、廃棄損失計算部118は、廃棄履歴データ156に基づいて、廃棄集計データ158を作成する。 Next, as shown in FIG. 7, the disposal loss calculation unit 118 creates the disposal total data 158 based on the disposal history data 156.

廃棄履歴データ156は、商品の廃棄履歴に関するデータである。廃棄履歴データ156のデータ項目は、例えば、店舗コード、商品コード、廃棄日時、廃棄数量、および、廃棄金額を含む。店舗コードは、商品が廃棄された店舗の識別データである。ここで、廃棄金額とは、例えば、廃棄した商品の原価とする。 The disposal history data 156 is data related to the disposal history of the product. The data items of the disposal history data 156 include, for example, a store code, a product code, a disposal date and time, a disposal quantity, and a disposal amount. The store code is identification data of the store where the product is discarded. Here, the disposal amount is, for example, the cost price of the discarded product.

廃棄集計データ158は、例えば一時間単位を最小レコードとした、商品の廃棄履歴の時間帯ごとの集計データである。廃棄集計データ158のデータ項目は、例えば、店舗コード、商品コード、日付・時間帯の開始時刻、日付・時間帯の終了時刻、廃棄数量、廃棄金額を含む。廃棄金額は、廃棄された商品の廃棄金額の時間帯ごとの合計値を示すデータである。 The disposal aggregated data 158 is aggregated data for each time zone of the disposal history of the product, for example, with the hourly unit as the minimum record. The data items of the disposal total data 158 include, for example, a store code, a product code, a start time of a date / time zone, an end time of a date / time zone, a disposal quantity, and a disposal amount. The disposal amount is data showing the total value of the disposal amount of the discarded products for each time zone.

廃棄損失計算部118は、廃棄履歴データ156を参照し、店舗コード、商品コード、日付・時間帯の開始時刻、日付・時間帯の終了時刻をキーとして、廃棄履歴データ156に含まれる商品の廃棄金額を、店舗、商品、日付・時間帯の別に集計することで、廃棄集計データ158を作成する。 The disposal loss calculation unit 118 refers to the disposal history data 156 and discards the products included in the disposal history data 156 by using the store code, the product code, the start time of the date / time zone, and the end time of the date / time zone as keys. Disposal total data 158 is created by totaling the amount of money by store, product, date / time zone.

次に、図8に示すように、売り逃し計算部122は、理論在庫データ142と売逃算出カテゴリマスタ160とを結合することで単品別理論在庫データ162を作成する。 Next, as shown in FIG. 8, the miss-selling calculation unit 122 creates the theoretical inventory data 162 for each individual item by combining the theoretical inventory data 142 and the miss-selling calculation category master 160.

理論在庫データ142は、店舗に存在する各商品の在庫数を例えば一時間単位を最小レコードとしたデータである。理論在庫データ142のデータ項目は、例えば、部門コード、小分類コード、店舗コード、商品コード、日付・時間帯の開始時刻、日付・時間帯の終了時刻、開始時刻の理論在庫数、終了時刻の理論在庫数、品揃え対象判定、および、欠品フラグを含む。なお、図示は省略したが、理論在庫データ142のデータ項目は、さらに、品切れ時間、売単価、原単価、値入れ単価を含む。ここで、理論在庫数は、在庫数補正部114の処理結果を使うとよい。部門コードは、商品の属する部門の種別を示す識別データである。小分類コードは、商品の下位層の分類である小分類の種別を示す識別データである。店舗コードは、商品が置かれた店舗を示す識別データである。商品コードは、商品の種別を示す識別データである。日付・時間帯の開始時刻は、各レコードの開始時刻を示すデータである。日付・時間帯の終了時刻は、各レコードの終了時刻を示すデータである。開始時刻の理論在庫数は、開始時刻に店舗に存在する商品の在庫数を示すデータである。終了時刻の理論在庫数は、終了時刻に店舗に存在する商品の在庫数を示すデータである。品揃え対象判定は、商品が店舗在庫として揃っているか(店舗で販売できる在庫となっているか)否かについて示すデータであり、例えば、一週間以上の長期欠品状態が続いている場合に、商品が品揃えの対象外であると判定される。品揃え対象判定は、商品が品揃えの対象外である場合に「0」が付与され、商品が品揃えの対象である場合に「1」が付与される。品揃え対象判定として「0」が付与されているデータについては、商品の売り逃しの算出には用いない。欠品フラグは、商品が欠品しているかについて示すデータであり、例えば、商品の理論在庫が「0(零)」になった場合に、商品が欠品したと判定される。欠品フラグは、商品が欠品していない場合に「0」が付与され、商品が欠品している場合に「1」が付与される。品切れ時間は、商品が欠品している時間の長さを示すデータである。売単価は、商品の販売価格を示すデータである。原単価は、商品の原価を示すデータである。値入れ単価は、商品の販売価格と原価との差額を示すデータである。 The theoretical inventory data 142 is data in which the number of inventories of each product existing in the store is, for example, one hour as the minimum record. The data items of the theoretical inventory data 142 are, for example, the department code, the subcategory code, the store code, the product code, the start time of the date / time zone, the end time of the date / time zone, the theoretical inventory quantity of the start time, and the end time. Includes theoretical stock quantity, assortment target determination, and out-of-stock flag. Although not shown, the data items of the theoretical inventory data 142 further include out-of-stock time, selling unit price, original unit price, and putting unit price. Here, as the theoretical inventory quantity, it is preferable to use the processing result of the inventory quantity correction unit 114. The department code is identification data indicating the type of department to which the product belongs. The sub-classification code is identification data indicating the type of sub-classification, which is the classification of the lower layer of the product. The store code is identification data indicating the store where the product is placed. The product code is identification data indicating the type of product. The start time of the date / time zone is data indicating the start time of each record. The end time of the date / time zone is data indicating the end time of each record. The theoretical inventory quantity at the start time is data indicating the inventory quantity of the products existing in the store at the start time. The theoretical inventory quantity at the end time is data indicating the inventory quantity of products existing in the store at the end time. The assortment target determination is data indicating whether or not the products are in stock as store inventory (whether or not the products are in stock that can be sold at the store). It is determined that the product is out of the assortment. In the assortment target determination, "0" is given when the product is not the target of the assortment, and "1" is given when the product is the target of the assortment. The data to which "0" is given as the assortment target judgment is not used for the calculation of the missed sale of the product. The out-of-stock flag is data indicating whether or not the product is out of stock. For example, when the theoretical inventory of the product becomes "0 (zero)", it is determined that the product is out of stock. The out-of-stock flag is given "0" when the product is not out of stock, and "1" is given when the product is out of stock. The out-of-stock time is data indicating the length of time that a product is out of stock. The selling unit price is data indicating the selling price of a product. The original unit price is data indicating the cost of a product. The price-added unit price is data showing the difference between the selling price of a product and the cost price.

売逃算出カテゴリマスタ160は、カテゴリ別の売り逃しを算出する際に必要となる商品に関する情報を定義するデータである。売逃算出カテゴリマスタ160のデータ項目は、例えば、部門コード、小分類コード、算出粒度、および、算出カテゴリを含む。部門コードは、商品の属する部門の種別を示す識別データである。小分類コードは、商品の下位層の分類である小分類の種別を示す識別データである。算出粒度は、商品のカテゴリが「商品指名購入」または「カテゴリ購入」のいずれに該当するかを定義している。「商品指名購入」は、店舗で顧客が購入する場合にその商品を指名して購入する代替不可能な商品を意味する。「カテゴリ指名購入」は、店舗で顧客が購入する場合において欠品の場合に代替品を購入する代替可能な商品を意味する。算出カテゴリは、各商品の小分類コードを売逃算出用のカテゴリ名称として付与したものである。 The sales loss calculation category master 160 is data that defines information about products required for calculating sales loss for each category. The data items of the sales loss calculation category master 160 include, for example, a department code, a subclassification code, a calculation particle size, and a calculation category. The department code is identification data indicating the type of department to which the product belongs. The sub-classification code is identification data indicating the type of sub-classification, which is the classification of the lower layer of the product. The calculated particle size defines whether the product category corresponds to "product designated purchase" or "category purchase". "Product designated purchase" means an irreplaceable product that a customer purchases by designating the product when the customer purchases the product at the store. "Category designated purchase" means a substitutable product in which a customer purchases a substitute product in the case of a shortage when the customer purchases the product at the store. The calculation category is given a sub-category code for each product as a category name for calculating sales loss.

単品別理論在庫データ162は、例えば一時間単位を最小レコードとした商品単品のデータである。売り逃し計算部122は、部門コードおよび小分類コードをキーとして、理論在庫データ142および売逃算出カテゴリマスタ160を結合することで、単品別理論在庫データ162を作成する。単品別理論在庫データ162のデータ項目は、例えば、部門コード、小分類コード、店舗コード、商品コード、日付・時間帯の開始時刻、日付・時間帯の終了時刻、開始時刻の理論在庫数、終了時刻の理論在庫数、品揃え対象判定、欠品フラグ、算出粒度、算出カテゴリを含む。なお、図示は省略したが、単品別理論在庫データ162のデータ項目は、さらに、品切れ時間、売単価、原単価、値入れ単価を含む。 The theoretical inventory data 162 for each item is, for example, data for a single item with an hourly unit as the minimum record. The missed sale calculation unit 122 creates the theoretical inventory data 162 for each individual item by combining the theoretical inventory data 142 and the missed sale calculation category master 160 using the department code and the subclassification code as keys. The data items of the theoretical inventory data 162 for each item are, for example, the department code, the subcategory code, the store code, the product code, the start time of the date / time zone, the end time of the date / time zone, the theoretical inventory quantity of the start time, and the end. Includes theoretical stock quantity at time, assortment target judgment, out-of-stock flag, calculated grain size, and calculated category. Although not shown, the data items of the theoretical inventory data 162 for each item further include the out-of-stock time, the selling unit price, the original unit price, and the pricing unit price.

次に、図9に示すように、売り逃し計算部122は、単品別理論在庫データ162に基づいて、カテゴリ別理論在庫データ164を作成する。カテゴリ別理論在庫データ164は、一時間単位を最小レコードとし、算出カテゴリ、算出粒度をキーとしてグループ化した商品カテゴリのデータである。図示の例では、売り逃し計算部122は、指定した時間帯が「2018/10/1 12時」から「2018/10/1 13時」までの範囲で、算出粒度が「カテゴリ購入」であり、かつ、算出カテゴリが「CS2」であるデータをグループ化することで、カテゴリ別理論在庫データ164を作成している。 Next, as shown in FIG. 9, the oversold calculation unit 122 creates the theoretical inventory data 164 for each category based on the theoretical inventory data 162 for each item. The theoretical inventory data 164 by category is data of product categories grouped by using the hourly unit as the minimum record and the calculation category and the calculation particle size as keys. In the illustrated example, the oversold calculation unit 122 has a specified time zone in the range of "2018/10/1 12:00" to "2018/10/1 13:00", and the calculation particle size is "category purchase". In addition, the theoretical inventory data 164 for each category is created by grouping the data whose calculation category is "CS2".

次に、図10に示すように、売り逃し計算部122は、購入履歴データ150に基づいて、購入客数データ166を作成する。購入履歴データ150は、例えば一時間単位を最小レコードとした商品単品のデータである。 Next, as shown in FIG. 10, the missed sale calculation unit 122 creates the purchase customer number data 166 based on the purchase history data 150. The purchase history data 150 is, for example, data for a single product with an hourly unit as the minimum record.

購入履歴データ150は、商品の購入日時の他、商品の購入時における返品処理および訂正処理の有無に関するデータである。購入履歴データ150は、例えば、各店舗に設置されたPOS(Point of sale)レジスターなどから取得した商品の売上データに基づいて作成される。購入履歴データ150のデータ項目は、例えば、店舗コード、商品コード、売上コード、売上コード名、売上数量、売上金額、売単価、原単価、取引日時、POS番号、取引番号、返品フラグ、訂正フラグを含む。店舗コードは、商品が購入された店舗を示す識別データである。商品コードは、購入された商品を示す識別データである。売上コードは、POSレジスターを通じて行われた取引の種別を示す識別データである。売単価は、商品の一つ当たりの販売価格を示すデータである。原単価は、商品の一つ当たりの原価を示すデータである。取引日時は、例えば、商品の購入、商品の返品、商品の購入データの訂正など、POSレジスターを通じて取引が行われた日時に関するデータである。POS番号は、POSレジスターの識別データである。取引番号は、POSレジスターを通じた取引が行われるごとに付与される取引に関する識別データである。返品フラグは、商品の返品の有無を示すデータであり、初期値は「0」であり、商品の返品処理が行われた場合に「1」に切り替わる。訂正フラグは、商品の購入履歴の訂正処理の有無を示すデータであり、初期値は「0」であり、商品の購入履歴の訂正処理が行われた場合に「1」に切り替わる。 The purchase history data 150 is data relating to the purchase date and time of the product, as well as the presence or absence of return processing and correction processing at the time of purchase of the product. The purchase history data 150 is created based on, for example, sales data of products acquired from a POS (Point of sale) register installed in each store. The data items of the purchase history data 150 are, for example, a store code, a product code, a sales code, a sales code name, a sales quantity, a sales amount, a selling unit price, an original unit price, a transaction date and time, a POS number, a transaction number, a return flag, and a correction flag. including. The store code is identification data indicating the store where the product was purchased. The product code is identification data indicating the purchased product. The sales code is identification data indicating the type of transaction made through the POS register. The selling unit price is data showing the selling price per product. The original unit price is data showing the cost per product. The transaction date and time is data related to the date and time when the transaction was made through the POS register, such as the purchase of a product, the return of a product, and the correction of purchase data of a product. The POS number is identification data of the POS register. The transaction number is identification data relating to a transaction given each time a transaction is made through the POS register. The return flag is data indicating whether or not the product has been returned, the initial value is "0", and the product is switched to "1" when the product is returned. The correction flag is data indicating whether or not the product purchase history has been corrected, the initial value is "0", and the value is switched to "1" when the product purchase history is corrected.

購入客数データ166は、例えば一時間単位を最小レコードとした時間帯ごとの購入客数のデータである。購入客数データ166のデータ項目は、例えば、店舗コード、日付・時間帯の開始時刻、日付・時間帯の終了時刻、販売客数、返品客数、訂正客数、および、購入客数を含む。販売客数は、POSレジスターを通じて商品の会計を行った顧客の人数を示すデータであり、購入履歴データ150における取引番号のデータレコード数に相当する。返品客数は、商品を返品した顧客の人数を示すデータであり、購入履歴データ150において返品フラグが「1」であるデータレコード数に相当する。訂正客数は、商品の購入時に、店員に対して商品の購入履歴の訂正処理を依頼した顧客の人数を示すデータであり、購入履歴データ150において訂正フラグが「1」であるデータレコード数に相当する。購入客数は、時間帯ごとの商品を購入した顧客の人数を示すデータであり、販売客数から訂正客数を差し引いた人数に相当する。すなわち、商品の購入履歴の訂正処理では、一旦、取引の履歴を取り消し、商品の売り上げを再計上する。この場合、商品の売り上げの計上と、商品の売り上げの再計上を区別することができないため、商品の購入履歴の訂正処理が行われると、取引番号のデータレコード数が購入客数に比して多くなる。そのため、販売客数から訂正客数を差し引くことで購入客数が算出される。なお、返品処理については、返品の対象となる元の取引で客数をカウントしているので、返品件数を差し引かない。 The purchase customer number data 166 is data on the number of purchase customers for each time zone, for example, with the hourly unit as the minimum record. The data items of the purchase customer number data 166 include, for example, the store code, the start time of the date / time zone, the end time of the date / time zone, the number of sales customers, the number of returned customers, the number of correction customers, and the number of purchase customers. The number of sales customers is data indicating the number of customers who have accounted for goods through the POS register, and corresponds to the number of data records of the transaction number in the purchase history data 150. The number of returned customers is data indicating the number of customers who have returned the product, and corresponds to the number of data records in which the return flag is "1" in the purchase history data 150. The number of corrected customers is data indicating the number of customers who requested the clerk to correct the purchase history of the product at the time of purchasing the product, and corresponds to the number of data records in which the correction flag is "1" in the purchase history data 150. To do. The number of purchasing customers is data indicating the number of customers who purchased the product for each time zone, and corresponds to the number of customers obtained by subtracting the number of corrected customers from the number of selling customers. That is, in the correction process of the purchase history of the product, the transaction history is once canceled and the sales of the product are re-recorded. In this case, it is not possible to distinguish between the recording of product sales and the re-recording of product sales. Therefore, when the product purchase history is corrected, the number of data records of the transaction number is larger than the number of purchase customers. Become. Therefore, the number of purchasing customers is calculated by subtracting the number of corrected customers from the number of selling customers. Regarding the return processing, the number of customers is counted in the original transaction that is the target of the return, so the number of returns is not deducted.

次に、図11に示すように、売り逃し計算部122は、単品別理論在庫データ162、
カテゴリ別理論在庫データ164、購入履歴データ150、購入客数データ166、および曜日祝日マスタデータ168を結合することで、売り逃し数算出用データ170を作成する。曜日祝日マスタデータ168は、日付ごとの曜日および祝祭日を定義するためのデータである。曜日祝日マスタデータ168のデータ項目は、例えば、日付、祝祭日、曜日、および、平日休日を含む。日付は、定義の対象となる日付に関するデータである。祝祭日は、定義の対象となる日付が祝祭日に該当するか否かを示すデータである。曜日は、定義の対象となる日付の曜日を示すデータである。平日休日は、定義の対象となる日付が「平日」または「休日」のいずれに区分されるかを示すデータである。この場合、「平日」は、定義の対象となる日付が、祝祭日ではなく、かつ、月曜日から金曜日までの間である場合に付与される。また、「休日」は、定義の対象となる日付が祝祭日である場合、または、定義の対象となる曜日が土曜日または日曜日である場合に付与される。
Next, as shown in FIG. 11, the oversold calculation unit 122 has the theoretical inventory data 162 for each individual item.
By combining the theoretical inventory data 164 by category, the purchase history data 150, the number of purchase customers data 166, and the day / holiday master data 168, the data 170 for calculating the number of missed sales is created. The day / holiday master data 168 is data for defining the day of the week and the holiday for each date. The data items of the day / holiday master data 168 include, for example, dates, holidays, days of the week, and weekday holidays. A date is data about a date that is the subject of a definition. A holiday is data indicating whether or not a date to be defined corresponds to a holiday. The day of the week is data indicating the day of the week of the date to be defined. Weekday holidays are data indicating whether the date to be defined is classified into "weekdays" or "holidays". In this case, "weekday" is given when the date to be defined is not a national holiday and is between Monday and Friday. In addition, "holiday" is given when the date to be defined is a national holiday, or when the day of the week to be defined is Saturday or Sunday.

売り逃し数算出用データ170は、例えば一時間単位を最小レコードとした、売り逃し数の算出に用いられる情報を定義するデータである。売り逃し数算出用データ170のデータ項目は、例えば、部門コード、小分類コード、店舗コード、商品コード、日付・時間帯の開始時刻、日付・時間帯の終了時刻、品揃え対象判定、欠品フラグ、算出粒度、算出カテゴリ、曜日、平日休日、購入客数、販売数、および販売金額を含む。販売客数は、[0060]の中で記載した購入客数データ166と同一のデータである。販売数は、日付・時間帯の開始時刻から日付・時間帯の終了時刻までの一時間における商品の販売数を示すデータである。販売数は、例えば、単品別理論在庫データ162とカテゴリ別理論在庫データ164を結合したデータに含まれる商品の売上数量に基づいて取得される。 The data 170 for calculating the number of missed sales is data that defines information used for calculating the number of missed sales, for example, with an hour unit as the minimum record. The data items of the data 170 for calculating the number of missed sales are, for example, department code, subcategory code, store code, product code, start time of date / time zone, end time of date / time zone, assortment target judgment, shortage. Includes flags, calculated granularity, calculated categories, days of the week, weekday holidays, number of customers purchased, number of sales, and sales amount. The number of customers sold is the same as the number of purchased customers data 166 described in [0060]. The number of sales is data indicating the number of products sold in one hour from the start time of the date / time zone to the end time of the date / time zone. The number of sales is acquired based on, for example, the sales quantity of the product included in the data obtained by combining the theoretical inventory data 162 for each item and the theoretical inventory data 164 for each category.

売り逃し計算部122は、店舗コードをキーとして、単品別理論在庫データ162、曜日祝日マスタデータ168、購入客数データ166、および、購入履歴データ150の各々のレコードを結合することで、売り逃し数算出用データ170を作成する。 The missed sale calculation unit 122 combines the records of the theoretical inventory data 162 for each item, the master data 168 for the day of the week and holidays, the number of purchase customers data 166, and the purchase history data 150, using the store code as a key, to increase the number of missed sales. The calculation data 170 is created.

次に、売り逃し計算部122は、売り逃し数算出用データ170を参照して、想定購入率および単品別売り逃し数を算出する。想定購入率は、商品と時間帯との組み合わせに対して計算され、顧客が店舗を訪れた際に商品を購入する確率である。想定購入率は、例えば、商品の時間帯(一時間単位)ごとの販売数を、同一の時間帯に店舗で商品を会計した顧客の人数である購入客数で除算することで算出される。ここで、同一の時間帯は、例えば、曜日と時間帯との組み合わせで定義される。すなわち、同曜日・同時間帯を同一の時間帯とする。単品別売り逃し数は、商品の時間帯ごとの売り逃し数である。単品別売り逃し数も、商品と時間帯との組み合わせに対して計算されるが、特に欠品が存在した時間帯について計算される。単品別売り逃し数は、購入率ベースでの単品別売り逃し数であり、例えば、購入客数と、想定購入率と、欠品時間割合とを積算することで算出される。欠品時間割合は、欠品が存在した時間帯において商品の在庫数が「0(零)」となっており、商品が欠品していた時間の割合を示す。 Next, the missed sale calculation unit 122 calculates the assumed purchase rate and the number of missed sales by individual item with reference to the data 170 for calculating the number of missed sales. The estimated purchase rate is calculated for the combination of the product and the time zone, and is the probability that the customer purchases the product when the customer visits the store. The assumed purchase rate is calculated by, for example, dividing the number of sales of a product for each time zone (hourly unit) by the number of purchase customers, which is the number of customers who have accounted for the product at the store in the same time zone. Here, the same time zone is defined by, for example, a combination of a day of the week and a time zone. That is, the same day of the week and the same time zone are set as the same time zone. The number of missed sales by individual item is the number of missed sales for each time zone of the product. The number of missed items sold separately is also calculated for the combination of the product and the time zone, but is calculated especially for the time zone when there is a shortage. The number of missed sales by individual item is the number of missed sales by individual item based on the purchase rate. For example, it is calculated by integrating the number of purchase customers, the assumed purchase rate, and the out-of-stock time ratio. The out-of-stock time ratio indicates the ratio of the time when the product was out of stock when the number of products in stock was "0 (zero)" in the time zone when the product was out of stock.

売り逃し計算部122は、想定購入率の計算において、欠品なしの同曜日・同時間帯が必要なサンプル数が存在しない場合には、以下の優先順序に従って、売り逃し数算出用データ170からデータを抽出する条件を段階的に緩めてデータを補完する。 In the calculation of the estimated purchase rate, the missed-sale calculation unit 122 starts with the data 170 for calculating the missed-sale number according to the following priority order when there is no sample number that requires the same day of the week and the same time zone without any shortage. Complement the data by gradually relaxing the conditions for extracting the data.

優先度1:同曜日・同時間帯で欠品なし。
優先度2:曜日区分(平日/休日)が同じ・同時間帯で欠品なし。
優先度3:曜日に関わらず・同時間帯で欠品なし。
優先度4:同曜日・同時間帯で欠品ありも含む。
優先度5:曜日区分(平日/休日)が同じ・同時間帯で欠品ありも含む。
優先度6:曜日に関わらず・同時間帯で欠品ありも含む。
Priority 1: No shortages on the same day and time.
Priority 2: Same day of the week (weekdays / holidays) ・ No shortages at the same time.
Priority 3: Regardless of the day of the week ・ No shortages at the same time.
Priority 4: Including shortages on the same day and time.
Priority 5: Same day of the week (weekdays / holidays) ・ Including shortages in the same time zone.
Priority 6: Regardless of the day of the day ・ Including shortages at the same time.

売り逃し計算部122は、商品が欠品していた時間帯が存在する場合、商品が欠品していた時間帯の売り逃し量を、商品が欠品していなかった時間帯の販売実績を用いて推定する。売り逃し計算部122は、商品が欠品していた時間帯の売り逃し量を、商品が欠品していなかった時間帯の販売実績を用いて推定する場合、商品が欠品していた時間帯に近い時間帯の商品の販売実績を優先して用いる。また、売り逃し計算部122は、商品が欠品していた時間帯の売り逃し量を、商品が欠品していなかった時間帯の販売実績を用いて推定する場合、商品が欠品していた時間帯よりも後の時間帯の商品の販売実績に比して、商品が欠品していた時間帯よりも前の時間帯の商品の販売実績を優先して用いる。 If there is a time zone when the product is out of stock, the missed sales calculation unit 122 determines the amount of missed sales in the time zone when the product was out of stock and the sales record in the time zone when the product was not out of stock. Estimate using. When the missed sale calculation unit 122 estimates the amount of missed sales during the time period when the product was out of stock using the sales results during the time zone when the product was not out of stock, the time when the product was out of stock. Priority is given to the sales performance of products in the time zone close to the zone. Further, when the missed sale calculation unit 122 estimates the amount of missed sales during the time period when the product was out of stock using the sales record during the time zone when the product was not out of stock, the product is out of stock. Compared to the sales performance of the product in the time zone after the time zone, the sales performance of the product in the time zone before the time zone when the product was out of stock is preferentially used.

図12は、商品の欠品の有無に応じて区分した売り逃し数算出用データ170の一例を示す図である。図示の例では、欠品ありの時間帯のみの売り逃し数算出用データ170を「テーブルA」として示す。また、図示の例では、欠品なしの時間帯のみの売り逃し数算出用データ170を「テーブルB」として示す。 FIG. 12 is a diagram showing an example of data 170 for calculating the number of missed sales classified according to the presence or absence of a product shortage. In the illustrated example, the data 170 for calculating the number of missed sales only during the time period when there is a shortage is shown as “Table A”. Further, in the illustrated example, the data 170 for calculating the number of missed sales only during the time period when there is no shortage is shown as “Table B”.

図13に示すように、売り逃し計算部122は、品揃えの対象である商品が欠品している時間帯の売り逃し量を、品揃えの対象である商品が欠品していない時間帯のデータを用いて推定する場合、売り逃し量推定用データ172を参照する。売り逃し量推定用データ172は、「テーブルA」と「テーブルB」とを、店舗コード、商品コード、時間帯、および、曜日をキーとして関連付けたデータである。売り逃し量推定用データ172のデータ項目は、「テーブルA」から抽出したデータ項目と、「テーブルB」から抽出したデータ項目と、「演算データ」としてのデータ項目とを含む。「テーブルA」から抽出したデータ項目は、例えば、店舗コード、商品コード、日付、時間帯、曜日、および、販売客数を含む。「テーブルB」から抽出したデータ項目は、例えば、参照日付、参照客数、および、参照販売数を含む。参照日付は、「テーブルB」における日付に相当するデータである。参照客数は、「テーブルB」における販売客数に相当するデータである。参照販売数は、「テーブルB」における販売数に相当するデータである。「演算データ」としてのデータ項目は、例えば、日付差異、ランク算出用日付差異、および、日付差異ランクを含む。日付差異は、日付から参照日付を差し引いた日数の値を示すデータである。ランク算出用日付差異は、日付差異ランクを算出する際の基準となるパラメータである。ランク算出用日付差異は、例えば、日付差異が正の値である場合には日付差異の値が付与され、日付差異が負の値である場合には日付差異の絶対値に所定値(この例では、「56」)を加算した値が付与されている。すなわち、実施形態では、参照日付が日付よりも前の時点である場合には、参照日付が日付よりも後の時点である場合よりも優先して用いる。つまり、日付差異がマイナス(欠品時刻よりも未来の日付のデータを利用)の場合、日付差異が過去の日付差異よりも大きくなるようにすることで過去の日付のデータの優先度を高くする。なお、日付差異がマイナスの場合、日付差異が過去データより大きくなるようにするために加算する56日という数は、欠品日から±8週目(つまり±56日目)までのデータを利用する場合の例であり、過去データの優先度を高めるために56日を加算するようにしている。すなわち、あまりにかけ離れた期間の売れ行きデータ(購入率ベース、客単価ベース)を利用しても推定結果の信憑性に欠けるため、利用するデータは直近8週間(欠品時点から過去・未来ともに)としている。±8週目については特に制限は設けないが、信憑性に欠けない週数とする必要がある。日付差異ランクは、想定購入率および単品別売り逃し数を算出する際の売り逃し量推定用データ172の各レコードの優先度を規定するデータである。この例では、売り逃し計算部122は、日付差異ランクが「4」以下のデータを抽出しており、これら抽出したデータを集計して用いることで、商品が欠品している時間帯に対応する想定購入率および単品別売り逃し数を算出する。 As shown in FIG. 13, the missed-sale calculation unit 122 sets the amount of missed sales during the time period when the product to be assorted is out of stock during the time zone when the product to be assorted is not out of stock. When estimating using the data of, the oversold amount estimation data 172 is referred to. The oversold amount estimation data 172 is data in which "table A" and "table B" are associated with a store code, a product code, a time zone, and a day of the week as keys. The data item of the oversold amount estimation data 172 includes a data item extracted from "Table A", a data item extracted from "Table B", and a data item as "calculation data". The data items extracted from "Table A" include, for example, a store code, a product code, a date, a time zone, a day of the week, and the number of customers. The data items extracted from "Table B" include, for example, the reference date, the number of reference customers, and the number of reference sales. The reference date is data corresponding to the date in "Table B". The number of reference customers is data corresponding to the number of sales customers in "Table B". The reference sales number is data corresponding to the sales number in "Table B". The data item as "calculation data" includes, for example, a date difference, a date difference for rank calculation, and a date difference rank. The date difference is data indicating the value of the number of days obtained by subtracting the reference date from the date. The date difference for rank calculation is a parameter that serves as a reference when calculating the date difference rank. For the date difference for rank calculation, for example, when the date difference is a positive value, the value of the date difference is given, and when the date difference is a negative value, a predetermined value is given to the absolute value of the date difference (this example). Then, a value obtained by adding "56") is given. That is, in the embodiment, when the reference date is before the date, it is used with priority over the case where the reference date is after the date. In other words, if the date difference is negative (data of a date in the future than the out-of-stock time is used), the priority of the data of the past date is increased by making the date difference larger than the past date difference. .. If the date difference is negative, the number of 56 days to be added to make the date difference larger than the past data uses the data from the shortage date to the ± 8th week (that is, ± 56th day). This is an example of the case where 56 days are added in order to increase the priority of the past data. In other words, even if you use sales data (purchase rate base, customer unit price base) for a period that is too far away, the estimation result is not credible, so the data used is for the last 8 weeks (both past and future from the time of shortage). There is. There is no particular limit on the ± 8th week, but it must be a number of weeks that is not lacking in credibility. The date difference rank is data that defines the priority of each record of the missed sale amount estimation data 172 when calculating the assumed purchase rate and the number of missed sells by individual item. In this example, the missed-sale calculation unit 122 extracts data having a date difference rank of "4" or less, and by aggregating and using the extracted data, it corresponds to a time zone when the product is out of stock. Calculate the estimated purchase rate and the number of missed items sold separately.

次に、単品別需要金額計算部124は、想定購入率に対して購入客数を積算することで、購入率ベースの想定販売数を算出する。また、単品別需要金額計算部124は、購入率ベースの想定販売数に対して欠品時間割合を積算することで、購入率ベースの売り逃し数を算出する。また、単品別需要金額計算部124は、購入率ベースの売り逃し数に対して商品の売単価を積算することで、購入率ベースの売り逃し高を算出する。そして、単品別需要金額計算部124は、カテゴリに属する複数の商品について、購入率ベースの売り逃し高の合計値と、商品の売上金額の合計値とを足し合わせた金額を単品別需要金額合計としてカテゴリ別売り逃し高(客単価ベース)を算出する。 Next, the demand amount calculation unit 124 for each individual item calculates the estimated number of sales based on the purchase rate by integrating the number of purchasers with respect to the estimated purchase rate. In addition, the demand amount calculation unit 124 for each individual item calculates the number of missed sales based on the purchase rate by integrating the out-of-stock time ratio with respect to the estimated number of sales based on the purchase rate. In addition, the demand amount calculation unit 124 for each individual item calculates the amount of missed sales based on the purchase rate by integrating the unit selling price of the product with respect to the number of missed sales based on the purchase rate. Then, the demand amount calculation unit 124 for each individual item totals the total demand amount for each individual item, which is the sum of the total value of the oversold amount based on the purchase rate and the total sales amount of the products for a plurality of products belonging to the category. Calculate the amount of missed sales by category (based on customer unit price).

カテゴリ別需要金額計算部126は、想定客単価に対して購入客数を積算することで、客単価ベースの想定売上金額を算出する。客単価は、例えば、商品の売上金額を購入客数で除算することで算出される。また、カテゴリ別需要金額計算部126は、客単価ベースの想定売上金額が売上金額よりも大きい場合、客単価ベースの想定売上金額から売上金額を差し引いた金額を客単価ベースの想定売上金額としてカテゴリ別売り逃し高(客単価ベース)を算出する。一方、カテゴリ別需要金額計算部126は、客単価ベースの想定売上金額が売上金額以下である場合、客単価ベースの想定売上金額を「0(零)」としてカテゴリ別売り逃し高(客単価ベース)を算出する。 The demand amount calculation unit 126 for each category calculates the estimated sales amount based on the customer unit price by integrating the number of purchasing customers with the estimated customer unit price. The customer unit price is calculated, for example, by dividing the sales amount of the product by the number of purchasing customers. Further, when the estimated sales amount based on the customer unit price is larger than the sales amount, the demand amount calculation unit 126 for each category sets the amount obtained by subtracting the sales amount from the estimated sales amount based on the customer unit price as the estimated sales amount based on the customer unit price. Calculate the amount of missed sales (based on the unit price per customer). On the other hand, when the estimated sales amount based on the customer unit price is less than or equal to the sales amount, the demand amount calculation unit 126 for each category sets the estimated sales amount based on the customer unit price as "0 (zero)" and sets the sales amount by category (customer unit price basis). Is calculated.

カテゴリ別需要金額計算部126は、客単価ベースの想定売上金額に対して欠品時間割合を積算することで、客単価ベースの売り逃し高を算出する。そして、カテゴリ別需要金額計算部126は、カテゴリに属する複数の商品について、客単価ベースの売り逃し高の合計値と、商品の売上金額の合計値とを足し合わせた金額をカテゴリ別需要金額合計として算出する。 The demand amount calculation unit 126 for each category calculates the oversold amount based on the customer unit price by integrating the out-of-stock time ratio with the estimated sales amount based on the customer unit price. Then, the demand amount calculation unit 126 for each category totals the demand amount for each category by adding the total value of the oversold amount based on the customer unit price and the total sales amount of the products for the plurality of products belonging to the category. Calculate as.

評価部128は、単品別需要金額計算部124により計算された単品別需要金額合計と、カテゴリ別需要金額計算部126により計算されたカテゴリ別需要金額合計とに基づいて、単品別売り逃し金額を補正する。図14に示す例では、評価部128は、欠品期間のカテゴリ売上CAS(Category Actual sales)に対して欠品期間における単品別売り逃し金額CLS(Category Lost Sales)を加算した欠品期間カテゴリ売上が欠品していない同曜日・同時間帯のカテゴリ売上から推定した欠品期間カテゴリ需要CD(Category Demand)の金額を超過している場合、超過分を抑制するように、欠品期間における単品別売り逃し金額CLSを圧縮補正する。評価部128は、例えば、補正前の欠品期間における単品別売り逃し金額CLSに対して補正係数(CD/(CAS+CLS))を掛けることで、補正後の欠品期間における単品別売り逃し金額CLSを算出する。評価部128は、算出粒度として「カテゴリ購入」が付与された商品を対象として、代替商品購入の影響を考慮して、欠品期間における単品別売り逃し金額CLSを圧縮補正する。なお、評価部128により圧縮補正された単品別売り逃し金額CLSは、需要予測部212による商品の需要予測に用いてもよいし、用いなくてもよい。 The evaluation unit 128 corrects the oversold amount for each item based on the total demand amount for each item calculated by the demand amount calculation unit 124 for each item and the total demand amount for each category calculated by the demand amount calculation unit 126 for each category. To do. In the example shown in FIG. 14, the evaluation unit 128 calculates the shortage period category sales by adding the CLS (Category Lost Sales), which is the amount of missed sales for each item in the shortage period, to the category sales CAS (Category Actual sales) in the shortage period. Out of stock period estimated from category sales on the same day of the week and the same time zone that is not out of stock If the amount of category demand CD (Category Demand) is exceeded, sold separately during the out of stock period so as to suppress the excess The missed amount CLS is compressed and corrected. For example, the evaluation unit 128 calculates the oversold amount CLS for each item in the out-of-stock period after correction by multiplying the oversold amount CLS by individual item in the out-of-stock period before amendment by a correction coefficient (CD / (CAS + CLS)). To do. The evaluation unit 128 compresses and corrects the oversold amount CLS for each item during the shortage period in consideration of the influence of the purchase of alternative products for the products to which "category purchase" is given as the calculation particle size. It should be noted that the individual item-specific oversold amount CLS compressed and corrected by the evaluation unit 128 may or may not be used for the demand forecast of the product by the demand forecast unit 212.

[商品の需要予測の前処理]
次に、商品の需要予測の前処理について説明する。
[Pre-processing of product demand forecast]
Next, the preprocessing of the demand forecast of the product will be described.

図15に示すように、需要予測部212は、まず、商品の販売時刻ごとに記録された販売数を販売時間帯ごとに集計して、販売時間帯ごとの販売数を算出する。販売時間帯は、例えば、一時間単位でもよいし、一日単位でもよいし、一週間単位でもよい。需要予測部212は、例えば、商品コードが共通する商品の販売数を販売時間帯ごとに集計して、商品の販売時間帯ごとの販売数を算出する。 As shown in FIG. 15, the demand forecasting unit 212 first totals the number of sales recorded for each sales time of the product for each sales time zone and calculates the number of sales for each sales time zone. The sales time zone may be, for example, an hour unit, a daily unit, or a week unit. For example, the demand forecasting unit 212 totals the number of sales of products having a common product code for each sales time zone, and calculates the number of sales of the products for each sales time zone.

次に、図16に示すように、需要予測部212は、商品の販売時間帯ごとの販売数に対し、商品の販売時間帯ごとの売り逃し数を合算することで、商品の販売時間帯ごとの販売数を補正する。 Next, as shown in FIG. 16, the demand forecasting unit 212 adds up the number of missed sales for each sales time zone of the product to the number of sales for each sales time zone of the product, so that each sales time zone of the product is added. Correct the number of sales.

需要予測部212は、補正された商品の販売時間帯ごとの販売数を含む学習用データを用いて機械学習により需要予測モデルを学習させる。機械学習の手法は、例えば、重回帰分析、ランダムフォレスト、サポートベクターマシンを含む。需要予測部212は、需要予測モデルを学習する場合、補正された販売数が「0(零)」である販売時間帯のデータを学習用データとして用いてもよいし、用いなくてもよい。 The demand forecast unit 212 trains the demand forecast model by machine learning using the learning data including the number of sales of the corrected product for each sales time zone. Machine learning techniques include, for example, multiple regression analysis, random forest, and support vector machines. When the demand forecasting unit 212 learns the demand forecasting model, the demand forecasting unit 212 may or may not use the data of the sales time zone in which the corrected number of sales is "0 (zero)" as the learning data.

需要予測部212は、需要予測モデルを学習する場合、商品の販売時刻ごとに記録された販売数を所定期間ごとに集計して、所定期間ごとの販売数を算出する。所定期間は、上述した販売時間帯の長さよりも長い期間である。例えば、販売時間帯が一時間単位である場合には所定期間は一日単位であり、販売時間帯が一日単位である場合には所定期間は一週間単位である。需要予測部212は、ある所定期間における販売数が「0(零)」である場合、所定期間に含まれる販売時刻ごとの販売数を学習用データとして用いない。 When learning the demand forecast model, the demand forecasting unit 212 totals the number of sales recorded for each sales time of the product for each predetermined period and calculates the number of sales for each predetermined period. The predetermined period is a period longer than the length of the sales time zone described above. For example, when the sales time zone is one hour unit, the predetermined period is one day unit, and when the sales time zone is one day unit, the predetermined period is one week unit. When the number of sales in a predetermined period is "0 (zero)", the demand forecast unit 212 does not use the number of sales for each sales time included in the predetermined period as learning data.

より詳細には、図17に示すように、需要予測部212は、記憶部230に格納された商品の販売実績のデータ量がシステムの利用者が定める基準値と比較して少ない場合には、商品群ごとの商品の販売実績を学習用データとして用いた機械学習により、需要予測モデルM1の一例として商品群別機械学習モデルを学習させる。商品群別機械学習モデルは、商品群ごとの商品の販売実績を学習用データとして用いて機械学習により学習させたモデルである。図示の例では、商品群ごとの商品の販売実績のデータ項目として、大分類、中分類、小分類、商品コード、天気、日付、曜日、時間帯、売価、販売数を含む。大分類、中分類、小分類は、商品の分類を階層別に示すデータ項目であり、商品群に含まれる商品の絞り込みに用いられる。天気、日付、曜日、時間帯、売価は、需要予測モデルへの入力に用いられるデータ項目であり、学習用データとして用いられる。販売数は、需要予測モデルM1から出力されるデータ項目であり、教師データとして用いられる。 More specifically, as shown in FIG. 17, when the amount of data of the sales record of the product stored in the storage unit 230 is smaller than the reference value set by the user of the system, the demand forecast unit 212 may use the demand forecast unit 212. By machine learning using the sales performance of products for each product group as learning data, a machine learning model for each product group is trained as an example of the demand forecast model M1. The machine learning model for each product group is a model in which the sales performance of products for each product group is used as learning data and trained by machine learning. In the illustrated example, the data items of the sales performance of the products for each product group include the major classification, the middle classification, the minor classification, the product code, the weather, the date, the day of the week, the time zone, the selling price, and the number of sales. The major classification, middle classification, and minor classification are data items that indicate the classification of products by hierarchy, and are used to narrow down the products included in the product group. The weather, date, day of the week, time zone, and selling price are data items used for input to the demand forecast model and are used as learning data. The number of sales is a data item output from the demand forecast model M1 and is used as teacher data.

需要予測部212は、記憶部230に格納された商品の販売実績のデータ量がシステムの利用者が定める基準値と比較して多い場合には、商品ごとの商品の販売実績を学習用データとして用いた機械学習により、需要予測モデルの一例として商品別機械学習モデルを学習させる。商品別機械学習モデルは、商品ごとの商品の販売実績を学習用データとして用いて機械学習により学習させたモデルである。図示の例では、商品ごとの販売実績のデータ項目として、商品コード、天気、日付、曜日、時間帯、売価、販売数を含む。天気、日付、曜日、時間帯、売価は、需要予測モデルへの入力に用いられるデータ項目であり、学習用データとして用いられる。販売数は、需要予測モデルから出力されるデータ項目であり、教師データとして用いられる。 When the amount of product sales record data stored in the storage unit 230 is larger than the reference value set by the system user, the demand forecast unit 212 uses the product sales record for each product as learning data. By the machine learning used, the machine learning model for each product is trained as an example of the demand forecast model. The product-specific machine learning model is a model in which the sales performance of a product for each product is used as learning data and trained by machine learning. In the illustrated example, the data items of the sales performance for each product include the product code, the weather, the date, the day of the week, the time zone, the selling price, and the number of sales. The weather, date, day of the week, time zone, and selling price are data items used for input to the demand forecast model and are used as learning data. The number of sales is a data item output from the demand forecast model and is used as teacher data.

[商品の需要予測]
次に、商品の需要予測の第1実施例について説明する。
[Product demand forecast]
Next, the first embodiment of the demand forecast of the product will be described.

需要予測部212は、補正された商品の販売時間帯ごとの販売数を含む学習用データを用いて学習された需要予測モデルM1に対し、予測対象の販売時間帯を入力することで、商品の需要予測を行う。 The demand forecasting unit 212 inputs the forecasted sales time zone to the demand forecast model M1 learned using the learning data including the number of sales of the corrected product for each sales time zone. Make a demand forecast.

需要予測部212は、商品の需要予測を行う場合、記憶部230に格納された販売実績データ232のデータ量に応じて需要予測モデルM1を変更する。需要予測部212は、例えば、記憶部230に格納された販売実績データ232のデータ量が多くなるにつれて、予測精度の高い需要予測モデルM1を用いて商品の需要予測を行う。需要予測部212は、例えば、記憶部230に格納された販売実績データ232のデータ量がシステムの利用者が定める基準値と比較して少ない場合には、複数の商品を含む商品群ごとの需要予測モデルM1を用いて商品の需要予測を行い、記憶部230に格納された販売実績データ232のデータ量がシステムの利用者が定める基準値と比較して多い場合には、商品ごとの需要予測モデルM1を用いて商品の需要予測を行う。また、需要予測部212は、例えば、記憶部230に格納された販売実績データ232のデータ量がシステムの利用者が定める基準値と比較して少ない場合には、商品の販売実績データ232を統計的に解析した統計モデルを用いて商品の需要予測を行い、記憶部230に格納された販売実績データ232のデータ量がシステムの利用者が定める基準値と比較して多い場合には、商品の販売実績データ232を学習用データとして用いた機械学習モデルを用いて商品の需要予測を行う。 When forecasting the demand for a product, the demand forecasting unit 212 changes the demand forecasting model M1 according to the amount of data of the sales record data 232 stored in the storage unit 230. For example, the demand forecasting unit 212 predicts the demand for a product by using the demand forecasting model M1 with high forecasting accuracy as the amount of data of the sales record data 232 stored in the storage unit 230 increases. For example, when the amount of data of the sales record data 232 stored in the storage unit 230 is smaller than the reference value set by the user of the system, the demand forecast unit 212 demands for each product group including a plurality of products. When the demand forecast of the product is performed using the forecast model M1 and the amount of data of the sales record data 232 stored in the storage unit 230 is larger than the reference value set by the system user, the demand forecast for each product is performed. The demand forecast of the product is performed using the model M1. Further, for example, when the amount of data of the sales record data 232 stored in the storage unit 230 is smaller than the reference value set by the user of the system, the demand forecast unit 212 statistics the sales record data 232 of the product. When the demand forecast of the product is made using the statistical model analyzed in the above manner and the amount of data of the sales record data 232 stored in the storage unit 230 is larger than the reference value set by the system user, the product Demand forecast of products is performed using a machine learning model that uses sales performance data 232 as learning data.

需要予測部212は、販売実績のデータ量が第1閾値未満である場合には、商品群別平均モデルを用いて商品の需要予測を行う。 When the amount of sales performance data is less than the first threshold value, the demand forecasting unit 212 forecasts the demand for products using the average model for each product group.

需要予測部212は、販売実績のデータ量が第1閾値以上であり、かつ、第2閾値未満である場合には、商品別平均モデルを用いて商品の需要予測を行う。商品別平均モデルは、商品ごとの商品の販売実績の平均値を用いるモデルである。商品別平均モデルは、データの対象が狭く、予測方法が単純なモデルである。 When the amount of sales performance data is equal to or greater than the first threshold value and less than the second threshold value, the demand forecasting unit 212 forecasts the demand for the product using the product-specific average model. The average model for each product is a model that uses the average value of the sales performance of each product. The average model by product is a model in which the target of data is narrow and the prediction method is simple.

需要予測部212は、販売実績のデータ量が第2閾値以上であり、かつ、第3閾値未満である場合には、商品群別機械学習モデルを用いて商品の需要予測を行う。商品群別機械学習モデルは、データの対象が広く、予測方法が複雑なモデルである。 When the amount of sales performance data is equal to or greater than the second threshold value and less than or equal to the third threshold value, the demand forecasting unit 212 forecasts the demand for the product using the machine learning model for each product group. The machine learning model for each product group is a model in which the target of data is wide and the prediction method is complicated.

需要予測部212は、販売実績のデータ量が第3閾値以上である場合には、商品別機械学習モデルを用いて商品の需要予測を行う。商品別機械学習モデルは、データの対象が狭く、予測方法が複雑なモデルである。 When the amount of sales performance data is equal to or greater than the third threshold value, the demand forecasting unit 212 forecasts the demand for the product using the machine learning model for each product. The product-specific machine learning model is a model in which the target of data is narrow and the prediction method is complicated.

すなわち、需要予測部212は、販売実績のデータ量が多くなるにつれて、商品の需要予測に用いる需要予測モデルを、商品群別平均モデル、商品別平均モデル、商品群別機械学習モデル、および、商品別機械学習モデルの順に切り替える。ただし、需要予測部212は、販売実績のデータ量に応じた商品別平均モデルと商品群別機械学習モデルの優先順位を入れ替えてもよい。そして、需要予測部212は、記憶部230に格納された販売実績データ232のデータ量が少ない場合には、複数の商品を含む商品群ごとの需要予測モデルM1を用いて商品の需要予測を行い、記憶部230に格納された販売実績データ232のデータ量が多い場合には、商品ごとの需要予測モデルM1を用いて商品の需要予測を行う。また、需要予測部212は、記憶部230に格納された販売実績データ232のデータ量が少ない場合には、商品の販売実績を統計的に解析した統計モデルを用いて商品の需要予測を行い、記憶部230に格納された販売実績のデータ量が多い場合には、商品の販売実績データ232を学習用データとして用いて学習させた機械学習モデルを用いて商品の需要予測を行う。 That is, as the amount of sales performance data increases, the demand forecasting unit 212 uses the demand forecasting model for product demand forecasting as an average model for each product group, an average model for each product group, a machine learning model for each product group, and a product. Switch in the order of another machine learning model. However, the demand forecasting unit 212 may switch the priority order of the product-specific average model and the product group-specific machine learning model according to the amount of sales performance data. Then, when the amount of data of the sales record data 232 stored in the storage unit 230 is small, the demand forecast unit 212 predicts the demand of the product using the demand forecast model M1 for each product group including a plurality of products. When the amount of data of the sales record data 232 stored in the storage unit 230 is large, the demand forecast model M1 for each product is used to forecast the demand for the product. Further, when the amount of data of the sales record data 232 stored in the storage unit 230 is small, the demand forecast unit 212 predicts the demand of the product using a statistical model that statistically analyzes the sales record of the product. When the amount of sales record data stored in the storage unit 230 is large, the demand forecast of the product is performed using the machine learning model trained by using the product sales record data 232 as learning data.

次に、商品の需要予測の第1実施例の処理の流れについて説明する。 Next, the processing flow of the first embodiment of the demand forecast of the product will be described.

図18に示すように、需要予測部212はまず、気象情報を取得する(ステップS10)。 As shown in FIG. 18, the demand forecasting unit 212 first acquires weather information (step S10).

次に、需要予測部212は、カレンダー情報を取得する(ステップS12)。 Next, the demand forecasting unit 212 acquires calendar information (step S12).

次に、需要予測部212は、売価情報を取得する(ステップS14)。 Next, the demand forecasting unit 212 acquires the selling price information (step S14).

次に、需要予測部212は、記憶部230に格納された商品の販売実績データ232のデータ量が第1閾値以上であるか否かを判定する(ステップS16)。需要予測部212は、商品の販売実績のデータ量が第1閾値未満であると判定した場合、商品群別平均モデルを用いて商品の需要予測を行う(ステップS18)。これによって、本フローチャートの処理が終了する。 Next, the demand forecasting unit 212 determines whether or not the amount of data of the product sales record data 232 stored in the storage unit 230 is equal to or greater than the first threshold value (step S16). When the demand forecasting unit 212 determines that the amount of data of the sales performance of the product is less than the first threshold value, the demand forecasting unit 212 forecasts the demand of the product using the average model for each product group (step S18). This completes the processing of this flowchart.

需要予測部212は、商品の販売実績データ232のデータ量が第1閾値以上であると判定した場合、商品の販売実績データ232のデータ量が第2閾値以上であるか否かを判定する(ステップS20)。需要予測部212は、商品の販売実績データ232のデータ量が第2閾値未満であると判定した場合、商品別平均モデルを用いて商品の需要予測を行う(ステップS22)。これによって、本フローチャートの処理が終了する。 When the demand forecasting unit 212 determines that the data amount of the product sales record data 232 is equal to or greater than the first threshold value, the demand forecast unit 212 determines whether or not the data amount of the product sales record data 232 is equal to or greater than the second threshold value. Step S20). When the demand forecasting unit 212 determines that the amount of data of the product sales performance data 232 is less than the second threshold value, the demand forecasting unit 212 forecasts the demand for the product using the product-specific average model (step S22). This completes the processing of this flowchart.

需要予測部212は、商品の販売実績データ232のデータ量が第2閾値以上であると判定した場合、商品の販売実績データ232のデータ量が第3閾値以上であるか否かを判定する(ステップS24)。需要予測部212は、商品の販売実績データ232のデータ量が第3閾値未満であると判定した場合、商品群別機械学習モデルを用いて商品の需要予測を行う(ステップS26)。これによって、本フローチャートの処理が終了する。 When the demand forecasting unit 212 determines that the data amount of the product sales record data 232 is equal to or greater than the second threshold value, the demand forecast unit 212 determines whether or not the data amount of the product sales record data 232 is equal to or greater than the third threshold value. Step S24). When the demand forecasting unit 212 determines that the amount of data of the product sales performance data 232 is less than the third threshold value, the demand forecasting unit 212 predicts the demand of the product using the machine learning model for each product group (step S26). This completes the processing of this flowchart.

需要予測部212は、商品の販売実績のデータ量が第3閾値以上であると判定した場合、商品別機械学習モデルを用いて商品の需要予測を行う(ステップS28)。これによって、本フローチャートの処理が終了する。 When the demand forecasting unit 212 determines that the amount of data of the sales performance of the product is equal to or greater than the third threshold value, the demand forecasting unit 212 predicts the demand of the product using the machine learning model for each product (step S28). This completes the processing of this flowchart.

次に、商品の需要予測の第2実施例について説明する。 Next, a second embodiment of product demand forecast will be described.

需要予測部212は、商品の販売実績データ232を学習用データとして用いて機械学習モデルを用いて商品の需要予測を行う場合、記憶部230に格納された販売実績データ232のデータ量が所定量未満である場合には、第1機械学習モデルを用いて商品の需要予測を行い、記憶部230に格納された販売実績データ232のデータ量が所定値以上である場合には、第2機械学習モデルを用いて商品の需要予測を行う。第2機械学習モデルは、第1機械学習モデルに比して、データ量が多い学習用データを用いて機械学習により学習させたモデルである。 When the demand forecasting unit 212 uses the product sales record data 232 as learning data to forecast the demand for the product using the machine learning model, the amount of data of the sales record data 232 stored in the storage unit 230 is a predetermined amount. If it is less than, the demand forecast of the product is performed using the first machine learning model, and if the amount of data of the sales record data 232 stored in the storage unit 230 is equal to or more than a predetermined value, the second machine learning is performed. Forecast product demand using a model. The second machine learning model is a model trained by machine learning using learning data having a larger amount of data than the first machine learning model.

より詳細には、図19に示すように、需要予測部212は、商品の販売実績のデータが蓄積されておらず、商品の販売実績データ232のデータ量が第4閾値未満である場合には、商品ごとの商品の販売実績データ232を用いた機械学習により、商品別機械学習モデルとして第1機械学習モデルを学習させる。図19の例では、商品ごとの販売実績データ232のデータ項目として、商品コード、天気、日付、曜日、時間帯、売価、販売数を含む。天気、日付、曜日、時間帯、売価は、需要予測モデルへの入力に用いられるデータ項目であり、学習用データとして用いられる。販売数は、需要予測モデルから出力されるデータ項目であり、教師データとして用いられる。 More specifically, as shown in FIG. 19, when the demand forecasting unit 212 does not accumulate the product sales record data and the data amount of the product sales record data 232 is less than the fourth threshold value, , The first machine learning model is learned as a machine learning model for each product by machine learning using the product sales performance data 232 for each product. In the example of FIG. 19, as the data items of the sales performance data 232 for each product, the product code, the weather, the date, the day of the week, the time zone, the selling price, and the number of sales are included. The weather, date, day of the week, time zone, and selling price are data items used for input to the demand forecast model and are used as learning data. The number of sales is a data item output from the demand forecast model and is used as teacher data.

需要予測部212は、商品の販売実績データ232が蓄積され、商品の販売実績データ232のデータ量が第4閾値以上となった場合、商品ごとの商品の販売実績データ232を用いた機械学習により、商品別機械学習モデルとして第2機械学習モデルを学習させる。図示の例では、商品ごとの販売実績データ232のデータ項目として、商品コード、天気、日付、曜日、時間帯、売価、販売数に加え、売価の統計値を含む。売価の統計値は、商品コード、天気、曜日、時間帯が共通する複数のデータにおける売価を統計的に処理した値であり、例えば、売価の平均値である。売価の統計値は、売価の分散値であってもよい。商品コード、天気、日付、曜日、時間帯、売価、売価の平均値は、需要予測モデルへの入力に用いられるデータ項目であり、学習用データとして用いられる。販売数は、需要予測モデルから出力されるデータ項目であり、教師データとして用いられる。 When the product sales record data 232 is accumulated and the data amount of the product sales record data 232 exceeds the fourth threshold value, the demand forecasting unit 212 uses machine learning using the product sales record data 232 for each product. , Train the second machine learning model as a product-specific machine learning model. In the illustrated example, the data items of the sales performance data 232 for each product include the product code, the weather, the date, the day of the week, the time zone, the selling price, the number of sales, and the statistical value of the selling price. The statistical value of the selling price is a value obtained by statistically processing the selling price of a plurality of data having the same product code, weather, day of the week, and time zone, and is, for example, an average value of the selling price. The selling price statistical value may be a variance value of the selling price. The product code, weather, date, day of the week, time zone, selling price, and average value of selling price are data items used for input to the demand forecast model and are used as learning data. The number of sales is a data item output from the demand forecast model and is used as teacher data.

次に、商品の需要予測の第2実施例の処理の流れについて説明する。 Next, the processing flow of the second embodiment of the demand forecast of the product will be described.

図20に示すように、需要予測部212はまず、気象情報を取得する(ステップS30)。 As shown in FIG. 20, the demand forecasting unit 212 first acquires weather information (step S30).

次に、需要予測部212は、カレンダー情報を取得する(ステップS32)。 Next, the demand forecasting unit 212 acquires calendar information (step S32).

次に、需要予測部212は、売価情報を取得する(ステップS34)。 Next, the demand forecasting unit 212 acquires the selling price information (step S34).

次に、需要予測部212は、記憶部230に格納された商品の販売実績データ232のデータ量が第1閾値以上であるか否かを判定する(ステップS36)。需要予測部212は、商品の販売実績データ232のデータ量が第1閾値未満であると判定した場合、商品群別平均モデルを用いて商品の需要予測を行う(ステップS38)。これによって、本フローチャートの処理が終了する。 Next, the demand forecasting unit 212 determines whether or not the amount of data of the product sales record data 232 stored in the storage unit 230 is equal to or greater than the first threshold value (step S36). When the demand forecasting unit 212 determines that the amount of data of the product sales performance data 232 is less than the first threshold value, the demand forecasting unit 212 forecasts the demand for the product using the average model for each product group (step S38). This completes the processing of this flowchart.

需要予測部212は、商品の販売実績データ232のデータ量が第1閾値以上であると判定した場合、商品の販売実績データ232のデータ量が第2閾値以上であるか否かを判定する(ステップS40)。需要予測部212は、商品の販売実績データ232のデータ量が第2閾値未満であると判定した場合、商品別平均モデルを用いて商品の需要予測を行う(ステップS42)。これによって、本フローチャートの処理が終了する。 When the demand forecasting unit 212 determines that the data amount of the product sales record data 232 is equal to or greater than the first threshold value, the demand forecast unit 212 determines whether or not the data amount of the product sales record data 232 is equal to or greater than the second threshold value. Step S40). When the demand forecasting unit 212 determines that the amount of data of the product sales performance data 232 is less than the second threshold value, the demand forecasting unit 212 forecasts the demand for the product using the product-specific average model (step S42). This completes the processing of this flowchart.

需要予測部212は、商品の販売実績データ232のデータ量が第2閾値以上であると判定した場合、商品の販売実績データ232のデータ量が第3閾値以上であるか否かを判定する(ステップS44)。需要予測部212は、商品の販売実績データ232のデータ量が第3閾値未満であると判定した場合、商品群別機械学習モデルを用いて商品の需要予測を行う(ステップS46)。これによって、本フローチャートの処理が終了する。 When the demand forecasting unit 212 determines that the data amount of the product sales record data 232 is equal to or greater than the second threshold value, the demand forecast unit 212 determines whether or not the data amount of the product sales record data 232 is equal to or greater than the third threshold value. Step S44). When the demand forecasting unit 212 determines that the amount of data of the product sales performance data 232 is less than the third threshold value, the demand forecasting unit 212 predicts the demand of the product using the machine learning model for each product group (step S46). This completes the processing of this flowchart.

需要予測部212は、商品の販売実績データ232のデータ量が第3閾値以上であると判定した場合、商品の販売実績データ232のデータ量が第4閾値以上であるか否かを判定する(ステップS48)。需要予測部212は、商品の販売実績データ232のデータ量が第4閾値未満であると判定した場合、商品別機械学習モデルとして第1機械学習モデルを用いて商品の需要予測を行う(ステップS50)。これによって、本フローチャートの処理が終了する。 When the demand forecasting unit 212 determines that the data amount of the product sales record data 232 is equal to or greater than the third threshold value, the demand forecast unit 212 determines whether or not the data amount of the product sales record data 232 is equal to or greater than the fourth threshold value. Step S48). When the demand forecasting unit 212 determines that the amount of data of the product sales performance data 232 is less than the fourth threshold value, the demand forecasting unit 212 forecasts the demand for the product using the first machine learning model as the machine learning model for each product (step S50). ). This completes the processing of this flowchart.

需要予測部212は、商品の販売実績のデータ量が第4閾値以上であると判定した場合、商品別機械学習モデルとして第2機械学習モデルを用いて商品の需要予測を行う(ステップS52)。これによって、本フローチャートの処理が終了する。 When the demand forecasting unit 212 determines that the amount of data of the sales performance of the product is equal to or greater than the fourth threshold value, the demand forecasting unit 212 predicts the demand of the product using the second machine learning model as the machine learning model for each product (step S52). This completes the processing of this flowchart.

[基準在庫量の計算] [Calculation of standard inventory amount]

次に、基準在庫計算部214の処理の流れについて、図21のフローチャートを参照して説明する。 Next, the processing flow of the reference inventory calculation unit 214 will be described with reference to the flowchart of FIG.

基準在庫計算部214は、まず、商品の販売実績に基づいて、商品の単位売残損失L1を計算する(ステップS60)。 First, the reference inventory calculation unit 214 calculates the unit unsold loss L1 of the product based on the sales performance of the product (step S60).

次に、基準在庫計算部214は、商品の一単位あたりの正規売価から商品の仕入原価を差し引くことで、商品の単位売逃損失L2を計算する(ステップS62)。 Next, the reference inventory calculation unit 214 calculates the unit sales loss L2 of the product by subtracting the purchase cost of the product from the regular selling price per unit of the product (step S62).

次に、基準在庫計算部214は、時間帯ごとの販売実績値から時間帯ごとの需要予測値を差し引いて時間帯ごとの残差を算出することで、商品の需要予測残差分布を計算する(ステップS64)。 Next, the reference inventory calculation unit 214 calculates the demand forecast residual distribution of the product by subtracting the demand forecast value for each time zone from the actual sales value for each time zone and calculating the residual for each time zone. (Step S64).

次に、基準在庫計算部214は、商品の需要予測残差分布と商品の単位売残損失L1と商品の単位売逃損失L2とに基づいて、商品の期待損失額Lを算出し、商品の期待損失額Lが最小となる在庫量を、商品の基準在庫量として計算する(ステップS66)。 Next, the reference inventory calculation unit 214 calculates the expected loss amount L of the product based on the demand forecast residual distribution of the product, the unit unsold loss L1 of the product, and the unit unsold loss L2 of the product. The inventory amount that minimizes the expected loss amount L is calculated as the reference inventory amount of the product (step S66).

次に、基準在庫計算部214は、全ての商品を探索したか否かを判定する(ステップS68)。基準在庫計算部214は、全ての商品を探索していないと判定した場合、対象の商品を変更し(ステップS70)、その処理をステップS60に戻す。そして、基準在庫計算部214は、全ての商品について、商品の基準在庫量を計算するまでの間、ステップS60〜ステップS70の処理を繰り返す。基準在庫計算部214は、全ての商品を探索したと判定した場合、本フローチャートの処理が終了する。 Next, the reference inventory calculation unit 214 determines whether or not all the products have been searched (step S68). When the reference inventory calculation unit 214 determines that all the products have not been searched, the target product is changed (step S70), and the process is returned to step S60. Then, the reference inventory calculation unit 214 repeats the processes of steps S60 to S70 until the reference inventory amount of the products is calculated for all the products. When the reference inventory calculation unit 214 determines that all the products have been searched, the processing of this flowchart ends.

次に、基準在庫量の計算処理の第1例について説明する。 Next, a first example of the calculation process of the standard inventory amount will be described.

単位売残損失L1は、一日または一時間などの販売時間単位の間に商品が一単位売れ残った場合の平均損失額を示す。単位売残損失L1は、例えば、商品の販売実績に基づいて決定される。単位売残損失L1は、商品を値引き後の売価で販売した場合の販売数と値引き損失合計額、商品を廃棄した場合の廃棄数と廃棄損失合計額、および、翌販売時間単位に持ち越した商品数に基づいて決定される。 The unit unsold loss L1 indicates the average loss amount when one unit of the product is unsold during the selling time unit such as one day or one hour. The unit unsold loss L1 is determined, for example, based on the sales performance of the product. The unit unsold loss L1 is the total number of sales and the total discount loss when the product is sold at the discounted selling price, the total number of disposal and the total disposal loss when the product is discarded, and the product carried over to the next sales time unit. Determined based on numbers.

図22は、単位売残損失L1の算出方法の一例を示す図である。図22では、販売時間単位は、店舗の開店時刻から閉店時刻までの時間であり、商品の在庫推移が、商品が製造された時間帯ごとに区別されている。また、商品の売価は、商品が製造された時点からの販売時間の経過に伴って、段階的に値引きされている。このような場合の単位売残損失L1は、以下の式(1)を用いて算出される。すなわち、値引きによる損失総額と廃棄による損失総額を販売時間単位に値引き販売した商品数と廃棄した商品数と次の販売時間単位に持ち越した商品数の合計数で除算し、平均の売れ残り損失額を計算している。なお、式(1)は、右辺について、複数の販売時間単位からなる期間で平均を求めてもよい。

Figure 2021103377
FIG. 22 is a diagram showing an example of a method for calculating the unit unsold loss L1. In FIG. 22, the sales time unit is the time from the opening time to the closing time of the store, and the inventory transition of the product is distinguished for each time zone in which the product is manufactured. In addition, the selling price of the product is gradually discounted as the selling time elapses from the time when the product is manufactured. The unit unsold loss L1 in such a case is calculated using the following formula (1). That is, the total loss due to discount and the total loss due to disposal are divided by the total number of products sold at a discount in units of sales time, the number of products discarded, and the number of products carried over to the next sales time unit, and the average unsold loss amount is calculated. I'm calculating. In addition, in the formula (1), the average may be calculated for the right side in a period consisting of a plurality of sales time units.
Figure 2021103377

単位売残損失L1は、商品が廃棄または値引き販売されていない商品である場合や、商品の廃棄または値引き販売に関するデータが保存されていない場合には、例えば、以下の式(2)を用いて、商品の原価を商品の販売期間の単位数により除算することで算出してもよい。

Figure 2021103377
The unit unsold loss L1 is calculated by using, for example, the following formula (2) when the product is a product that has not been discarded or sold at a discount, or when data regarding the disposal or discount sales of the product is not stored. , The cost of the product may be calculated by dividing by the number of units of the sales period of the product.
Figure 2021103377

単位売逃損失L2は、欠品により一つの商品の販売機会を逃した場合の平均損失額を示す。単位売逃損失L2は、商品一単位あたりの正規売価から商品の仕入原価を差し引くことで算出される。 The unit sales loss L2 indicates the average loss amount when a sales opportunity of one product is missed due to a shortage. The unit sales loss L2 is calculated by subtracting the purchase cost of the product from the regular selling price per unit of the product.

次に、基準在庫計算部214は、需要予測残差分布を作成する。需要予測残差分布は、販売時間単位ごとの残差の分布である。基準在庫計算部214は、販売時間単位の商品の販売実績値と需要予測値との差分データを残差として計算し、販売時間単位ごとの残差の分布を需要予測残差分布として作成する。需要予測値は、需要予測部212による商品の需要予測に基づく値である。ここで、販売実績値は、需要予測部212において売り逃しを加算して補正された値を用いてもよい。 Next, the reference inventory calculation unit 214 creates a demand forecast residual distribution. The demand forecast residual distribution is the distribution of residuals for each sales time unit. The reference inventory calculation unit 214 calculates the difference data between the actual sales value of the product in the sales time unit and the demand forecast value as the residual, and creates the distribution of the residual in each sales time unit as the demand forecast residual distribution. The demand forecast value is a value based on the demand forecast of the product by the demand forecast unit 212. Here, the actual sales value may be a value corrected by adding the missed sales in the demand forecasting unit 212.

図23は、需要予測残差分布の一例である度数分布を示す図である。図示の例では、横軸を残差kとし、縦軸を度数h(k)とした度数分布である。度数h(k)は、時間帯ごとの残差kの出現頻度を示す。図示の例では、残差が「0(零)」である場合の度数h(0)が最も大きく、残差の絶対値が大きくなるほど、度数h(k)が小さくなる傾向を有する。 FIG. 23 is a diagram showing a frequency distribution which is an example of a demand forecast residual distribution. In the illustrated example, the horizontal axis is the residual k and the vertical axis is the frequency h (k). The frequency h (k) indicates the appearance frequency of the residual k for each time zone. In the illustrated example, the frequency h (0) is the largest when the residual is “0 (zero)”, and the larger the absolute value of the residual, the smaller the frequency h (k) tends to be.

図24は、需要予測残差分布の一例である確率分布を示す図である。図示の例では、横軸を残差rとし、縦軸を確率p(r)とした確率分布である。確率p(r)は、残差rの出現確率を示す。確率p(r)は、残差rを正規分布と仮定した場合、残差の平均値μr、標準偏差値σrから、以下の式(3)を用いて算出される。

Figure 2021103377
FIG. 24 is a diagram showing a probability distribution which is an example of a demand forecast residual distribution. In the illustrated example, the horizontal axis is the residual r and the vertical axis is the probability p (r). The probability p (r) indicates the appearance probability of the residual r. The probability p (r) is calculated from the average value μr of the residuals and the standard deviation value σr, assuming that the residual r is a normal distribution, using the following equation (3).
Figure 2021103377

次に、基準在庫計算部214は、商品の単位売残損失L1と、商品の単位売逃損失L2と、商品の需要予測残差分布とに基づいて、期待損失額Lを算出する。期待損失額Lは、商品の需要予測に基づく商品の損失額の期待値を示す。 Next, the reference inventory calculation unit 214 calculates the expected loss amount L based on the unit unsold loss L1 of the product, the unit unsold loss L2 of the product, and the demand forecast residual distribution of the product. The expected loss amount L indicates the expected value of the product loss amount based on the demand forecast of the product.

図25は、需要予測量と同数の商品の在庫量を持つ場合において、商品の需要予測残差分布の一例である度数分布h(k)と、商品の売逃損失額kL2と、商品の売残損失額−kL1とを重ねて示した図である。この例では、期待損失額Lは、以下の式(4)を用いて算出される。

Figure 2021103377
FIG. 25 shows a frequency distribution h (k) which is an example of a demand forecast residual distribution of a product, a loss on sale of the product kL2, and a sale of the product when the inventory amount of the product is the same as the demand forecast amount. It is the figure which superposed the residual loss amount-kL1. In this example, the expected loss amount L is calculated using the following formula (4).
Figure 2021103377

すなわち、残差kが正の値である場合には、売逃損失額はkL2になり、その発生確率はh(k)/Σh(n)になる。また、残差kが負の値である場合には、売残損失額は−kL1になり、その発生確率はh(k)/Σh(n)になる。よって、残差kごとの売り逃し損失額または売れ残り損失額と発生確率を乗算した値を合算することにより、期待損失額Lを算出する。 That is, when the residual k is a positive value, the amount of lost sales is kL2, and the probability of occurrence is h (k) / Σh (n). When the residual k is a negative value, the unsold loss amount is −kL1, and the probability of occurrence is h (k) / Σh (n). Therefore, the expected loss amount L is calculated by adding up the value obtained by multiplying the unsold loss amount or the unsold loss amount for each residual k by the probability of occurrence.

図26は、需要予測量よりもy個多い商品の在庫量を持つ場合において、商品の需要予測残差分布の一例である度数分布h(k)と、商品の売逃損失額(k−y)L2および売残損失額−(k−y)L1とを重ねて示した図である。この例では、期待損失額Lは、以下の式(5)を用いて算出される。

Figure 2021103377
FIG. 26 shows a frequency distribution h (k), which is an example of a demand forecast residual distribution of goods, and a loss on sale of goods (ky) when the inventory amount of goods is y more than the demand forecast amount. ) L2 and the unsold loss amount − (ky) L1 are shown in an overlapping manner. In this example, the expected loss amount L is calculated using the following formula (5).
Figure 2021103377

すなわち、残差kがyよりも大きい場合には、売り逃し損失額は(k−y)L2になり、その発生確率はh(k)/Σh(n)になる。また、残差kがyよりも小さい場合には、売れ残り損失額は−(k−y)L1になり、その発生確率はh(k)/Σh(n)になる。よって、残差kごとの売り逃し損失額または売れ残り損失額と発生確率を乗算した値を合算することにより、期待損失額L(y)を算出する。 That is, when the residual k is larger than y, the oversold loss amount is (ky) L2, and the probability of occurrence is h (k) / Σh (n). When the residual k is smaller than y, the unsold loss amount is − (ky) L1, and the probability of occurrence is h (k) / Σh (n). Therefore, the expected loss amount L (y) is calculated by adding up the value obtained by multiplying the unsold loss amount or the unsold loss amount for each residual k by the probability of occurrence.

図27は、需要予測量と同数の商品の在庫量を持つ場合において、商品の需要予測残差分布の一例である確率分布p(r)と、商品の売り逃し損失額rL2および売れ残り損失額−rL1とを重ねて示した図である。この例では、期待損失額Lは、以下の式(6)を用いて算出される。

Figure 2021103377
FIG. 27 shows the probability distribution p (r), which is an example of the demand forecast residual distribution of the product, the unsold loss amount rL2 of the product, and the unsold loss amount-when the inventory amount of the product is the same as the demand forecast amount. It is the figure which showed by superimposing rL1. In this example, the expected loss amount L is calculated using the following formula (6).
Figure 2021103377

すなわち、残差rが正の値である場合には、売り逃し損失額はrL2になり、その発生確率はp(r)になる。また、残差rが負の値である場合には、売れ残り損失額は−rL1になり、その発生確率はp(r)になる。よって、残差rの売り逃し損失額または売れ残り損失額と発生確率を乗算した値を積分することにより、期待損失額Lを算出する。 That is, when the residual r is a positive value, the oversold loss amount is rL2, and the probability of occurrence is p (r). When the residual r is a negative value, the unsold loss amount is −rL1 and the probability of occurrence is p (r). Therefore, the expected loss amount L is calculated by integrating the value obtained by multiplying the unsold loss amount or the unsold loss amount of the residual r and the occurrence probability.

図28は、需要予測量よりもy個多い商品の在庫量を持つ場合において、商品の需要予測残差分布の一例である確率分布p(r)と、商品の売り逃し損失額(r−y)L2および売れ残り損失額−(r−y)L1とを重ねて示した図である。この例では、期待損失額Lは、以下の式(7)を用いて算出される。

Figure 2021103377
FIG. 28 shows a probability distribution p (r), which is an example of a demand forecast residual distribution of a product, and a lost sale amount (ry) of the product when the inventory amount of the product is y more than the demand forecast amount. ) L2 and the unsold loss amount − (ry) L1 are shown in an overlapping manner. In this example, the expected loss amount L is calculated using the following formula (7).
Figure 2021103377

すなわち、残差rがyよりも大きい場合には、売り逃し損失額は(r−y)L2になり、その発生確率はp(r)になる。また、残差rがyよりも小さい場合には、売れ残り損失額は−(r−y)L1になり、その発生確率はp(r)になる。よって、残差rの売り逃し損失額または売れ残り損失額と発生確率を乗算した値を積分することにより、期待損失額L(y)を算出する。 That is, when the residual r is larger than y, the oversold loss amount is (ry) L2, and the probability of occurrence is p (r). When the residual r is smaller than y, the unsold loss amount is − (ry) L1, and the probability of occurrence is p (r). Therefore, the expected loss amount L (y) is calculated by integrating the value obtained by multiplying the unsold loss amount or the unsold loss amount of the residual r and the occurrence probability.

次に、基準在庫計算部214は、期待損失額Lが最小になる加算量yを探索する。具体的な例としては、加算量yを、需要予測部212により予測された商品の需要予測量に−1を乗算した値から需要予測量の値まで1を加算しながら変化させ、期待損失額Lを計算して、期待損失額Lが最小になる加算量yを見つけ出す。そして、基準在庫計算部214は、需要予測部212により予測された商品の需要予測量に対し、探索された加算量yを加算することで、商品の基準在庫量を計算する。 Next, the reference inventory calculation unit 214 searches for an addition amount y that minimizes the expected loss amount L. As a specific example, the addition amount y is changed by adding 1 from the value obtained by multiplying the demand forecast amount of the product predicted by the demand forecast unit 212 by -1 to the value of the demand forecast amount, and the expected loss amount. L is calculated to find the addition amount y that minimizes the expected loss amount L. Then, the reference inventory calculation unit 214 calculates the reference inventory amount of the product by adding the searched addition amount y to the demand forecast amount of the product predicted by the demand forecast unit 212.

次に、基準在庫量の計算処理の第2例として、期待損失額が最小になる加算量yを計算する方法について説明する。商品の単位売残損失L1の計算、商品の単位売逃損失L2の計算、商品の需要予測残差分布の計算は第1例と共通である。 Next, as a second example of the calculation process of the reference inventory amount, a method of calculating the addition amount y that minimizes the expected loss amount will be described. The calculation of the unit unsold loss L1 of the product, the calculation of the unit unsold loss L2 of the product, and the calculation of the demand forecast residual distribution of the product are common to the first example.

基準在庫計算部214は、同一の商品について、販売時間単位の間に商品が一単位売れ残った場合の平均損失額である単位売残損失L1と、欠品により一つの商品の販売機会を逃した場合の平均損失額である単位売逃損失L2との合計値に対する単位売逃損失L2の比率を計算する。また、基準在庫計算部214は、複数の販売時間単位における残差を昇順に並べる。そして、基準在庫計算部214は、複数の販売時間単位における残差を昇順に並べた場合に、複数の販売時間単位における残差のデータ数に対して上記の比率を積算した値の順序に位置する残差に対して需要予測値を合算した値を、商品の基準在庫量として計算する。 The standard inventory calculation unit 214 missed the sales opportunity of one product due to the unit unsold loss L1 which is the average loss amount when one unit of the same product is left unsold during the sales time unit and the shortage. The ratio of the unit sales loss L2 to the total value with the unit sales loss L2, which is the average loss amount in the case, is calculated. In addition, the reference inventory calculation unit 214 arranges the residuals in a plurality of sales time units in ascending order. Then, when the residuals in the plurality of sales time units are arranged in ascending order, the reference inventory calculation unit 214 is located in the order of the values obtained by integrating the above ratios with respect to the number of residual data in the plurality of sales time units. The value obtained by adding the demand forecast value to the residual amount to be calculated is calculated as the standard inventory amount of the product.

図29は、基準在庫量の計算処理の第2例を説明するための図である。図示の例では、需要予測残差分布として度数分布が算出されている。 FIG. 29 is a diagram for explaining a second example of the calculation process of the reference inventory amount. In the illustrated example, the frequency distribution is calculated as the demand forecast residual distribution.

まず、基準在庫計算部214は、販売時間単位の商品の販売実績値と需要予測値との差分データを残差kとして計算し、残差kを小さい順(昇順)に並び替える。 First, the reference inventory calculation unit 214 calculates the difference data between the sales actual value and the demand forecast value of the product in the sales time unit as the residual k, and sorts the residual k in ascending order (ascending order).

次に、基準在庫計算部214は、同一の商品について、単位売残損失L1と単位売逃損失L2との合計値に対する単位売逃損失の比率rate(=L2/(L1+L2))を計算する。 Next, the reference inventory calculation unit 214 calculates the ratio (= L2 / (L1 + L2)) of the unit unsold loss to the total value of the unit unsold loss L1 and the unit unsold loss L2 for the same product.

次に、基準在庫計算部214は、小さい方から数えて、[比率rate×残差データ数N]番目の残差kを、期待損失額Lが最小になる加算量yとして決定する。 Next, the reference inventory calculation unit 214 determines the residual k at the [ratio rate x number of residual data N] th-th residual k, counting from the smallest, as the addition amount y that minimizes the expected loss amount L.

そして、基準在庫計算部214は、需要予測部212により予測された商品の需要予測量に対し、上述のように決定した加算量yを加算することで、商品の基準在庫量を計算する。 Then, the reference inventory calculation unit 214 calculates the reference inventory amount of the product by adding the addition amount y determined as described above to the demand forecast amount of the product predicted by the demand forecast unit 212.

基準在庫計算部214は、複数の販売時間帯における残差の中に異常値が含まれる場合、異常値が除外された残差に基づいて、商品の基準在庫量を計算する。基準在庫計算部214は、例えば、残差kの四分位範囲の定数倍を残差kの許容範囲とし、許容範囲から外れた残差kを異常値と判定して除外する。 When an outlier is included in the residuals in a plurality of sales time zones, the reference inventory calculation unit 214 calculates the reference inventory amount of the product based on the residual excluding the outliers. For example, the reference inventory calculation unit 214 sets a constant multiple of the interquartile range of the residual k as the permissible range of the residual k, and determines that the residual k outside the permissible range is an abnormal value and excludes it.

需要予測残差分布を確率分布で表した場合の基準在庫量の計算方法について説明する。 The calculation method of the standard inventory amount when the demand forecast residual distribution is expressed by the probability distribution will be described.

基準在庫計算部214は、同一の商品について、販売時間単位の間に商品が一単位売れ残った場合の平均損失額である単位売残損失L1と、欠品により一つの商品の販売機会を逃した場合の平均損失額である単位売逃損失L2との合計値に対する単位売逃損失L2の比率を計算する。また、基準在庫計算部214は、需要予測残差分布を表す確率分布を積分した累積分布関数の値が比率に一致する残差の値に対して需要予測値を合算した値を、商品の基準在庫量として計算する。 The standard inventory calculation unit 214 missed the sales opportunity of one product due to the unit unsold loss L1 which is the average loss amount when one unit of the same product is left unsold during the sales time unit and the shortage. The ratio of the unit sales loss L2 to the total value with the unit sales loss L2, which is the average loss amount in the case, is calculated. Further, the reference inventory calculation unit 214 sets the value obtained by adding the demand forecast value to the residual value in which the value of the cumulative distribution function obtained by integrating the probability distribution representing the demand forecast residual distribution matches the ratio as the reference of the product. Calculated as inventory.

図30は、基準在庫量の計算処理の第3例を説明するための図である。図示の例では、需要予測残差分布を表す確率分布を積分した累積分布関数を示している。 FIG. 30 is a diagram for explaining a third example of the calculation process of the reference inventory amount. In the illustrated example, a cumulative distribution function that integrates the probability distributions that represent the demand forecast residual distribution is shown.

まず、基準在庫計算部214は、同一の商品について、単位売残損失L1と単位売逃損失L2との合計値に対する単位売逃損失の比率rate(=L2/(L1+L2))を計算する。 First, the reference inventory calculation unit 214 calculates the ratio rate (= L2 / (L1 + L2)) of the unit unsold loss to the total value of the unit unsold loss L1 and the unit unsold loss L2 for the same product.

次に、基準在庫計算部214は、需要予測残差分布を表す確率分布を積分した累積分布関数を生成し、累積分布関数の値が比率rateに一致する残差rを、期待損失額Lが最小になる加算量yとして決定する。 Next, the reference inventory calculation unit 214 generates a cumulative distribution function that integrates the probability distribution representing the demand forecast residual distribution, and the expected loss amount L determines the residual r whose value of the cumulative distribution function matches the ratio rate. It is determined as the minimum addition amount y.

そして、基準在庫計算部214は、需要予測部212により予測された商品の需要予測量に対し、上述のように決定した加算量yを加算することで、商品の基準在庫量を計算する。 Then, the reference inventory calculation unit 214 calculates the reference inventory amount of the product by adding the addition amount y determined as described above to the demand forecast amount of the product predicted by the demand forecast unit 212.

なお、実際には、累積分布関数の値が比率rateに一致する残差rを計算で求めることは難しいので、標準正規分布表を使い、標準正規分布の確率(面積)が比率rateに一致する確率変数の値xを求め、需要予測残差分布の平均値ave、標準偏差値sigmaによって残差rを求めることができる。残差rは、例えば、以下の式(8)を用いて算出される。

Figure 2021103377
In reality, it is difficult to calculate the residual r in which the value of the cumulative distribution function matches the ratio rate, so the standard normal distribution table is used and the probability (area) of the standard normal distribution matches the ratio rate. The value x of the random variable can be obtained, and the residual r can be obtained from the average value ave of the demand prediction residual distribution and the standard deviation value sigma. The residual r is calculated using, for example, the following equation (8).
Figure 2021103377

[発注推奨量の計算]
次に、商品の発注推奨量の第1計算例について説明する。
[Calculation of recommended order quantity]
Next, a first calculation example of the recommended order quantity of the product will be described.

発注推奨量計算部216は、以下の式(9.1)を用いて、商品の発注推奨量を計算する。

Figure 2021103377
The ordering recommended quantity calculation unit 216 calculates the ordering recommended quantity of the product using the following formula (9.1).
Figure 2021103377

ORR(X)は、日付Xをパラメータとし、日付の発注推奨量を出力する関数である。OIV(X)は、日付Xにおいて損失が最小となる開店時の基準在庫量を出力する関数である。LT(X)は、日付Xにおいて発注した場合のリードタイムを出力する関数である。リードタイムは、発注から納品までに必要な時間を意味する。DLVは、納品してから消費者の需要に対応できる状態になるまでの日数を表す整数である。DLVは、例えば、物流センターやプロセスセンターから店舗までの便に依存して決まる。例えば、納品日当日の需要に利用可能な早期宅配便である場合には「0」を付与し、納品日翌日の需要に利用可能となる配送時間帯の便である場合には「1」を付与するパラメータである。IVF(X)は、日付Xの開店時の予測在庫量を出力する関数である。INT(X)は、発注当日から次回発注までの間隔を示すパラメータである。DF(T)は、各日付の予測需要数を出力する関数である。すなわち、日付Xにおける発注推奨量は、発注してから店頭に並ぶまでの日付LT(X)+DLV後の基準在庫量と予測在庫量との差に、店頭に並んだ後、次回発注の商品が店頭に並ぶ前までの各日付の予測需要数を加算した数量として算出する。以降、説明を簡潔にするため、納品してから店頭に並ぶまでの時間差は省略して、日付LT(X)+DLV後を納品タイミングと表現することがある。 ORR (X) is a function that outputs the recommended order quantity of the date with the date X as a parameter. OIV (X) is a function that outputs the reference inventory amount at the time of opening, which minimizes the loss on the date X. LT (X) is a function that outputs the lead time when an order is placed on the date X. Lead time means the time required from ordering to delivery. DLV is an integer representing the number of days from delivery to the state where it can meet the demand of consumers. DLV is determined, for example, depending on the flight from the distribution center or process center to the store. For example, "0" is given for early courier services that can be used for demand on the day of delivery, and "1" is given for flights that are available for demand on the day after delivery. It is a parameter to be given. IVF (X) is a function that outputs the estimated inventory amount at the time of opening the store on the date X. INT (X) is a parameter indicating the interval from the day of ordering to the next ordering. DF (T) is a function that outputs the predicted number of demands for each date. That is, the recommended order quantity on date X is the difference between the standard inventory quantity and the predicted inventory quantity after the date LT (X) + DLV from the time the order is placed to the time when the product is lined up at the store. Calculated as the sum of the estimated demand numbers for each date before they are lined up in stores. Hereinafter, for the sake of brevity, the time difference between delivery and lining up at the store may be omitted, and the time after the date LT (X) + DLV may be expressed as the delivery timing.

ここで、式(9.1)の右辺第一項から第二項が、納品タイミングにおける基準在庫量と予備在庫量との差であるが、この差を求めるための右辺第一項と第二項は、基準在庫量に対して予備在庫量が不足する量を求めるための演算を行っている。したがって、式(9.1)においては方式説明を複雑化しないように省略しているが、実際のプログラムコードの実装においては、右辺第一項と第二項の演算結果が負数となる場合はゼロに置き換える処理を加えても良い。 Here, the first to second terms on the right side of the equation (9.1) are the differences between the standard inventory amount and the reserve inventory amount at the delivery timing, and the first and second terms on the right side for obtaining this difference. The term is calculated to obtain the amount for which the reserve stock amount is insufficient with respect to the standard stock amount. Therefore, although the method explanation is omitted in the equation (9.1) so as not to complicate the method explanation, in the actual implementation of the program code, when the calculation results of the first and second terms on the right side are negative numbers. You may add the process of replacing it with zero.

式(9.1)のXは日付として説明したが、時間単位で生産する商品の生産推奨数計算として用いる場合にはXは時間帯を表すとしてもよい。その場合、T、LT、DLVも日付ではなく時間帯として用いる。すなわち、時間帯Xにおける生産推奨数ORR(X)は、生産指示してから店頭に並ぶまでの時間LT(X)+DLV後の基準在庫量と予備在庫量との差に、店頭に並んだ後の次回の生産商品が店頭に並ぶ前までの各時間帯の予測需要数を加算した数量として算出する。 Although X in the formula (9.1) has been described as a date, X may represent a time zone when used as a calculation of the recommended number of products to be produced in units of time. In that case, T, LT, and DLV are also used as time zones instead of dates. That is, the recommended production number ORR (X) in the time zone X is the time from the production instruction to the time when the product is lined up at the store. It is calculated as the quantity obtained by adding the estimated number of demands for each time zone before the next production product is lined up in the store.

また、式(9.1)に、店頭の演出考慮に対応する演算を含めてもよい。例えば、店頭に並べておく在庫量を最低でもP個維持しておきたい場合には、式(9.1)の右辺第一項OIVの算出結果とPを比較し、右辺第一項を大きい方で置き換えるようにしてもよい。 In addition, the equation (9.1) may include an operation corresponding to consideration of the production in the store. For example, if you want to keep at least P inventories to be lined up in the store, compare P with the calculation result of the first term OIV on the right side of equation (9.1), and make the first term on the right side larger. You may replace it with.

また、例えば生産ロットなどの理由から、発注数や生産数が商品によって決まる整数の倍数である必要がある場合があるが、その場合は、式(9.1)で算出された数を当該整数の倍数に切り上げるなどして発注推奨量または生産推奨量としてもよい。 In addition, for example, the number of orders or the number of production may need to be a multiple of an integer determined by the product for reasons such as production lots. In that case, the number calculated by the formula (9.1) is the integer. The recommended quantity for ordering or the recommended quantity for production may be rounded up to a multiple of.

図31は、DLVが「0(零)」である場合における発注推奨量の計算の過程を示す図である。図示の例では、日付Xにおいて商品の発注が行われる。そして、日付XからリードタイムLT(X)が経過した日付「X+LT(X)」において、発注した商品の納品が行われる。納品された商品は、DLVが「0(零)」であることから、納品当日である日付「X+LT(X)」において、商品が店舗に陳列される。また、日付「X」からINT(X)が経過した日付「X+INT(X)」において、次回の商品の発注が行われる。そして、日付「X+INT(X)」からリードタイムLT(X+INT(X))が経過した日付「X+INT(X)+LT(X+INT(X))」において、次回に発注した商品の納品が行われる。また、次回の納品当日である日付「X+INT(X)+LT(X+INT(X))」において、商品が店舗に陳列される。発注推奨量計算部216は、日付「X+LT(X)」における開店時の基準在庫量から開店時の予測在庫量を差し引く。また、発注推奨量計算部216は、差し引いた値に対し、最初の納品当日の翌日である日付「X+LT(X)+1」から次回の商品陳列日の前日である日付「X+INT(X)+LT(X+INT(X))−1」までの需要予測量、および、演出効果目的で需要予測通りに売れた後に残すべき在庫量を加算することで、商品の発注推奨量を算出する。 FIG. 31 is a diagram showing a process of calculating the recommended order quantity when the DLV is “0 (zero)”. In the illustrated example, the goods are ordered on date X. Then, the ordered product is delivered on the date "X + LT (X)" on which the lead time LT (X) has elapsed from the date X. Since the delivered product has a DLV of "0 (zero)", the product is displayed in the store on the date "X + LT (X)" which is the day of delivery. Further, on the date "X + INT (X)" when INT (X) has passed from the date "X", the next product is ordered. Then, on the date "X + INT (X) + LT (X + INT (X))" on which the lead time LT (X + INT (X)) has elapsed from the date "X + INT (X)", the next ordered product is delivered. In addition, the product is displayed in the store on the date "X + INT (X) + LT (X + INT (X))" which is the day of the next delivery. The ordering recommended quantity calculation unit 216 subtracts the predicted inventory quantity at the time of opening from the standard inventory quantity at the time of opening on the date “X + LT (X)”. In addition, the order recommendation quantity calculation unit 216 sets the deducted value from the date "X + LT (X) +1" which is the day after the first delivery day to the date "X + INT (X) + LT" which is the day before the next product display date. The recommended quantity for ordering the product is calculated by adding the forecast quantity up to X + INT (X) -1 "and the inventory quantity that should be left after the product is sold according to the demand forecast for the purpose of effect effect.

図32は、DLVが「1」である場合における発注推奨量の計算の過程を示す図である。図示の例では、日付Xにおいて商品の発注が行われる。そして、日付XからリードタイムLT(X)が経過した日付「X+LT(X)」において、発注した商品の納品が行われる。納品された商品は、DLVが「1」であることから、納品翌日である日付「X+LT(X)+1」において、商品が店舗に陳列される。また、日付「X」からINT(X)が経過した日付「X+INT(X)」において、次回の商品の発注が行われる。そして、日付「X+INT(X)」からリードタイムLT(X+INT(X))が経過した日付「X+INT(X)+LT(X+INT(X))」において、次回に発注した商品の納品が行われる。また、次回の納品翌日である日付「X+INT(X)+LT(X+INT(X))+1」において、商品が店舗に陳列される。発注推奨量計算部216は、日付「X+LT(X)+1」における開店時の基準在庫量から開店時の予測在庫量を差し引く。また、発注推奨量計算部216は、差し引いた値に対し、店舗に商品を陳列した日の翌日である日付「X+LT(X)+2」から次回の商品陳列日の前日である日付「X+INT(X)+LT(X+INT(X))」までの需要予測量、および、演出効果目的で需要予測通りに売れた後に残すべき在庫量を加算することで、商品の発注推奨量を算出する。 FIG. 32 is a diagram showing a process of calculating the recommended order quantity when the DLV is “1”. In the illustrated example, the goods are ordered on date X. Then, the ordered product is delivered on the date "X + LT (X)" on which the lead time LT (X) has elapsed from the date X. Since the delivered product has a DLV of "1", the product is displayed in the store on the date "X + LT (X) + 1", which is the day after the delivery. Further, on the date "X + INT (X)" when INT (X) has passed from the date "X", the next product is ordered. Then, on the date "X + INT (X) + LT (X + INT (X))" on which the lead time LT (X + INT (X)) has elapsed from the date "X + INT (X)", the next ordered product is delivered. In addition, the product is displayed in the store on the date "X + INT (X) + LT (X + INT (X)) + 1", which is the day after the next delivery. The ordering recommended quantity calculation unit 216 subtracts the predicted inventory quantity at the time of opening from the standard inventory quantity at the time of opening on the date “X + LT (X) +1”. In addition, the order recommendation quantity calculation unit 216 sets the deducted value from the date "X + LT (X) + 2", which is the day after the product is displayed in the store, to the date "X + INT (X)", which is the day before the next product display date. ) + LT (X + INT (X)) ”and the inventory amount that should be left after the product is sold according to the demand forecast for the purpose of effect effect, the recommended quantity for ordering the product is calculated.

発注推奨量計算部216は、以下の式(9.2)を用いて、式(9.1)の右辺第二項のIVF、すなわち予測在庫量を計算する。式(9.2)は、日付Xにおいて、日付XからP日後の将来の在庫予測量IVF(X+P)を計算する方法を表している。

Figure 2021103377
The ordering recommended quantity calculation unit 216 calculates the IVF of the second term on the right side of the equation (9.1), that is, the predicted inventory quantity, using the following equation (9.2). Equation (9.2) represents a method of calculating the future inventory forecast amount IVF (X + P) P days after the date X on the date X.
Figure 2021103377

ここで、式(9.2)の右辺第一項のIV(X)は、日付Xにおける開店時在庫計算結果であり、計算方法は既に述べた理論在庫の計算方法に従って算出される。式(9.2)の右辺第二項のRVF(T)は日付Tの納品予定数であり、例えば、日付X以前の発注実績に基づいて計算される。すなわち、式(9.2)は、日付XからP日経過後の将来の開店時予測在庫数を、日付Xの開店時在庫数に、日付Xから日付X+Pの前日までの期間の納品予定数を加え、さらに日付Xから日付X+Pの前日までの需要予測数を減じることによって計算されることを表す。 Here, IV (X) of the first term on the right side of the equation (9.2) is the inventory calculation result at the time of opening on the date X, and the calculation method is calculated according to the theoretical inventory calculation method already described. The RVF (T) in the second term on the right side of the equation (9.2) is the estimated number of deliveries on the date T, and is calculated based on, for example, the order record before the date X. That is, the formula (9.2) sets the estimated number of stocks at the time of opening of the store after P days have passed from the date X, the number of stocks at the time of opening of the date X, and the planned number of deliveries in the period from the date X to the day before the date X + P. In addition, it means that it is calculated by further subtracting the number of demand forecasts from the date X to the day before the date X + P.

またここで、式(9.2)は、日付XからP日経過後の将来の開店時予測在庫数を求めるための式である。式(9.2)においては方式説明を複雑化しないように省略しているが、実際のプログラムコードの実装においては、右辺の計算結果が負数となる場合はゼロに置き換える処理を加えてもよい。 Further, here, the formula (9.2) is a formula for obtaining the estimated number of stocks at the time of opening the store in the future after the lapse of P days from the date X. In equation (9.2), the method explanation is omitted so as not to complicate it, but in the actual implementation of the program code, if the calculation result on the right side is a negative number, it may be replaced with zero. ..

〔不定貫商品の発注推奨量の計算〕
発注推奨量計算部216は、一つ一つのパックの内容量が同じではない商品である不定貫商品の発注推奨量を計算する場合、内容量に対応する単位、即ち、重量等を単位として前記手順により与えられた発注推奨量を、パック詰めを考慮して補正する必要がある。そこで、発注推奨量計算部216は、まず、商品の内容量ごとの販売実績の割合に基づいて、商品の内容量ごとの販売パック数を最も数値の近い整数値に換算して求める。次に、発注推奨量計算部216は、求められた販売パック数に対して商品の内容量を積算することで、商品の内容量ごとの販売量の換算値を計算する。そして、発注推奨量計算部216は、重量を単位として予め得られた発注推奨量との差が小さくなるように、商品の内容量ごとの販売パック数および販売量の換算値、あるいは予め得られた発注推奨量を補正し、補正した値を商品の補正後の発注推奨量として出力する。
[Calculation of recommended quantity for ordering indefinite products]
When calculating the recommended order quantity of indefinite product, which is a product whose contents of each pack are not the same, the recommended order quantity calculation unit 216 describes the unit corresponding to the contents, that is, the weight or the like as a unit. It is necessary to correct the recommended order quantity given by the procedure in consideration of packing. Therefore, the ordering recommended quantity calculation unit 216 first converts the number of sales packs for each content of the product into an integer value closest to the numerical value based on the ratio of the sales performance for each content of the product. Next, the ordering recommended quantity calculation unit 216 calculates the converted value of the sales volume for each content content of the product by integrating the content content of the product with the obtained number of sales packs. Then, the ordering recommended quantity calculation unit 216 is obtained in advance from the converted value of the number of sales packs and the sales amount for each content of the product so that the difference from the ordering recommended quantity obtained in advance in units of weight becomes small. The recommended order quantity is corrected, and the corrected value is output as the recommended order quantity after correction of the product.

図33は、不定貫商品の重量を単位とした発注推奨量を算出するための発注推奨量算出用データ390の一例を示すデータである。発注推奨量算出用データ390のデータ項目は、例えば、内容量V、販売量実績比率P、内容量Vと販売量実績比率Pとの積、内容量Vと販売量実績比率Pとの積の比率、補正前の発注推奨量M、パック数N、四捨五入したパック数N、販売量の換算値、誤差、および、備考を含む。内容量Vは、商品の内容量の種別を示すデータである。販売量実績比率Pは、商品の販売実績に基づく、商品の内容量ごとの販売数実績の比率を示すデータである。内容量Vと販売量実績比率Pとの積の比率は、内容量Vと販売量実績比率Pとの積の割合を合計が1となるように0〜1の数値範囲で正規化したものである。各内容量の補正前の発注推奨量Mは、与えられた発注推奨量に対してV×Pの比率を掛けた値である。パック数Nは、補正前の発注推奨量Mを内容量Vで除算したデータである。販売量の換算値は、四捨五入したパック数Nと内容量Vとを積算した値である。誤差は、販売量の換算値から補正前の発注推奨量Mを差し引いた値である。備考は、誤差の値に関する付記情報を示すデータである。図示の例では、備考は、誤差のプラスの値の絶対値が最も大きいデータに対して「プラス最大」のラベルが付与され、誤差のマイナスの値の絶対値が最も大きいデータに対して「マイナス最大」のラベルが付与される。 FIG. 33 is data showing an example of the ordering recommended amount calculation data 390 for calculating the ordering recommended amount in units of the weight of the indefinite product. The data items of the order recommended quantity calculation data 390 are, for example, the content V, the actual sales volume ratio P, the product of the content V and the actual sales volume ratio P, and the product of the content V and the actual sales volume ratio P. Includes ratio, recommended order quantity M before correction, number of packs N, number of rounded packs N, conversion value of sales volume, error, and remarks. The content V is data indicating the type of the content of the product. The actual sales volume ratio P is data showing the ratio of the actual number of sales for each content of the product based on the actual sales of the product. The ratio of the product of the content V and the actual sales volume ratio P is the ratio of the product of the content V and the actual sales volume ratio P normalized in the numerical range of 0 to 1 so that the total is 1. is there. The recommended order quantity M before correction of each content is a value obtained by multiplying the given recommended order quantity by the ratio of V × P. The number of packs N is data obtained by dividing the recommended order quantity M before correction by the content volume V. The converted value of the sales amount is a value obtained by integrating the rounded number of packs N and the content V. The error is a value obtained by subtracting the recommended order quantity M before correction from the converted value of the sales volume. The remarks are data showing additional information regarding the error value. In the illustrated example, the remarks are labeled "plus maximum" for the data with the largest absolute value of the positive error and "minus" for the data with the largest absolute value of the negative error. The "maximum" label is given.

発注推奨量計算部216は、商品の内容量ごとの販売量の換算値の合算値が、予め得られた発注推奨量よりも小さい場合には、その差分よりも少量の商品の内容量を対象として、パック数Nと販売量の換算値を増大させる。図33に示す例では、発注推奨量計算部216は、誤差の合計がマイナスである場合、誤差の合計の絶対値を超えない内容量を対象として、パック数Nと販売量の換算値を加算する。また、図33に示す例では、発注推奨量計算部216は、例えば、誤差の絶対値を超えない内容量のうち、販売量実績比率が高い内容量を優先して、パック数Nと販売量の換算値を加算する。この例では、発注推奨量計算部216は、マイナスの絶対値が「200」であるため、余りを超えない内容量「100」、「200」のうち、販売量実績比率が高い内容量「200」を優先して、販売量の換算値を加算する。そして、発注推奨量計算部216は、販売量の換算値の合計値を、予め得られた発注推奨量に対する補正後の発注推奨量とする。 When the total value of the converted values of the sales volume for each product content is smaller than the pre-obtained ordering recommended quantity, the ordering recommended quantity calculation unit 216 targets the content of the product with a smaller amount than the difference. As a result, the conversion value of the number of packs N and the sales volume is increased. In the example shown in FIG. 33, when the total error is negative, the ordering recommended quantity calculation unit 216 adds the number of packs N and the converted value of the sales volume for the content that does not exceed the absolute value of the total error. To do. Further, in the example shown in FIG. 33, the ordering recommended quantity calculation unit 216 gives priority to the content having a high actual sales volume ratio among the contents that do not exceed the absolute value of the error, and gives priority to the number of packs N and the sales volume. Add the converted value of. In this example, the ordering recommended quantity calculation unit 216 has a negative absolute value of "200", so that the content "200", which has a high actual sales volume ratio among the contents "100" and "200" that do not exceed the remainder. Priority is given to the converted value of the sales volume. Then, the ordering recommended amount calculation unit 216 sets the total value of the converted values of the sales amount as the ordering recommended amount after correction with respect to the previously obtained ordering recommended amount.

発注推奨量計算部216は、商品の内容量ごとの販売量の換算値の合算値が、与えられた発注推奨量よりも小さい場合において、その差分が商品の内容量の最小値よりも小さい場合には、販売パック数および販売量の換算値を増大させることなく、販売量の換算値の合計値を、予め得られた発注推奨量に対する補正後の発注推奨量とする。 When the total value of the converted values of the sales volume for each content of the product is smaller than the given recommended quantity of the order, the difference is smaller than the minimum value of the content of the product. The total value of the converted values of the sales volume is used as the recommended order quantity after correction with respect to the recommended order quantity obtained in advance, without increasing the number of sales packs and the conversion value of the sales volume.

発注推奨量計算部216は、商品の内容量ごとの販売量の換算値の合算値が、予め得られた発注推奨量よりも大きい場合には、その差分だけ、予め得られた発注推奨量を増大させる。また、発注推奨量計算部216は、増大させた発注推奨量を、予め得られた発注推奨量に対する補正後発注推奨量とする。図33に示す例では、発注推奨量計算部216は、誤差の合計がプラスである場合、当該誤差の合計を予め得られた発注推奨量に加算し、補正後発注推奨量とする。 When the total value of the converted values of the sales volume for each content of the product is larger than the pre-obtained order-recommended quantity, the order-recommended quantity calculation unit 216 calculates the pre-obtained order-recommended quantity by the difference. Increase. Further, the ordering recommended amount calculation unit 216 sets the increased ordering recommended amount as the corrected ordering recommended amount with respect to the previously obtained ordering recommended amount. In the example shown in FIG. 33, when the total of the errors is positive, the ordering recommended amount calculation unit 216 adds the total of the errors to the pre-obtained ordering recommended amount to obtain the corrected ordering recommended amount.

このように、不定貫商品については、内容量に対応する単位で与えられた発注推奨量を内容量ごとの販売実績比率に基づく計算により、各内容量に対応する補正後の発注推奨量と、それら合計値に一致した補正後の発注推奨量を得る。 In this way, for indefinite products, the recommended order quantity given in units corresponding to the content capacity is calculated based on the sales performance ratio for each content capacity, and the recommended order quantity after correction corresponding to each content capacity and the recommended order quantity are calculated. Obtain the adjusted recommended order quantity that matches the total value.

次に、商品の発注推奨量の第1計算例の処理の流れについて説明する。 Next, the processing flow of the first calculation example of the recommended quantity for ordering the product will be described.

図34に示すように、発注推奨量計算部216は、まず、発注当日以降の所定期間の需要予測量と基準在庫量を更新する(ステップS80)。 As shown in FIG. 34, the ordering recommended quantity calculation unit 216 first updates the demand forecast quantity and the reference inventory quantity for a predetermined period after the ordering day (step S80).

次に、発注推奨量計算部216は、理論在庫の計算方式を用いて、発注当日の各開始時在庫量を計算する(ステップS82)。 Next, the ordering recommended quantity calculation unit 216 calculates each starting inventory quantity on the day of ordering by using the theoretical inventory calculation method (step S82).

次に、発注推奨量計算部216は、式(9.2)ないし式(10.2)を用いて、発注当日以降の所定期間の各開始時予測在庫量を計算する(ステップS84)。 Next, the ordering recommended quantity calculation unit 216 calculates each start-time predicted inventory quantity for a predetermined period after the day of ordering by using the formulas (9.2) to (10.2) (step S84).

次に、発注推奨量計算部216は、式(9.1)ないし式(10.1)を用いて、発注当日の発注推奨量を計算する(ステップS86)。 Next, the ordering recommended quantity calculation unit 216 calculates the ordering recommended quantity on the day of ordering using the formulas (9.1) to (10.1) (step S86).

次に、発注推奨量計算部216は、複数の内容量種別にパック詰めして販売する不定貫商品であるか否かを判定する(ステップS88)。発注推奨量計算部216は、不定貫商品であると判定した場合、各内容量の販売量実績比率に基づいたパック数分割計算に基づく発注推奨量を補正計算し(ステップS90)、その処理をステップS92に移行する。一方、発注推奨量計算部216は、不定貫商品ではないと判定した場合、ステップS90の処理を経ることなく、その処理をステップS92に移行する。 Next, the ordering recommended quantity calculation unit 216 determines whether or not the product is an indefinite product that is packed and sold in a plurality of content types (step S88). When the order recommended quantity calculation unit 216 determines that the product is an indefinite product, the order recommended quantity calculation unit 216 corrects and calculates the recommended order quantity based on the pack number division calculation based on the actual sales volume ratio of each content (step S90), and performs the processing. The process proceeds to step S92. On the other hand, when the ordering recommended quantity calculation unit 216 determines that the product is not an indefinite product, the process proceeds to step S92 without going through the process of step S90.

その後、発注推奨量出力部218は、発注推奨量計算部216により計算された発注推奨量を出力する(ステップS92)。これによって、本フローチャートの処理が終了する。 After that, the ordering recommended quantity output unit 218 outputs the ordering recommended quantity calculated by the ordering recommended quantity calculation unit 216 (step S92). This completes the processing of this flowchart.

なお、前記発注推奨量の計算処理の流れの説明において日単位の計算を例として示したが、上述の発注推奨量の計算式の説明と対応させて、同様の処理ステップを時間帯単位の計算処理として実行してもよい。後述する第2計算例についても同様である。 Although the daily calculation is shown as an example in the explanation of the flow of the calculation process of the recommended order quantity, the same processing step is calculated in the time zone unit in correspondence with the explanation of the calculation formula of the recommended order quantity described above. It may be executed as a process. The same applies to the second calculation example described later.

また、前記発注推奨量の計算処理の流れは、日単位計算の場合、例えば、発注推奨量の計算対象の商品が発注可能である日に一日一回、同じ時間帯に実行してもよいし、一日に複数回実行してもよい。時間単位計算の場合、例えば、発注推奨量の計算対象の商品が発注可能である時間帯に一時間に一回、一時間に複数回、あるいは数時間に一回実行してもよい。後述する第2計算例についても同様である。 Further, in the case of daily calculation, the flow of the calculation process of the recommended order quantity may be executed once a day at the same time zone, for example, on a day when the product for which the calculation target of the recommended order quantity can be ordered can be ordered. However, it may be executed multiple times a day. In the case of hourly calculation, for example, it may be executed once an hour, a plurality of times an hour, or once every several hours during a time zone in which the product for which the recommended order quantity is to be calculated can be ordered. The same applies to the second calculation example described later.

次に、商品の発注推奨量の第2計算例について説明する。 Next, a second calculation example of the recommended quantity for ordering the product will be described.

発注推奨量計算部216は、発注した商品が店頭に並ぶ将来時点の商品予測在庫数を計算し、同じ将来時点における基準在庫数との差を当該将来時点で不足する数量として計算する。また、発注推奨量計算部216は、現時点で発注する商品が店頭に並ぶ時点よりも後で次回発注する商品が店頭に並ぶ時点より前までの予測需要数合計を、前記の不足する数量として計算した数に加算することで、商品の発注推奨量を計算する。発注推奨量計算部216は、例えば、以下の式(10.1)を用いて、商品の発注推奨量を計算する。

Figure 2021103377
The ordering recommended quantity calculation unit 216 calculates the estimated stock quantity of the ordered products at the future point in time when they are lined up in the store, and calculates the difference from the standard stock quantity at the same future time point as the quantity that is insufficient at the future time point. In addition, the ordering recommended quantity calculation unit 216 calculates the total estimated demand number after the time when the products to be ordered at the present time are lined up in the store and before the time when the products to be ordered next time are lined up in the store as the above-mentioned insufficient quantity. The recommended quantity for ordering the product is calculated by adding it to the number of products. The ordering recommended quantity calculation unit 216 calculates the ordering recommended quantity of the product using, for example, the following formula (10.1).
Figure 2021103377

EXは、商品が店頭に陳列されてから販売期限が満了するまでの時間を表すパラメータである。式(9.1)として示した第1計算例との違いは、商品の販売期間を考慮して、右辺第三項の合計期間を計算している点である。式(10.1)の右辺第三項は、発注した商品が店頭に並ぶ将来時点よりも後の予測需要量を計算しており、当該将来時点の商品予測在庫数と基準在庫数との差に加算される。式(10.1)の右辺第三項は、次回発注する商品が店頭に並ぶタイミング、または、日付Xにおいて今回発注する商品の販売期限が満了するタイミングのうち、早いタイミングまでの期間を合計期間としている。式(10.1)の右辺第三項は、次回発注する商品が店頭に並ぶタイミングよりも、今回発注する商品の販売期限が早く満了する場合、日付Xにおいて今回発注する数量に、今回発注する商品の販売期限が満了した後の需要量を加算しないようにしている。 EX is a parameter representing the time from when a product is displayed in a store until the sales deadline expires. The difference from the first calculation example shown by the formula (9.1) is that the total period of the third term on the right side is calculated in consideration of the sales period of the product. The third term on the right side of equation (10.1) calculates the forecast demand after the future time when the ordered products are lined up in the store, and the difference between the forecast stock quantity of the product at the future time and the standard stock quantity. Is added to. The third term on the right-hand side of equation (10.1) is the total period from the timing when the next ordered product is lined up at the store or the timing when the sales deadline of the product ordered this time expires on date X until the earlier timing. It is supposed to be. The third item on the right side of the formula (10.1) is that if the sales deadline of the product to be ordered this time expires earlier than the timing when the product to be ordered next time is lined up at the store, the quantity to be ordered this time is placed on date X. The amount of demand after the product sales deadline has expired is not added.

なお、式(10.1)の右辺第一項および第二項が、納品タイミングにおける基準在庫量と予測在庫量との差を求めるための演算を行っており、基準在庫量に対して予測在庫量が不足する数量を求めるための演算を行っている。したがって、式(10.1)においては方式説明を複雑化しないように省略しているが、実際のプログラムコードの実装においては、右辺第一項および第二項の演算結果が負数となる場合はゼロに置き換える処理を加えてもよい。 The first and second terms on the right side of equation (10.1) perform calculations to obtain the difference between the standard inventory amount and the estimated inventory amount at the delivery timing, and the estimated inventory amount is relative to the standard inventory amount. An operation is performed to find the quantity for which the quantity is insufficient. Therefore, although the method description is omitted in the equation (10.1) so as not to complicate the method explanation, in the actual implementation of the program code, when the calculation results of the first and second terms on the right side are negative numbers. You may add the process of replacing it with zero.

また、発注推奨量計算部216は、以下の式(10.2)を用いて、式(10.1)の右辺第二項のIVF、すなわち予測在庫量を計算する。式(10.2)は、日付Xにおいて、日付XからP日経過後の将来の在庫予測量IVF(X+P)を計算する方法を表している。

Figure 2021103377
Further, the ordering recommended quantity calculation unit 216 calculates the IVF of the second term on the right side of the equation (10.1), that is, the predicted stock quantity, using the following equation (10.2). Equation (10.2) represents a method of calculating the future inventory forecast amount IVF (X + P) after P days have passed from the date X on the date X.
Figure 2021103377

式(10.2)の右辺第四項と第五項が、式(9.2)に対して加えられた項である。式(10.2)の右辺第四項は、日付Xの時点で納品済みの商品のうち、日付X+Pが到来するまでに販売期限が満了する条件を満たす商品の数であり、式(10.2)の右辺第五項は、日付Xの時点で納品予定の商品のうち、日付X+Pが到来するまでに販売期限が満了する条件を満たす商品の数である。式(10.2)は、式(9.2)に対して、将来在庫数の予測計算において納品済みの商品および納品予定の商品のうち、予測しようとする将来時点において販売期限が満了する条件を満たす商品の数量を差し引くという考慮を加えている。 The fourth and fifth terms on the right side of equation (10.2) are the terms added to equation (9.2). The fourth term on the right side of the formula (10.2) is the number of products delivered as of the date X that satisfy the condition that the sales deadline expires by the time the date X + P arrives. The fifth item on the right side of 2) is the number of products scheduled to be delivered as of the date X, which satisfy the condition that the sales deadline expires by the time the date X + P arrives. Equation (10.2) is a condition for which the sales deadline expires at the future time point to be predicted among the products that have been delivered and the products that are scheduled to be delivered in the prediction calculation of the future inventory quantity with respect to the equation (9.2). Consideration is added to deduct the quantity of products that meet the requirements.

ここで、式(10.2)は、日付XからP日経過後の将来の開店時予測在庫数を求めるための式である。したがって、式(10.2)においては方式説明を複雑化しないように省略しているが、実際のプログラムの実装においては、右辺の計算結果が負数となる場合はゼロに置き換える処理を加えてもよい。 Here, the formula (10.2) is a formula for obtaining the estimated number of stocks at the time of opening the store in the future after the lapse of P days from the date X. Therefore, in Eq. (10.2), the method explanation is omitted so as not to complicate it, but in the actual implementation of the program, if the calculation result on the right side is a negative number, it may be replaced with zero. Good.

以下、発注推奨量計算部216は、発注推奨量の計算の時点で納品済みの商品について、式(10.2)の計算においてリードタイム後の在庫数をどのように計算し、また、式(10.1)の計算においてリードタイム後の需要加算期間をどのように設定するかについて、図面を参照して説明する。 Hereinafter, the ordering recommended quantity calculation unit 216 calculates the number of stocks after the lead time in the calculation of the formula (10.2) for the products delivered at the time of calculating the ordering recommended quantity, and also the formula ( How to set the demand addition period after the lead time in the calculation of 10.1) will be described with reference to the drawings.

図35に示す「ケースA1」の例は、販売期間がリードタイムよりも小さい場合を示している。この場合、発注当日に発注した商品のリードタイムが経過する前に、納品済みの商品すべての販売期限が満了する。したがって、発注推奨量計算部216は、式(10.2)の右辺第四項は同第一項を相殺する。また、図35に示した例では、次回に発注した商品のリードタイムが経過する前に、発注当日に発注した商品の販売期限が満了する。そのため、式(10.1)の右辺第三項のリードタイム後の需要加算期間は、発注当日に発注した商品の販売期限が満了する時点までとなり、それ以降、次回に発注した商品のリードタイムが経過するまでの間は計画的な欠品期間となる。 The example of "Case A1" shown in FIG. 35 shows a case where the sales period is smaller than the lead time. In this case, the sales deadline of all the delivered products expires before the lead time of the products ordered on the day of ordering elapses. Therefore, in the ordering recommended quantity calculation unit 216, the fourth term on the right side of the equation (10.2) cancels the first term. Further, in the example shown in FIG. 35, the sales deadline of the ordered product expires before the lead time of the next ordered product elapses. Therefore, the demand addition period after the lead time of the third item on the right side of the formula (10.1) is until the time when the sales deadline of the product ordered on the day of order expires, and after that, the lead time of the product ordered next time. It will be a planned shortage period until the elapse of.

図36に示す「ケースA2」は、「ケースA1」には該当しないが、発注当日から商品のリードタイムLT(X)が経過した時点より商品の販売期限が満了するタイミングが早い過去の納品が存在している場合を示している。図示の例では、発注当日に発注した商品のリードタイムが経過する前に販売期限が満了する、過去に納品した商品が存在する。したがって、発注推奨量計算部216は、式(10.2)の右辺第四項によって当該条件を満たす商品の数量を右辺第一項から減算する。また、図36の例では、次回に発注した商品のリードタイムが経過する前に、発注当日に発注した商品の販売期限が満了する。そのため、式(10.1)の右辺第三項のリードタイム後の需要加算期間は、発注当日に発注した商品の販売期限が満了する時点までとなり、それ以降、次回に発注した商品のリードタイムが経過するまでの間は計画的な欠品期間となる。 “Case A2” shown in FIG. 36 does not correspond to “Case A1”, but past deliveries in which the product sales deadline expires earlier than the time when the product lead time LT (X) elapses from the day of ordering Indicates the case where it exists. In the illustrated example, there is a product delivered in the past whose sales deadline expires before the lead time of the product ordered on the day of ordering elapses. Therefore, the ordering recommended quantity calculation unit 216 subtracts the quantity of the product satisfying the condition from the first term on the right side by the fourth term on the right side of the equation (10.2). Further, in the example of FIG. 36, the sales deadline of the ordered product expires before the lead time of the next ordered product elapses. Therefore, the demand addition period after the lead time of the third item on the right side of the formula (10.1) is until the time when the sales deadline of the product ordered on the day of order expires, and after that, the lead time of the product ordered next time. It will be a planned shortage period until the elapse of.

図37に示す「ケースA3」は、納品済みの商品の販売期限と発注当日に発注した商品のリードタイムとの関係性において、「ケースA1」にも「ケースA2」にも該当しない場合を示している。図示の関係においては、発注当日から商品のリードタイムLT(X)が経過した時点より過去に納品した商品の販売期限が満了するタイミングが遅い。発注推奨量計算部216は、このような場合、式(10.2)の右辺第四項で納品済みの商品の数量を減算する必要はない。また、図37の例では、次回に発注した商品のリードタイムが経過した後に、発注当日に発注した商品の販売期限が満了する。そのため、式(10.1)の右辺第三項のリードタイム後の需要加算期間は、次回発注の商品のリードタイム後までとなり、商品の計画的な欠品期間は生じない。 “Case A3” shown in FIG. 37 indicates a case in which neither “Case A1” nor “Case A2” is applicable in the relationship between the sales deadline of the delivered product and the lead time of the product ordered on the day of ordering. ing. In the relationship shown in the figure, the timing at which the sales deadline of the product delivered in the past expires is later than the time when the lead time LT (X) of the product elapses from the day of ordering. In such a case, the order recommended quantity calculation unit 216 does not need to subtract the quantity of the delivered product according to the fourth item on the right side of the equation (10.2). Further, in the example of FIG. 37, the sales deadline of the ordered product expires after the lead time of the next ordered product elapses. Therefore, the demand addition period after the lead time of the third item on the right side of the equation (10.1) is until after the lead time of the product ordered next time, and the planned shortage period of the product does not occur.

次に、発注推奨量計算部216が、発注推奨量の計算の時点で納品予定の商品について、式(10.2)の計算においてリードタイム後の在庫数をどのように計算し、また、式(10.2)の計算においてリードタイム後の需要加算期間をどのように設定するかについて、図面を参照して説明する。 Next, the ordering recommended quantity calculation unit 216 calculates the number of stocks after the lead time in the calculation of the formula (10.2) for the product scheduled to be delivered at the time of calculating the ordering recommended quantity, and also the formula. How to set the demand addition period after the lead time in the calculation of (10.2) will be described with reference to the drawings.

図38に示す「ケースB1」は、発注当日から商品のリードタイムLT(X)が経過した時点より販売期限が満了するタイミングが早い、納品待ちの商品が存在する場合を示している。この場合、発注推奨量計算部216は、式(10.2)の右辺第四項によって当該条件の商品の数量を右辺第二項から減算する。また、図38の例では、次回に発注した商品のリードタイムが経過する前に、発注当日に発注した商品の販売期限が満了する。そのため、式(10.1)の右辺第三項のリードタイム後の需要加算期間は、発注当日に発注した商品の販売期限が満了する時点までとなり、それ以降、次回に発注した商品のリードタイムが経過するまでの間は計画的な欠品期間となる。 “Case B1” shown in FIG. 38 shows a case where there is a product waiting for delivery whose sales deadline expires earlier than the time when the lead time LT (X) of the product elapses from the day of ordering. In this case, the ordering recommended quantity calculation unit 216 subtracts the quantity of the product under the condition from the second term on the right side according to the fourth term on the right side of the equation (10.2). Further, in the example of FIG. 38, the sales deadline of the ordered product expires before the lead time of the next ordered product elapses. Therefore, the demand addition period after the lead time of the third item on the right side of the formula (10.1) is until the time when the sales deadline of the product ordered on the day of order expires, and after that, the lead time of the product ordered next time. It will be a planned shortage period until the elapse of.

図39に示す「ケースB2」は、「ケースB1」に該当しない場合を示している。図示の関係においては、発注当日から商品のリードタイムLT(X)が経過した時点より納品待ちの商品の販売期限が満了するタイミングが遅い。発注推奨量計算部216は、このような場合、式(10.2)の右辺第五項で納品予定の商品の数量を減算する必要はない。また、図39の例では、次回に発注した商品のリードタイムが経過した後に、発注当日に発注した商品の販売期限が満了する。そのため、式(10.1)の右辺第三項のリードタイム後の需要加算期間は、次回発注の商品のリードタイム後までとなり、商品の計画的な欠品期間は生じない。 “Case B2” shown in FIG. 39 shows a case that does not correspond to “Case B1”. In the relationship shown in the figure, the timing at which the sales deadline of the product waiting for delivery expires is later than the time when the lead time LT (X) of the product elapses from the day of ordering. In such a case, the order recommended quantity calculation unit 216 does not need to subtract the quantity of the product to be delivered by the fifth item on the right side of the equation (10.2). Further, in the example of FIG. 39, the sales deadline of the product ordered on the day of the order expires after the lead time of the product ordered next time elapses. Therefore, the demand addition period after the lead time of the third item on the right side of the equation (10.1) is until after the lead time of the product ordered next time, and the planned shortage period of the product does not occur.

なお、上記の式(10.2)は、引き算によって、日付XからP日経過後において販売期限を満了していない商品の数を算出しているが、同様の商品の数を式(10.2)に忠実な引き算によって求めなくてもよい。式(10.2)では、納品タイミングにおいて販売期限が満了していない納品済みの商品の在庫数に、納品タイミングまでに納品する予定となっている商品の数を加算し、納品タイミングまでの商品の予定需要数を減算することで、納品タイミングにおける商品の予測在庫数を算出する。式(10.2)は、販売期限を考慮した予測在庫数算出の一実施例を、式(9.2)との比較が説明しやすいように示した式である。したがって、例えば、日付XからP日経過後において販売期限を満了していない納品済みの商品の数を式(10.2)の右辺第一項とし、日付XからP日経過後において販売期限を満了していない日付XからP日経過後の間に納品する予定の商品数を同式の右辺第二項とし、同式の右辺第四項と第五項を省略してもよい。 The above formula (10.2) calculates the number of products whose sales deadline has not expired after the lapse of P days from the date X by subtraction, but the number of similar products is calculated by the formula (10.2). ) Does not have to be calculated by faithful subtraction. In formula (10.2), the number of products scheduled to be delivered by the delivery timing is added to the inventory quantity of the delivered products whose sales deadline has not expired at the delivery timing, and the products up to the delivery timing are added. By subtracting the planned demand quantity of, the estimated inventory quantity of the product at the delivery timing is calculated. Equation (10.2) is an equation showing an embodiment of forecast inventory quantity calculation in consideration of the sales deadline so that comparison with equation (9.2) can be easily explained. Therefore, for example, the number of delivered products whose sales deadline has not expired after the lapse of P days from the date X is set as the first term on the right side of the formula (10.2), and the sales deadline has expired after the lapse of P days from the date X. The number of products scheduled to be delivered within the lapse of P days from the date X that has not been set may be the second term on the right side of the same formula, and the fourth and fifth terms on the right side of the same formula may be omitted.

以上説明した実施形態の損失推定システムによれば、商品の在庫数を計算し、計算された商品の在庫数が負の値である場合、商品の在庫数を補正し、商品の在庫数が補正された時間帯について、商品の欠品の判定を行わない。これにより、商品の欠品の判定の精度を高めることができる。 According to the loss estimation system of the embodiment described above, the inventory quantity of the product is calculated, and if the calculated inventory quantity of the product is a negative value, the inventory quantity of the product is corrected and the inventory quantity of the product is corrected. The product is not judged to be out of stock for the specified time zone. As a result, the accuracy of determining the product shortage can be improved.

また、損失推定システムは、計算された商品の在庫数が負の値である場合、商品の在庫数を正の値に補正し、商品の在庫数が「0(零)」である場合、商品が欠品していると判定する。これにより、商品の欠品の判定の精度を高めることができる。 In addition, the loss estimation system corrects the inventory quantity of the product to a positive value when the calculated inventory quantity of the product is a negative value, and when the inventory quantity of the product is "0 (zero)", the product Is determined to be out of stock. As a result, the accuracy of determining the product shortage can be improved.

また、損失推定システムは、計算された商品の在庫数が負の値である場合、商品の在庫数を負でない値に補正すると共に、当該商品の当該時間帯について補正済であることを示す情報を保存し、商品の時間帯について補正済であることを示す情報が保存されている場合、当該時間帯について商品の欠品の判定を行わない。これにより、商品の欠品の判定の精度を高めることができる。 In addition, when the calculated inventory quantity of the product is a negative value, the loss estimation system corrects the inventory quantity of the product to a non-negative value, and also indicates that the product has been corrected for the relevant time zone. If the information indicating that the time zone of the product has been corrected is saved, the product is not judged to be out of stock for the time zone. As a result, the accuracy of determining the product shortage can be improved.

また、損失推定システムは、在庫数の時系列データに対し、時間軸を遡るように在庫数の時系列データを順に補正し、補正対象の在庫数が「0(零)」であり、かつ、一つ前の時刻の在庫数の補正を行った場合には、在庫数を正の値に補正する。これにより、商品の欠品の判定の精度をより一層高めることができる。 In addition, the loss estimation system corrects the time-series data of the number of stocks in order so as to go back in time with respect to the time-series data of the number of stocks, and the number of stocks to be corrected is "0 (zero)" and When the stock quantity at the previous time is corrected, the stock quantity is corrected to a positive value. As a result, the accuracy of determining the product shortage can be further improved.

また、損失推定システムは、補正対象の在庫数が「0(零)」である場合、一つ前の時刻の在庫数の補正を行っていない場合には、在庫数を補正しない。これにより、商品の欠品の判定の精度をより一層高めることができる。 Further, the loss estimation system does not correct the inventory quantity when the inventory quantity to be corrected is "0 (zero)" and the inventory quantity at the previous time is not corrected. As a result, the accuracy of determining the product shortage can be further improved.

また、損失推定システムは、在庫数の時系列データに対して所定期間単位で時間軸に沿って補正を行う場合、最初の所定期間に含まれる在庫数の時系列データの初期値を「0(零)」として計算する。これにより、在庫数の時系列データは、データの蓄積とともに所定期間単位で補正が繰り返し行われ、補正をしなくても正の値となりやすくなり、商品の在庫データの精度を高めることができる。 In addition, when the loss estimation system corrects the time-series data of the number of stocks along the time axis in units of a predetermined period, the initial value of the time-series data of the number of stocks included in the first predetermined period is set to "0 ( Calculate as "zero)". As a result, the time-series data of the number of inventories is repeatedly corrected in units of predetermined periods as the data is accumulated, and easily becomes a positive value without the correction, so that the accuracy of the inventory data of the product can be improved.

また、実施形態の発注推奨システムによれば、販売時間単位の商品の販売実績値と需要予測値との差分データを残差として計算し、同一の商品について、一つの商品が売れ残った場合の販売時間単位の損失額である単位売残損失と、一つの商品が欠品により販売機会を逃した場合の販売時間単位の損失額である単位売逃損失との合計値に対する単位売逃損失の比率を計算し、前記差分計算により計算された複数の販売時間帯における差分データを昇順に並べた場合に、複数の販売時間帯における差分データのデータ数に対して比率を積算した値の順序に位置する残差に対して前記需要予測値を合算した値を、商品の期待損失額が最小になる在庫量である基準在庫量として計算する。これにより、複雑な計算処理を要することなく基準在庫量が計算できるため、在庫最適化に関する数値計算を行う際のコンピュータの処理負荷を低減することができる。 In addition, according to the ordering recommendation system of the embodiment, the difference data between the actual sales value and the predicted demand value of the product in units of sales time is calculated as the residual, and the same product is sold when one product is unsold. The ratio of the unit unsold loss to the total value of the unit unsold loss, which is the hourly loss, and the unit unsold loss, which is the hourly loss when one product misses a sales opportunity due to a shortage. Is calculated, and when the difference data in the plurality of sales time zones calculated by the difference calculation is arranged in ascending order, the position is in the order of the value obtained by integrating the ratio to the number of difference data data in the plurality of sales time zones. The value obtained by adding the demand forecast value to the residual amount is calculated as the reference inventory amount, which is the inventory amount that minimizes the expected loss amount of the product. As a result, the standard inventory amount can be calculated without requiring complicated calculation processing, so that the processing load of the computer when performing the numerical calculation related to inventory optimization can be reduced.

また、実施形態の発注推奨システムによれば、販売時間単位の商品の販売実績値と需要予測値との差分データを残差として計算し、販売時間単位ごとの残差の分布を需要予測残差分布として作成し、需要予測残差分布を表す確率分布を積分した累積分布関数を生成し、同一の商品について、一つの商品が売れ残った場合の販売時間単位の損失額である単位売残損失と、一つの商品が欠品により販売機会を逃した場合の販売時間単位の損失額である単位売逃損失との合計値に対する前記単位売逃損失の比率を計算し、前記累積分布関数の値が前記比率に一致する残差を、商品の期待損失額が最小になる在庫量である基準在庫量として計算する。これにより、複雑な計算処理を要することなく基準在庫量が計算できるため、在庫最適化に関する数値計算を行う際のコンピュータの処理負荷を低減することができる。 Further, according to the ordering recommendation system of the embodiment, the difference data between the actual sales value of the product in the sales time unit and the demand forecast value is calculated as the residual, and the distribution of the residual in each sales time unit is the demand forecast residual. Created as a distribution, generate a cumulative distribution function that integrates the probability distribution that represents the demand forecast residual distribution, and for the same product, the unit unsold loss, which is the amount of loss in the sales time unit when one product is unsold. , Calculate the ratio of the unit sales loss to the total value of the unit sales loss, which is the loss amount of the sales time unit when one product misses the sales opportunity due to the shortage, and the value of the cumulative distribution function is The residual that matches the ratio is calculated as the reference inventory amount, which is the inventory amount that minimizes the expected loss amount of the product. As a result, the standard inventory amount can be calculated without requiring complicated calculation processing, so that the processing load of the computer when performing the numerical calculation related to inventory optimization can be reduced.

また、発注推奨システムは、単位売残損失が商品の販売実績データに基づいて決定される。これにより、基準在庫量の計算の精度を高めることができる。 In the ordering recommendation system, the unit unsold loss is determined based on the sales performance data of the product. As a result, the accuracy of calculation of the standard inventory amount can be improved.

また、発注推奨システムは、単位売残損失が、少なくとも、商品を値引き後の売価で販売した場合の値引き損失合計額、および、商品を廃棄した場合の廃棄損失合計額に基づいて決定される。これにより、基準在庫量の計算の精度をより一層高めることができる。 In addition, the order recommendation system determines the unit unsold loss based on at least the total discount loss when the product is sold at the discounted selling price and the total disposal loss when the product is discarded. As a result, the accuracy of calculating the standard inventory amount can be further improved.

また、発注推奨システムは、複数の販売時間帯における差分データの中に異常値が含まれる場合、異常値が除外された差分データに基づいて基準在庫量を計算する。これにより、基準在庫量の計算の精度をより一層高めることができる。 In addition, the ordering recommendation system calculates the standard inventory amount based on the difference data excluding the abnormal value when the difference data in a plurality of sales time zones contains an abnormal value. As a result, the accuracy of calculating the standard inventory amount can be further improved.

また、実施形態の需要予測装置によれば、記憶部に格納された商品の販売実績を需要予測モデルに入力することで商品の需要予測を行い、商品の需要予測を行う場合、記憶部に格納された販売実績のデータ量に応じて前記需要予測モデルを変更する。これにより、商品の需要予測の精度を高めることができる。 Further, according to the demand forecasting device of the embodiment, the demand forecast of the product is performed by inputting the sales record of the product stored in the storage unit into the demand forecast model, and when the demand forecast of the product is performed, the product is stored in the storage unit. The demand forecast model is changed according to the amount of sales performance data. As a result, the accuracy of product demand forecasting can be improved.

また、需要予測装置は、記憶部に格納された販売実績のデータ量が多くなるにつれて、予測精度の高い前記需要予測モデルを用いて商品の需要予測を行う。これにより、商品の需要予測の精度をより一層高めることができる。 Further, the demand forecasting device predicts the demand of the product by using the demand forecasting model having high prediction accuracy as the amount of sales record data stored in the storage unit increases. As a result, the accuracy of product demand forecasting can be further improved.

また、需要予測装置は、記憶部に格納された販売実績のデータ量が相対的に少ない場合には、複数の商品を含む商品群ごとの前記需要予測モデルを用いて商品の需要予測を行い、記憶部に格納された販売実績のデータ量が相対的に多い場合には、商品ごとの前記需要予測モデルを用いて商品の需要予測を行う。これにより、商品の需要予測の精度をより一層高めることができる。 Further, when the amount of sales record data stored in the storage unit is relatively small, the demand forecasting device predicts the demand of the product by using the demand forecast model for each product group including a plurality of products. When the amount of sales record data stored in the storage unit is relatively large, the demand forecast model for each product is used to forecast the demand for the product. As a result, the accuracy of product demand forecasting can be further improved.

また、需要予測装置は、記憶部に格納された販売実績のデータ量が相対的に少ない場合には、商品の販売実績を統計的に解析した統計モデルを用いて商品の需要予測を行い、記憶部に格納された販売実績のデータ量が相対的に多い場合には、商品の販売実績を学習用データとして用いて学習させた機械学習モデルを用いて商品の需要予測を行う。これにより、商品の需要予測の精度をより一層高めることができる。 In addition, when the amount of sales record data stored in the storage unit is relatively small, the demand forecaster predicts the demand of the product using a statistical model that statistically analyzes the sales record of the product and stores it. When the amount of sales record data stored in the unit is relatively large, the demand forecast of the product is performed using the machine learning model trained by using the product sales record as learning data. As a result, the accuracy of product demand forecasting can be further improved.

また、需要予測装置は、商品の販売実績を学習用データとして用いて学習させた機械学習モデルを用いて商品の需要予測を行う場合、記憶部に格納された販売実績のデータ量が所定量未満である場合には、第1機械学習モデルを用いて商品の需要予測を行い、記憶部に格納された販売実績のデータ量が所定量以上である場合には、第1機械学習モデルに比して学習用データのデータ量が多い第2機械学習モデルを用いて商品の需要予測を行う。これにより、商品の需要予測の精度をより一層高めることができる。 Further, when the demand forecasting device predicts the demand of a product using a machine learning model trained by using the sales performance of the product as learning data, the amount of sales performance data stored in the storage unit is less than a predetermined amount. In the case of, the demand forecast of the product is performed using the first machine learning model, and when the amount of sales record data stored in the storage unit is equal to or more than the predetermined amount, it is compared with the first machine learning model. The demand for products is forecast using the second machine learning model, which has a large amount of training data. As a result, the accuracy of product demand forecasting can be further improved.

また、実施形態の需要予測装置は、商品の販売時間帯ごとの販売実績に基づく販売数に対し、欠品により商品の販売機会を逃した商品の販売時間帯ごとの売り逃し数を合算することで、商品の販売時間帯ごとの販売数を補正し、補正された商品の販売時間帯ごとの販売数を含む学習用データを用いて学習された需要予測モデルに対し、予測対象の販売時間帯を入力することで、商品の需要を予測する。これにより、商品の需要予測の精度を高めることができる。 In addition, the demand forecasting device of the embodiment adds up the number of missed sales for each sales time zone of the product that missed the sales opportunity of the product due to the shortage of the product to the number of sales based on the sales performance for each sales time zone of the product. Then, the number of sales for each sales time zone of the product is corrected, and the sales time zone for which the forecast is made for the demand forecast model learned using the learning data including the number of sales for each sales time zone of the corrected product. By entering, the demand for the product is predicted. As a result, the accuracy of product demand forecasting can be improved.

また、需要予測装置は、補正された商品の販売時間帯ごとの販売数に基づいて、商品の販売時間帯ごとの品揃えの有無を判定し、品揃えが無いと判定した販売時間帯を除外した販売時間帯における商品の販売数を含む学習用データを用いて学習された需要予測モデルに対し、予測対象の販売時間帯を入力することで、商品の需要予測を行う。これにより、商品の需要予測の精度をより一層高めることができる。 In addition, the demand forecasting device determines whether or not there is an assortment of products for each sales time zone based on the number of products sold for each sales time zone of the corrected product, and excludes the sales time zone for which it is determined that there is no product assortment. By inputting the sales time zone to be forecasted into the demand forecast model learned using the learning data including the number of products sold in the sales time zone, the demand forecast of the product is performed. As a result, the accuracy of product demand forecasting can be further improved.

また、需要予測装置は、一定期間補正された販売数が「0(零)」である場合、その期間における商品の品揃えが無いと判定する。これにより、商品の需要予測の精度をより一層高めることができる。 Further, when the number of sales corrected for a certain period is "0 (zero)", the demand forecasting device determines that there is no assortment of products in that period. As a result, the accuracy of product demand forecasting can be further improved.

また、需要予測装置は、一定期間補正された販売数が「0(零)」である場合において、商品の販売期間が所定長さ未満である場合には、その期間における商品の品揃えが無いと判定する。これにより、商品の需要予測の精度をより一層高めることができる。 Further, in the demand forecasting device, when the number of sales corrected for a certain period is "0 (zero)" and the sales period of the product is less than the predetermined length, there is no assortment of products in that period. Is determined. As a result, the accuracy of product demand forecasting can be further improved.

また、実施形態の損失推定システムは、商品の時間帯ごとの販売実績に基づいて、欠品により販売機会を逃した場合の損失である商品の売り逃し量を計算し、商品の売り逃し量に基づいて売り逃し高を計算し、売り逃し高に対して商品の売上を加算することで、商品の単品別の需要金額を計算し、複数の商品を含むカテゴリの売上に基づいて、カテゴリの需要金額を計算し、商品の単品別の需要金額と、カテゴリの需要金額とに基づいて、同一のカテゴリに含まれる代替商品の販売による商品の販売実績への影響度合いを評価し、評価された影響度合いに基づいて、商品の売り逃し量を補正する。これにより、欠品による商品の販売機会を逃した場合の損失の推定の精度を高めることができる。 In addition, the loss estimation system of the embodiment calculates the amount of missed sales of the product, which is the loss when the sales opportunity is missed due to the shortage, based on the sales performance of the product for each time zone, and calculates the amount of missed sales of the product. Calculate the amount of missed sales based on, and add the sales of the product to the amount of missed sales to calculate the demand amount for each item of the product, and the demand of the category based on the sales of the category including multiple products. Calculate the amount of money, evaluate the degree of influence on the sales performance of the product by selling the alternative product included in the same category based on the demand amount of each item of the product and the demand amount of the category, and the evaluated influence Correct the amount of missed sales of goods based on the degree. As a result, it is possible to improve the accuracy of estimating the loss when the sales opportunity of the product due to the shortage is missed.

また、損失推定システムは、カテゴリの需要金額に対する、商品の単品別の需要金額の合計値の比率が大きいほど、影響度合いを大きく評価する。これにより、欠品による商品の販売機会を逃した場合の損失の推定の精度をより一層高めることができる。 In addition, the loss estimation system evaluates the degree of influence as the ratio of the total value of the demand amount for each product to the demand amount of the category increases. As a result, the accuracy of estimating the loss when the sales opportunity of the product due to the shortage is missed can be further improved.

また、損失推定システムは、商品が欠品していた時間帯が存在する場合、商品が欠品していた時間帯の販売実績を、商品が欠品していなかった時間帯の販売実績を用いて補完することで、商品の売り逃し量を計算する。これにより、欠品による商品の販売機会を逃した場合の損失の推定の精度をより一層高めることができる。 In addition, the loss estimation system uses the sales record of the time zone when the product was out of stock and the sales record of the time zone when the product was not out of stock when there is a time zone when the product was out of stock. By complementing with, the amount of missed sales of the product is calculated. As a result, the accuracy of estimating the loss when the sales opportunity of the product due to the shortage is missed can be further improved.

また、損失推定システムは、商品が欠品していた時間帯が存在する場合、商品が欠品していた時間帯の販売実績を、商品が欠品していなかった曜日区分と時間帯の販売実績を用いて補完することで、商品の売り逃し量を計算する。これにより、欠品による商品の販売機会を逃した場合の損失の推定の精度をより一層高めることができる。 In addition, if there is a time zone when the product is out of stock, the loss estimation system will display the sales results of the time zone when the product was out of stock, and the sales of the day classification and time zone when the product was not out of stock. By supplementing with actual results, the amount of missed sales of products is calculated. As a result, the accuracy of estimating the loss when the sales opportunity of the product due to the shortage is missed can be further improved.

また、損失推定システムは、商品が欠品していた時間帯がある一定期間だけ存在し、かつ他の期間に商品が欠品していなかった場合、商品が欠品していなかった曜日区分と時間帯を含めての販売実績を用いて補完することで、商品の売り逃し量を計算する。これにより、欠品による商品の販売機会を逃した場合の損失の推定の精度をより一層高めることができる。 In addition, the loss estimation system can be used to classify the days of the week when the product was not out of stock if the product was out of stock for a certain period of time and the product was not out of stock in other periods. By supplementing with the sales performance including the time zone, the amount of missed sales of the product is calculated. As a result, the accuracy of estimating the loss when the sales opportunity of the product due to the shortage is missed can be further improved.

また、損失推定システムは、商品が欠品していた時間帯の販売実績を、商品が欠品していなかった時間帯の販売実績を用いて補完する場合、商品が欠品していた時間帯に近いほど、商品の販売実績を優先して用いる。これにより、欠品による商品の販売機会を逃した場合の損失の推定の精度をより一層高めることができる。 In addition, when the loss estimation system supplements the sales performance of the time zone when the product was out of stock by using the sales performance of the time zone when the product was not out of stock, the time zone when the product was out of stock. The closer it is, the more priority is given to the sales performance of the product. As a result, the accuracy of estimating the loss when the sales opportunity of the product due to the shortage is missed can be further improved.

また、損失推定システムは、商品が欠品していた時間帯の販売実績を、商品が欠品していなかった時間帯の販売実績を用いて補完する場合、商品が欠品していた時間帯よりも後の時間帯の商品の販売実績に比して、商品が欠品していた時間帯よりも前の時間帯の商品の販売実績を優先して用いる。これにより、欠品による商品の販売機会を逃した場合の損失の推定の精度をより一層高めることができる。 In addition, when the loss estimation system supplements the sales performance of the time zone when the product was out of stock by using the sales performance of the time zone when the product was not out of stock, the time zone when the product was out of stock. Compared to the sales performance of the product in the later time zone, the sales performance of the product in the time zone before the time zone when the product was out of stock is preferentially used. As a result, the accuracy of estimating the loss when the sales opportunity of the product due to the shortage is missed can be further improved.

また、実施形態の発注推奨システムは、商品の内容量ごとの販売実績に基づく販売数を最も数値の近い整数値に換算し、換算した整数値に対して商品の内容量を積算することで、商品の内容量ごとの販売量の換算値を計算し、商品の内容量ごとの販売実績に基づく販売量の換算値の合算値との差が小さくなるように、発注推奨量を補正する。これにより、発注推奨量の算出の精度を高めることができる。 In addition, the ordering recommendation system of the embodiment converts the number of sales based on the sales performance for each content of the product into the integer value closest to the numerical value, and integrates the content of the product with the converted integer value. The converted value of the sales volume for each content of the product is calculated, and the recommended order quantity is corrected so that the difference from the total value of the converted value of the sales volume based on the sales performance for each content of the product is small. As a result, the accuracy of calculating the recommended order quantity can be improved.

また、発注推奨システムは、商品の内容量ごとの販売量の換算値の合算値が、補正対象の発注推奨量よりも小さい場合には、その差分よりも少量の商品の内容量を対象として、販売量の換算値を増大させ、増加させた後の商品の内容量ごとの販売量の換算値の合計値を補正した発注推奨量とする。これにより、発注推奨量の算出の精度を高めることができる。 In addition, the ordering recommendation system targets the content of products that is smaller than the difference when the total value of the converted values of the sales volume for each content of the product is smaller than the recommended order quantity to be corrected. The converted value of the sales volume is increased, and the total value of the converted value of the sales volume for each content of the product after the increase is corrected to obtain the recommended order quantity. As a result, the accuracy of calculating the recommended order quantity can be improved.

また、発注推奨システムは、商品の内容量ごとの販売量の換算値の合算値が、補正対象の発注推奨量よりも小さい場合において、その差分が商品の内容量の最小値よりも小さい場合には、販売量の換算値を増大させずに商品の内容量ごとの販売量の換算値の合計値を補正した発注推奨量とする。これにより、発注推奨量の算出の精度をより一層高めることができる。 In addition, the ordering recommendation system is when the total value of the converted values of the sales volume for each product content is smaller than the ordering recommended quantity to be corrected, and the difference is smaller than the minimum value of the product content. Is the recommended order quantity after correcting the total value of the converted value of the sales volume for each content of the product without increasing the conversion value of the sales volume. As a result, the accuracy of calculating the recommended order quantity can be further improved.

また、発注推奨システムは、商品の内容量ごとの販売量の換算値の合算値が、補正対象の発注推奨量よりも大きい場合には、補正対象の発注推奨量を増大させ、増大させた発注推奨量を補正した発注推奨量とする。これにより、発注推奨量の算出の精度をより一層高めることができる。 In addition, the ordering recommendation system increases the recommended ordering amount to be corrected when the total value of the converted values of the sales volume for each content of the product is larger than the recommended ordering amount to be corrected. The recommended quantity for ordering is adjusted to the recommended quantity. As a result, the accuracy of calculating the recommended order quantity can be further improved.

また、実施形態の発注推奨システムは、商品を発注する時点において、納品タイミングにおける商品の予測在庫数を納品タイミングにおける基準在庫数から減算することにより納品タイミングにおける基準在庫数に対する不足数を計算し、さらに、納品タイミングにおける基準在庫数に対する不足数に対して、納品タイミングから、次回発注の納品タイミング、および、今回発注する商品の販売期限が満了するタイミングのうち早いタイミングまでの間の期間の、商品の予測需要数を加算して、発注推奨量を算出する。これにより、発注推奨量の算出の精度を高めることができる。 Further, the ordering recommendation system of the embodiment calculates the shortage number with respect to the standard stock quantity at the delivery timing by subtracting the estimated stock quantity of the product at the delivery timing from the standard stock quantity at the delivery timing at the time of ordering the product. Furthermore, with respect to the shortage of the standard stock quantity at the delivery timing, the product in the period from the delivery timing to the delivery timing of the next order and the earlier timing of the expiration date of the product ordered this time. The recommended quantity for ordering is calculated by adding the expected number of demands. As a result, the accuracy of calculating the recommended order quantity can be improved.

また、発注推奨システムは、納品タイミングにおいて販売期限が満了していない条件の納品済商品の在庫数に、納品タイミングにおいて販売期限が満了していない条件の納品タイミングまでに納品する予定となっている商品の数を加算し、納品タイミングまでの商品の予測需要数を減算することで、納品タイミングにおける商品の予測在庫数を算出する。これにより、発注推奨量の算出の精度を高めることができる。 In addition, the ordering recommendation system is scheduled to deliver to the number of delivered products in stock under the condition that the sales deadline has not expired at the delivery timing, and by the delivery timing under the condition that the sales deadline has not expired at the delivery timing. By adding the number of products and subtracting the estimated demand for the products up to the delivery timing, the estimated inventory quantity of the products at the delivery timing is calculated. As a result, the accuracy of calculating the recommended order quantity can be improved.

本発明のいくつかの実施形態を説明したが、これらの実施形態は、例として提示したものであり、発明の範囲を限定することは意図していない。これら実施形態は、その他の様々な形態で実施されることが可能であり、発明の要旨を逸脱しない範囲で、種々の省略、置き換え、変更を行うことができる。これら実施形態やその変形は、発明の範囲や要旨に含まれると同様に、特許請求の範囲に記載された発明とその均等の範囲に含まれるものである。 Although some embodiments of the present invention have been described, these embodiments are presented as examples and are not intended to limit the scope of the invention. These embodiments can be implemented in various other forms, and various omissions, replacements, and changes can be made without departing from the gist of the invention. These embodiments and modifications thereof are included in the scope and gist of the invention, as well as in the scope of the invention described in the claims and the equivalent scope thereof.

10…在庫最適化システム、100…損失推定システム、110…制御部、112…在庫数計算部、114…在庫数補正部、116…値引き損失計算部、118…廃棄損失計算部、120…欠品判定部、122…売り逃し計算部、124…単品別需要金額計算部、126…カテゴリ別需要金額計算部、128…評価部、130…売り逃し補正部、132…売り逃し出力部、140…記憶部、142…理論在庫データ、144…商品データ、146…売り逃しデータ、200…発注推奨システム、210…制御部、212…需要予測部、214…基準在庫計算部、216…発注推奨量計算部、218…発注推奨量出力部、230…記憶部、232…販売実績データ、234…需要予測データ、236…基準在庫データ、238…発注推奨データ、M1…需要予測モデル。 10 ... Inventory optimization system, 100 ... Loss estimation system, 110 ... Control unit, 112 ... Inventory quantity calculation unit, 114 ... Inventory quantity correction unit, 116 ... Discount loss calculation unit, 118 ... Disposal loss calculation unit, 120 ... Out of stock Judgment unit, 122 ... Missed sales calculation unit, 124 ... Demand amount calculation unit for individual items, 126 ... Demand amount calculation unit for each category, 128 ... Evaluation unit, 130 ... Missed sales correction unit, 132 ... Missed sales output unit, 140 ... Memory Department, 142 ... theoretical inventory data, 144 ... product data, 146 ... missed sale data, 200 ... ordering recommendation system, 210 ... control unit, 212 ... demand forecasting unit, 214 ... standard inventory calculation unit, 216 ... ordering recommended quantity calculation unit , 218 ... Recommended order quantity output unit, 230 ... Storage unit, 232 ... Sales record data, 234 ... Demand forecast data, 236 ... Standard inventory data, 238 ... Order recommended data, M1 ... Demand forecast model.

次に、図9に示すように、売り逃し計算部122は、単品別理論在庫データ162に基づいて、カテゴリ別理論在庫データ164を作成する。カテゴリ別理論在庫データ164は、一時間単位を最小レコードとし、算出カテゴリ、算出粒度をキーとしてグループ化した商品カテゴリのデータである。図示の例では、売り逃し計算部122は、指定した時間帯が「2018/10/1 12時」から「2018/10/1 13時」までの範囲で、算出粒度が「カテゴリ購入」であり、かつ、算出カテゴリが「CS」であるデータをグループ化することで、カテゴリ別理論在庫データ164を作成している。 Next, as shown in FIG. 9, the oversold calculation unit 122 creates the theoretical inventory data 164 for each category based on the theoretical inventory data 162 for each item. The theoretical inventory data 164 by category is data of product categories grouped by using the hourly unit as the minimum record and the calculation category and the calculation particle size as keys. In the illustrated example, the oversold calculation unit 122 has a specified time zone in the range of "2018/10/1 12:00" to "2018/10/1 13:00", and the calculation particle size is "category purchase". In addition, the theoretical inventory data 164 for each category is created by grouping the data whose calculation category is "CS 1".

売り逃し数算出用データ170は、例えば一時間単位を最小レコードとした、売り逃し数の算出に用いられる情報を定義するデータである。売り逃し数算出用データ170のデータ項目は、例えば、部門コード、小分類コード、店舗コード、商品コード、日付・時間帯の開始時刻、日付・時間帯の終了時刻、品揃え対象判定、欠品フラグ、算出粒度、算出カテゴリ、曜日、平日休日、購入客数、販売数、および販売金額を含む。購入客数は、[0060]の中で記載した購入客数データ166と同一のデータである。販売数は、日付・時間帯の開始時刻から日付・時間帯の終了時刻までの一時間における商品の販売数を示すデータである。販売数は、例えば、単品別理論在庫データ162とカテゴリ別理論在庫データ164を結合したデータに含まれる商品の売上数量に基づいて取得される。 The data 170 for calculating the number of missed sales is data that defines information used for calculating the number of missed sales, for example, with an hour unit as the minimum record. The data items of the data 170 for calculating the number of missed sales are, for example, department code, subcategory code, store code, product code, start time of date / time zone, end time of date / time zone, assortment target judgment, shortage. Includes flags, calculated granularity, calculated categories, days of the week, weekday holidays, number of customers purchased, number of sales, and sales amount. The number of purchased customers is the same as the number of purchased customers data 166 described in [0060]. The number of sales is data indicating the number of products sold in one hour from the start time of the date / time zone to the end time of the date / time zone. The number of sales is acquired based on, for example, the sales quantity of the product included in the data obtained by combining the theoretical inventory data 162 for each item and the theoretical inventory data 164 for each category.

ここで、式(9.1)の右辺第一項から第二項が、納品タイミングにおける基準在庫量と予在庫量との差であるが、この差を求めるための右辺第一項と第二項は、基準在庫量に対して予在庫量が不足する量を求めるための演算を行っている。したがって、式(9.1)においては方式説明を複雑化しないように省略しているが、実際のプログラムコードの実装においては、右辺第一項と第二項の演算結果が負数となる場合はゼロに置き換える処理を加えても良い。 Here, the second term from the first term on the right side of equation (9.1) is, but is the difference between the reference inventory and forecast inventory in delivery timing, the first term on the right side for determining the difference first two paragraphs, prediction inventory is performing an operation for obtaining the quantity short of the standard inventory quantity. Therefore, although the method explanation is omitted in the equation (9.1) so as not to complicate the method explanation, in the actual implementation of the program code, when the calculation results of the first and second terms on the right side are negative numbers. You may add the process of replacing it with zero.

式(9.1)のXは日付として説明したが、時間単位で生産する商品の生産推奨数計算として用いる場合にはXは時間帯を表すとしてもよい。その場合、T、LT、DLVも日付ではなく時間帯として用いる。すなわち、時間帯Xにおける生産推奨数ORR(X)は、生産指示してから店頭に並ぶまでの時間LT(X)+DLV後の基準在庫量と予在庫量との差に、店頭に並んだ後の次回の生産商品が店頭に並ぶ前までの各時間帯の予測需要数を加算した数量として算出する。 Although X in the formula (9.1) has been described as a date, X may represent a time zone when used as a calculation of the recommended number of products to be produced in units of time. In that case, T, LT, and DLV are also used as time zones instead of dates. In other words, production recommended number ORR (X) in the time zone X is, to the difference between the time from the production instruction to line up in the over-the-counter LT (X) + standard inventory amount after the DLV and the predicted amount of inventory, arranged in over-the-counter It is calculated as the sum of the estimated demand numbers for each time period before the next production product is lined up in the store.

Claims (4)

商品を発注する時点において、納品タイミングにおける商品の予測在庫数を前記納品タイミングにおける基準在庫数から減算することにより前記納品タイミングにおける前記基準在庫数に対する不足数を計算し、さらに、前記納品タイミングにおける前記基準在庫数に対する不足数に対して、前記納品タイミングから、次回発注の納品タイミング、および、今回発注する商品の販売期限が満了するタイミングのうち早いタイミングまでの間の期間の、商品の予測需要数を加算して、商品の発注推奨量を算出する発注推奨数計算部を備える、発注推奨システム。 At the time of ordering the product, the estimated stock quantity of the product at the delivery timing is subtracted from the reference stock quantity at the delivery timing to calculate the shortage number with respect to the standard stock quantity at the delivery timing, and further, the said at the delivery timing. For the shortage of the standard stock quantity, the estimated demand quantity of the product in the period from the above delivery timing to the delivery timing of the next order and the earlier timing of the expiration date of the product ordered this time. An ordering recommendation system equipped with an ordering recommended number calculation unit that calculates the recommended ordering quantity of products by adding. 前記発注推奨数計算部は、前記納品タイミングにおいて販売期限が満了していない条件の納品済商品の在庫数に、前記納品タイミングにおいて販売期限が満了していない条件の納品タイミングまでに納品する予定となっている商品の数を加算し、前記納品タイミングまでの商品の予測需要数を減算することで、前記納品タイミングにおける商品の予測在庫数を算出する。
請求項1記載の発注推奨システム。
The ordering recommended number calculation unit plans to deliver to the number of delivered products under the condition that the sales deadline has not expired at the delivery timing by the delivery timing under the condition that the sales deadline has not expired at the delivery timing. The estimated number of products in stock at the delivery timing is calculated by adding the number of the products and subtracting the estimated demand number of the products up to the delivery timing.
The ordering recommendation system according to claim 1.
コンピュータが、
商品を発注する時点において、納品タイミングにおける商品の予測在庫数を前記納品タイミングにおける基準在庫数から減算することにより前記納品タイミングにおける前記基準在庫数に対する不足数を計算し、
前記納品タイミングにおける前記基準在庫数に対する不足数に対して、前記納品タイミングから、次回発注の納品タイミング、および、今回発注する商品の販売期限が満了するタイミングのうち早いタイミングまでの間の期間の、商品の予測需要数を加算して、商品の発注推奨量を算出する、
発注推奨方法。
The computer
At the time of ordering the product, the number of shortages with respect to the standard stock quantity at the delivery timing is calculated by subtracting the estimated stock quantity of the product at the delivery timing from the standard stock quantity at the delivery timing.
With respect to the shortage of the standard inventory quantity at the delivery timing, the period from the delivery timing to the delivery timing of the next order and the earlier timing of the expiration of the sales deadline of the product ordered this time. Calculate the recommended quantity for ordering products by adding the estimated demand for products.
Recommended ordering method.
コンピュータに、
商品を発注する時点において、納品タイミングにおける商品の予測在庫数を前記納品タイミングにおける基準在庫数から減算することにより前記納品タイミングにおける前記基準在庫数に対する不足数を計算する処理と、
前記納品タイミングにおける前記基準在庫数に対する不足数に対して、前記納品タイミングから、次回発注の納品タイミング、および、今回発注する商品の販売期限が満了するタイミングのうち早いタイミングまでの間の期間の、商品の予測需要数を加算して、商品の発注推奨量を算出する処理と、
を実行させるプログラム。
On the computer
At the time of ordering the product, the process of calculating the shortage with respect to the standard stock quantity at the delivery timing by subtracting the estimated stock quantity of the product at the delivery timing from the standard stock quantity at the delivery timing.
With respect to the shortage of the standard inventory quantity at the delivery timing, the period from the delivery timing to the delivery timing of the next order and the earlier timing of the expiration of the sales deadline of the product ordered this time. The process of adding the estimated demand for products to calculate the recommended quantity for ordering products, and
A program that executes.
JP2019233500A 2019-12-24 2019-12-24 Ordering recommendation system, ordering recommendation method, and program Pending JP2021103377A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019233500A JP2021103377A (en) 2019-12-24 2019-12-24 Ordering recommendation system, ordering recommendation method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019233500A JP2021103377A (en) 2019-12-24 2019-12-24 Ordering recommendation system, ordering recommendation method, and program

Publications (1)

Publication Number Publication Date
JP2021103377A true JP2021103377A (en) 2021-07-15

Family

ID=76755222

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019233500A Pending JP2021103377A (en) 2019-12-24 2019-12-24 Ordering recommendation system, ordering recommendation method, and program

Country Status (1)

Country Link
JP (1) JP2021103377A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023233828A1 (en) * 2022-05-30 2023-12-07 三菱電機株式会社 Inventory prediction system, inventory calculation device, inventory prediction method and program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023233828A1 (en) * 2022-05-30 2023-12-07 三菱電機株式会社 Inventory prediction system, inventory calculation device, inventory prediction method and program

Similar Documents

Publication Publication Date Title
JP5337174B2 (en) Demand prediction device and program thereof
CN111429048A (en) Method, device and equipment for determining replenishment information
JP5611254B2 (en) Demand prediction apparatus and program
JP2001282906A (en) Processing system for calculating predicted value of number of sales and order quantity
JP2003162619A (en) Sales prediction apparatus and method
JP5031715B2 (en) Product demand forecasting system, product sales volume adjustment system
US20060190338A1 (en) Sales planning support system, sales planning support method, and computer product
Liberopoulos et al. Backorder penalty cost coefficient “b”: What could it be?
JP7433892B2 (en) Demand forecasting device, demand forecasting method, and program
JP7387422B2 (en) Order recommendation system, order recommendation method, and program
JP2021103377A (en) Ordering recommendation system, ordering recommendation method, and program
JP2011145960A (en) Apparatus and program for managing proportional distribution of commodity
JP5847137B2 (en) Demand prediction apparatus and program
JP5758425B2 (en) Demand prediction apparatus and program
CN107085770B (en) Bulk commodity risk identification method and system and business data pushing method and system
JP5811852B2 (en) Program, method, and information processing apparatus
JP2006018777A (en) Method and device for determining ordering quantity of article, and computer program
JP7425596B2 (en) Loss estimation system, loss estimation method, and program
JP7374758B2 (en) Loss estimation system, loss estimation method, and program
JP2021103376A (en) Ordering recommendation system, ordering recommendation method, and program
JP2021103373A (en) Demand prediction device, demand prediction method, and program
JP7040441B2 (en) Opportunity loss calculation system, opportunity loss calculation method and opportunity loss calculation program
JP2020119029A (en) Order information calculation program, device, and method
JP2014170413A (en) Demand estimation device and program
JP3259676B2 (en) Apparatus and method for predicting a product order date, and a computer-readable recording medium storing a program for the method

Legal Events

Date Code Title Description
RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7426

Effective date: 20200117

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200316

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200420

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A711

Effective date: 20220607

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20220607

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20220926

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20230822

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20230919

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20240312