20 package com.microsoft.z3;
35 return Native.optimizeGetHelp(getContext().nCtx(), getNativeObject());
45 Native.optimizeSetParams(getContext().nCtx(), getNativeObject(), value.getNativeObject());
53 return new ParamDescrs(getContext(), Native.optimizeGetParamDescrs(getContext().nCtx(), getNativeObject()));
61 getContext().checkContextMatch(constraints);
64 Native.optimizeAssert(getContext().nCtx(), getNativeObject(), a.getNativeObject());
94 return opt.GetLower(handle);
102 return opt.GetUpper(handle);
132 getContext().checkContextMatch(constraint);
134 return new Handle(
this, Native.optimizeAssertSoft(getContext().nCtx(), getNativeObject(), constraint.getNativeObject(), Integer.toString(weight), s.getNativeObject()));
146 Z3_lbool r =
Z3_lbool.fromInt(Native.optimizeCheck(getContext().nCtx(), getNativeObject()));
162 Native.optimizePush(getContext().nCtx(), getNativeObject());
174 Native.optimizePop(getContext().nCtx(), getNativeObject());
186 long x = Native.optimizeGetModel(getContext().nCtx(), getNativeObject());
190 return new Model(getContext(), x);
201 return new Handle(
this, Native.optimizeMaximize(getContext().nCtx(), getNativeObject(), e.getNativeObject()));
210 return new Handle(
this, Native.optimizeMinimize(getContext().nCtx(), getNativeObject(), e.getNativeObject()));
218 return (
ArithExpr)
Expr.create(getContext(), Native.optimizeGetLower(getContext().nCtx(), getNativeObject(), index));
225 private ArithExpr GetUpper(
int index)
227 return (ArithExpr)Expr.create(getContext(), Native.optimizeGetUpper(getContext().nCtx(), getNativeObject(), index));
235 return Native.optimizeGetReasonUnknown(getContext().nCtx(),
246 return Native.optimizeToString(getContext().nCtx(), getNativeObject());
254 return new Statistics(getContext(), Native.optimizeGetStatistics(getContext().nCtx(), getNativeObject()));
263 Optimize(Context ctx)
throws Z3Exception
265 super(ctx, Native.mkOptimize(ctx.nCtx()));
270 Native.optimizeIncRef(getContext().nCtx(), getNativeObject());
274 void addToReferenceQueue() {
void Assert(BoolExpr ... constraints)
void storeReference(Context ctx, T obj)
ParamDescrs getParameterDescriptions()
Z3_lbool
Lifted Boolean type: false, undefined, true.
IDecRefQueue< Optimize > getOptimizeDRQ()
Handle MkMaximize(ArithExpr e)
Statistics getStatistics()
void Add(BoolExpr ... constraints)
Handle AssertSoft(BoolExpr constraint, int weight, String group)
IntSymbol mkSymbol(int i)
void setParameters(Params value)
Handle MkMinimize(ArithExpr e)
def String(name, ctx=None)
String getReasonUnknown()