[2022] Numerical Optimization - Group Assignment

Nicky Kaw
13 Apr 202314:17

Summary

TLDRThe presentation explores the application of the Simplex method to minimize total costs, including goods and delivery fees, in an online grocery store setting amidst the COVID-19 pandemic. It provides an overview of the shift to e-commerce and focuses on optimizing consumer purchases across four major Malaysian grocery stores. The study formulates an objective function, applies the Simplex method to determine optimal store selections, and calculates the minimum total cost, concluding that a combination of items from selected stores yields significant savings compared to single-store purchases.

Takeaways

  • 📈 The Simplex method is used to minimize the total cost of goods and delivery fees in an online grocery store setting.
  • 🌐 The COVID-19 pandemic led to a significant increase in e-commerce sales, including a 14.8% rise for non-store retailers as reported by the OECD.
  • 🛒 The Malaysian government initiated a movement control order (MCO) on March 18, 2020, which increased the preference for online grocery shopping among Malaysians.
  • 🏪 The study focuses on four major online grocery stores in Malaysia: Lotus, Giant, Grocer Migosa, and Shopping Supermarket.
  • 🔢 The Simplex method is chosen for its popularity and success in solving linear programming problems, including maximization and minimization with a set of linear constraints.
  • 📚 A previous study by Angora et al. in 2019 applied the Simplex method for profit optimization in the home industry, demonstrating its applicability.
  • 📊 The dataset used in this study is small, simplifying the computation process for the optimization problem.
  • 🛍️ The study aims to help consumers find the best deals when purchasing multiple items from different online grocery stores based on price and delivery fees.
  • 💰 The objectives of the study are to formulate a minimum objective function for total cost, apply the Simplex method to determine the best store for each item, and calculate the total minimum cost for consumers.
  • 📈 The Simplex method was implemented using Octave, an open-source programming language, to solve the optimization problem.
  • 📊 The results show that purchasing a combination of items from selected stores can lead to lower costs compared to buying from a single store, with a total minimum cost of 139.56 Ringgit.
  • 🚀 The presentation suggests potential enhancements, such as building a robust recommendation system and incorporating delivery time, discounts, and minimum spend for free delivery into the model.

Q & A

  • What is the main focus of the presentation by Juan Amira Valkis?

    -The presentation focuses on the use of the Simplex method to minimize the total cost of goods and delivery fees in an online grocery store setting, particularly in the context of the shift to e-commerce during the COVID-19 pandemic.

  • What impact did the COVID-19 pandemic have on retail sales according to the OECD report mentioned in the script?

    -The OECD reported that sales increased for non-store retailers by 14.8 percent during the pandemic, indicating a significant shift in consumer behavior towards online shopping.

  • What was the government's response in Malaysia to slow down the transmission rate of COVID-19?

    -The Malaysian government initiated a movement control order (MCO) on March 18th, 2020, to control the spread of the virus.

  • How many online grocery delivery services are there in Malaysia according to the cloak report?

    -According to the cloak report, there are 14 online grocery delivery services in Malaysia.

  • Which four online grocery stores were selected for the study presented in the script?

    -The four online grocery stores selected for the study are Lotus, Giant, Grocer Migosa, and Shopping Supermarket.

  • What is the Simplex method and why was it chosen for this study?

    -The Simplex method is a popular and successful mathematical optimization technique used for solving linear programs, specifically for maximization and minimization problems with a set of linear equalities and inequalities. It was chosen for this study due to its effectiveness in handling such problems.

  • What are the two perspectives from which the problem statement is viewed in the script?

    -The problem statement is viewed from both the consumer's point of view, who wants the cheapest and highest quality goods with the lowest delivery fee, and the business owner's perspective, who aims to maximize revenue by encouraging more purchases, potentially through lowering prices and adjusting delivery fees.

  • What are the three objectives of the study as outlined in the script?

    -The three objectives are: 1) to formulate the minimum objective function for the total cost of goods and delivery fees, 2) to apply the optimization method to determine which store should be chosen for purchasing items, and 3) to calculate the total minimum cost for the best combination of goods and delivery fees for a consumer.

  • What assumptions were made regarding the stability of the cost of goods and delivery fees in the study?

    -The assumptions made were that the cost of goods and delivery fees are stable over time and that the uncertainty in these costs is low.

  • How was the data for the study collected and what does it include?

    -The data was collected through market research conducted on May 22nd, focusing on four famous online grocery stores and scoping out seven items with their respective prices and delivery fees.

  • What software was used to apply the Simplex method in the project, and how was the data inputted?

    -Octave was used to apply the Simplex method. The coefficients of the objective function were inputted into 'c', the coefficients of constraints into 'a', the right-hand side of constraints into 'b', and the lower and upper bounds of the variables into 'lb' and 'ub', respectively. The 'c-type' and 'v-type' were set according to the constraints and variable types, and 'sense' was set to one for minimization.

  • What was the outcome of applying the Simplex method to the optimization problem presented in the script?

    -The outcome showed that the total minimum cost for the consumer, based on the optimization, was 139.56 Ringgit, which was lower than purchasing all items from a single store. It also identified which items should be purchased from which stores to achieve this minimum cost.

  • What suggestions were made for future enhancements of the study?

    -Suggestions for future enhancements include building a robust recommendation system with more selection of items and stores, and factoring in delivery time, discount vouchers, and minimum spend for free delivery to reflect realistic logistical arrangements in stores.

