Optimize.
More...
Optimize.
Definition at line 8112 of file z3py.py.
◆ __init__()
| __init__ |
( |
|
self, |
|
|
|
opt, |
|
|
|
value, |
|
|
|
is_max |
|
) |
| |
Definition at line 8113 of file z3py.py.
8113 def __init__(self, opt, value, is_max):
8114 self._opt = opt
8115 self._value = value
8116 self._is_max = is_max
8117
◆ __str__()
Definition at line 8140 of file z3py.py.
8140 def __str__(self):
8141 return "%s:%s" % (self._value, self._is_max)
8142
8143
◆ lower()
Definition at line 8118 of file z3py.py.
8118 def lower(self):
8119 opt = self._opt
8121
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 8126 of file z3py.py.
8126 def lower_values(self):
8127 opt = self._opt
8129
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 8122 of file z3py.py.
8122 def upper(self):
8123 opt = self._opt
8125
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 8130 of file z3py.py.
8130 def upper_values(self):
8131 opt = self._opt
8133
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 8134 of file z3py.py.
8134 def value(self):
8135 if self._is_max:
8136 return self.upper()
8137 else:
8138 return self.lower()
8139
Referenced by FuncEntry.as_list().
◆ _is_max
◆ _opt
◆ _value