A reinforcement learning framework for the automation of engineering decisions in complex systems