Using Simulated Annealing and Ant-Colony Optimization Algorithms to Solve the Scheduling Problem