3
0
Fork 0
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:
Andrey Andreyevich Bienkowski 2023-12-04 17:32:26 +00:00 committed by GitHub
parent 6910a4e18c
commit 18f14921ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View file

@ -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)

View file

@ -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)
{ {

View file

@ -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 *)

View file

@ -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)()