I've been finding that if I deal the AI Iron or Horses (whatever I have or they tend to use) ahead of time they'll invest into units that require the resource and hopefully when I attack they will need those resources to prevent the 50% penalty.
Makes things quite a bit easier and makes you money as well.
Makes things quite a bit easier and makes you money as well.