Optimize.
More...
Optimize.
Definition at line 7883 of file z3py.py.
◆ __init__()
__init__ |
( |
|
self, |
|
|
|
opt, |
|
|
|
value, |
|
|
|
is_max |
|
) |
| |
Definition at line 7884 of file z3py.py.
7884 def __init__(self, opt, value, is_max):
7885 self._opt = opt
7886 self._value = value
7887 self._is_max = is_max
7888
◆ __str__()
Definition at line 7911 of file z3py.py.
7911 def __str__(self):
7912 return "%s:%s" % (self._value, self._is_max)
7913
7914
◆ lower()
Definition at line 7889 of file z3py.py.
7889 def lower(self):
7890 opt = self._opt
7892
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 7897 of file z3py.py.
7897 def lower_values(self):
7898 opt = self._opt
7900
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 7893 of file z3py.py.
7893 def upper(self):
7894 opt = self._opt
7896
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 7901 of file z3py.py.
7901 def upper_values(self):
7902 opt = self._opt
7904
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 7905 of file z3py.py.
7905 def value(self):
7906 if self._is_max:
7907 return self.upper()
7908 else:
7909 return self.lower()
7910
Referenced by FuncEntry.as_list().
◆ _is_max
◆ _opt
◆ _value