最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

z3 - Multithreading in z3py? - Stack Overflow

programmeradmin5浏览0评论

It is possible to set parameter sat.threads to make z3py use multiple threads for satisfiability problems with Boolean variables.

Example code:

if cfg.threads > 1:
    z3.set_param("sat.threads", cfg.threads)

As recommended here, I also tried:

z3.set_param("parallel.enable", True)
z3.set_param("parallel.threads.max", 8)

The program still does not use more than one thread. In fact, it does use multiple threads, but it does not consume more than 12.5% of the CPU capacity of my 8-core machine.

What about problems like this with integer rather than Boolean decision variables?

How can I activate z3py multithreading for such problems?

发布评论

评论列表(0)

  1. 暂无评论