Optimize.
More...
Optimize.
Definition at line 8673 of file z3py.py.
◆ __init__()
| __init__ |
( |
| self, |
|
|
| opt, |
|
|
| value, |
|
|
| is_max ) |
Definition at line 8674 of file z3py.py.
8674 def __init__(self, opt, value, is_max):
8675 self._opt = opt
8676 self._value = value
8677 self._is_max = is_max
8678
◆ __str__()
Definition at line 8701 of file z3py.py.
8701 def __str__(self):
8702 return "%s:%s" % (self._value, self._is_max)
8703
8704
◆ lower()
Definition at line 8679 of file z3py.py.
8679 def lower(self):
8680 opt = self._opt
8682
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 8687 of file z3py.py.
8687 def lower_values(self):
8688 opt = self._opt
8690
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 8683 of file z3py.py.
8683 def upper(self):
8684 opt = self._opt
8686
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 8691 of file z3py.py.
8691 def upper_values(self):
8692 opt = self._opt
8694
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 8695 of file z3py.py.
8695 def value(self):
8696 if self._is_max:
8697 return self.upper()
8698 else:
8699 return self.lower()
8700
◆ _is_max
◆ _opt
◆ _value