Automated planning and scheduling