• 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

Instructions on how to hide formulas in Excel to secure data
Office

Instructions on how to hide formulas in Excel to secure data

February 6, 2026
Top who creates the most beautiful presentation slide today
Office

Top who creates the most beautiful presentation slide today

September 23, 2025
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
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

Windows can now run Linux applications

Windows can now run Linux applications

March 17, 2026
How to install extension to remind office workers to drink water

How to install extension to remind office workers to drink water

March 17, 2026
Why are iPhones and MacBooks still the number 1 “weapons” of the technology world?

Why are iPhones and MacBooks still the number 1 “weapons” of the technology world?

March 16, 2026
New features of Windows 10 21H1 are coming soon

New features of Windows 10 21H1 are coming soon

March 16, 2026
Windows can now run Linux applications

Windows can now run Linux applications

March 17, 2026
How to install extension to remind office workers to drink water

How to install extension to remind office workers to drink water

March 17, 2026
Why are iPhones and MacBooks still the number 1 “weapons” of the technology world?

Why are iPhones and MacBooks still the number 1 “weapons” of the technology world?

March 16, 2026
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

Windows can now run Linux applications

Windows can now run Linux applications

March 17, 2026
How to install extension to remind office workers to drink water

How to install extension to remind office workers to drink water

March 17, 2026
No Result
View All Result
  • Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office

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