Probabilistic order placement method based on expected balancing characteristics
Parallel probabilistic recipes will stably consume/output the integer part of the expected value.
The English translation is incomplete
2 of 10 blocks have no English translation yet and are shown in the original language.
Machine translation
Parts of this page's English were produced automatically by the translation service.
Probabilistic consumption/output recipes are a common puzzle in templated automation. A common solution for probabilistic consumption is passive input coupled with a requestor, and for probabilistic output, passive execution. However, due to the following features, there are actually ways to achieve stable probabilistic recipes.
Except for the Alchemical Construct's "The probability of this recipe increases with the number of runs" recipe, all recipes with probabilities have a characteristic: when this recipe is paralleled, the probability is multiplied by the expected number of runs/outputs obtained from paralleling, and then the integer part is consumed/output stably, and then the fractional part is used as the probability to consume/output one more time; instead of calculating the result of independent repeated runs in some way (there are mathematically perfectly accurate algorithms to achieve this).
以头图中的幻影离子液的配方为例([0.5.6beta]尽管这个配方标记了“该配方的概率会随运行次数提升”,实际上概率是固定的),输入中的灵髓液有5%概率消耗,幻影离子液有50%的概率输出。如果以3并行执行这个配方,那么灵髓液期望消耗5%*3=15%,于是15%消耗1B,85%不消耗;幻影离子液期望输出50%*3=1+50%,于是50%输出300mB,50%输出600mB。
When probability multiplied by parallelism is exactly an integer, for this recipe it is 20 parallelism, it will stably consume 1B Spirit Essence, output 3B Phantom Ion Liquid, becoming a deterministic recipe! However, you still need to provide 20B Spirit Essence in the input hatch for the machine to run at 20 parallelism. This is also easy to solve, provide the startup capital that can run full parallelism at once in another input hatch. If you use a Pattern, remember to dye it.
The image below is a reference scheme for the above example. If your parallel number is high, you can use ME input to pull startup funds, and disconnect from the network after pulling. Lowering the maximum parallel to a multiple of the balanced parallel can prevent overruns from becoming probabilistic recipes when placing large orders.
Similarly, one can writeSteel IngotandUnstable Gaia Soul's deterministic blueprint.
Tech Online probability recipes are relatively rare, unless you are doing things like Ore Processing, Platinum Processing, or Rare Earth Processing passively instead of ordering.Pickled Electronic Grade Silicon PowderProduces with 95% probability, 20 batches means 20 are definitely produced, 19 is not.DopamineHas 20% consumption of Brain and 10% consumption of Perfluorobenzene, give it a good start and then balance the recipes with 10 batches.
If the maximum parallelism you can or want to provide is less than the minimum parallelism required for balancing, you can round up the input and round down the output. This may occasionally result in one extra input or one extra output, but it guarantees operation. For example, if you only have 16 parallel units, a 5% consumption can be written as 16 in 1, and a 95% output can be written as 16 out 15.
I haven't played UEV and beyond yet, so I don't know if there are any more difficult probabilistic recipes.
Comments
0No comments yet.
Your comment appears under your display name.