Human-Machine Collaborative Optimization via Apprenticeship Scheduling