Module org.chocosolver
Class BiCArExpression
- java.lang.Object
-
- org.chocosolver.solver.expression.continuous.arithmetic.BiCArExpression
-
- All Implemented Interfaces:
CArExpression
public class BiCArExpression extends Object implements CArExpression
Binary continuous arithmetic 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 BiCArExpression(CArExpression.Operator op, CArExpression e1, CArExpression e2)
Builds a binary expression
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Model
getModel()
Return the associated modelRealVar
realVar(double p)
String
toString()
-
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
-
BiCArExpression
public BiCArExpression(CArExpression.Operator op, CArExpression e1, CArExpression e2)
Builds a binary expression- Parameters:
op
- an operatore1
- an expressione2
- an expression
-
-
Method Detail
-
getModel
public Model getModel()
Description copied from interface:CArExpression
Return the associated model- Specified by:
getModel
in interfaceCArExpression
- Returns:
- a Model object
-
realVar
public RealVar realVar(double p)
- Specified by:
realVar
in 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
-
-