Commit 78d5f5e4 authored by Tong Li's avatar Tong Li

优先级

parent 7d322d24
...@@ -624,6 +624,16 @@ public class GeneticDecoder { ...@@ -624,6 +624,16 @@ public class GeneticDecoder {
Map<Long, CopyOnWriteArrayList<GAScheduleResult>> machineTasksCache = new HashMap<>(); Map<Long, CopyOnWriteArrayList<GAScheduleResult>> machineTasksCache = new HashMap<>();
// 记录已经整单转正排的订单,避免倒排序列后续再次进入同一个 groupId。 // 记录已经整单转正排的订单,避免倒排序列后续再次进入同一个 groupId。
Set<Integer> forwardFallbackOrderIds = new HashSet<>(); Set<Integer> forwardFallbackOrderIds = new HashSet<>();
// 方案1a+方案2混合排程:预检并处理有半成品依赖的订单
Set<Integer> hybridProcessedOrderIds = new HashSet<>();
if (isJit && _globalParam.isIsCheckSf()) {
runHybridPreCheckAndSchedule(chromosome, machineIdMap, machineTasksCache,
entryIndexById, scheduleIndexById, opMachineKeyMap,
entrysBygroupId, orderDueDate, orderSchedulingInfo,
orderProcessCounter, orderLastEndTime, hybridProcessedOrderIds);
}
int opCount = 0; int opCount = 0;
long slowOpThresholdNs = 500_000_000L; // 500ms long slowOpThresholdNs = 500_000_000L; // 500ms
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment