Cursed-Ghost: Cost reduction research isn’t being applied correctly either by default before applying any cost reduction research the values for building a mine are as follows
klei1984: Thanks for the info. You are right about the corner case with 7 turns that is wrong in max port. But the rest of the cases are actually correct in port and wrong in dos max. See also defect 197.
With regards to your previous comment about max 1.04 getting the calculation for the mine wrong I was just looking this over again and actually
2 turns at x4 speed for a cost of 48 materials
1 turns at x2 speed for a cost of 8 materials
1 turn at x1 speed for a cost of 2 materials
For a total of 58 materials and a build time of 4 turns
Is wrong let me explain why
Mine
x1 100% / 12 turns = 8.3333333333333333333333333333333% progress per turn
x2 100% / 6 turns = 16.666666666666666666666666666667% progress per turn
x4 100% / 3 turns = 33.333333333333333333333333333333% progress per turn
2 x 33.333333333333333333333333333333% = 66.66666666666666666666666666666 progress
1 x 16.66666666666666666666666666666% progress
1 x 8.3333333333333333333333333333333% progress
66.66666666666666666666666666666 +
16.666666666666666666666666666667 +
8.3333333333333333333333333333333 =
91.666666666666666666666666666653% progress
So you see with that calculation the build progress is only just over 91% when you run out of materials and is not possible.
Therefore as per my previous comment on this the calculation for the mine in 1.04 is in fact correct and its max port that has it wrong.
Now this obviously only covers the default calculation to calculate the correct solution when taking cost reduction into account we do
Mine
x1 base cost 24 - cost reduction 10% = new cost 22
24/100x10% = 2.4
24-2.4 = 21.6 rounded to 22
new cost 22 / usage per turn 2 = 11 turns
x2 base cost 48 - cost reduction 10% = new cost 43
48/100x10% = 4.8
48 - 4.8 = 43.2 rounded to 43
new cost 43 / usage per turn 8 = 5.375 turns
now obviously its not possible to have partial turns so lets convert to percentages again to discover what the new calculation should be
x1 100% / 11 turns = 9.0909090909090909090909090909091% progress per turn
x2 100% / 5.375 turns = 18.604651162790697674418604651163% progress per turn
5 x 18.604651162790697674418604651163% = 93.0232558139534883720930232558% progress
1 x 9.0909090909090909090909090909091% progress
93.0232558139534883720930232558% +
9.0909090909090909090909090909091% = 102.11416490486257928118393234671% progress
Therefore the new calculation for x2 speed after reducing by 10% is
5 turns at x2 speed for a cost of 40 materials
1 turns at x1 speed for a cost of 2 materials
For a grand total of 42 materials and a build time of 6 turns
x4 base cost 72 - cost reduction 10% = new cost 65
72/100x10% = 7.2
72-7.2 = 64.8 rounded to 65
new cost 65 / usage per turn 24 = 2.7083333333333333333333333333333 turns
Now obviously this is not possible since the constructor can't hold 65 materials nor can you have partial turns so again let's convert to percentages to figure out what the new calculation should be
x1 100% / 11turns = 9.0909090909090909090909090909091% progress per turn
x2 100% / 5.375 turns = 18.604651162790697674418604651163% progress per turn
x4 100% / 2.7083333333333333333333333333333 turns = 36.923076923076923076923076923081 progress per turn
1 x 9.0909090909090909090909090909091% progress
3 x 18.604651162790697674418604651163% progress = 55.81395348837209302325581395348% progress
1 x 36.923076923076923076923076923081% progress
36.923076923076923076923076923081% +
55.81395348837209302325581395348% +
9.0909090909090909090909090909091% = 101.82793950235810700926979996747% progress
Therefore the new calculation for x4 speed after reducing by 10% is
1 turns at x4 speed for a cost of 24 materials
3 turns at x2 speed for a cost of 24 materials
1 turns at x1 speed for a cost of 2 materials
Giving a grant total of 50 materials and build time of 5 turns which is exactly what you see in max 1.04 so again the port has it wrong.