Class UnCArExpression
- java.lang.Object
-
- org.chocosolver.solver.expression.continuous.arithmetic.UnCArExpression
-
- All Implemented Interfaces:
CArExpression
public class UnCArExpression extends Object implements CArExpression
Unary arithmetic continuous expressionProject: choco-solver.
- Since:
- 28/04/2016.
- Author:
- Charles Prud'homme
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.chocosolver.solver.expression.continuous.arithmetic.CArExpression
CArExpression.Operator
-
-
Field Summary
-
Fields inherited from interface org.chocosolver.solver.expression.continuous.arithmetic.CArExpression
NO_CHILD
-
-
Constructor Summary
Constructors Constructor Description UnCArExpression(CArExpression.Operator op, CArExpression exp)Builds a unary expression
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModelgetModel()Return the associated modelRealVarrealVar(double p)StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.chocosolver.solver.expression.continuous.arithmetic.CArExpression
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
-
-
-
-
Constructor Detail
-
UnCArExpression
public UnCArExpression(CArExpression.Operator op, CArExpression exp)
Builds a unary expression- Parameters:
op- operatorexp- an continuous arithmetic expression
-
-
Method Detail
-
getModel
public Model getModel()
Description copied from interface:CArExpressionReturn the associated model- Specified by:
getModelin interfaceCArExpression- Returns:
- a Model object
-
realVar
public RealVar realVar(double p)
- Specified by:
realVarin interfaceCArExpression- Parameters:
p- precision of the variable to return- Returns:
- the arithmetic expression as an
RealVar. If necessary, it creates intermediary variable and posts intermediary constraints
-
-