This is the problem: there are 1000+ companies for which their garbage needs to be…
- User
This is the problem: there are 1000+ companies for which their garbage needs to be collected. For each company we know:
- how many times a week they want their garbage collected
- how much garbage needs to be picked up per visit (in the garbage truck we compress the garbage so it takes up 20% of its original volume)
- the amount of time needed to collect their garbage per visit
- their location
- the distance to every other company. This distance is assymetric, and we have a distance matrix to represent this.
We have two garbage trucks available, both of which have a capacity of twenty-thousand liters (after compression, so this corresponds to one hundred thousand liters before compression). Compression happens instantly. In between visits we can drive to the garbage dump at a given location (of which the distance to every company is known). Unloading the garbage at this location costs exactly thirty minutes (independent of how much garbage was in the truck), and both trucks can unload at the same time. We have the trucks available from monday until friday from 6 am until 6 pm. Outside of these times the trucks need to be empty in the garbage dump location (so we can start unloading at 5:30 pm at the latest). A company can want their garbage collected anywhere from once a week to four times a week. These collections need to be spread out. If a company wants their garbage collected once a week we can pick any day of the week to pick it up. If they want it twice, we can either pick it up on mondays and thursdays or on tuesdays and fridays. If they want it three times we have to pick it up on mondays wednesdays and fridays. If they want it picked up four times a week we have free choice of any four days out of monday/tuesday/wednesday/thursday/friday. Our goal is to minimize costs. These costs are equal to the total time spent by the trucks doing things (so driving, collecting and unloading) minus any penalties: when we don't serve a company well, we get a penalty equal to three times to total time it would take to collect their garbage on-site. We want to use some form of iterated local search to reach this goal.
What kind of data structure would be fitting to represent a possible "solution" to our problem?
- Assistant