Application of Optimization and Heuristic methods called Particle Swarm Optimization with Machine Learning