Loading...
  OR  Zero-K Name:    Password:   

Post edit history

What's the difference between a +10 mex and 5 +2 mexes?

To display differences between versions, select one or more edits in the list using checkboxes and click "diff selected"
Post edit history
Date Editor Before After
4/21/2014 1:55:47 PMGBrankTheEloIsALie before revert after revert
4/20/2014 9:16:14 PMGBrankTheEloIsALie before revert after revert
4/20/2014 9:16:00 PMGBrankTheEloIsALie before revert after revert
4/20/2014 9:15:17 PMGBrankTheEloIsALie before revert after revert
4/20/2014 9:11:39 PMGBrankTheEloIsALie before revert after revert
4/20/2014 9:06:37 PMGBrankTheEloIsALie before revert after revert
4/20/2014 8:51:09 PMGBrankTheEloIsALie before revert after revert
4/20/2014 8:49:18 PMGBrankTheEloIsALie before revert after revert
4/20/2014 8:47:49 PMGBrankTheEloIsALie before revert after revert
Before After
1 Well, after some maths and discussion with Skasi, I came to the conclusion that [size=2][b]the current OD gadget is actually wrong the way it works.[/b][/size] 1 Well, after some maths and discussion with Skasi, I came to the conclusion that [size=2][b]the current OD gadget is actually wrong the way it works.[/b][/size]
2 \n 2 \n
3 Why? 3 Why?
4 In the example Skasi showed in the bugtracker, the ideal solution would be to give [i]no energy[/i] to the smaller mex! 4 In the example Skasi showed in the bugtracker, the ideal solution would be to give [i]no energy[/i] to the smaller mex!
5 \n 5 \n
6 \n 6 \n
7 I recreated a similar situation (most likely not exactly the same energy, but it matters little). First mex has 3.67 metal, smaller mex has 1.43 metal. The amount of energy the OD gadget spends on OD (which depends on the amount of E you have stored) in this particular example is 1.84 energy, both mexes sit on separate grids that have sufficient max energy. 7 I recreated a similar situation (most likely not exactly the same energy, but it matters little). First mex has 3.67 metal, smaller mex has 1.43 metal. The amount of energy the OD gadget spends on OD (which depends on the amount of E you have stored) in this particular example is 1.84 energy, both mexes sit on separate grids that have sufficient max energy.
8 \n 8 \n
9 The amount of OD is proportional to (sqrt(1 + e/4) - 1), the -1 is there because I subtract the base amount. Check this: 9 The amount of OD is proportional to (sqrt(1 + e/4) - 1), the -1 is there because I subtract the base amount. Check this:
10 [url=http://www.wolframalpha.com/input/?i=maximize+3.67+%28sqrt%281+%2B+a%2F4%29+-+1%29+%2B+1.43+%28sqrt%281+%2B+b%2F4%29+-+1%29+with+a%2Bb+%3D+1.84]maximize 3.67 (sqrt(1 + a/4) - 1) + 1.43 (sqrt(1 + b/4) - 1) with a+b = 1.84[/url] 10 [url=http://www.wolframalpha.com/input/?i=maximize+3.67+%28sqrt%281+%2B+a%2F4%29+-+1%29+%2B+1.43+%28sqrt%281+%2B+b%2F4%29+-+1%29+with+a%2Bb+%3D+1.84]maximize 3.67 (sqrt(1 + a/4) - 1) + 1.43 (sqrt(1 + b/4) - 1) with a+b = 1.84[/url]
11 [img]http://imgur.com/KwlFCH3.png[/img] 11 [img]http://imgur.com/KwlFCH3.png[/img]
12 If the formula held true for negative energy investment, it would be best to get energy out of the smaller mex and let it produce even less metal! Now, this obviously isn't allowed but with that boundary, the maximum is clearly found for b=0 and a = 1.84... 12 If the formula held true for negative energy investment, it would be best to get energy out of the smaller mex and let it produce even less metal! Now, this obviously isn't allowed but with that boundary, the maximum is clearly found for b=0 and a = 1.84...
13 Only if the energy invested here becomes bigger than somewhere above 23 will it actually be beneficial to invest any energy into overdriving the small mex! 13 Only if the energy invested here becomes bigger than somewhere above 23 will it actually be beneficial to invest any energy into overdriving the small mex!
14 \n 14 \n
15 That sounds like a clear contradiction to how the OD gadged works at the moment. 15 That sounds like a clear contradiction to how the OD gadged works at the moment.
16 Skasi then pointed out that "if you divide bonus metal from OD by energy invested, it will become infinite for 0 energy invested". That sounds logical, but maths has something to say about this: 16 Skasi then pointed out that "if you divide bonus metal from OD by energy invested, it will become infinite for 0 energy invested". That sounds logical, but maths has something to say about this:
17 [url=http://www.wolframalpha.com/input/?i=plot+10+%28sqrt%281+%2B+x+%2F+4%29+-+1%29+%2F+x%2C+10+%28sqrt%281+%2B+x%2F4%29+-+1%29%2C+x+for+x+%3E+0%2C+x+%3C+4]plot 10 (sqrt(1 + x / 4) - 1) / x, 10 (sqrt(1 + x/4) - 1), 1 / x[/url] 17 [url=http://www.wolframalpha.com/input/?i=plot+10+%28sqrt%281+%2B+x+%2F+4%29+-+1%29+%2F+x%2C+10+%28sqrt%281+%2B+x%2F4%29+-+1%29%2C+x+for+x+%3E+0%2C+x+%3C+4]plot 10 (sqrt(1 + x / 4) - 1) / x, 10 (sqrt(1 + x/4) - 1), 1 / x[/url]
18 [img]http://imgur.com/Zztejg6.png[/img] 18 [img]http://imgur.com/Zztejg6.png[/img]
19 \n 19 \n
20 I plotted the "od metal", "per cost" and "od metal per cost" functions here. You can see that, as the energy approaches 0, the amount of metal also approaches zero, and you can't put a value on 0/0, so you have to use limits: 20 I plotted the "od metal", "per cost" and "od metal per cost" functions here. You can see that, as the energy approaches 0, the amount of metal also approaches zero, and you can't put a value on 0/0, so you have to use limits:
21 [url=http://www.wolframalpha.com/input/?i=limes+x+-%3E+0+%28a+%28sqrt%281+%2Bx%2F4%29+-+1%29+%2F+x%29]limes x -> 0 (a (sqrt(1 +x/4) - 1) / x)[/url] 21 [url=http://www.wolframalpha.com/input/?i=limes+x+-%3E+0+%28a+%28sqrt%281+%2Bx%2F4%29+-+1%29+%2F+x%29]limes x -> 0 (a (sqrt(1 +x/4) - 1) / x)[/url]
22 It turns out that, if you invest close to 0 energy, you get a maximum of 12.5% of the base metal per point of energy invested. But 12.5% of a small base value per point of energy can be (a lot) less than a lower percentage of a big base value, which is why not investing into the smaller mexes at all can make sense. 22 It turns out that, if you invest close to 0 energy, you get a maximum of 12.5% of the base metal per point of energy invested. But 12.5% of a small base value per point of energy can be (a lot) less than a lower percentage of a big base value, which is why not investing into the smaller mexes at all can make sense.
23 \n 23 \n
24 This is the "OD per point of energy" (as fraction of the base metal income of the mex): 24 This is the "OD per point of energy" (as fraction of the base metal income of the mex):
25 [img]http://imgur.com/N6kR07M.png[/img] 25 [img]http://imgur.com/N6kR07M.png[/img]
26 \n 26 \n
27 You can see it starts at 12.5% (1/8) and then becomes less and less the more energy you invest. 27 You can see it starts at 12.5% (1/8) and then becomes less and less the more energy you invest.
28 \n 28 \n
29 \n 29 \n
30 \n 30 \n
31 [size=2][b]How big of a problem is this for more realistical/important energy investments?[/b][/size] 31 [size=2][b]How big of a problem is this for more realistical/important energy investments?[/b][/size]
32 Well, as you invest more and more energy into your mexes, the algorithm of the OD widget becomes "more right", that is, the energy distribution for (theoretical) maximum OD metal gets closer and closer to the one the game uses. However, let's take the example of 100 energy for the 2 mexes (that's a lot I'd say, if you hold 20 mexes that would be 1000 [b]unused[/b] energy income): 32 Well, as you invest more and more energy into your mexes, the algorithm of the OD widget becomes "more right", that is, the energy distribution for (theoretical) maximum OD metal gets closer and closer to the one the game uses. However, let's take the example of 100 energy for the 2 mexes (that's a lot I'd say, if you hold 20 mexes that would be 1000 [b]unused[/b] energy income):
33 [url=http://www.wolframalpha.com/input/?i=maximize+3.67+%28sqrt%281+%2B+a%2F4%29+-+1%29+%2B+1.43+%28sqrt%281+%2B+b%2F4%29+-+1%29+with+a%2Bb+%3D+100]Theoretical maximum[/url]: 15.37 OD metal. 33 [url=http://www.wolframalpha.com/input/?i=maximize+3.67+%28sqrt%281+%2B+a%2F4%29+-+1%29+%2B+1.43+%28sqrt%281+%2B+b%2F4%29+-+1%29+with+a%2Bb+%3D+100]Theoretical maximum[/url]: 15.37 OD metal.
34 If I recall the current algorithm correctly, it will distribute energy proportional to the square of the base income. This would result in [url=http://www.wolframalpha.com/input/?i=3.67+%28sqrt%281+%2B+86.8%2F4%29+-+1%29+%2B+1.43+%28sqrt%281+%2B+13.2%2F4%29+-+1%29]15.35[/url] metal. To be honest, that's less difference than I'd have expected... 34 If I recall the current algorithm correctly, it will distribute energy proportional to the square of the base income. This would result in [url=http://www.wolframalpha.com/input/?i=3.67+%28sqrt%281+%2B+86.8%2F4%29+-+1%29+%2B+1.43+%28sqrt%281+%2B+13.2%2F4%29+-+1%29]15.35[/url] metal. To be honest, that's less difference than I'd have expected...
35 \n 35 \n
36 Another example: 10 energy for the 2 mexes: 36 Another example: 10 energy for the 2 mexes:
37 Optimum: 3.255 metal from OD 37 Optimum: 3.255 metal from OD
38 Current: 3.083 metal from OD 38 Current: 3.083 metal from OD
39 \n 39 \n
40 1 energy for the 2 mexes (yeah, that's really not a lot): 40 1 energy for the 2 mexes (yeah, that's really not a lot):
41 Optimum: 0.808 m 41 Optimum: 0.808 m
42 Current: 0.402 m 42 Current: 0.402 m
43 Well, that's 1 more bandit of the span of 3.3 minutes. Doesn't sound like much but this [i]can[/i] actually make a difference. 43 Well, that's 1 more bandit of the span of 3.3 minutes. Doesn't sound like much but this [i]can[/i] actually make a difference.
44 \n 44 \n
45 Although the effect is kind of marginal overall, i have to say, since it only ever occurse with bigger mexes in the first place ( and most maps having only equal mexes) . 45 Although the effect is kind of marginal overall, i have to say, since it only ever occurs with bigger mexes in the first place ( and most maps having only equal mexes) .
46 I'll look into bigger amounts of smaller mexes in a moment. Though. 46 I'll look into bigger amounts of smaller mexes in a moment. Or tomorrow.
47 \n
48 \n 47 \n
49 Now the challenging part will be devising an algorithm that can actually work out how to properly distribute the energy to all grids for maximum OD. Well, food for thought, I'll give it a shot. Although it's likely not very high-priority. 48 Now the challenging part will be devising an algorithm that can actually work out how to properly distribute the energy to all grids for maximum OD. Well, food for thought, I'll give it a shot. Although it's likely not very high-priority.