Outlines

00:00

🛒 Introduction to the Simplex Method for Online Grocery Shopping

The video introduces the application of the Simplex method to minimize the total cost of goods and delivery fees in an online grocery store setting. The presenter, Juan Amira Valkis, sets the context by discussing the impact of the COVID-19 pandemic on the shift from physical to online retail, with a specific focus on Malaysia's movement control order. The study examines four prominent online grocery stores: Lotus, Giant, Grocer Migosa, and Shopping Supermarket. The Simplex method is chosen for its effectiveness in solving linear programming problems, including maximization and minimization with linear constraints. The goal is to find the optimal combination of purchases across these stores to minimize costs for consumers. The video outlines the objectives of the study, which include formulating a minimum cost function, applying the Simplex method to determine the best purchasing strategy, and calculating the total minimum cost for consumers.

05:03

📊 Data Collection and Model Assumptions

This paragraph delves into the data collection process and the assumptions made for the study. Market research was conducted on four renowned online grocery stores and seven items, with their respective prices and delivery fees listed. The assumptions include the stability of goods and delivery fees, the limitation of purchasing one unique item per store, and logistical factors such as delivery radius and time. The system diagram is introduced to visualize the decision-making process, with binary variables representing whether an item is chosen from a particular store and delivery cost incurred. The objective function is defined to minimize the total cost of goods and delivery fees, with constraints ensuring that only one unique item is purchased from each store and that at least one item is chosen from a particular store.

10:03

🔢 Application of the Simplex Method and Optimization Results

The presenter, Alan, explains the application of the Simplex method to solve the minimization problem using Octave software. The coefficients of the objective function and constraints are inputted, along with the bounds and types of constraints. The method is applied to determine the optimal purchasing strategy from the selected online stores. The results show that only two stores, Lotus and Shopping Supermarket, are chosen for purchasing all specified items, incurring two delivery costs. The comparison of total costs reveals that the optimized combination yields a lower cost than purchasing from a single store. The study successfully achieves its objectives by formulating the objective function, applying the Simplex method to determine the best store for each item, and obtaining a total minimum cost of 139.56 Ringgit for the consumer. The video concludes with suggestions for future enhancements, such as developing a robust recommendation system and incorporating additional logistical factors into the model.

Mindmap

Keywords

💡Simplex method

The Simplex method is a popular mathematical programming technique used for solving linear programming problems, particularly those involving the maximization or minimization of a function subject to constraints. In the context of the video, it is utilized to minimize the total cost of goods and delivery fees for consumers shopping at online grocery stores. The method is highlighted as one of the most successful due to its ability to handle a set of linear equalities and inequalities, as mentioned when discussing its application in profit optimization for a bakery industry.

💡Online grocery store

An online grocery store is a virtual marketplace where consumers can purchase groceries and have them delivered to their homes. The video discusses the shift in consumer behavior towards online grocery shopping due to the COVID-19 pandemic, leading to an increase in demand for e-commerce platforms. The study focuses on optimizing the cost of shopping at such stores, with specific examples given from four Malaysian online grocery stores: Lotus, Giant, Grocer Migosa, and Shopping Supermarket.

