Adaptation of multi-agent manufacturing control by means of genetic algorithms and discrete event simulation