Repository navigation
优化三位一体循环缺料诊断 - #466
Merged
Merged
优化三位一体循环缺料诊断#466
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
目的
在整合包里下单 1 件「宇宙本源拓扑晶格」时,Trinity 需要规划一个包含 61 种材料、62 个样板变体的循环分量。库存无法满足需求时,精确整数求解会反复扩大变量范围,最终触发 10 万变量上限,部分材料因此显示为「未解析」。
实现细节
BigInteger根据库存和净产出约束推导各样板执行次数的上下界,提前发现库存约束之间的矛盾。结果
使用实机抓取的样板和库存数据离线回放,目标循环的联合规划与缺料诊断耗时约 74 毫秒,确认了 6 种缺料,并生成了一条经过调度验证的循环证据。
验证
gradlew.bat compileTestJava --offline通过。