💡COVID-19

COVID-19, also known as coronavirus 19, is the disease caused by the SARS-CoV-2 virus. The pandemic has had a significant impact on consumer behavior, as referenced in the video, leading to a surge in online shopping, including online grocery stores. The shift to online platforms was a response to the movement control order (MCO) implemented by the Malaysian government to slow down the virus transmission.

💡E-commerce

E-commerce refers to the buying and selling of goods or services using the internet, and the transfer of money and data to execute these transactions. The video mentions a report by the Organization for Economic Cooperation and Development (OECD) indicating a 14.8 percent increase in sales for non-store retailers during the pandemic, underscoring the importance of e-commerce in the new retail landscape.

💡Optimization

Optimization in this context refers to the process of making the best or most effective use of a situation or resource. The video's main theme revolves around using the Simplex method to optimize the cost for consumers when purchasing from multiple online grocery stores. The goal is to determine the most cost-effective combination of goods and delivery fees, ensuring consumers get the lowest combined costs.

💡Linear programming

Linear programming is a mathematical technique used to determine the best outcome in a given mathematical model whose requirements are represented by linear relationships. The video discusses the Simplex method as a popular approach within linear programming for solving problems with a set of linear constraints, such as finding the minimum total cost in an online grocery shopping scenario.

💡Consumer perspective

The consumer perspective is the viewpoint of the end-user in any business or economic activity. In the video, the problem is examined from the consumer's point of view, where the aim is to buy the cheapest, highest-quality goods with the lowest delivery fees. This perspective is crucial for formulating the objective function that seeks to minimize the total cost for consumers.

💡Business owner's perspective

The business owner's perspective focuses on the goals and strategies of the sellers or service providers. In the context of the video, the business owner's goal is to maximize revenue by encouraging more consumers to purchase more items, which may involve adjusting prices and delivery fees. This perspective is considered when developing a model to balance consumer savings with business revenue.

💡Objective function

An objective function is a mathematical expression that an optimization problem aims to either maximize or minimize. In the video, the objective function is formulated to represent the total cost of goods and delivery fees that need to be minimized. The function guides the application of the Simplex method to find the optimal solution for the consumer.

💡Constraints

Constraints in optimization problems are limitations or conditions that must be satisfied by the solution. The video mentions constraints such as the consumer being able to purchase only one unique item from each of the four online stores and the binary nature of decision variables (0 or 1), which represent whether an item is chosen from a particular store.

💡Delivery fee

A delivery fee is a charge made by a seller for the shipping and delivery of goods to the buyer. The video discusses the importance of minimizing not only the cost of goods but also the delivery fees in the total cost optimization process. The study aims to find the optimal combination of items and stores that results in the lowest delivery fees, in addition to the cost of the items themselves.

Highlights

Introduction to the Simplex method for minimizing total cost in online grocery shopping.

Shift in consumer demand from physical stores to e-commerce due to COVID-19.

OECD reports a 14.8% increase in sales for non-store retailers during the pandemic.

Malaysian government's implementation of Movement Control Order (MCO) on March 18, 2020.

Study focuses on four major online grocery stores in Malaysia: Lotus, Giant, Grocer Migosa, and Shopping Supermarket.

Utilization of the Simplex method for numerical optimization to determine the best deal for consumers.

Previous application of Simplex method in profit optimization for the home industry bakery.

Data set for the study is small to simplify computation in solving the optimization problem.

Problem statement from both consumer and business owner perspectives.

Objective to formulate a minimum objective function for total cost of goods and delivery fees.

Application of the Simplex method to determine the best store for purchasing items.

Calculation of the total minimum cost for consumers combining goods and delivery fees.

Market research conducted on four online grocery stores and seven items with their respective prices and delivery fees.

Assumptions made for the study regarding the stability of goods and delivery fees, and consumer purchasing behavior.

System diagram visualization of the model with decision variables for purchasing and delivery costs.

Use of Octave for inputting coefficients and constraints to apply the Simplex method.

Optimization outcome showing the value of each variable and the minimum of the objective function.

Comparison of total cost for purchasing all items in a single store versus a combination of selected stores.

Achievement of the study's objectives: formulating the objective function, applying the Simplex method, and obtaining the total minimum cost.

Recommendation for future enhancements including a robust recommendation system and factoring in logistical arrangements.

