Optimize.
More...
Optimize.
Definition at line 7325 of file z3py.py.
◆ __init__()
def __init__ |
( |
|
self, |
|
|
|
opt, |
|
|
|
value, |
|
|
|
is_max |
|
) |
| |
Definition at line 7326 of file z3py.py.
7326 def __init__(self, opt, value, is_max):
7327 self._opt = opt
7328 self._value = value
7329 self._is_max = is_max
7330
◆ __str__()
Definition at line 7353 of file z3py.py.
7353 def __str__(self):
7354 return "%s:%s" % (self._value, self._is_max)
7355
7356
◆ lower()
Definition at line 7331 of file z3py.py.
7331 def lower(self):
7332 opt = self._opt
7334
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 7339 of file z3py.py.
7339 def lower_values(self):
7340 opt = self._opt
7342
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 7335 of file z3py.py.
7335 def upper(self):
7336 opt = self._opt
7338
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 7343 of file z3py.py.
7343 def upper_values(self):
7344 opt = self._opt
7346
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 7347 of file z3py.py.
7347 def value(self):
7348 if self._is_max:
7349 return self.upper()
7350 else:
7351 return self.lower()
7352
Referenced by FuncEntry.as_list().