A neural network model for resource leveling