Difference between revisions of "User talk:Erdtirdmans"
Erdtirdmans (talk | contribs) |
Erdtirdmans (talk | contribs) |
||
Line 22: | Line 22: | ||
Now that we know how many Elites and Defensive Specialists we'll need to train per acre, it's simple addition to figure out our Army size per Acre ('''APA'''). ''For our Avian, this is 18.5''. Furthermore, we know how much of our army is divided between elites and specialists - simply divide elites per acre by army per acre and likewise for specialists. Combine this with the fact that the costs for these things are preset by the game, and we have all the components for a Weighted Average Cost per Troop! | Now that we know how many Elites and Defensive Specialists we'll need to train per acre, it's simple addition to figure out our Army size per Acre ('''APA'''). ''For our Avian, this is 18.5''. Furthermore, we know how much of our army is divided between elites and specialists - simply divide elites per acre by army per acre and likewise for specialists. Combine this with the fact that the costs for these things are preset by the game, and we have all the components for a Weighted Average Cost per Troop! | ||
− | For the math illiterate: let's say you're | + | For the math illiterate: let's say you're throwing a party and need to buy beer. You buy a case of one beer for $22 and a case of another for $25. You'd get the average cost per case by simply adding them together and dividing by the number of cases, right? So it's $23.50 per case. Let's say you bought 3 cases of the cheaper beer. What's the average now? If you simply add them together and divide like you normally would, you'll be wrong because the two items cost different amounts. 3 out of 4 (75%, or .75) of the cases were $22 while only the 1 out of 4 (.25) was $25. So, you'd do the math as .75*22 + .25*25 which equals $22.75 per case of beer. The same logic applies with what we're doing now. |
− | :WACT = | + | So, to find the Weighted Average Cost Per Troop, we'd do this: |
+ | |||
+ | :[(ePA / APA) * cE] + [(dSPA / APA) * cdS] | ||
+ | :('''cE''' is the cost to train an elite while '''cdS''' is the cost to train a defensive specialist) | ||
+ | |||
+ | But wait! We know that APA is Army per Acre, or (ePA + dSPA), so we could expand it to this: | ||
+ | |||
+ | :[(ePA / [ePA + dSPA]) * cE] + [(dSPA / [ePA + dSPA]) * cdS] | ||
+ | |||
+ | ''For our Avian that would be | ||
+ | :[(11.25 / [11.25 + 7.25]) * 800] + [(7.25 / [11.25 + 7.25]) * 350] | ||
+ | :[(11.25/18.5)*800] + [(7.25/18.5)*350] | ||
+ | :(.6081*800) + (.3919*350) | ||
+ | :486.48 + 137.17 | ||
+ | :624'' | ||
+ | |||
+ | WACT = | ||
Revision as of 06:34, 23 May 2010
This is my talk page, where I will very rarely dump little bits of math that I am working on despite my inability to comprehend their significance. Also, I might just dump my strats here since I won't be posting my province and KD #s anywhere.
Weighted Average Cost of Army per Acre
A possibly useful formula for attackers, this seeks to demonstrate the economic viability of running a predetermined OPA and a predetermined DPA through the most population-efficient means. It does not take in to consideration variables beyond troop stats and cost. Because of this, its utility is limited, as other bonuses could have economic consequences that mitigate a race's higher WACAA. Obviously, Humans have an income bonus that mitigates this, but things such as Dwarvves' BE bonus or even Avians' Attack Time redux could mitigate the cost by enabling you to run more Banks, Libraries, or Schools. I will note such things where appropriate. Other bonuses such as Magic Effectiveness are economically impactful only in negligible ways (you could run lower WPAs or save on Channeling costs) and will not be noted, as they are primarily lures for the hybrids, and I am using the extreme case (Heavy Attacker) in my analysis.
Introduction to the Formula
In order to evaluate the economic viability of race's armies, we'll need a goal for them to reach. For attackers, this is obviously a goal Offense per Acre and Defense per Acre. They will be noted in our formula as gOPA and gDPA. Let's get specific so it is easier to discuss and go with 90 OPA and 70 DPA - fair raw numbers for a heavy attacker. Let's assume we're Avians too so that we can give concrete examples alongside the arcane symbols.
In the interest of population - the most important resource of all - we'll be using as many elites as possible. Since no race has a primarily defensive elite, we'll be getting all of our offense from elites and adding defensive specialists to bolster what's left. This means we can already get our first derived variable - Elites per acre (ePA)!
- ePA = gOPA / eO
- ePA = 90 / 8 = 11.25
- (eO is Elite Offense, the offensive strength of the race's elites)
Now, we can do the same for our gDPA. However, we have to account for the defense provided by the number of elites we've just determined we'll need. So, we'll subtract out the elite defense to find the gap between our current and our goal defense and use specialists to fill it in. In terms of Defensive Specialists per Acre (dSPA), it will go like this:
- dSPA = [gDPA - (eD * ePA) ] / dSD
- dSPA = [70 - (3 * 11.25)] / 5 = 7.25
- (eD is Elite Defense, the defensive strength of the race's elites. dSD is Defensive Specialist Defense, the defensive strength of the race's defensive specialists because remember Humans have a +1 to this)
Now that we know how many Elites and Defensive Specialists we'll need to train per acre, it's simple addition to figure out our Army size per Acre (APA). For our Avian, this is 18.5. Furthermore, we know how much of our army is divided between elites and specialists - simply divide elites per acre by army per acre and likewise for specialists. Combine this with the fact that the costs for these things are preset by the game, and we have all the components for a Weighted Average Cost per Troop!
For the math illiterate: let's say you're throwing a party and need to buy beer. You buy a case of one beer for $22 and a case of another for $25. You'd get the average cost per case by simply adding them together and dividing by the number of cases, right? So it's $23.50 per case. Let's say you bought 3 cases of the cheaper beer. What's the average now? If you simply add them together and divide like you normally would, you'll be wrong because the two items cost different amounts. 3 out of 4 (75%, or .75) of the cases were $22 while only the 1 out of 4 (.25) was $25. So, you'd do the math as .75*22 + .25*25 which equals $22.75 per case of beer. The same logic applies with what we're doing now.
So, to find the Weighted Average Cost Per Troop, we'd do this:
- [(ePA / APA) * cE] + [(dSPA / APA) * cdS]
- (cE is the cost to train an elite while cdS is the cost to train a defensive specialist)
But wait! We know that APA is Army per Acre, or (ePA + dSPA), so we could expand it to this:
- [(ePA / [ePA + dSPA]) * cE] + [(dSPA / [ePA + dSPA]) * cdS]
For our Avian that would be
- [(11.25 / [11.25 + 7.25]) * 800] + [(7.25 / [11.25 + 7.25]) * 350]
- [(11.25/18.5)*800] + [(7.25/18.5)*350]
- (.6081*800) + (.3919*350)
- 486.48 + 137.17
- 624
WACT =
The formula I'm using is as such:
- WACAA = FLOOR( Apa * WACT )
With Apa being Army per acre and WACT being Weighted Average Cost per Troop. By multiplying the number of troops per acre that we'll need in total by the weighted average cost of training one troop, we'll be able to find the actual cost per acre of maintaining our army.