Optimize.
More...
Optimize.
Definition at line 7798 of file z3py.py.
◆ __init__()
def __init__ |
( |
|
self, |
|
|
|
opt, |
|
|
|
value, |
|
|
|
is_max |
|
) |
| |
Definition at line 7799 of file z3py.py.
7799 def __init__(self, opt, value, is_max):
7800 self._opt = opt
7801 self._value = value
7802 self._is_max = is_max
7803
◆ __str__()
Definition at line 7826 of file z3py.py.
7826 def __str__(self):
7827 return "%s:%s" % (self._value, self._is_max)
7828
7829
◆ lower()
Definition at line 7804 of file z3py.py.
7804 def lower(self):
7805 opt = self._opt
7807
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.
Referenced by OptimizeObjective.value().
◆ lower_values()
Definition at line 7812 of file z3py.py.
7812 def lower_values(self):
7813 opt = self._opt
7815
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 7808 of file z3py.py.
7808 def upper(self):
7809 opt = self._opt
7811
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.
Referenced by OptimizeObjective.value().
◆ upper_values()
Definition at line 7816 of file z3py.py.
7816 def upper_values(self):
7817 opt = self._opt
7819
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 7820 of file z3py.py.
7820 def value(self):
7821 if self._is_max:
7822 return self.upper()
7823 else:
7824 return self.lower()
7825
Referenced by FuncEntry.as_list().