Optimize.
More...
Optimize.
Definition at line 7697 of file z3py.py.
◆ __init__()
def __init__ |
( |
|
self, |
|
|
|
opt, |
|
|
|
value, |
|
|
|
is_max |
|
) |
| |
Definition at line 7698 of file z3py.py.
7698 def __init__(self, opt, value, is_max):
7699 self._opt = opt
7700 self._value = value
7701 self._is_max = is_max
7702
◆ __str__()
Definition at line 7725 of file z3py.py.
7725 def __str__(self):
7726 return "%s:%s" % (self._value, self._is_max)
7727
7728
◆ lower()
Definition at line 7703 of file z3py.py.
7703 def lower(self):
7704 opt = self._opt
7706
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 7711 of file z3py.py.
7711 def lower_values(self):
7712 opt = self._opt
7714
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 7707 of file z3py.py.
7707 def upper(self):
7708 opt = self._opt
7710
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 7715 of file z3py.py.
7715 def upper_values(self):
7716 opt = self._opt
7718
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 7719 of file z3py.py.
7719 def value(self):
7720 if self._is_max:
7721 return self.upper()
7722 else:
7723 return self.lower()
7724
Referenced by FuncEntry.as_list().