Optimize.
More...
Optimize.
Definition at line 7976 of file z3py.py.
◆ __init__()
__init__ |
( |
| self, |
|
|
| opt, |
|
|
| value, |
|
|
| is_max ) |
Definition at line 7977 of file z3py.py.
7977 def __init__(self, opt, value, is_max):
7978 self._opt = opt
7979 self._value = value
7980 self._is_max = is_max
7981
◆ __str__()
Definition at line 8004 of file z3py.py.
8004 def __str__(self):
8005 return "%s:%s" % (self._value, self._is_max)
8006
8007
◆ lower()
Definition at line 7982 of file z3py.py.
7982 def lower(self):
7983 opt = self._opt
7985
Z3_ast Z3_API Z3_optimize_get_lower(Z3_context c, Z3_optimize o, unsigned idx)
Retrieve lower bound value or approximation for the i'th optimization objective.
◆ lower_values()
Definition at line 7990 of file z3py.py.
7990 def lower_values(self):
7991 opt = self._opt
7993
Z3_ast_vector Z3_API Z3_optimize_get_lower_as_vector(Z3_context c, Z3_optimize o, unsigned idx)
Retrieve lower bound value or approximation for the i'th optimization objective. The returned vector ...
◆ upper()
Definition at line 7986 of file z3py.py.
7986 def upper(self):
7987 opt = self._opt
7989
Z3_ast Z3_API Z3_optimize_get_upper(Z3_context c, Z3_optimize o, unsigned idx)
Retrieve upper bound value or approximation for the i'th optimization objective.
◆ upper_values()
Definition at line 7994 of file z3py.py.
7994 def upper_values(self):
7995 opt = self._opt
7997
Z3_ast_vector Z3_API Z3_optimize_get_upper_as_vector(Z3_context c, Z3_optimize o, unsigned idx)
Retrieve upper bound value or approximation for the i'th optimization objective.
◆ value()
Definition at line 7998 of file z3py.py.
7998 def value(self):
7999 if self._is_max:
8000 return self.upper()
8001 else:
8002 return self.lower()
8003
◆ _is_max
◆ _opt
◆ _value