I only calculated amnesia shard usage (do not calculate round; however easy to consider if I change a code little bit, I will possibly make html/js version of it and let user configure it)
If you are trying Juggernaut 5, and have dark descent hath perk, you don't have to reset on odd level.
Do not reset if there is any Jug potency, unless (sum of level of other potencies) > 5 (which is impossible to have Jug5), or Jug1 with (sum of level of other
two potencies) = 5. If only one other potency is unlocked, do not reforge it. (Do not reforge Jug1Wind5). If there are no Jug and you are in even level, then reforge it. It applies for both elemental and non-elemental prefixes.
Expected shard usage is 15.24 for non-elemental prefix and 13.68 for elemental prefix.
Unfortunately, if you do not have hath perk(which is my case), you might have to reset on even on Jug2. Please refer to python code below.
Calculating way:
Basically, the strategy is simple. Calculate "expected cost"(expected shard usage) for every potency combination. If doing IW is optimal, do it. Otherwise, reforge it. So, (expected cost of potency) = min(expected cost of PXP0 + reforge potency, weighted-average of expected cost after IW). Now, you can solve this big equation and get expected shard usage.
Actually, one can prove that this equation has one and only solution. Why? If we set "expected cost of PXP0" as x, re-calculated expected cost of potency (i. e., expected cost calculated assuming (expected cost of PXP0) = x) is piecewise linear function with slope < 1, Which can be prove that fixed point exists. So, we can calculate fixed point by binary search of 0 for increasing sequence f(x)-x. f(x) can be calculated as dynamic programming, so we can calculate this.
It is assumed that probaility of potency is picked uniformly, and probability of new potency unlock is 50% and 75% for 1 or 2 potency existing except for only potency having level 5.
The following is my python3 code with results: [
pastebin.com]
https://pastebin.com/ditBJ7rw((a, b, c) means Jug level a, other potency with level b and c, O means it is optimal to reforge, X means it is not optimal to reforge)
So, this will give
QUOTE
No Element Prefix, No hath perk: 22.4152587468227 shard
No Element Prefix, Hath perk: 15.239237908343782 shard
Element Prefix, No hath perk: 20.346032487944328 shard
Element Prefix, Hath perk: 13.684466313990562 shard
I use little different version, which cannot reforge at PXP level 1 and no hath perk(which is my situation), and shard usage is as follows:
QUOTE
No Elemental prefix: 29.95343014191468
Elemental prefix: 26.897609134598625
If there is any question, bug on program, request on program (consider things like credits running IW), really bad grammar, and so on; please let me know.
This post has been edited by iffelse: Nov 13 2018, 05:18