Managing a military & economy

I have a game world of a couple of dozen planets (this may expand a little more), six resources, multiple factions and a variety of ships both military and cargo orientated. I’m now looking at how I can get an AI to trade resources appropriately, to balance ship building (military vs cargo) and make at least okay decisions about when to take military action, against whom and to organize a military campaign effectively (e.g. Identifying planets with key resources for self or enemy, judging cost vs benefit of conquering). Could anyone point me to some articles, websites, open source games etc or does anyone have any comments that would make a good starting point?


Link to Full Article: Managing a military & economy