Can excel solver do this or do I need another way to solve this?

rongil20

New Member
Joined
Jun 23, 2015
Messages
12
I want the lowest numbers of workers to deliver the following

Constraints are

Workers need to work a min of 4 hours and max of 6 hours
Workers need at least 20 hours a week

It takes all workers 30 mins to reach the warehouse and prep the items. It then takes 30 mins to travel from the warehouse to the customer. Each delivery takes 30 mins
Let's also assume there are no returns journeys.

Workers can start a shift at 8am

Please let me know if you have any other questions

Table of the delivery schedule below

deliveries.xlsx
OPQRSTUV
6Day of Week
7MondayTuesdayWednesdayThursdayFridaySaturday
8Time09:00-09:301186861
909:30-10:00325331
1010:00-10:30423121
1110:30-11:00312021
1211:00-11:30233351
1311:30-12:00324211
1412:00-12:30333231
1512:30-13:00211130
1613:00-13:30311311
1713:30-14:00212230
1814:00-14:30122110
1914:30-15:00212120
2015:00-15:30222120
2115:30-16:00211130
2216:00-16:30211110
2316:30-17:00010100
2417:00-17:30110100
2517:30-18:00001000
Sheet1
Cell Formulas
RangeFormula
Q8:V25Q8=D8*200
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
I suspect you can build a series of equations that will solve your problem but you haven’t given enough information at the moment.

According to your rules a worker has between 3 and 5 hours actually making deliveries a day , if each delivery takes 30 minutes means they make 6 to 10 deliveries a day

Since workers must work 20 hours a weeks with a maximum of 6 hours, this means they must work on at least 4 days ( 3 * 6 = 18). So they work on 4 , 5 or 6 days which means a minimum of 24 deliveries and a maximum of 60

You have given time slots for all of the deliveries however you haven’t told us how to interpret these in allocating them to workers. I could assume that with 11 deliveries between 9 and 9:30 on Monday and each one taking 30 minutes that this would require 11 workers, however there are only 35 deliveries to make during the rest of the day so that is insufficient to employ them all ( 11 * 6=66), so there is no solution that fits your rules. So how do you want to interpret your schedule? Can those 11 be delivered at any time that day, in other words do we interpret it as 46 deliveries on Monday.

It is possible there may be more than one solution, also it is possible there may not be a solution
 
Last edited:
Upvote 0
A further thought:
If t = total deliveries / week

The minimum number of workers must be roundup(t/ 60) and the maximum rounddown( t/24)
 
Upvote 0
I suspect you can build a series of equations that will solve your problem but you haven’t given enough information at the moment.

According to your rules a worker has between 3 and 5 hours actually making deliveries a day , if each delivery takes 30 minutes means they make 6 to 10 deliveries a day

Since workers must work 20 hours a weeks with a maximum of 6 hours, this means they must work on at least 4 days ( 3 * 6 = 18). So they work on 4 , 5 or 6 days which means a minimum of 24 deliveries and a maximum of 60

You have given time slots for all of the deliveries however you haven’t told us how to interpret these in allocating them to workers. I could assume that with 11 deliveries between 9 and 9:30 on Monday and each one taking 30 minutes that this would require 11 workers, however there are only 35 deliveries to make during the rest of the day so that is insufficient to employ them all ( 11 * 6=66), so there is no solution that fits your rules. So how do you want to interpret your schedule? Can those 11 be delivered at any time that day, in other words do we interpret it as 46 deliveries on Monday.

It is possible there may be more than one solution, also it is possible there may not be a solution
Thanks for replying.

So those 11 deliveries need to be made by 9am.

I see your point though, and the actual constraint surrounding the 20 hours rule says this

“Our aim is to give workers at least 20 hours work a week”

So this constraint seems like a nice to have rather than a must have.

Also I noticed that I said they have to work 20 hours a week initially when I should have said at least 20 hours so I will edit the original post. Apologies for that.

I hope the relaxed 20 hour constraint helps solve this
 
Upvote 0
According to you rules you have got quite a number of constraints coming in, since a worker effectively starts delivering at 8:30 the maximum number of deliveries he can make by 9:30 is 2, so with 11 deliveries to make by 9:30 you need at least 6 workers. the total number of deliveries on Monday is 46. which given the maximum any one can do is 10 and the minimum is 6 means between 5 and 7 workers are needed, so this narrows it down to 6 or 7. However I can see that you have deliveries scheduled for the afternoon which will be after the finish time of the 8am shift which means you must have 7 workers on Monday.
these are exactly the sort of constraints I am thinking of utilising to whittle down the possible combinations such that it is easy to test each one.
 
Upvote 0
According to you rules you have got quite a number of constraints coming in, since a worker effectively starts delivering at 8:30 the maximum number of deliveries he can make by 9:30 is 2, so with 11 deliveries to make by 9:30 you need at least 6 workers. the total number of deliveries on Monday is 46. which given the maximum any one can do is 10 and the minimum is 6 means between 5 and 7 workers are needed, so this narrows it down to 6 or 7. However I can see that you have deliveries scheduled for the afternoon which will be after the finish time of the 8am shift which means you must have 7 workers on Monday.
these are exactly the sort of constraints I am thinking of utilising to whittle down the possible combinations such that it is easy to test each one.
Thanks, I actually read the 11 at 9am differently though. I think we need 11 workers for the very first delivery slot and then a lot then will be sitting idle until their 4hour shift ends.

Would you know how to set up the sheet to solve this?
 
Upvote 0
Dear Rongil20
I came to this post through similar post section. I have the same question and I am wondering if you have solved your question with solver or not? Althogh the post is little old, but let me know if ypu were able to slove your question with solver.
 
Upvote 0

Forum statistics

Threads
1,214,989
Messages
6,122,622
Members
449,093
Latest member
catterz66

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