You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calculating Discount Rate using Takagi and Sugeno’s Approach
Problem Statement:
Finding how much discount should a shopping website offer on a product based on factors like demand, availability, and date of manufacturing of the product and using fuzzy logic and Takagi and Sugeno’s Approach, given that the maximum discount that can be offered is 60%.
Introduction:
Shopping websites like Myntra have algorithms to decide how much discount should they offer on a given product. The algorithms consider several factors, a few of them being:
The demand for the product in the market -
higher the demand, the lower will be the discount offered for the product and vice versa.
stock available with the seller -
if the stock available with the seller is high, the seller should offer a higher discount and vice versa.
lead time in the warehouse -
Consider a new product in the market then the seller would not offer much discount even if its demand is quite low or its stock available with the seller is abundant. This is because, newer products may take some time to grasp the market and for the consumer to get to know about them.
Solution (Takagi & Sugeno):
We are taking three inputs to the program, I1, I2 and I3, representing market demand, available stock and lead time of the product respectively.
First Input, I1:
Represents demand
Linguistic terms used and coefficient for each linguistic term, in I1:
for sales 0 to 20: “VLOW” ; a1 = 1
for sales 0 to 100: "LOW"; a2 = 2
for sales 20 to 200: "MID"; a3 = 3
for sales 100 to 200: "HIGH"; a4 = 5
Note that any sales higher than 200 will be taken as "HIGH" with membership value 1.
This input is different than other inputs since the output is inversely related unlike other inputs. And due to this reason we have normalized it as I1 = 200 - I1 (after calculating membership value for it).
Here is the graph for membership value vs number of sales for different linguistic terms
Second Input, I2:
Represents available stock
Linguistic terms used and coefficient for each linguistic term, in I2:
for stock 0 to 20: "HF" standing for HandFul, b1 = 1
for stock 0 to 250: "SM" standing for SMall, b2 = 3
for stock 20 to 500: "MID", b3 = 5
for stock 250 to 500: "BK" standing for BulK, b4 = 5
Note that stocks bigger than 500 will be taken as "BK" with membership value 1.
Here is the graph for membership value vs no. of sales for different linguistic terms in I2
Third Input, I3:
Represents how old/new the product is.
Linguistic terms used and coefficient for each linguistic term, in I3:
for stock 0 to 6 months old: "NEW", c1 = 1
for stock 0 to 24 months old: "OLD", c2 = 3
for stock 6 to 24 months old: "VOLD", c3 = 5
Products older than 24 months will considered "VOLD" with membership value 1.
Here is the graph for membership values vs no. of sales for different linguistic terms in I3
References:
For Takagi and Sugeno’s Algorithm - K. Pratihar, Dilip. Soft Computing Fundamentals and Applications. Alpha Science International Ltd.
About
In this project I try to calculate discount that should be given on a product based on some parameters, using Takagi and Sugeno's fuzzy logic technique.