Learning heuristics for a supply planner