public class UnCArExpression extends Object implements CArExpression
Project: choco-solver.
CArExpression.Operator
NO_CHILD
Constructor and Description |
---|
UnCArExpression(CArExpression.Operator op,
CArExpression exp)
Builds a unary expression
|
Modifier and Type | Method and Description |
---|---|
Model |
getModel()
Return the associated model
|
RealVar |
realVar(double p) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
abs, acos, acosh, add, add, asin, asinh, atan, atan2, atan2, atanh, cos, cosh, div, div, eq, eq, exp, ge, ge, gt, gt, le, le, ln, lt, lt, max, max, min, min, mul, mul, neg, pow, pow, sin, sinh, sqrt, sub, sub, tan, tanh
public UnCArExpression(CArExpression.Operator op, CArExpression exp)
op
- operatorexp
- an continuous arithmetic expressionpublic Model getModel()
CArExpression
getModel
in interface CArExpression
public RealVar realVar(double p)
realVar
in interface CArExpression
p
- precision of the variable to returnRealVar
.
If necessary, it creates intermediary variable and posts intermediary constraintsCopyright © 2017. All rights reserved.