Transcripts

play00:00

greetings Dr Lim today group view of

play00:04

seven is excited to bring you on a

play00:07

journey in discovering more on the usage

play00:10

of Simplex method to minimize the total

play00:14

cost of goods and delivery fee in an

play00:17

online grocery store setting so stay

play00:20

tuned for more stories

play00:23

hi everyone my name is Juan Amira valkis

play00:26

and I will be presenting the

play00:27

introduction problem statement and

play00:29

objectives in early 2019 the entire

play00:32

world came into a home due to the

play00:34

emergence of an outbreak known as

play00:36

coronavirus 19 or covet 19. this caused

play00:40

a shift in demand from brick and mortar

play00:42

retail to e-commerce websites the

play00:44

organization for economic cooperation

play00:46

and development or oecd reported that

play00:49

sales have increased for non-store

play00:51

retailers by 14.8 percent during this

play00:53

time

play00:54

in Malaysia the government initiated a

play00:57

movement control order MCO on the 18th

play01:00

of March 2020 to slow down transmission

play01:03

rate of covet 19. however Malaysians

play01:06

preferred to do grocery shopping online

play01:08

compared to in-store the online travel

play01:10

booking website cloak reported that

play01:13

there are 14 online grocery grocery

play01:15

delivery services in Malaysia and for

play01:18

the purpose of this study we will focus

play01:19

on four stars which are Lotus Giant

play01:22

grocer migosa and shopping Supermarket

play01:24

with numerical optimization we could

play01:27

figure out the best deal for consumers

play01:28

that are purchasing several items from

play01:30

different online grocery stores at the

play01:32

same time based on its price and

play01:34

delivery fee for this study we will

play01:37

utilize the Simplex method reason being

play01:40

Simplex method is one of the most

play01:42

popular and successful method in solving

play01:44

linear programs specifically

play01:46

maximization and minimization of a

play01:49

problem with a set of linear equalities

play01:52

and inequalities constraints a sample

play01:55

case of simplest method is a study by

play01:58

Angora at Al in 2019 where they applied

play02:02

Simplex method for profit optimization

play02:04

on the home industry Bakery in sukharama

play02:07

Banda lampong

play02:09

the data set utilized for this study

play02:12

will be small which means it will make

play02:14

computation less complex in solving the

play02:16

optimization problem

play02:19

for the problem statement we can look at

play02:21

it in two perspectives which is in the

play02:23

consumer's point of view and the

play02:25

business owner's perspective

play02:28

as the consumer they would want to buy

play02:30

the cheapest but highest quality Goods

play02:32

along with having the lowest fee for

play02:34

delivery but if you're the business

play02:36

owner the goal is to ensure that more

play02:38

items are purchased by more consumers

play02:40

which would sometimes lead to the

play02:42

potential of lowering of prices

play02:45

of the items add delivery fee to

play02:47

maximize the revenue instead therefore a

play02:50

stable model is needed to represent the

play02:53

minimization of total cost from both

play02:55

costs of goods and delivery fee so that

play02:57

we can allow the consumer to get the

play02:59

lowest combined costs across the four

play03:02

stores mentioned before in the

play03:04

introduction

play03:06

the objectives of this study are as

play03:08

below number one to formulate the

play03:11

minimum objective function for total

play03:13

cost of goods and delivery fees we need

play03:15

to get the minimum objective function

play03:17

before we can move to objective 2 which

play03:19

is to apply optimization method in

play03:22

determining which store should the items

play03:24

be purchased from so we will apply the

play03:27

Simplex method to determine which store

play03:29

provides the best price for the items

play03:32

next the third objective is to calculate

play03:36

the total minimum cost from both cost of

play03:38

goods and delivery fees for a consumer

play03:40

we need to get the total minimum cost

play03:43

for the best combination of cost of

play03:45

goods and delivery fees for a consumer

play03:49

hello again doctor

play03:51

as I didn't get the chance to introduce

play03:53

myself earlier here goes my name is anik

play03:56

and I will briefly describe about the

play04:00

data we acquired to ensure consistency

play04:03

we decided to do a market research

play04:06

together on May the 22nd we scoped out

play04:10

four Famous online grocery stores which

play04:13

is lotus Jaya grocer my grocer and

play04:16

shopping Supermarket along with it will

