面向安全关键嵌入式控制的串并联任务图最大并行执行
Maximizing Parallel Execution of Series-Parallel Task Graphs for Safety-Critical Embedded Control
AI总结:
针对安全关键嵌入式控制中串并联任务图的最大并行执行问题,提出基于拉格朗日迭代启发式算法,通过加权团划分最小化批次执行时间,在91.25%实例中达到最优解。
摘要:
安全关键嵌入式控制程序必须在有界时间内完成每个控制周期。当程序的依赖结构包含可并发执行的子任务时,在传统处理器上的顺序执行可能成为瓶颈。本文研究了阶段批处理模型下串并联任务图的最大并行执行(MPE)问题:一个批次内的兼容任务并行执行,而选定的批次按保持优先级的拓扑顺序依次启动。我们将MPE公式化为一个加权团划分问题,以最小化批次执行时间之和,每个批次的成本由其最慢的任务决定。为了高效求解该问题,我们提出了一种基于拉格朗日的迭代启发式算法(LIH)。LIH从单例列和随机贪婪团生成中构建一个经过定价过滤的可行候选批次受限池,然后应用拉格朗日定价指导列选择,并使用修复过程恢复合法的团划分。与加权混合图着色分支定界基线和随机贪婪基线的实验表明,LIH在91.25%的可比实例中匹配精确最优解,平均差距为0.073%,平均运行时间为18.19毫秒。在最大的精确参考节点设置中,精确基线平均需要数百秒,而LIH保持在50毫秒以下。我们进一步展示了一个端到端的PLC梯形逻辑案例研究,其中PLCOpen风格的程序被转换为MPE图,由LIH优化,翻译为面向FPGA的HDL,并与原始PLC扫描执行进行仿真比较。
英文摘要:
Safety-critical embedded control programs must complete each control cycle within a bounded period. Sequential execution on conventional processors can become a bottleneck when the dependency structure of the program contains subtasks that could be executed concurrently. This paper studies the Maximum Parallel Execution (MPE) problem for series-parallel task graphs under a staged batching model: compatible tasks inside one batch execute in parallel, while the selected batches are launched sequentially in a topological order that preserves precedence. We formulate MPE as a weighted clique-partitioning problem that minimizes the sum of batch execution times, with each batch cost determined by its slowest task. To solve this problem efficiently, we propose a Lagrangian-based Iterative Heuristic (LIH). LIH constructs a pricing-filtered restricted pool of feasible candidate batches from singleton columns and random greedy clique generation. It then applies Lagrangian pricing to guide column selection and uses a repair procedure to recover a legal clique partition. Experiments against a weighted mixed-graph-coloring branch-and-bound baseline and a randomized greedy baseline show that LIH matches the exact optimum in 91.25% of comparable instances, with an average gap of 0.073% and an average runtime of 18.19 ms. In the largest exact-reference node setting, the exact baseline requires hundreds of seconds on average, whereas LIH remains below 50 ms. We further present an end-to-end PLC ladder-logic case study in which PLCOpen-style programs are converted to MPE graphs, optimized by LIH, translated into FPGA-oriented HDL, and simulated against the original PLC scan execution.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。