Question about shortest path problem using solvers

Napzz

New Member
Joined
May 22, 2022
Messages
8
I am trying to figure out the shortest path of going from location 1 to 10.
The path should start with location 1 and end with location 10 and go through each intermediate site (location 2-9) exactly once.
I have tried different ways (eg. Net flow etc...) to solve the problem but in vain.
I wonder what would be the method of solving it by using Simplex LP Solver/ Evolutionary Solver?

Below is the distance and my format so far.

x.xlsx
ABCDEFGHIJKLMNOPQRST
3
4
512345678910OriginDestDistanceFlow
610.0119.5176.0103.0191.5111.5148.0123.5124.0118.012119.5
72119.50.0141.5178.0166.5197.5172.0148.5184.0144.513176
83176.0141.50.0155.5110.5107.0161.5141.5128.0178.014103
94103.0178.0155.50.0144.0127.0189.0183.0132.5129.515191.5
105191.5166.5110.5144.00.0164.5151.0151.0121.5126.516111.5
116111.5197.5107.0127.0164.50.0153.0178.5175.0142.017148
127148.0172.0161.5189.0151.0153.00.0152.5183.5118.518123.5
138123.5148.5141.5183.0151.0178.5152.50.0167.0165.519124
149124.0184.0128.0132.5121.5175.0183.5167.00.0133.5110118
1510118.0144.5178.0129.5126.5142.0118.5165.5133.50.021119.5
1623141.5
1724178
1825166.5
1926197.5
2027172
2128148.5
2229184
23210144.5
2431176
2532141.5
2634155.5
2735110.5
2836107
2937161.5
3038141.5
3139128
32310178
3341103
3442178
3543155.5
3645144
3746127
3847189
3948183
4049132.5
41410129.5
4251191.5
4352166.5
4453110.5
4554144
4656164.5
4757151
4858151
4959121.5
50510126.5
5161111.5
5262197.5
5363107
5464127
5565164.5
5667153
5768178.5
5869175
59610142
6071148
6172172
6273161.5
6374189
6475151
6576153
6678152.5
6779183.5
68710118.5
6981123.5
7082148.5
7183141.5
7284183
7385151
7486178.5
7587152.5
7689167
77810165.5
7891124
7992184
8093128
8194132.5
8295121.5
8396175
8497183.5
8598167
86910133.5
87101118
88102144.5
89103178
90104129.5
91105126.5
92106142
93107118.5
94108165.5
95109133.5
96
97
98
Sheet1
Cell Formulas
RangeFormula
R6:R95R6=INDEX($B$6:$K$15,P6,Q6)
Named Ranges
NameRefers ToCells
Dest=Sheet1!$Q$6:$Q$95R6
Origin=Sheet1!$P$6:$P$95R6
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.

Forum statistics

Threads
1,215,331
Messages
6,124,311
Members
449,152
Latest member
PressEscape

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top