Offline SMT feeder changeover optimization and operation replay for short production runs
moon update
moon run cmd/shift -- solve examples/lookahead.json
moon run cmd/shift -- greedy examples/lookahead.json
moon run cmd/shift -- solve examples/short-run.json > plan.json
moon run cmd/shift -- verify examples/short-run.json plan.json
moon run cmd/shift -- sheet examples/short-run.json plan.json
moon run cmd/shift -- diagnose examples/conflict.json panel-io| 命令 | 输出 |
|---|---|
| solve SHIFT [BUDGET] | 在给定搜索上限内求固定顺序的最小总成本,成功时写出 JSON 动作单 |
| quick SHIFT [BUDGET] | 优先保留在位、优先使用空槽,搜索首个可行摆法并生成动作单 |
| greedy SHIFT | 逐单比较所有必需供料器的可行摆法,选择本次拆装成本最低的一种 |
| verify SHIFT PLAN | 从初始状态回放全部动作,输出复算总成本或首个错误 |
| sheet SHIFT PLAN | 回放校验通过后打印按工单分组的文本操作清单 |
| diagnose SHIFT JOB [BUDGET] | 给出该工单的可行性或冲突供料器,并标明冲突集是否已经逐项缩减 |
moon add SongYZZZ/moon-feeder-shift@0.1.1moon fmt --check
moon check --deny-warn
moon test --target all --deny-warn
moon build --release --deny-warn
python scripts/smoke.py --exe _build/native/release/build/cmd/shift/shift.exe
python scripts/oracle.py --exe _build/native/release/build/cmd/shift/shift.exepub(all) struct Action {
kind : String
feeder : String
slot : Int
}pub(all) struct Diagnosis {
status : String
job : String
conflict : Array[String]
minimal : Bool
probes : Int
}pub(all) struct Feeder {
id : String
width : Int
starts : Array[Int]
load : Int
unload : Int
locked : Bool
}pub(all) struct Finding {
code : String
step : Int
action : Int
detail : String
}pub(all) struct Outcome {
status : String
job : String
probes : Int
edges : Int
states : Int
plan : Plan?
}Install
Download zipOffline SMT feeder changeover optimization and operation replay for short production runs