Optimization of Discrete Event Systems using Evolutionary Programming