I am trying to resolve the following problem.
Given the following:
resources: food, wood, stone, gold
units: peon(requirements: 50 food, town hall, 3 turns to make) which can produce: 10 amount of any resource or 3 building points
warrior(requirements: 30 food, 20 wood, 4 turns to make, barracks)
archer(requirements: 30 wood, 25 gold, archery, 3 turns to make)
buildings: town hall(requirements: 500 food, 500 points, 20 building points) required to produce peons, only one peon can be produced at a time
barracks: 100 wood, 50 stone, 10 building points, required to produce warriors
archery: 200 wood, 30 gold, 12 building points, at least one barracks, required to produce archers
and the following: starting resources, buildings, units and their quantities
final resources, buildings, units and their quantities
output: the minimum required turns to get from starting quantities to final quantities of resources, buildings and units
notes: you start with at least one town hall
what's the point of having multiple town halls: they can produce peons faster
Now, my first approach was to resolve this problem using an heuristic approach, by selecting the most expensive resource/building/unit from the final state and determine what do I need in order to get to that quantity.
And my question is: Is there any non-heuristic approach in resolving this problem/this types problems.