How can I go about creating an AI to execute build orders?

Having said all that, a few hours later I’m coming round to thinking that it might be easier overall to just obtain all relevant parameters to do my own simulation, like this does for combat:

I was just thinking that if I use AI, I’ll pick up things like the gradual reduction in wood collection as they get farther from the lumber camp etc. I can maybe have a go without making it too complex and see if it at least predicts that some established build orders work as intended. It could maybe be good enough as a first pass, with manual testing of candidates for final versions.