SMS: Q-learning based vegetation evolution for numerical optimization and wireless sensor network coverage optimization