Cost Based And Heuristic Optimization Techniques In Electrical Engineering