mirror of
https://github.com/Z3Prover/z3
synced 2025-12-09 13:23:23 +00:00
Implement max PB constraints optimization feature
Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>
This commit is contained in:
parent
cb039c95aa
commit
016539cd61
5 changed files with 257 additions and 1 deletions
10
test_pb_max.smt2
Normal file
10
test_pb_max.smt2
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
(declare-fun x1 () Bool)
|
||||
(declare-fun x2 () Bool)
|
||||
(declare-fun y1 () Bool)
|
||||
(declare-fun y2 () Bool)
|
||||
|
||||
; Create two PB maximize objectives - must be integer expressions
|
||||
(maximize (+ (ite x1 2 0) (ite x2 1 0))) ; PB1: max = 3
|
||||
(maximize (+ (ite y1 1 0) (ite y2 2 0))) ; PB2: max = 3
|
||||
|
||||
(check-sat)
|
||||
Loading…
Add table
Add a link
Reference in a new issue