Optimize.
More...
Optimize.
Definition at line 7985 of file z3py.py.
◆ __init__()
__init__ |
( |
| self, |
|
|
| opt, |
|
|
| value, |
|
|
| is_max ) |
Definition at line 7986 of file z3py.py.
7986 def __init__(self, opt, value, is_max):
7987 self._opt = opt
7988 self._value = value
7989 self._is_max = is_max
7990
◆ __str__()
Definition at line 8013 of file z3py.py.
8013 def __str__(self):
8014 return "%s:%s" % (self._value, self._is_max)
8015
8016
◆ lower()
Definition at line 7991 of file z3py.py.
7991 def lower(self):
7992 opt = self._opt
7994
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 7999 of file z3py.py.
7999 def lower_values(self):
8000 opt = self._opt
8002
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 7995 of file z3py.py.
7995 def upper(self):
7996 opt = self._opt
7998
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 8003 of file z3py.py.
8003 def upper_values(self):
8004 opt = self._opt
8006
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 8007 of file z3py.py.
8007 def value(self):
8008 if self._is_max:
8009 return self.upper()
8010 else:
8011 return self.lower()
8012
◆ _is_max
◆ _opt
◆ _value