localsolver
public enum LSOperator extends java.lang.Enum<LSOperator>
LSModel,
LSExpression| Enum Constant and Description |
|---|
Abs
Absolute value.
|
And
And.
|
Array
Array.
|
At
Returns the element of an array.
|
Bool
Boolean decision.
|
Ceil
Ceil.
|
Const
Constant.
|
Cos
Cosine.
|
Count
The number of elements in a collection.
|
Disjoint
Disjoint.
|
Dist
Distance between two numbers.
|
Div
Division.
|
Eq
Equal.
|
Exp
Base-e exponential.
|
Float
Float decision.
|
Floor
Floor.
|
Geq
Greater than or equal to.
|
Gt
Strictly greater than.
|
If
If-Then-Else.
|
IndexOf
The index of a value in a list (-1 if the value is not in the list).
|
Int
Integer decision variable.
|
Leq
Lower than or equal to.
|
List
A list is an collection of integers within a range [0,n-1] where n is
the unique argument of this operator.
|
Log
Natural logarithm (base-e).
|
Lt
Strictly lower than.
|
Max
Maximum.
|
Min
Minimum.
|
Mod
Modulo (remainder of the integer division).
|
Neq
Not equal to.
|
Not
Not.
|
Or
Or.
|
Partition
Partition.
|
Piecewise
Piecewise-linear function operator.
|
Pow
Power operator.
|
Prod
Product.
|
Round
Round.
|
Scalar
Scalar product.
|
Sin
Sine.
|
Sqrt
Square root.
|
Sub
Substraction.
|
Sum
Sum.
|
Tan
Tangent.
|
Xor
Exclusive or (also called "xor").
|
| Modifier and Type | Method and Description |
|---|---|
static LSOperator |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LSOperator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LSOperator Bool
public static final LSOperator Float
public static final LSOperator Const
LSModel.createExpression(LSOperator, long)
or LSExpression.addOperand(long).public static final LSOperator Sum
public static final LSOperator Sub
public static final LSOperator Prod
public static final LSOperator Max
public static final LSOperator Min
public static final LSOperator Eq
public static final LSOperator Neq
public static final LSOperator Geq
public static final LSOperator Leq
public static final LSOperator Gt
public static final LSOperator Lt
public static final LSOperator If
public static final LSOperator Not
public static final LSOperator And
public static final LSOperator Or
public static final LSOperator Xor
public static final LSOperator Abs
public static final LSOperator Dist
public static final LSOperator Div
public static final LSOperator Mod
public static final LSOperator Array
public static final LSOperator At
public static final LSOperator Scalar
public static final LSOperator Ceil
public static final LSOperator Floor
public static final LSOperator Round
public static final LSOperator Sqrt
public static final LSOperator Log
public static final LSOperator Exp
public static final LSOperator Pow
public static final LSOperator Cos
public static final LSOperator Sin
public static final LSOperator Tan
public static final LSOperator Int
public static final LSOperator Piecewise
public static final LSOperator List
public static final LSOperator Count
public static final LSOperator IndexOf
public static final LSOperator Partition
public static final LSOperator Disjoint
public static LSOperator[] values()
for (LSOperator c : LSOperator.values()) System.out.println(c);
public static LSOperator valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant
with the specified namejava.lang.NullPointerException - if the argument is null