Toggle navigation OptaPlanner logo
  • Home
  • Download
  • Learn
    • Documentation
    • Videos
    • Slides
    • Training
    • Use cases
    • Testimonials and Case Studies
  • Get Help
  • Source
  • Services
  • @OptaPlanner Fb
Fork me on GitHub
  • OptaPlanner on Android
  • What is the fastest Garbage Collector in Java 8?

How good are human planners?

Wed 3 June 2015

Avatar Geoffrey De Smet

Geoffrey De Smet


Twitter Google+ GitHub

OptaPlanner lead

Are we smarter than machines when it comes to planning? Or can automated planning beat humans? I did an experiment with a group of innocent software engineers. These are the results.

Methodology

During my last 2 deep dive trainings, I asked the attendees to manually solve a simple planning problem, to introduce them to the difficulty of planning optimization.

I gave them a Traveling Salesman Problem (TSP) and asked them to connect the dots to find the shortest tour possible:

humanPlannersTspAssignmentBlog

They laughed. Isn’t this a kids game? Yes, except that the dots are not numbered and you’re not looking for Mickey Mouse.

Calculating a trip’s distance on paper is not practical, so they recreated their trips in the TSP example in OptaPlanner examples (only since 6.3.0.Beta1) to calculate the distance automatically. You can try this assignment yourself: right-click in the example’s UI to manually create a trip.

Their first attempt and their best attempt in a time window of almost 30 minutes was recorded. This is the optimal solution that we hoped to find:

humanPlannersTspGoalBlog

Results

No one found the optimal solution. Most people didn’t even find a near optimal solution (including me):

First attempt Best attempt

Optimal

674

674

Average human

752

732

Average human worse than optimal

12%

9%

On average, a human’s best result was 9% worse than the optimal solution. That means it roughly takes 9% more time and 9% more fuel to visit those locations. That’s expensive.

That’s just on a small problem with only 1 constraint! In the real world, other constraints need to be taken into account, such as vehicle capacity, real road networks and custom business constraints. All of these make it harder.

Below are the individual results:

humanPlannerTspResults
First attempt Best attempt

825

825

821

821

813

813

892

807

802

802

792

792

772

772

762

762

798

757

765

743

758

742

727

727

765

714

755

714

712

712

712

712

729

710

759

710

723

706

705

705

796

702

738

702

702

702

720

701

725

700

717

699

699

699

701

693

692

692

735

688

692

676

The best attempt of the best human was only 0.3% worse than optimal. That’s a very nice result. If I recall correctly, he did take longer than 30 minutes to find it. Was this skill or luck (or a combination of both)? The second best human (out of 31 people) was 2% worse than optimal.

With automated planning, such as OptaPlanner, we can beat the human results, in far less time. We can also scale to bigger datasets with more constraints. Does this mean we can get rid of the human planner?

Do we need a human planner?

We still need a human planner: not to search for the best plan, but to define what to search for. A search engine like Google can search the web, but it needs to be told what to look for. Similarly, any automated solver (including OptaPlanner) can optimize a planning, but it needs to be told what to optimize for.

In a non-trivial enterprise, defining what the business wants/needs to optimize, is not a simple task. It involves talking to the business departments and iteratively tweaking those constraints. We still need a human to that. And as the business changes (market changes, labor regulations changes, …​) those constraints will change too. Again, we need a human to watch over the planner. We also need someone to input the data and validate the results. Furthermore, the human needs to stay in control.

But ask yourself: Who of these 2 contenders will win a knowledge quiz?

  • The smartest person on the planet

  • An average graduate with internet and Wikipedia access

Similarly, who do you want to optimize the planning in your organization? Someone with or without automated planning assistance?


Comments Permalink
 tagged as insight tsp vehicle routing

Comments

  • OptaPlanner on Android
  • What is the fastest Garbage Collector in Java 8?
Atom News feed
Don't want to miss a single blog post?
Follow us on
  • T
  • Fb
Blog archive
Latest blog posts
  • Unit testing constraints with business input from Excel or LibreOffice
    Tue 21 August 2018
  • How to defeat gerrymandering and create fair elections
    Wed 25 July 2018
  • A giant leap forward with multithreaded incremental solving
    Tue 3 July 2018
  • Behind the scenes of Red Hat Summit 2018 scheduling
    Wed 23 May 2018
  • Scheduling Voxxed Days Zurich 2018 with OptaPlanner
    Mon 19 February 2018
  • Java Reflection, but much faster
    Tue 9 January 2018
  • Does A.I. include constraint solvers?
    Thu 7 September 2017
Archive
Latest releases
  • 7.10.0.Final released
    Fri 17 August 2018
Upcoming events
  • Operations Research 2018
    Brussels, Belgium - Wed 12 September 2018
    • Employee shift rostering optimization with OptaPlanner’s metaheuristics by Geoffrey De Smet
  • Devoxx BE
    Antwerp, Belgium - Mon 12 November 2018
    • The battle of 2 automated conference talk scheduling algorithms for Devoxx by Geoffrey De Smet, Piotr Krzemiński, Viktor Tymoshenko
  • Red Hat Summit
    Boston, MA, USA - Tue 7 May 2019
Add event / Archive

KIE projects

  • Drools rule engine
  • OptaPlanner constraint solver
  • jBPM workflow engine

Community

  • Blog
  • Get Help
  • Team
  • Governance
  • Academic research

Code

  • Build from source
  • Submit a bug
  • License (Apache)
  • Release notes
  • Upgrade recipes
Sponsored by
Red Hat
More coder content at
Red Hat Developers
© Copyright 2006-2018, Red Hat, Inc. or third-party contributors - Privacy statement - Terms of use - Website info