20 package com.microsoft.z3;
35 return Native.optimizeGetHelp(getContext().nCtx(), getNativeObject());
45 Native.optimizeSetParams(getContext().nCtx(), getNativeObject(), value.getNativeObject());
61 getContext().checkContextMatch(constraints);
64 Native.optimizeAssert(getContext().nCtx(), getNativeObject(), a.getNativeObject());
94 return opt.GetLower(handle);
102 return opt.GetUpper(handle);
131 getContext().checkContextMatch(constraint);
132 Symbol s = getContext().mkSymbol(group);
133 return new Handle(
this,
Native.
optimizeAssertSoft(getContext().nCtx(), getNativeObject(), constraint.getNativeObject(), Integer.toString(weight), s.getNativeObject()));
145 Z3_lbool r = Z3_lbool.fromInt(Native.optimizeCheck(getContext().nCtx(), getNativeObject()));
161 Native.optimizePush(getContext().nCtx(), getNativeObject());
173 Native.optimizePop(getContext().nCtx(), getNativeObject());
185 long x = Native.optimizeGetModel(getContext().nCtx(), getNativeObject());
189 return new Model(getContext(), x);
216 return (
ArithExpr)Expr.create(getContext(), Native.optimizeGetLower(getContext().nCtx(), getNativeObject(), index));
223 private ArithExpr GetUpper(
int index)
225 return (ArithExpr)Expr.create(getContext(), Native.optimizeGetUpper(getContext().nCtx(), getNativeObject(), index));
233 return Native.optimizeGetReasonUnknown(getContext().nCtx(),
243 return Native.optimizeToString(getContext().nCtx(), getNativeObject());
260 Optimize(Context ctx)
throws Z3Exception
262 super(ctx, Native.mkOptimize(ctx.nCtx()));
268 getContext().getOptimizeDRQ().incAndClear(getContext(), o);
274 getContext().getOptimizeDRQ().add(o);
void Add(BoolExpr...constraints)
static int optimizeAssertSoft(long a0, long a1, long a2, String a3, long a4)
static long optimizeGetStatistics(long a0, long a1)
static int optimizeMinimize(long a0, long a1, long a2)
ParamDescrs getParameterDescriptions()
Z3_lbool
Lifted Boolean type: false, undefined, true.
static int optimizeMaximize(long a0, long a1, long a2)
Handle MkMaximize(ArithExpr e)
Statistics getStatistics()
Handle AssertSoft(BoolExpr constraint, int weight, String group)
static long optimizeGetParamDescrs(long a0, long a1)
void setParameters(Params value)
void Assert(BoolExpr...constraints)
Handle MkMinimize(ArithExpr e)
String getReasonUnknown()