How to do neuroevolution in UE5

I was wondering if there would be a way to do neuroevolution in UE5 for a melee combat ai where I could let it run a simulation over and over again to improve the ai then when people actually play the game take that as a trial to improve the ai even more. Is the a way of doing this in ue5 in a 3d world?