play04:19

be the scoping of seven items as you see

play04:22

on the left side of the table with their

play04:24

respective prices on the right as well

play04:27

as the delivery fees at the most bottom

play04:29

of the table the next sections will

play04:33

further describe on the usage of this

play04:35

sample data to help a consumer make

play04:38

smarter decisions which is to save his

play04:42

or her total spending via cost

play04:44

optimization

play04:46

the obsessing function is to minimize

play04:49

the cost of the goods and minimize the

play04:52

total delivery fee so in the

play04:55

formula the formal part is to minimizing

play04:59

the total cost of the food based on

play05:02

seven items across four online grocery

play05:05

store and the later part is to remind

play05:09

the total delivery fee for four online

play05:12

grocery store so

play05:14

formula p i then is the price of the

play05:18

item from store j and x i j is the

play05:22

binary relation variable on whether I

play05:25

thought I will be chosen from store J

play05:32

meaning the binary decision variable on

play05:35

whether the university is in code or at

play05:38

storage

play05:41

the assumptions are as below first the

play05:44

uncertainty of the cause of goods and

play05:47

delivery fee is more meaning the cost of

play05:50

goods and they will see are quite stable

play05:53

across the time and the uncertainty of

play05:56

the four online grocery store is more

play05:58

also

play05:59

the consumer can only purchase one

play06:02

unique item each from a list of four

play06:04

stores meaning if I want to buy 30X I

play06:08

just only can buy the ads or

play06:12

in one of the four shots so next the

play06:16

distance from each grocery store to a

play06:19

consumable destination is the middle not

play06:21

sure the radius 15 5 km and the time

play06:25

also delivery is within 90 hours no free

play06:29

shipping conditions for minimal spend in

play06:32

these problems and no delivery discount

play06:35

voucher apply

play06:37

the system diagram of the model was

play06:41

visualized so the y1 is the decision

play06:44

variable whether the consumers will buy

play06:48

in this store

play06:49

or the Y2 y314 apply the same whether

play06:53

the consumer should buy in the store and

play06:56

X is a decision about whether he needs

play07:00

or he will buy the item in this shop or

play07:04

item in this shop item in this shop so

play07:10

s114 only uh equal to one meaning

play07:15

the consumer only can buy the item in

play07:19

one of the four shops

play07:24

the goal is to minimize the objective

play07:27

function as follow so we plug in the

play07:29

price into this minimization p i j s i j

play07:33

plus djyj so I think

play07:36

90 is the price for the item one in shop

play07:41

1 and 299 D is the item one in Shop 2 29

play07:46

19 is uh item one in stock 3 and Etc so

play07:51

uh and here over here the Y one is the

play07:55

very cost for the short one and this is

play07:58

the world course for the shop to

play08:00

delivery cost for shop 3 and it will

play08:02

cost for shop for so this minimize the

play08:07

objecting function is subtract to four

play08:09

constraints

play08:11

first a consumer only can purchase one

play08:14

unique item each from a list of four

play08:16

online for free store so summation of

play08:20

the division variable

play08:22

of

play08:23

the four four one item or four online

play08:27

grocery store equal to one only so I

play08:30

thought this wearable will be one and

play08:32

other will be zero and this apply to

play08:35

other

play08:36

item and next topic you will receive

play08:40

will be encouraged in at least one item

play08:42

is chosen from a particular store

play08:45

if I choose a item a short one so we

play08:51

will see will be just about short one

play08:54

well I chose the item to shop so the

play08:59

very thing from the white so the shop

play09:03

two will be cut also

play09:06

next stop

play09:08

x i j is a digital variable whether I

play09:11

choose the item so sij is either 0 or 1

play09:16

0 is when the item is not chosen well

play09:20

one is running the item is chosen

play09:23

last but not least YJ is study whether

play09:27

the delivery cost incurred in the shop

play09:31

what shop J and also zero meaning the

play09:35

delivery cost is not incurred and one is

play09:39

meaning that the very cost of the stock

play09:41

is incurred so where I equal to one to

play09:44

seven means foreign

play09:53

hi doctor and all my friends I'm calling

play09:56

you may call me Alan I'll take over the

play09:58

presentation with the topic of Simplex

play09:59

method so since we are dealing with

play10:01

constraint problem we would like to

play10:03

