|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for objects used to create advanced mathematical expressions
Method Summary | |
CspDoubleExpr |
abs(CspDoubleExpr expr)
Creates double expression representing |expr| |
CspFloatExpr |
abs(CspFloatExpr expr)
Creates float expression representing |expr| |
CspIntExpr |
abs(CspIntExpr expr)
Creates integer expression representing |expr| |
CspLongExpr |
abs(CspLongExpr expr)
Creates long expression representing |expr| |
CspDoubleExpr |
acos(CspDoubleExpr x)
Creates double expression representing arc cos(x) in radians |
CspDoubleExpr |
add(int a,
CspDoubleExpr bexpr)
Creates integer expression representing a+b |
CspFloatExpr |
add(int a,
CspFloatExpr bexpr)
Creates integer expression representing a+b |
CspIntExpr |
add(int a,
CspIntExpr bexpr)
Creates integer expression representing a+b |
CspLongExpr |
add(int a,
CspLongExpr bexpr)
Creates integer expression representing a+b |
CspConstraint |
allDifferent(CspGenericIntExpr expr)
Constrains all elements of a generic variable to be different values |
CspConstraint |
allDifferent(CspGenericLongExpr expr)
Constrains all elements of a generic variable to be different values |
CspConstraint |
allDifferent(CspIntExpr[] exprs)
Constrains an array of variables to have different values |
CspConstraint |
allDifferent(CspLongExpr[] exprs)
Constrains an array of variables to have different values |
CspDoubleExpr |
asin(CspDoubleExpr x)
Creates double expression representing arc sin(x) in radians |
CspDoubleExpr |
atan(CspDoubleExpr x)
Creates double expression representing arc sin(x) in radians |
CspDoubleExpr |
cos(CspDoubleExpr x)
Creates double expression representing cos(x) in radians |
CspDoubleExpr |
divide(int a,
CspDoubleExpr bexpr)
Creates double expression representing a/b |
CspFloatExpr |
divide(int a,
CspFloatExpr bexpr)
Creates float expression representing a/b |
CspIntExpr |
divide(int a,
CspIntExpr bexpr)
Creates integer expression representing a/b |
CspLongExpr |
divide(int a,
CspLongExpr bexpr)
Creates long integer expression representing a/b |
CspDoubleExpr |
exp(CspDoubleExpr x)
Creates double expression representing e^x where e is the natural logarithm base |
CspConstraint |
globalCardCount(CspGenericIntExpr expr,
java.lang.Number[] vals,
CspIntExpr[] count)
A constraint that will count the number of occurrence of certain values and store that number in the corresponding count int expression |
CspConstraint |
globalCardCount(CspGenericLongExpr expr,
java.lang.Number[] vals,
CspIntExpr[] count)
A constraint that will count the number of occurrence of certain values and store that number in the corresponding count int expression |
CspConstraint |
globalCardCount(CspIntExpr[] exprs,
java.lang.Number[] vals,
CspIntExpr[] count)
A constraint that will count the number of occurrence of certain values and store that number in the corresponding count int expression |
CspConstraint |
globalCardCount(CspLongExpr[] exprs,
java.lang.Number[] vals,
CspIntExpr[] count)
A constraint that will count the number of occurrence of certain values and store that number in the corresponding count int expression |
CspConstraint |
globalCardinality(CspGenericIntExpr expr,
java.lang.Number[] vals,
int[] lb,
int[] ub)
Generates a constraint that will cause the number of times vals occurs in exprs to be at least lb and at most ub |
CspConstraint |
globalCardinality(CspGenericLongExpr expr,
java.lang.Number[] vals,
int[] lb,
int[] ub)
Generates a constraint that will cause the number of times vals occurs in exprs to be at least lb and at most ub |
CspConstraint |
globalCardinality(CspIntExpr[] exprs,
java.lang.Number[] vals,
int[] lb,
int[] ub)
Generates a constraint that will cause the number of times vals occurs in exprs to be at least lb and at most ub |
CspConstraint |
globalCardinality(CspLongExpr[] exprs,
java.lang.Number[] vals,
int[] lb,
int[] ub)
Generates a constraint that will cause the number of times vals occurs in exprs to be at least lb and at most ub |
CspDoubleExpr |
log(CspDoubleExpr x)
Creates double expression representing natural log(x) |
CspConstraint |
memberOfArray(CspIntExpr[] sources,
CspIntExpr expr)
Constrains a numeric expression to be a member of an array. |
CspConstraint |
memberOfArray(CspLongExpr[] sources,
CspLongExpr expr)
Constrains a numeric expression to be a member of an array. |
CspDoubleExpr |
multiply(int a,
CspDoubleExpr bexpr)
Creates double expression representing a*b |
CspFloatExpr |
multiply(int a,
CspFloatExpr bexpr)
Creates float expression representing a*b |
CspIntExpr |
multiply(int a,
CspIntExpr bexpr)
Creates integer expression representing a*b |
CspLongExpr |
multiply(int a,
CspLongExpr bexpr)
Creates long integer expression representing a*b |
CspConstraint |
notMemberOfArray(CspIntExpr[] sources,
CspIntExpr expr)
Constrains a numeric expression to not be a member of an array. |
CspConstraint |
notMemberOfArray(CspLongExpr[] sources,
CspLongExpr expr)
Constrains a numeric expression to not be a member of an array. |
CspDoubleExpr |
power(CspDoubleExpr x,
CspDoubleExpr p)
Creates double expression representing x^p |
CspDoubleExpr |
power(CspDoubleExpr x,
double p)
Creates double expression representing x^p |
CspDoubleExpr |
power(double x,
CspDoubleExpr p)
Creates double expression representing x^p |
CspDoubleExpr |
sin(CspDoubleExpr x)
Creates double expression representing sin(x) in radians |
CspDoubleExpr |
square(CspDoubleExpr expr)
Creates double expression representing expr^2 |
CspFloatExpr |
square(CspFloatExpr expr)
Creates float expression representing expr^2 |
CspIntExpr |
square(CspIntExpr expr)
Creates integer expression representing expr^2 |
CspLongExpr |
square(CspLongExpr expr)
Creates long integer expression representing expr^2 |
CspDoubleExpr |
subtract(int a,
CspDoubleExpr bexpr)
Creates integer expression representing a-b |
CspFloatExpr |
subtract(int a,
CspFloatExpr bexpr)
Creates integer expression representing a-b |
CspIntExpr |
subtract(int a,
CspIntExpr bexpr)
Creates integer expression representing a-b |
CspLongExpr |
subtract(int a,
CspLongExpr bexpr)
Creates integer expression representing a-b |
CspDoubleExpr |
summation(CspGenericDoubleExpr x,
CspGenericIndex[] indexRange,
CspGenericIndexRestriction sourceIdxRestriction)
Creates a variable equal to the summation of values in the generic variable. |
CspFloatExpr |
summation(CspGenericFloatExpr x,
CspGenericIndex[] indexRange,
CspGenericIndexRestriction sourceIdxRestriction)
Creates a variable equal to the summation of values in the generic variable. |
CspIntExpr |
summation(CspGenericIntExpr x,
CspGenericIndex[] indexRange,
CspGenericIndexRestriction sourceIdxRestriction)
Creates a variable equal to the summation of values in the generic variable. |
CspLongExpr |
summation(CspGenericLongExpr x,
CspGenericIndex[] indexRange,
CspGenericIndexRestriction sourceIdxRestriction)
Creates a variable equal to the summation of values in the generic variable. |
CspDoubleExpr |
tan(CspDoubleExpr x)
Creates double expression representing tan(x) in radians |
Method Detail |
public CspIntExpr add(int a, CspIntExpr bexpr)
a
- constant to be addedbexpr
- expression to be added to
public CspLongExpr add(int a, CspLongExpr bexpr)
a
- constant to be addedbexpr
- expression to be added to
public CspFloatExpr add(int a, CspFloatExpr bexpr)
a
- constant to be addedbexpr
- expression to be added to
public CspDoubleExpr add(int a, CspDoubleExpr bexpr)
a
- constant to be addedbexpr
- expression to be added to
public CspIntExpr subtract(int a, CspIntExpr bexpr)
a
- constant to start withbexpr
- expression to be subtracted from constant
public CspLongExpr subtract(int a, CspLongExpr bexpr)
a
- constant to start withbexpr
- expression to be subtracted from constant
public CspFloatExpr subtract(int a, CspFloatExpr bexpr)
a
- constant to start withbexpr
- expression to be subtracted from constant
public CspDoubleExpr subtract(int a, CspDoubleExpr bexpr)
a
- constant to start withbexpr
- expression to be subtracted from constant
public CspIntExpr multiply(int a, CspIntExpr bexpr)
a
- constant valued factor of this multiplicationbexpr
- expression factor of this multiplication
public CspLongExpr multiply(int a, CspLongExpr bexpr)
a
- constant valued factor of this multiplicationbexpr
- expression factor of this multiplication
public CspFloatExpr multiply(int a, CspFloatExpr bexpr)
a
- constant valued factor of this multiplicationbexpr
- expression factor of this multiplication
public CspDoubleExpr multiply(int a, CspDoubleExpr bexpr)
a
- constant valued factor of this multiplicationbexpr
- expression factor of this multiplication
public CspIntExpr divide(int a, CspIntExpr bexpr)
a
- constant dividend of this divide operationbexpr
- expression divisor of this divide operation
public CspLongExpr divide(int a, CspLongExpr bexpr)
a
- constant dividend of this divide operationbexpr
- expression divisor of this divide operation
public CspFloatExpr divide(int a, CspFloatExpr bexpr)
a
- constant dividend of this divide operationbexpr
- expression divisor of this divide operation
public CspDoubleExpr divide(int a, CspDoubleExpr bexpr)
a
- constant dividend of this divide operationbexpr
- expression divisor of this divide operation
public CspIntExpr abs(CspIntExpr expr)
expr
- expression of which to obtain the absolute value
public CspLongExpr abs(CspLongExpr expr)
expr
- expression of which to obtain the absolute value
public CspFloatExpr abs(CspFloatExpr expr)
expr
- expression of which to obtain the absolute value
public CspDoubleExpr abs(CspDoubleExpr expr)
expr
- expression of which to obtain the absolute value
public CspIntExpr square(CspIntExpr expr)
expr
- expression of which to obtain the square value
public CspLongExpr square(CspLongExpr expr)
expr
- expression of which to obtain the square value
public CspFloatExpr square(CspFloatExpr expr)
expr
- expression of which to obtain the square value
public CspDoubleExpr square(CspDoubleExpr expr)
expr
- expression of which to obtain the square value
public CspDoubleExpr power(CspDoubleExpr x, double p)
x
- base value of this exponentp
- value of the power of which to raise x
public CspDoubleExpr power(CspDoubleExpr x, CspDoubleExpr p)
x
- base value of this exponentp
- value of the power of which to raise x
public CspDoubleExpr power(double x, CspDoubleExpr p)
x
- base value of this exponentp
- value of the power of which to raise x
public CspDoubleExpr exp(CspDoubleExpr x)
x
- value of the power of which to raise e
public CspDoubleExpr log(CspDoubleExpr x)
x
- value of which to take the natural log
public CspDoubleExpr cos(CspDoubleExpr x)
x
- value of which to take cosine of
public CspDoubleExpr acos(CspDoubleExpr x)
x
- value of which to take arccosine of
public CspDoubleExpr sin(CspDoubleExpr x)
x
- value of which to take sine of
public CspDoubleExpr asin(CspDoubleExpr x)
x
- value of which to take arcsine of
public CspDoubleExpr tan(CspDoubleExpr x)
x
- value of which to take tangent of
public CspDoubleExpr atan(CspDoubleExpr x)
x
- value of which to take arctangent of
public CspConstraint allDifferent(CspIntExpr[] exprs)
exprs
- array of expression objects that you would like to guarantee distinct
public CspConstraint allDifferent(CspLongExpr[] exprs)
exprs
- array of expression objects that you would like to guarantee distinct
public CspConstraint allDifferent(CspGenericIntExpr expr)
expr
- generic expression whose elements need to be different
public CspConstraint allDifferent(CspGenericLongExpr expr)
expr
- generic expression whose elements need to be different
public CspConstraint globalCardinality(CspIntExpr[] exprs, java.lang.Number[] vals, int[] lb, int[] ub)
exprs
- - collection of expressions whose elements need to occur at least lb and at most ub timesvals
- - the list of values that have been bounded to occur a certain number of timeslb
- - lower bound representing the minimum number of times that the val at the corresponding index occursub
- - upper bound representing the maximum number of times that the val at the corresponding index occurs
public CspConstraint globalCardinality(CspLongExpr[] exprs, java.lang.Number[] vals, int[] lb, int[] ub)
exprs
- - generic expression whose elements need to occur at least lb and at most ub timesvals
- - the list of values that have been bounded to occur a certain number of timeslb
- - lower bound representing the minimum number of times that the val at the corresponding index occursub
- - upper bound representing the maximum number of times that the val at the corresponding index occurs
public CspConstraint globalCardinality(CspGenericIntExpr expr, java.lang.Number[] vals, int[] lb, int[] ub)
expr
- - generic expression whose elements need to occur at least lb and at most ub timesvals
- - the list of values that have been bounded to occur a certain number of timeslb
- - lower bound representing the minimum number of times that the val at the corresponding index occursub
- - upper bound representing the maximum number of times that the val at the corresponding index occurs
public CspConstraint globalCardinality(CspGenericLongExpr expr, java.lang.Number[] vals, int[] lb, int[] ub)
expr
- - collection of expressions whose elements need to occur at least lb and at most ub timesvals
- - the list of values that have been bounded to occur a certain number of timeslb
- - lower bound representing the minimum number of times that the val at the corresponding index occursub
- - upper bound representing the maximum number of times that the val at the corresponding index occurs
public CspConstraint globalCardCount(CspIntExpr[] exprs, java.lang.Number[] vals, CspIntExpr[] count)
exprs
- - the expressions whose values we will countvals
- - the values we are concerned about countingcount
- - the int expression representing the number of occurrends of the corresponding value in exprs
public CspConstraint globalCardCount(CspLongExpr[] exprs, java.lang.Number[] vals, CspIntExpr[] count)
exprs
- - the expressions whose values we will countvals
- - the values we are concerned about countingcount
- - the int expression representing the number of occurrends of the corresponding value in exprs
public CspConstraint globalCardCount(CspGenericIntExpr expr, java.lang.Number[] vals, CspIntExpr[] count)
expr
- - generic expression whose values we will countvals
- - the values we are concerned about countingcount
- - the int expression representing the number of occurrends of the corresponding value in expr
public CspConstraint globalCardCount(CspGenericLongExpr expr, java.lang.Number[] vals, CspIntExpr[] count)
expr
- - generic expression whose values we will countvals
- - the values we are concerned about countingcount
- - the int expression representing the number of occurrends of the corresponding value in expr
public CspConstraint memberOfArray(CspIntExpr[] sources, CspIntExpr expr)
sources
- collection of expressions that expr must be a member ofexpr
- expression that must be a member of sources
public CspConstraint notMemberOfArray(CspLongExpr[] sources, CspLongExpr expr)
sources
- collection of expressions that expr must not be a member ofexpr
- expression that must not be a member of sources
public CspConstraint notMemberOfArray(CspIntExpr[] sources, CspIntExpr expr)
sources
- collection of expressions that expr must not be a member ofexpr
- expression that must not be a member of sources
public CspConstraint memberOfArray(CspLongExpr[] sources, CspLongExpr expr)
sources
- collection of expressions that expr must not be a member ofexpr
- expression that must not be a member of sources
public CspIntExpr summation(CspGenericIntExpr x, CspGenericIndex[] indexRange, CspGenericIndexRestriction sourceIdxRestriction)
x
- Generic variable summation is overindexRange
- Indices within generic variable X that summation is oversourceIdxRestriction
- Optional restriction of values placed on source index ranges
public CspLongExpr summation(CspGenericLongExpr x, CspGenericIndex[] indexRange, CspGenericIndexRestriction sourceIdxRestriction)
x
- Generic variable summation is overindexRange
- Indices within generic variable X that summation is oversourceIdxRestriction
- Optional restriction of values placed on source index ranges
public CspFloatExpr summation(CspGenericFloatExpr x, CspGenericIndex[] indexRange, CspGenericIndexRestriction sourceIdxRestriction)
x
- Generic variable summation is overindexRange
- Indices within generic variable X that summation is oversourceIdxRestriction
- Optional restriction of values placed on source index ranges
public CspDoubleExpr summation(CspGenericDoubleExpr x, CspGenericIndex[] indexRange, CspGenericIndexRestriction sourceIdxRestriction)
x
- Generic variable summation is overindexRange
- Indices within generic variable X that summation is oversourceIdxRestriction
- Optional restriction of values placed on source index ranges
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |