Optimize.
More...
Optimize.
Definition at line 8536 of file z3py.py.
◆ __init__()
| __init__ |
( |
|
self, |
|
|
|
opt, |
|
|
|
value, |
|
|
|
is_max |
|
) |
| |
Definition at line 8537 of file z3py.py.
8537 def __init__(self, opt, value, is_max):
8538 self._opt = opt
8539 self._value = value
8540 self._is_max = is_max
8541
◆ __str__()
Definition at line 8564 of file z3py.py.
8564 def __str__(self):
8565 return "%s:%s" % (self._value, self._is_max)
8566
8567
◆ lower()
Definition at line 8542 of file z3py.py.
8542 def lower(self):
8543 opt = self._opt
8545
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 8550 of file z3py.py.
8550 def lower_values(self):
8551 opt = self._opt
8553
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 8546 of file z3py.py.
8546 def upper(self):
8547 opt = self._opt
8549
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 8554 of file z3py.py.
8554 def upper_values(self):
8555 opt = self._opt
8557
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 8558 of file z3py.py.
8558 def value(self):
8559 if self._is_max:
8560 return self.upper()
8561 else:
8562 return self.lower()
8563
Referenced by FuncEntry.as_list().
◆ _is_max
◆ _opt
◆ _value