apply Simplex method to solve the

play10:04

problem above in minimizing the cost

play10:06

based on objective function instead of

play10:08

using manual calculation octave is used

play10:10

in this project

play10:12

in this case we will input the

play10:13

coefficients of the objective function

play10:15

to C then the coefficients of

play10:18

constraints are input into a and the

play10:20

right hand side of the constraints which

play10:21

is the bound are input into B

play10:23

next since there is either value 0 or 1

play10:26

for all the variables zero is input into

play10:28

lb which is a lower bound and one is

play10:31

input into u b which is the upper bound

play10:33

of the variable

play10:34

c-type indicates whether the constraint

play10:36

is upper bound lower bound or equality

play10:38

since the first five constraints are

play10:40

equality and last four constraints are

play10:41

up amount hence we input 5s and 4u for C

play10:44

type we input 32 I into V type since all

play10:48

the 32 variables are integers lastly we

play10:50

set sense as one since we are doing

play10:52

minimization after this we run glpt with

play10:55

all Dimension parameters we can observe

play10:57

in the outcome the value of each

play10:59

variable in xopt after optimization and

play11:02

the minimum of objective function is

play11:04

139.56

play11:07

this table contains the value of each

play11:09

variable in xopt shown in the last slide

play11:12

it shows the online store to be chosen

play11:15

to purchase the specified item after

play11:16

optimization the value 1 indicates that

play11:19

the item is purchased in particular

play11:21

store while value 0 means the opposite

play11:23

we can see from the table there there

play11:25

are only two online store chosen in

play11:27

total to purchase all the specified

play11:28

items which are Lotus and shopping

play11:31

market as a result there are two

play11:33

delivery costs incurred in this grocery

play11:35

purchase

play11:37

this table illustrates the comparison

play11:39

between total cost of purchasing all

play11:40

items in single store and combination of

play11:43

items purchased from selected stores

play11:45

it can be observed that delivery costs

play11:47

with two or nice or Lotus and shopping

play11:49

Supermarket are incurred if you purchase

play11:50

combination of item based on the

play11:52

optimization outcome they are eight

play11:54

Ringgit and 450 which is 1250 in total

play11:59

after summing up the total item cost at

play12:01

income delivery cost uh the lower score

play12:04

for the lowest cost of purchasing

play12:06

139 Ringgit 56 Cent is obtained compared

play12:10

to purchasing all specified items in

play12:12

each single store on the contrary buying

play12:15

all items in my grocer will incur

play12:18

highest purchasing cost which is 179

play12:21

Ringgit and 65

play12:24

in a nutshell we fulfill our three

play12:27

objectives firstly to formulate the

play12:30

objective function in minimizing the

play12:33

total cost of goods and delivery fee

play12:36

based on this formula secondly with all

play12:40

valid assumptions made an identification

play12:42

of constraints we used Simplex method to

play12:46

determine which store should items be

play12:49

purchased from and lastly via

play12:52

optimization we managed to obtain a

play12:55

total minimum cost of 139 Ringgit and 56

play12:59

cents for the consumer even lower than

play13:02

purchasing all items from a single store

play13:04

hands down Simplex method is the best

play13:08

optimization method due to its

play13:10

Simplicity and cost efficiency because

play13:13

every penny matters to a consumer

play13:18

however point to be noted in every study

play13:23

there's always room for enhancement

play13:25

firstly we could consider extending our

play13:29

work to build a robust recommendation

play13:32

system for consumers with more selection

play13:35

of items and stores the lowest possible

play13:38

combination of prices when increase in

play13:40

demand for online grocery shopping will

play13:43

provide a win-win situation for both

play13:46

consumers and business owners also apart

play13:50

from just a big standard delivery fee

play13:52

delivery time discount vouchers and

play13:55

minimum amount spent for free delivery

play13:58

should also be factored into the

play14:00

optimization model to reflect realistic

play14:03

logistical Arrangements in stores

play14:06

that is all for the presentation once

play14:09

again my name is anik together with

play14:11

Amira xiaohan and Ellen

play14:14

signing off

Rate This

5.0 / 5 (0 votes)

Related Tags
Simplex MethodCost OptimizationOnline GroceryCOVID-19E-commerceConsumer SavingsSupply ChainRetail IndustryData AnalysisLogistics Efficiency