How can I solve minimizing constraint in Z3?

不想你离开。 提交于 2019-12-12 12:38:01

问题


Could any one can tell me how I can implement minimizing integer problem like the below one by Z3py? How can I define for all statement? Here all variables are int sort.

Is there any dedicated solver within Z3 is available to solve such kind of problem? If there any, then how can I set configuration for that solver?

Thanks


回答1:


Here are some relevant/similar questions and answers:

  • Minimum and maximum value of variable

  • Determine upper/lower bound for variables in an arbitrary propositional formula

  • How to optimize a piece of code in Z3? (PI_NON_NESTED_ARITH_WEIGHT related)

  • Does Z3 have support for optimization problems



来源:https://stackoverflow.com/questions/18362711/how-can-i-solve-minimizing-constraint-in-z3

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!