A research in using genetic algorithm to tune PID controller