基于动态子句加权策略的MaxSAT问题局部搜索算法研究
Research on Local Search Algorithm for MaxSAT Problem Based on Dynamic Clause-Weighting Strategy
DOI: 10.12677/csa.2026.1610313, PDF,    科研立项经费支持
作者: 张 彬, 赵凯文*:南宁师范大学数学与统计学院,广西 南宁
关键词: 最大可满足问题;子句加权;组合优化;局部搜索;Maximum Satisfiability Problem; Clause-Weighting; Combinatorial Optimization; Local Search
摘要: 最大可满足性问题(Maximum Satisfiability Problem, MaxSAT)是布尔可满足性问题(Satisfiability Problem, SAT)的优化延伸,是NP难组合优化问题。在理论研究以及工程应用中的诸多优化问题都可以转化并编码为MaxSAT问题,从而借助其策略开展相关的研究与求解,是一种具有极其强大表达能力的逻辑约束优化模型。MaxSAT问题主要研究的是,给定一个命题逻辑合取范式公式(Conjunctive Normal Form, CNF),通过局部搜索算法寻找是否存在使其被满足的可行赋值。本研究主要聚焦于非完备算法中的随机局部搜索算法,并用其对最大可满足性问题进行求解。首先,详细介绍了SATLike3.0的子句加权方案,分析SATLike3.0子句加权策略中的硬惩罚增量和软惩罚增量,该加权策略均为设定的定值较为固化。其次,基于SATLike3.0子句加权阶段的加权部分,提出了动态惩罚增量调整的子句加权策略SR-Weighting()。最后,将硬子句满足率以及本组满足加权条件的软子句原始权重占比,融合到硬惩罚增量和软惩罚增量中,使其呈现灵活动态的调整,形成了高效的随机局部搜索求解器WrSATLike3.0。实验结果表明,在国际MaxSAT竞赛(MaxSAT Evaluation, MSE)2023和2024年的实例中。求解器WrSATLike3.0在成功求解实例个数以及求解质量上显著优于原始求解器SATLike3.0。在WPMS问题中进行对比时,成功求解实例个数上对比NuWLS以及BandMaxSAT也取得了一定的优势。
Abstract: The Maximum Satisfiability Problem (MaxSAT) is an optimized extension of the Boolean Satisfiability Problem (SAT). It is an NP-hard combinatorial optimization problem. Many optimization problems in theoretical research and engineering applications can be transformed and encoded into MaxSAT problems. Relevant research and solving can be carried out using its strategies. It is a logical-constraint optimization model with extremely strong expressive power. For the MaxSAT problem, we are given a propositional logic formula in Conjunctive Normal Form (CNF). Local search algorithms are used to find feasible assignments to satisfy this formula. This study mainly focuses on stochastic local search algorithms among incomplete algorithms. It employs such algorithms to solve the Maximum Satisfiability Problem. First, this paper describes the clause-weighting scheme of SATLike3.0 in detail. It analyzes the hard penalty increment and soft penalty increment in the clause-weighting strategy of SATLike3.0. These values are preset fixed numbers. The weighting strategy is rather rigid. Second, based on the weighting component in the clause-weighting stage of SATLike3.0, this paper proposes a clause-weighting strategy with dynamic penalty increment adjustment. Finally, this work integrates the satisfaction rate of hard clauses and the proportion of original weights of soft clauses that satisfy the weighting conditions in the current group into the hard penalty increment and soft penalty increment. These two increments can realize flexible and dynamic adjustment. An efficient stochastic local search solver called WrSATLike3.0 is developed. The experimental results show that the test instances come from MaxSAT Evaluation (MSE) 2023 and 2024. The solver WrSATLike3.0 significantly outperforms the original solver SATLike3.0 in the number of successfully solved instances and solution quality. For WPMS problem benchmarks, WrSATLike3.0 also achieves certain advantages in the number of solved instances. The comparison targets include NuWLS and BandMaxSAT.
文章引用:张彬, 赵凯文. 基于动态子句加权策略的MaxSAT问题局部搜索算法研究[J]. 计算机科学与应用, 2026, 16(10): 85-95. https://doi.org/10.12677/csa.2026.1610313

