简体   繁体   English

Z3 maxsat smtlib 2.0

[英]Z3 maxsat smtlib 2.0

Is there a way to do maxsat with the c++ api using the smtlib2.0 instances. 有没有办法使用smtlib2.0实例对c ++ api进行maxsat。 Namely, how to make the function get_soft_constraints to work with the smtlib2.0 instances? 即,如何使函数get_soft_constraints与smtlib2.0实例一起使用?

No, the maxsat example was implemented before SMT 2.0 was introduced. 否,在引入SMT 2.0之前已实现maxsat示例。 The example can be modified to read SMT 2.0 files. 可以修改该示例以读取SMT 2.0文件。 The basic idea is to use the SMT 2.0 parser instead of the SMT 1.0, and devise some mechanism to identify soft constraints. 基本思想是使用SMT 2.0解析器而不是SMT 1.0,并设计出一些机制来识别软约束。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM