Struct z3::Optimize

source ·
pub struct Optimize<'ctx> { /* private fields */ }

Implementations

Create a new optimize context.

Assert hard constraint to the optimization context.

See also:

Add a maximization constraint.

See also:

Add a minimization constraint.

See also:

Create a backtracking point.

The optimize solver contains a set of rules, added facts and assertions. The set of rules, facts and assertions are restored upon calling Optimize::pop().

See also:

Backtrack one level.

Preconditions:
See also:

Check consistency and produce optimal values.

See also:

Retrieve the model for the last Optimize::check()

The error handler is invoked if a model is not available because the commands above were not invoked for the given optimization solver, or if the result was Z3_L_FALSE.

Trait Implementations

Formats the value using the given formatter. Read more
Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.