|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjopt.csp.spi.arcalgorithm.variable.VarMath
Utility class for creating advanced mathematical expressions.
Constructor Summary | |
VarMath()
Constructor |
Method Summary | |
jopt.csp.variable.CspDoubleExpr |
abs(jopt.csp.variable.CspDoubleExpr expr)
|
jopt.csp.variable.CspFloatExpr |
abs(jopt.csp.variable.CspFloatExpr expr)
|
jopt.csp.variable.CspIntExpr |
abs(jopt.csp.variable.CspIntExpr expr)
|
jopt.csp.variable.CspLongExpr |
abs(jopt.csp.variable.CspLongExpr expr)
|
jopt.csp.variable.CspDoubleExpr |
acos(jopt.csp.variable.CspDoubleExpr x)
|
jopt.csp.variable.CspDoubleExpr |
add(int a,
jopt.csp.variable.CspDoubleExpr bexpr)
|
jopt.csp.variable.CspFloatExpr |
add(int a,
jopt.csp.variable.CspFloatExpr bexpr)
|
jopt.csp.variable.CspIntExpr |
add(int a,
jopt.csp.variable.CspIntExpr bexpr)
|
jopt.csp.variable.CspLongExpr |
add(int a,
jopt.csp.variable.CspLongExpr bexpr)
|
jopt.csp.variable.CspConstraint |
allDifferent(jopt.csp.variable.CspGenericIntExpr expr)
Constraints all elements of a generic variable to be a different value |
jopt.csp.variable.CspConstraint |
allDifferent(jopt.csp.variable.CspGenericLongExpr expr)
Constraints all elements of a generic variable to be a different value |
jopt.csp.variable.CspConstraint |
allDifferent(jopt.csp.variable.CspIntExpr[] exprs)
Returns a constraint that constraints an array of variables to be different |
jopt.csp.variable.CspConstraint |
allDifferent(jopt.csp.variable.CspLongExpr[] exprs)
Returns a constraint that constraints an array of variables to be different |
jopt.csp.variable.CspDoubleExpr |
asin(jopt.csp.variable.CspDoubleExpr x)
|
jopt.csp.variable.CspDoubleExpr |
atan(jopt.csp.variable.CspDoubleExpr x)
|
jopt.csp.variable.CspDoubleExpr |
cos(jopt.csp.variable.CspDoubleExpr x)
|
jopt.csp.variable.CspDoubleExpr |
divide(int a,
jopt.csp.variable.CspDoubleExpr bexpr)
|
jopt.csp.variable.CspFloatExpr |
divide(int a,
jopt.csp.variable.CspFloatExpr bexpr)
|
jopt.csp.variable.CspIntExpr |
divide(int a,
jopt.csp.variable.CspIntExpr bexpr)
|
jopt.csp.variable.CspLongExpr |
divide(int a,
jopt.csp.variable.CspLongExpr bexpr)
|
jopt.csp.variable.CspDoubleExpr |
exp(jopt.csp.variable.CspDoubleExpr x)
|
jopt.csp.variable.CspConstraint |
globalCardCount(jopt.csp.variable.CspGenericIntExpr expr,
java.lang.Number[] vals,
jopt.csp.variable.CspIntExpr[] count)
Constraints all elements of a generic variable to be a different value |
jopt.csp.variable.CspConstraint |
globalCardCount(jopt.csp.variable.CspGenericLongExpr expr,
java.lang.Number[] vals,
jopt.csp.variable.CspIntExpr[] count)
Constraints all elements of a generic variable to be a different value |
jopt.csp.variable.CspConstraint |
globalCardCount(jopt.csp.variable.CspIntExpr[] exprs,
java.lang.Number[] vals,
jopt.csp.variable.CspIntExpr[] count)
Returns a constraint that constraints an array of variables to be different |
jopt.csp.variable.CspConstraint |
globalCardCount(jopt.csp.variable.CspLongExpr[] exprs,
java.lang.Number[] vals,
jopt.csp.variable.CspIntExpr[] count)
Returns a constraint that constraints an array of variables to be different |
jopt.csp.variable.CspConstraint |
globalCardinality(jopt.csp.variable.CspGenericIntExpr expr,
java.lang.Number[] vals,
int[] lb,
int[] ub)
Constraints all elements of a generic variable to be a different value |
jopt.csp.variable.CspConstraint |
globalCardinality(jopt.csp.variable.CspGenericLongExpr expr,
java.lang.Number[] vals,
int[] lb,
int[] ub)
Constraints all elements of a generic variable to be a different value |
jopt.csp.variable.CspConstraint |
globalCardinality(jopt.csp.variable.CspIntExpr[] exprs,
java.lang.Number[] vals,
int[] lb,
int[] ub)
Returns a constraint that constraints an array of variables to be different |
jopt.csp.variable.CspConstraint |
globalCardinality(jopt.csp.variable.CspLongExpr[] exprs,
java.lang.Number[] vals,
int[] lb,
int[] ub)
Returns a constraint that constraints an array of variables to be different |
static java.lang.String |
indicesToString(GenericIndex[] indices,
boolean includeVal)
Converts an array of indices to a string for generating names |
jopt.csp.variable.CspDoubleExpr |
log(jopt.csp.variable.CspDoubleExpr x)
|
jopt.csp.variable.CspConstraint |
memberOfArray(jopt.csp.variable.CspIntExpr[] sources,
jopt.csp.variable.CspIntExpr expr)
|
jopt.csp.variable.CspConstraint |
memberOfArray(jopt.csp.variable.CspLongExpr[] sources,
jopt.csp.variable.CspLongExpr expr)
|
jopt.csp.variable.CspDoubleExpr |
multiply(int a,
jopt.csp.variable.CspDoubleExpr bexpr)
|
jopt.csp.variable.CspFloatExpr |
multiply(int a,
jopt.csp.variable.CspFloatExpr bexpr)
|
jopt.csp.variable.CspIntExpr |
multiply(int a,
jopt.csp.variable.CspIntExpr bexpr)
|
jopt.csp.variable.CspLongExpr |
multiply(int a,
jopt.csp.variable.CspLongExpr bexpr)
|
jopt.csp.variable.CspConstraint |
notMemberOfArray(jopt.csp.variable.CspIntExpr[] sources,
jopt.csp.variable.CspIntExpr expr)
|
jopt.csp.variable.CspConstraint |
notMemberOfArray(jopt.csp.variable.CspLongExpr[] sources,
jopt.csp.variable.CspLongExpr expr)
|
jopt.csp.variable.CspDoubleExpr |
power(jopt.csp.variable.CspDoubleExpr x,
jopt.csp.variable.CspDoubleExpr p)
|
jopt.csp.variable.CspDoubleExpr |
power(jopt.csp.variable.CspDoubleExpr x,
double p)
|
jopt.csp.variable.CspDoubleExpr |
power(double x,
jopt.csp.variable.CspDoubleExpr p)
|
jopt.csp.variable.CspDoubleExpr |
sin(jopt.csp.variable.CspDoubleExpr x)
|
jopt.csp.variable.CspDoubleExpr |
square(jopt.csp.variable.CspDoubleExpr expr)
|
jopt.csp.variable.CspFloatExpr |
square(jopt.csp.variable.CspFloatExpr expr)
|
jopt.csp.variable.CspIntExpr |
square(jopt.csp.variable.CspIntExpr expr)
|
jopt.csp.variable.CspLongExpr |
square(jopt.csp.variable.CspLongExpr expr)
|
jopt.csp.variable.CspDoubleExpr |
subtract(int a,
jopt.csp.variable.CspDoubleExpr bexpr)
|
jopt.csp.variable.CspFloatExpr |
subtract(int a,
jopt.csp.variable.CspFloatExpr bexpr)
|
jopt.csp.variable.CspIntExpr |
subtract(int a,
jopt.csp.variable.CspIntExpr bexpr)
|
jopt.csp.variable.CspLongExpr |
subtract(int a,
jopt.csp.variable.CspLongExpr bexpr)
|
jopt.csp.variable.CspDoubleExpr |
summation(jopt.csp.variable.CspGenericDoubleExpr x,
jopt.csp.variable.CspGenericIndex[] indexRange,
jopt.csp.variable.CspGenericIndexRestriction sourceIdxRestriction)
Creates a variable equal to the summation of values in the generic variable. |
jopt.csp.variable.CspFloatExpr |
summation(jopt.csp.variable.CspGenericFloatExpr x,
jopt.csp.variable.CspGenericIndex[] indexRange,
jopt.csp.variable.CspGenericIndexRestriction sourceIdxRestriction)
Creates a variable equal to the summation of values in the generic variable. |
jopt.csp.variable.CspIntExpr |
summation(jopt.csp.variable.CspGenericIntExpr x,
jopt.csp.variable.CspGenericIndex[] indexRange,
jopt.csp.variable.CspGenericIndexRestriction sourceIdxRestriction)
Creates a variable equal to the summation of values in the generic variable. |
jopt.csp.variable.CspLongExpr |
summation(jopt.csp.variable.CspGenericLongExpr x,
jopt.csp.variable.CspGenericIndex[] indexRange,
jopt.csp.variable.CspGenericIndexRestriction sourceIdxRestriction)
Creates a variable equal to the summation of values in the generic variable. |
jopt.csp.variable.CspDoubleExpr |
tan(jopt.csp.variable.CspDoubleExpr x)
|
static GenericIndex[] |
toGenericArray(jopt.csp.variable.CspGenericIndex[] indices)
Converts an array of CSP indices to internal index objects |
static NumExpr[] |
toSpiExpressions(jopt.csp.variable.CspNumExpr[] exprs)
Converts an array of api expressions to spi expressions |
static IntExpr[] |
toSpiIntExpressions(jopt.csp.variable.CspIntExpr[] exprs)
Converts an array of api expressions to spi expressions |
static int |
totalGenericSize(GenericIndex[] indices)
Returns the total number of values in a generic variable given a set of indices |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public VarMath()
Method Detail |
public jopt.csp.variable.CspIntExpr add(int a, jopt.csp.variable.CspIntExpr bexpr)
add
in interface jopt.csp.variable.CspMath
public jopt.csp.variable.CspLongExpr add(int a, jopt.csp.variable.CspLongExpr bexpr)
add
in interface jopt.csp.variable.CspMath
public jopt.csp.variable.CspFloatExpr add(int a, jopt.csp.variable.CspFloatExpr bexpr)
add
in interface jopt.csp.variable.CspMath
public jopt.csp.variable.CspDoubleExpr add(int a, jopt.csp.variable.CspDoubleExpr bexpr)
add
in interface jopt.csp.variable.CspMath
public jopt.csp.variable.CspIntExpr subtract(int a, jopt.csp.variable.CspIntExpr bexpr)
subtract
in interface jopt.csp.variable.CspMath
public jopt.csp.variable.CspLongExpr subtract(int a, jopt.csp.variable.CspLongExpr bexpr)
subtract
in interface jopt.csp.variable.CspMath
public jopt.csp.variable.CspFloatExpr subtract(int a, jopt.csp.variable.CspFloatExpr bexpr)
subtract
in interface jopt.csp.variable.CspMath
public jopt.csp.variable.CspDoubleExpr subtract(int a, jopt.csp.variable.CspDoubleExpr bexpr)
subtract
in interface jopt.csp.variable.CspMath
public jopt.csp.variable.CspIntExpr multiply(int a, jopt.csp.variable.CspIntExpr bexpr)
multiply
in interface jopt.csp.variable.CspMath
public jopt.csp.variable.CspLongExpr multiply(int a, jopt.csp.variable.CspLongExpr bexpr)
multiply
in interface jopt.csp.variable.CspMath
public jopt.csp.variable.CspFloatExpr multiply(int a, jopt.csp.variable.CspFloatExpr bexpr)
multiply
in interface jopt.csp.variable.CspMath
public jopt.csp.variable.CspDoubleExpr multiply(int a, jopt.csp.variable.CspDoubleExpr bexpr)
multiply
in interface jopt.csp.variable.CspMath
public jopt.csp.variable.CspIntExpr divide(int a, jopt.csp.variable.CspIntExpr bexpr)
divide
in interface jopt.csp.variable.CspMath
public jopt.csp.variable.CspLongExpr divide(int a, jopt.csp.variable.CspLongExpr bexpr)
divide
in interface jopt.csp.variable.CspMath
public jopt.csp.variable.CspFloatExpr divide(int a, jopt.csp.variable.CspFloatExpr bexpr)
divide
in interface jopt.csp.variable.CspMath
public jopt.csp.variable.CspDoubleExpr divide(int a, jopt.csp.variable.CspDoubleExpr bexpr)
divide
in interface jopt.csp.variable.CspMath
public jopt.csp.variable.CspIntExpr abs(jopt.csp.variable.CspIntExpr expr)
abs
in interface jopt.csp.variable.CspMath
public jopt.csp.variable.CspLongExpr abs(jopt.csp.variable.CspLongExpr expr)
abs
in interface jopt.csp.variable.CspMath
public jopt.csp.variable.CspFloatExpr abs(jopt.csp.variable.CspFloatExpr expr)
abs
in interface jopt.csp.variable.CspMath
public jopt.csp.variable.CspDoubleExpr abs(jopt.csp.variable.CspDoubleExpr expr)
abs
in interface jopt.csp.variable.CspMath
public jopt.csp.variable.CspIntExpr square(jopt.csp.variable.CspIntExpr expr)
square
in interface jopt.csp.variable.CspMath
public jopt.csp.variable.CspLongExpr square(jopt.csp.variable.CspLongExpr expr)
square
in interface jopt.csp.variable.CspMath
public jopt.csp.variable.CspFloatExpr square(jopt.csp.variable.CspFloatExpr expr)
square
in interface jopt.csp.variable.CspMath
public jopt.csp.variable.CspDoubleExpr square(jopt.csp.variable.CspDoubleExpr expr)
square
in interface jopt.csp.variable.CspMath
public jopt.csp.variable.CspDoubleExpr power(jopt.csp.variable.CspDoubleExpr x, double p)
power
in interface jopt.csp.variable.CspMath
public jopt.csp.variable.CspDoubleExpr power(jopt.csp.variable.CspDoubleExpr x, jopt.csp.variable.CspDoubleExpr p)
power
in interface jopt.csp.variable.CspMath
public jopt.csp.variable.CspDoubleExpr power(double x, jopt.csp.variable.CspDoubleExpr p)
power
in interface jopt.csp.variable.CspMath
public jopt.csp.variable.CspDoubleExpr exp(jopt.csp.variable.CspDoubleExpr x)
exp
in interface jopt.csp.variable.CspMath
public jopt.csp.variable.CspDoubleExpr log(jopt.csp.variable.CspDoubleExpr x)
log
in interface jopt.csp.variable.CspMath
public jopt.csp.variable.CspDoubleExpr cos(jopt.csp.variable.CspDoubleExpr x)
cos
in interface jopt.csp.variable.CspMath
public jopt.csp.variable.CspDoubleExpr acos(jopt.csp.variable.CspDoubleExpr x)
acos
in interface jopt.csp.variable.CspMath
public jopt.csp.variable.CspDoubleExpr sin(jopt.csp.variable.CspDoubleExpr x)
sin
in interface jopt.csp.variable.CspMath
public jopt.csp.variable.CspDoubleExpr asin(jopt.csp.variable.CspDoubleExpr x)
asin
in interface jopt.csp.variable.CspMath
public jopt.csp.variable.CspDoubleExpr tan(jopt.csp.variable.CspDoubleExpr x)
tan
in interface jopt.csp.variable.CspMath
public jopt.csp.variable.CspDoubleExpr atan(jopt.csp.variable.CspDoubleExpr x)
atan
in interface jopt.csp.variable.CspMath
public jopt.csp.variable.CspConstraint allDifferent(jopt.csp.variable.CspIntExpr[] exprs)
allDifferent
in interface jopt.csp.variable.CspMath
public jopt.csp.variable.CspConstraint allDifferent(jopt.csp.variable.CspLongExpr[] exprs)
allDifferent
in interface jopt.csp.variable.CspMath
public jopt.csp.variable.CspConstraint allDifferent(jopt.csp.variable.CspGenericIntExpr expr)
allDifferent
in interface jopt.csp.variable.CspMath
public jopt.csp.variable.CspConstraint allDifferent(jopt.csp.variable.CspGenericLongExpr expr)
allDifferent
in interface jopt.csp.variable.CspMath
public jopt.csp.variable.CspConstraint globalCardinality(jopt.csp.variable.CspIntExpr[] exprs, java.lang.Number[] vals, int[] lb, int[] ub)
globalCardinality
in interface jopt.csp.variable.CspMath
public jopt.csp.variable.CspConstraint globalCardinality(jopt.csp.variable.CspLongExpr[] exprs, java.lang.Number[] vals, int[] lb, int[] ub)
globalCardinality
in interface jopt.csp.variable.CspMath
public jopt.csp.variable.CspConstraint globalCardinality(jopt.csp.variable.CspGenericIntExpr expr, java.lang.Number[] vals, int[] lb, int[] ub)
globalCardinality
in interface jopt.csp.variable.CspMath
public jopt.csp.variable.CspConstraint globalCardinality(jopt.csp.variable.CspGenericLongExpr expr, java.lang.Number[] vals, int[] lb, int[] ub)
globalCardinality
in interface jopt.csp.variable.CspMath
public jopt.csp.variable.CspConstraint globalCardCount(jopt.csp.variable.CspIntExpr[] exprs, java.lang.Number[] vals, jopt.csp.variable.CspIntExpr[] count)
globalCardCount
in interface jopt.csp.variable.CspMath
public jopt.csp.variable.CspConstraint globalCardCount(jopt.csp.variable.CspLongExpr[] exprs, java.lang.Number[] vals, jopt.csp.variable.CspIntExpr[] count)
globalCardCount
in interface jopt.csp.variable.CspMath
public jopt.csp.variable.CspConstraint globalCardCount(jopt.csp.variable.CspGenericIntExpr expr, java.lang.Number[] vals, jopt.csp.variable.CspIntExpr[] count)
globalCardCount
in interface jopt.csp.variable.CspMath
public jopt.csp.variable.CspConstraint globalCardCount(jopt.csp.variable.CspGenericLongExpr expr, java.lang.Number[] vals, jopt.csp.variable.CspIntExpr[] count)
globalCardCount
in interface jopt.csp.variable.CspMath
public jopt.csp.variable.CspConstraint memberOfArray(jopt.csp.variable.CspIntExpr[] sources, jopt.csp.variable.CspIntExpr expr)
memberOfArray
in interface jopt.csp.variable.CspMath
public jopt.csp.variable.CspConstraint memberOfArray(jopt.csp.variable.CspLongExpr[] sources, jopt.csp.variable.CspLongExpr expr)
memberOfArray
in interface jopt.csp.variable.CspMath
public jopt.csp.variable.CspConstraint notMemberOfArray(jopt.csp.variable.CspIntExpr[] sources, jopt.csp.variable.CspIntExpr expr)
notMemberOfArray
in interface jopt.csp.variable.CspMath
public jopt.csp.variable.CspConstraint notMemberOfArray(jopt.csp.variable.CspLongExpr[] sources, jopt.csp.variable.CspLongExpr expr)
notMemberOfArray
in interface jopt.csp.variable.CspMath
public jopt.csp.variable.CspIntExpr summation(jopt.csp.variable.CspGenericIntExpr x, jopt.csp.variable.CspGenericIndex[] indexRange, jopt.csp.variable.CspGenericIndexRestriction sourceIdxRestriction)
summation
in interface jopt.csp.variable.CspMath
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 jopt.csp.variable.CspLongExpr summation(jopt.csp.variable.CspGenericLongExpr x, jopt.csp.variable.CspGenericIndex[] indexRange, jopt.csp.variable.CspGenericIndexRestriction sourceIdxRestriction)
summation
in interface jopt.csp.variable.CspMath
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 jopt.csp.variable.CspFloatExpr summation(jopt.csp.variable.CspGenericFloatExpr x, jopt.csp.variable.CspGenericIndex[] indexRange, jopt.csp.variable.CspGenericIndexRestriction sourceIdxRestriction)
summation
in interface jopt.csp.variable.CspMath
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 jopt.csp.variable.CspDoubleExpr summation(jopt.csp.variable.CspGenericDoubleExpr x, jopt.csp.variable.CspGenericIndex[] indexRange, jopt.csp.variable.CspGenericIndexRestriction sourceIdxRestriction)
summation
in interface jopt.csp.variable.CspMath
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 static java.lang.String indicesToString(GenericIndex[] indices, boolean includeVal)
public static NumExpr[] toSpiExpressions(jopt.csp.variable.CspNumExpr[] exprs)
public static IntExpr[] toSpiIntExpressions(jopt.csp.variable.CspIntExpr[] exprs)
public static GenericIndex[] toGenericArray(jopt.csp.variable.CspGenericIndex[] indices)
public static int totalGenericSize(GenericIndex[] indices)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |