Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

z3 symbolic expressions cannot be cast to concrete boolean values

# Return maximum of a vector; error if empty
def symMax(vs):
  m = vs[0]
  for v in vs[1:]:
    m = If(v > m, v, m)
  return m

obj = symMax([P[i][1] + y[i] for i in range(blocks)])
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #symbolic #expressions #cast #concrete #boolean #values
ADD COMMENT
Topic
Name
2+5 =