@@ -94,23 +100,39 @@
Where do you find Exp. Candy?
These items are drop rewards from Max Raid Battles. Raids with a higher number of stars will output larger candy.
- Additionally, hikers spread throughout the Wild Area may hand out candy in exchange for Watts.
+ Additionally, hikers spread throughout the Wild Area may hand out candy in exchange for Watts and you may also receive them as prizes from the Battle Cafés. However, farming candy through these methods is less efficient than raids.
What does optimal mean?
- In a perfect world, candy is an unlimited resource that streams directly from your pockets into the bellies of your dearest battle companions. Since this is not the case, it is wise to carefully allocate the candy in order to maximize its usefulness. Surely, there is nothing stopping you from randomly feeding candy to your Pokémon and stopping when you feel like it.
+ In a perfect world, candy is an unlimited resource that streams directly into the bellies of your dearest battle companions. Since this is not the case, it is wise to carefully allocate your candy in order to maximize their usefulness and prevent any waste of resources.
+ To calculate the optimal distribution of candy, this calculator solves a mixed-integer linear programming problem. In this problem, the objective function is set to minimize the number of candy required (ci) to meet certain Experience (E). At the same time, the surplus of Exp. Points is also minimized by taking into account the yields of each candy variant (Yi). In mathematical notation, this is represented as follows:
-
-
+
+ - minimize
+ - Σ(Yi + 1) ci
+ - subject to
+ - E ≤ Yi ci
+ - ∀ i ∈ { XS, S, M, L, XL }
+
+
+ What about Rare Candy?
+
+ Unlike Exp. Candy, Rare Candy yield an exponential amount of Experience. This means that consuming a Rare Candy at Lv. 1 does not equate consuming a Rare Candy at Lv. 99. Conversely, an Exp. Candy XL grants the same amount of Exp. Points regardless of level. Since the candy distribution problem has been posed as a linear problem, Rare Candies are not factored in.
+ If you want to take Rare Candies into consideration, lower the target level by the amount of candy you want to feed your Pokémon and remember that these should be applied after the Exp. Candy.
+
+
+
@@ -118,4 +140,4 @@
-