Somebody plz explain how AI decide which formation it will use.

And how not using standard formation will improve the AI behavior?