How to edit saved engines by modifying the .lua file?
The reason I'm asking is that I have some coursework coming up where I have to make a "novel application" that uses aspects of swarm intelligence or artificial life. One idea I had was to make some sort of swarm intelligence based optimiser (evolutionary computing or particle swarm optimiser probably), and I figured a novel and relevant thing to apply it to would be engine design (albeit in automation rather than real life, and probably only demo compatible engines so that the university can try the code out themselves).
However, there is no way I would even contemplate making one right now unless it was possible to at least edit the parts and values of the engine by using a C++ program to edit the .lua text file for the engine, because it would take hours to do all that by hand. I would also like to be able to grab some stats from the engine, such as fuel economy, reliability, cost, man hours or power.
What I had in mind was to get the c++ program to edit a small population of engine files that I had created myself, then I would test them all and save them, then the program would grab the results if possible (or I would manually grab the results if not). that cycle would keep happening until the engines became good enough, or I became bored enough, and then I would stop the program and grab the stats of the best engine.
So if anyone can point me to which lines I would have to edit I would be most grateful