Data Structures | |
class | Handle |
Public Member Functions | |
String | getHelp () |
void | setParameters (Params value) |
ParamDescrs | getParameterDescriptions () |
void | Assert (Expr< BoolSort > ... constraints) |
void | Add (Expr< BoolSort > ... constraints) |
void | AssertAndTrack (Expr< BoolSort > constraint, Expr< BoolSort > p) |
Handle<?> | AssertSoft (Expr< BoolSort > constraint, int weight, String group) |
Handle<?> | AssertSoft (Expr< BoolSort > constraint, String weight, String group) |
Status | Check (Expr< BoolSort >... assumptions) |
void | Push () |
void | Pop () |
Model | getModel () |
BoolExpr[] | getUnsatCore () |
String | getReasonUnknown () |
String | toString () |
void | fromFile (String file) |
void | fromString (String s) |
BoolExpr[] | getAssertions () |
Expr<?>[] | getObjectives () |
Statistics | getStatistics () |
Additional Inherited Members | |
Static Public Member Functions inherited from Z3Object | |
static long[] | arrayToNative (Z3Object[] a) |
static int | arrayLength (Z3Object[] a) |
Object for managing optimization context
Definition at line 30 of file Optimize.java.
Alias for Assert.
Definition at line 73 of file Optimize.java.
Assert a constraint (or multiple) into the optimize solver.
Definition at line 61 of file Optimize.java.
Assert a constraint into the optimizer, and track it (in the unsat) core using the Boolean constant p.
Remarks: This API is an alternative to check with assumptions for extracting unsat cores. Both APIs can be used in the same solver. The unsat core will contain a combination of the Boolean variables provided using assertAndTrack and the Boolean literals provided using check with assumptions.
Definition at line 91 of file Optimize.java.
Assert soft constraint
Return an objective which associates with the group of constraints.
Definition at line 177 of file Optimize.java.
Assert soft constraint
Return an objective which associates with the group of constraints.
Definition at line 188 of file Optimize.java.
Check satisfiability of asserted constraints. Produce a model that (when the objectives are bounded and don't use strict inequalities) is optimal.
Definition at line 200 of file Optimize.java.
|
inline |
Parse an SMT-LIB2 file with optimization objectives and constraints. The parsed constraints and objectives are added to the optimization context.
Definition at line 369 of file Optimize.java.
|
inline |
Similar to FromFile. Instead it takes as argument a string.
Definition at line 377 of file Optimize.java.
|
inline |
The set of asserted formulas.
Definition at line 385 of file Optimize.java.
|
inline |
A string that describes all available optimize solver parameters.
Definition at line 35 of file Optimize.java.
|
inline |
The model of the last Check.
The result is null if Check was not invoked before, if its results was not SATISFIABLE, or if model production is not enabled.
Definition at line 252 of file Optimize.java.
|
inline |
The set of asserted formulas.
Definition at line 394 of file Optimize.java.
|
inline |
Retrieves parameter descriptions for Optimize solver.
Definition at line 53 of file Optimize.java.
|
inline |
Return a string the describes why the last to check returned unknown
Definition at line 351 of file Optimize.java.
|
inline |
Optimize statistics.
Definition at line 403 of file Optimize.java.
|
inline |
The unsat core of the last
. Remarks: The unsat core is a subset of
The result is empty if
was not invoked before, if its results was not
, or if core production is disabled.
Z3Exception |
Definition at line 271 of file Optimize.java.
|
inline |
Backtrack one backtracking point.
Note that an exception is thrown if Pop is called without a corresponding Push.
Definition at line 240 of file Optimize.java.
|
inline |
Creates a backtracking point.
Definition at line 230 of file Optimize.java.
|
inline |
Sets the optimize solver parameters.
Z3Exception |
Definition at line 45 of file Optimize.java.
|
inline |
Print the context to a String (SMT-LIB parseable benchmark).
Definition at line 360 of file Optimize.java.