Create a mathematical aberration to avoid hitting the point of inflection for an exponential function with a fractional base.telyni wrote:What did the optimize function do in kapilands?
Say you need a formula to represent how efficient your building is. We know it gets less efficient as it gets larger, and it would be nice to have something simple like this:
Productivity = employees * 0.99<sup>employees</sup>
So with 4 employees, it would be:
4 * 0.99<sup>4</sup> = 3.84
and then with 5 employees:
5 * 0.99<sup>5</sup> = 4.75
So each employee adds productivity, but not as much as the one before him.
Though the numbers are different, that's basically how it scaled in Kapilands (I have no idea here yet.) But here's where it gets weird:
100 * 0.99<sup>100</sup> = 36.60
101 * 0.99<sup>101</sup> = 36.59
As you get higher and higher, each employee does less to the point of doing almost nothing. And then if that's not bad enough, if you keep going the formula makes your building less productive with more employees.
Now you can push that point off by making the base closer to 1, using .999 or .9999. But eventually it will always happen.
What the "optimize" button did was reset the formula. Every 400 employees would then be worth a fixed value, and then you would add to it the value for the next 1-399 employees using that function.
As a result your production would really jump. I don't have time to draw a graph for you, but picture a set of steps that don't have right angles but rather kind of curve down. So it curves from steep to flat, then jumps up straight, then curves steep to flat again, then jumps up, etc.
