• Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office
AnonyViet - English Version
  • Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office
No Result
View All Result
  • Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office
No Result
View All Result
AnonyViet - English Version
No Result
View All Result

Lesson 267: The problem of finding the shortest path in Excel

AnonyViet by AnonyViet
January 25, 2023
in Office
0

This article will guide you to calculate the short path pressed in Excel.

Join the channel Telegram of the AnonyViet 👉 Link 👈

Find the shortest path

Use solveri in Excel to find the shortest path from node S to node T in an undirected graph. The points in the graph are called nodes (S, A, B, C, D, E and T). The lines in the graph are called arcs (SA, SB, SC, AC, etc.).

Model building

The model we will deal with looks like this in Excel

Lesson 267: The problem of finding the shortest path in Excel

1. To construct this shortest path problem, we must answer the following three questions.

a. What decisions will be made? For this problem, we need Excel to find if an arc lies on the shortest path (Yes=1, No=0). For example, if SB is part of the shortest path, cell F5 equals 1. Otherwise, cell F5 equals 0.

b. What are the constraints on these decisions? The Net Flow (Net Flow) of each node must equal Supply/Demand. Node S should have only one egress arc (Net Flow = 1). Node T should have only one running arc (Net Flow = -1). All other nodes must have an egress and an ingress arc if the node is on the shortest path (Net Flow=0) or no flow (Net Flow=0).

c. What are the overall performance metrics for these decisions? The overall metric of performance is the total distance of the shortest path, so the goal is to minimize this quantity.

2. To make the model easier to understand

Lesson 267: The problem of finding the shortest path in Excel 13

3. Add function

Lesson 267: The problem of finding the shortest path in Excel 14

Trial and error

1. For example, the SBET path has a total distance of 16.

Lesson 267: The problem of finding the shortest path in Excel 15

Solve the model

1. On the Data panel select Solver

Lesson 267: The problem of finding the shortest path in Excel 16

Enter the parameters. The result should match the figure below.

Lesson 267: The problem of finding the shortest path in Excel 17

2. Import TotalDistance for Objective.

3. Click Min.

4. Enter Go for Changing Variable Cells.

5. Click Add

Lesson 267: The problem of finding the shortest path in Excel 18

6. Select ‘Make Unconstrained Variables Non-Negative’ and select ‘Simplex LP’.

7. Finally click Solve.

Result

Lesson 267: The problem of finding the shortest path in Excel 19

Optimal solution:

Lesson 267: The problem of finding the shortest path in Excel 20

Conclusion: SADCT is the shortest path with a total distance of 11.

In addition, you can also view many other excel articles here.

The article achieved: 5/5 – (100 votes)

Tags: ExcelfindingLessonpathproblemshortest
Previous Post

Google search tips for accurate results

Next Post

How to create a V2ray Server Using 4G Data for free

AnonyViet

AnonyViet

Related Posts

Automatically check and correct spelling errors on Google Docs
Office

Automatically check and correct spelling errors on Google Docs

February 23, 2025
Instructions for downloading Google Docs files easily on any device
Office

Instructions for downloading Google Docs files easily on any device

December 18, 2024
Launching AI image creation feature on Google Docs
Office

Launching AI image creation feature on Google Docs

November 20, 2024
Instructions for using Google Docs without internet
Office

Instructions for using Google Docs without internet

November 2, 2024
Share the link to the sample file to create QR codes in Google Sheets
Office

Share the link to the sample file to create QR codes in Google Sheets

September 30, 2024
Proton Docs: Google Docs Alternative with End-to-End Encryption
Office

Proton Docs: Google Docs Alternative with End-to-End Encryption

September 21, 2024
Next Post
How to create a V2ray Server Using 4G Data for free

How to create a V2ray Server Using 4G Data for free

0 0 votes
Article Rating
Subscribe
Login
Notify of
guest

guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments

Recent News

How to add application to your favorite bar

How to add application to your favorite bar

August 14, 2025
Wowhay.com – The door opens the world of modern knowledge and network culture

Wowhay.com – The door opens the world of modern knowledge and network culture

August 13, 2025
Instructions on how to fix Screen Time Limited Reached on RoBlox

Instructions on how to fix Screen Time Limited Reached on RoBlox

August 13, 2025
How to install GPT-suns on who do not need the Internet

How to install GPT-suns on who do not need the Internet

August 12, 2025
How to add application to your favorite bar

How to add application to your favorite bar

August 14, 2025
Wowhay.com – The door opens the world of modern knowledge and network culture

Wowhay.com – The door opens the world of modern knowledge and network culture

August 13, 2025
Instructions on how to fix Screen Time Limited Reached on RoBlox

Instructions on how to fix Screen Time Limited Reached on RoBlox

August 13, 2025
AnonyViet - English Version

AnonyViet

AnonyViet is a website share knowledge that you have never learned in school!

We are ready to welcome your comments, as well as your articles sent to AnonyViet.

Follow Us

Contact:

Email: anonyviet.com[@]gmail.com

Main Website: https://anonyviet.com

Recent News

How to add application to your favorite bar

How to add application to your favorite bar

August 14, 2025
Wowhay.com – The door opens the world of modern knowledge and network culture

Wowhay.com – The door opens the world of modern knowledge and network culture

August 13, 2025
  • Home
  • Home 2
  • Home 3
  • Home 4
  • Home 5
  • Home 6
  • Next Dest Page
  • Sample Page

©2024 AnonyVietFor Knowledge kqxs hôm nay xem phim miễn phí mm88 8XBET mm88 trang chủ new88

No Result
View All Result
  • Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office

©2024 AnonyVietFor Knowledge kqxs hôm nay xem phim miễn phí mm88 8XBET mm88 trang chủ new88

wpDiscuz
0
0
Would love your thoughts, please comment.x
()
x
| Reply