Integrated Offline and Online Learning to Solve a Large Class of Scheduling Problems