mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 12:08:18 +00:00
Clarify optimizer guarantees (#7030)
* Clarify optimizer guarantees (python) * Clarify optimization guarantees (OCaml) * Clarify optimizer guarantees (java) * Clarify optimizer guarantees (.net)
This commit is contained in:
parent
6910a4e18c
commit
18f14921ba
|
@ -220,7 +220,7 @@ namespace Microsoft.Z3
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Check satisfiability of asserted constraints.
|
/// Check satisfiability of asserted constraints.
|
||||||
/// Produce a model that (when the objectives are bounded and
|
/// Produce a model that (when the objectives are bounded and
|
||||||
/// don't use strict inequalities) meets the objectives.
|
/// don't use strict inequalities) is optimal.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
///
|
///
|
||||||
public Status Check(params Expr[] assumptions)
|
public Status Check(params Expr[] assumptions)
|
||||||
|
|
|
@ -193,7 +193,7 @@ public class Optimize extends Z3Object {
|
||||||
/**
|
/**
|
||||||
* Check satisfiability of asserted constraints.
|
* Check satisfiability of asserted constraints.
|
||||||
* Produce a model that (when the objectives are bounded and
|
* Produce a model that (when the objectives are bounded and
|
||||||
* don't use strict inequalities) meets the objectives.
|
* don't use strict inequalities) is optimal.
|
||||||
**/
|
**/
|
||||||
public Status Check(Expr<BoolSort>... assumptions)
|
public Status Check(Expr<BoolSort>... assumptions)
|
||||||
{
|
{
|
||||||
|
|
|
@ -3481,7 +3481,7 @@ sig
|
||||||
(** Add minimization objective. *)
|
(** Add minimization objective. *)
|
||||||
val minimize : optimize -> Expr.expr -> handle
|
val minimize : optimize -> Expr.expr -> handle
|
||||||
|
|
||||||
(** Checks whether the assertions in the context are satisfiable and solves objectives. *)
|
(** Check consistency and produce optimal values. *)
|
||||||
val check : optimize -> Solver.status
|
val check : optimize -> Solver.status
|
||||||
|
|
||||||
(** Retrieve model from satisfiable context *)
|
(** Retrieve model from satisfiable context *)
|
||||||
|
|
|
@ -8046,7 +8046,7 @@ class Optimize(Z3PPObject):
|
||||||
Z3_optimize_pop(self.ctx.ref(), self.optimize)
|
Z3_optimize_pop(self.ctx.ref(), self.optimize)
|
||||||
|
|
||||||
def check(self, *assumptions):
|
def check(self, *assumptions):
|
||||||
"""Check satisfiability while optimizing objective functions."""
|
"""Check consistency and produce optimal values."""
|
||||||
assumptions = _get_args(assumptions)
|
assumptions = _get_args(assumptions)
|
||||||
num = len(assumptions)
|
num = len(assumptions)
|
||||||
_assumptions = (Ast * num)()
|
_assumptions = (Ast * num)()
|
||||||
|
|
Loading…
Reference in a new issue