Optimization of a Generated Intrusion Detection System