Inspiration

We liked the challenge of trying to write an algorithm and then keep improving its efficiency or to keep adding more criteria to work with, the ocado challenge looked fun and something that we could work on for the full 24hours. We were initially completely stumped on how to even start the challenge for a good hour, (neither of us had used python for about three years).

We solved this by defining an object class for the Lorrys and have them randomly delivering between the delivery points to try and a route which used the least fuel. We had planned to fully optimise the solution using a genetic algorithm but we ran out of time and we unable to do so, instead we chose the most efficient of the thousands of iterations we ran.

We're proud to have submitted a solution to this problem, despite knowing it won't be the most efficient one. The whole experience of taking part in such a big and fun event was incredibly rewarding and we were happy to be a part of it!

Built With

Share this project:

Updates