You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’ve encountered an issue with Z3 c002c77.
For the following instance, when maximizing (abs (to_int a)) alongside another objective, Z3 returns an incorrect optimal value of 1 instead of the expected oo.
Minimal Example:
(set-option :opt.priority box)
(declare-constaReal)
(assert (< a 0))
(maximize a)
(maximize (abs (to_int a)))
(check-sat)
(get-objectives)
Output:
sat
(objectives
(a (- 1))
((abs (to_int a)) 1)
)
Expected Behavior:
The issue only occurs when (maximize (abs (to_int a))) is combined with another objective like (maximize a). When (maximize a) is removed, Z3 correctly reports (abs (to_int a)) as oo.
The text was updated successfully, but these errors were encountered:
merlinsun
changed the title
Correctness issue regarding abs(to_int) in multi-objective optimization
Correctness issue regarding abs in multi-objective optimization
Mar 8, 2025
Hi Nikolaj,
I’ve encountered an issue with Z3 c002c77.
For the following instance, when maximizing
(abs (to_int a))
alongside another objective, Z3 returns an incorrect optimal value of1
instead of the expectedoo
.Minimal Example:
Output:
Expected Behavior:
The issue only occurs when
(maximize (abs (to_int a)))
is combined with another objective like(maximize a)
. When(maximize a)
is removed, Z3 correctly reports(abs (to_int a))
asoo
.Output (Correct):
Thanks for looking into this!
The text was updated successfully, but these errors were encountered: