Excel Solver - Alldifferent Logic

jmcginnis336

New Member
Joined
Dec 4, 2014
Messages
2
Hello All,

Background
I have what I think is a simple route schedule problem. I need to create a delivery schedule that enables my delivery truck to always start "Plant 1". The delivery truck needs to take the shortest route amongst the other plants, and finish back at 'Plant 1".

Issue
1)Within the solver constraints, I'm not sure who to create the constraint that makes sure the delivery truck always starts at Plant 1
2) Not sure if I need to adjust my Solver Parameters? Every time I run the model I get a different optimal route, but the miles are reduce the same amount
1ABCDEFGHIJ
2Distance Between All Locations
3
4Plant 1Plant 2Plant 3Plant 4Plant 5
5Plant 10751820
6Plant 27021113
7Plant 35201315
8Plant 418111302
9Plant 520131520
10
11
12
13Actual Trip OrderLocation Row In ChartLocation in the Row (Use the Index function to look up that location)Distance from previous location
141st Location Visited1 Plant 1 20
152nd Location Visited2 Plant 2 7
163rd Location Visited3 Plant 3 2
174th Location Visited4 Plant 4 13
185th Location Visited5 Plant 5 2
Total Miles (Baseline)Total Miles (Minimize)
4444

<colgroup><col style="width: 23pt; mso-width-source: userset; mso-width-alt: 1133;" width="31"> <col style="width: 155pt; mso-width-source: userset; mso-width-alt: 7533;" width="206"> <col style="width: 56pt; mso-width-source: userset; mso-width-alt: 2742;" span="2" width="75"> <col style="width: 65pt; mso-width-source: userset; mso-width-alt: 3181;" width="87"> <col style="width: 56pt; mso-width-source: userset; mso-width-alt: 2742;" span="2" width="75"> <col style="width: 76pt; mso-width-source: userset; mso-width-alt: 3693;" width="101"> <col style="width: 56pt; mso-width-source: userset; mso-width-alt: 2742;" span="3" width="75"> <tbody>
</tbody>

<tbody>
</tbody>
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().

Forum statistics

Threads
1,215,219
Messages
6,123,680
Members
449,116
Latest member
HypnoFant

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