参考文献

[1] 何琨, 郑迥之. 最大可满足性问题的算法研究综述[J]. 华中科技大学学报(自然科学版), 2022, 50(2): 82-95.
[2] 牛鹏飞, 王晓峰, 芦磊, 等. 随机约束满足问题相变研究综述[J]. 计算机工程与科学, 2022, 44(7): 1321-1330.
[3] 赵星宇, 王晓峰, 庞立超, 等. 可满足性问题研究进展[J]. 计算机应用与软件, 2025, 42(10): 13-23+52.
[4] 朱叶, 丁苍峰, 曹博浩, 等. 面向组合优化问题的图神经网络研究进展[J]. 计算机科学与探索, 2026, 20(2): 367-385.
[5] Wen, J., Li, Y., Selman, B. and He, K. (2025) LocalEscaper: A Weakly Supervised Framework with Regional Reconstruction for Scalable Neural TSP Solvers. arXiv:2502.12484.
[6] Cai, S., Su, K. and Chen, Q. (2010) EWLS: A New Local Search for Minimum Vertex Cover. Proceedings of the AAAI Conference on Artificial Intelligence, 24, 45-50.
https://doi.org/10.1609/aaai.v24i1.7539
[7] Fan, Y., Li, N., Li, C., Ma, Z., Latecki, L.J. and Su, K. (2017) Restart and Random Walk in Local Search for Maximum Vertex Weight Cliques with Evaluations in Clustering Aggregation. Proceedings of the Twenty-Sixth International Joint Conference on Artificial Intelligence, Melbourne, 19-25 August 2017, 622-630.
https://doi.org/10.24963/ijcai.2017/87
[8] Pan, S., Wang, Y. and Cai, S. (2025) An Efficient Core-Guided Solver for Weighted Partial MaxSAT. Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence, Montreal, 16-22 August 2025, 2647-2656.
https://doi.org/10.24963/ijcai.2025/295
[9] He, X., Li, B., Zhao, M. and Cai, S. (2024) A Local Search Algorithm for MaxSMT(Lia). In: Platzer, A., Rozier, K.Y., Pradella, M. and Rossi, M., Eds., Lecture Notes in Computer Science, Springer, 55-72.
https://doi.org/10.1007/978-3-031-71162-6_3
[10] 徐振兴, 何琨, 李初民, 等. 基于搜索信息反馈策略的MaxSAT非完备求解算法[J]. 计算机学报, 2023, 46(4): 711-726.
[11] Chu, Y., Cai, S. and Luo, C. (2023) NuWLS: Improving Local Search for (Weighted) Partial MaxSAT by New Weighting Techniques. Proceedings of the AAAI Conference on Artificial Intelligence, 37, 3915-3923.
https://doi.org/10.1609/aaai.v37i4.25505
[12] Zhang, Z., Zhou, J., Wang, X., Yang, H. and Fan, Y. (2022) Initial Solution Generation and Diversified Variable Picking in Local Search for (Weighted) Partial MaxSAT. Entropy, 24, Article 1846.
https://doi.org/10.3390/e24121846
[13] Cai, S. and Lei, Z. (2020) Old Techniques in New Ways: Clause Weighting, Unit Propagation and Hybridization for Maximum Satisfiability. Artificial Intelligence, 287, Article 103354.
https://doi.org/10.1016/j.artint.2020.103354
[14] Zheng, J., He, K. and Zhou, J. (2022) Farsighted Probabilistic Sampling: A General Strategy for Boosting Local Search MaxSAT Solvers. arXiv:2108.09988.
http://arxiv.org/abs/2108.09988
[15] Zheng, J., He, K., Zhou, J., Jin, Y., Li, C.M. and Many’a, F. (2022) BandMaxSAT: A Local Search MaxSAT Solver with Multi-Armed Bandit. arXiv:2201.05544.
https://arxiv.org/abs/2201.05544
[16] Cai, S., Luo, C., Lin, J. and Su, K. (2016) New Local Search Methods for Partial MaxSAT. Artificial Intelligence, 240, 1-18.
https://doi.org/10.1016/j.artint.2016.07.006