|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IntModeler
An interface for all methods related modelling constraint programs over search domains
| Method Summary | |
|---|---|
Constraint |
eq(IntExp x,
int c)
Creates a constraint by stating that a term is equal than a constant |
Constraint |
eq(IntExp x,
IntExp y)
Creates a constraint by stating that a term is equal than a constant |
Constraint |
eq(int c,
IntExp x)
Creates a constraint by stating that a term is equal than a constant |
Constraint |
geq(IntExp x,
int c)
Creates a constraint by stating that a variable is greater or equal than a constant |
Constraint |
geq(IntExp x,
IntExp y)
Creates a constraint by stating that a variable is greater or equal than a constant |
Constraint |
geq(int c,
IntExp x)
Creates a constraint by stating that a variable is greater or equal than a constant |
Constraint |
gt(IntExp x,
int c)
Creates a constraint by stating that a variable is strictly than a constant |
Constraint |
gt(IntExp x,
IntExp y)
Creates a constraint by stating that a variable is strictly than a constant |
Constraint |
gt(int c,
IntExp x)
Creates a constraint by stating that a variable is strictly than a constant |
Constraint |
leq(IntExp x,
int c)
Creates a constraint by stating that integer expression is less or equal than a constant |
Constraint |
leq(IntExp x,
IntExp y)
Creates a constraint by stating that an integer expression is less or equal than another one |
Constraint |
leq(int c,
IntExp x)
Creates a constraint by stating that a constant is less or equal than an integer expression |
Constraint |
lt(IntExp x,
int c)
Creates a constraint by stating that integer expression is strictly less than a constant |
Constraint |
lt(IntExp x,
IntExp y)
Creates a constraint by stating that an integer expression is strictly less than another one |
Constraint |
lt(int c,
IntExp x)
Creates a constraint by stating that a constant is strictly less than an integer expression |
IntDomainVar |
makeBoundIntVar(java.lang.String name,
int min,
int max)
Creates a new search variable with an interval domain |
IntDomainVar[] |
makeBoundIntVarArray(java.lang.String name,
int dim,
int min,
int max)
Creates a one dimensional array of integer variables |
IntDomainVar[][] |
makeBoundIntVarArray(java.lang.String name,
int dim1,
int dim2,
int min,
int max)
Creates a one dimensional array of integer variables |
IntVar |
makeConstantIntVar(int val)
Creates an unnamed instantiated variable |
IntVar |
makeConstantIntVar(java.lang.String name,
int val)
Creates an instantiated variable |
IntDomainVar |
makeEnumIntVar(java.lang.String name,
int min,
int max)
Creates a new search variable with an enumerated domain |
IntExp |
minus(IntExp t1,
int c)
Subtracting an search constant from an expression |
IntExp |
minus(IntExp t1,
IntExp t2)
Subtracting two search expressions one from another |
IntExp |
minus(int c,
IntExp t1)
Subtracting an expression from an search |
IntExp |
mult(int a,
IntExp x)
Creates a simple linear term from one coefficient and one variable |
Constraint |
neq(IntExp x,
int c)
Creates a constraint by stating that a term is not equal than a constant |
Constraint |
neq(IntExp x,
IntExp y)
Creates a constraint by stating that two term are different |
Constraint |
neq(int c,
IntExp x)
Creates a constraint by stating that a term is not equal than a constant |
IntExp |
plus(IntExp t1,
int c)
Adding an search constant to an expression |
IntExp |
plus(IntExp t1,
IntExp t2)
Adding two search expressions one to another |
IntExp |
plus(int c,
IntExp t1)
Adding an search constant to an expression |
IntExp |
scalar(int[] lc,
IntVar[] lv)
Building a term from a scalar product of coefficients and variables |
IntExp |
scalar(IntVar[] lv,
int[] lc)
Building a term from a scalar product of coefficients and variables |
void |
setMaximizationObjective(IntVar obj)
sets the optimization mode to maximization and sets the objective function |
void |
setMinimizationObjective(IntVar obj)
sets the optimization mode to minimization and sets the objective function |
IntExp |
sum(IntExp[] lv)
Building a term from a sum of integer expressions |
Constraint |
times(IntVar x,
IntVar y,
IntVar z)
Creates a constraint by stating that X*Y=Z |
| Method Detail |
|---|
IntVar makeConstantIntVar(java.lang.String name,
int val)
name - the name of the variableval - the value
IntVar makeConstantIntVar(int val)
val - the value
IntDomainVar makeEnumIntVar(java.lang.String name,
int min,
int max)
name - the name of the variablemin - minimal allowed value (included in the domain)max - maximal allowed value (included in the domain)
IntDomainVar makeBoundIntVar(java.lang.String name,
int min,
int max)
name - the name of the variablemin - minimal allowed value (included in the domain)max - maximal allowed value (included in the domain)
IntDomainVar[] makeBoundIntVarArray(java.lang.String name,
int dim,
int min,
int max)
name - the name of the array (a prefix shared by all individual IntVars)dim - the number of entriesmin - the minimal domain value for all variables in the arraymax - the maximal domain value for all variables in the array
IntDomainVar[][] makeBoundIntVarArray(java.lang.String name,
int dim1,
int dim2,
int min,
int max)
name - the name of the array (a prefix shared by all individual IntVars)dim1 - the number of entries for the first indexdim2 - the number of entries for the second indexmin - the minimal domain value for all variables in the arraymax - the maximal domain value for all variables in the array
IntExp mult(int a,
IntExp x)
a - the coefficientx - the variable
IntExp plus(IntExp t1,
IntExp t2)
t1 - first expressiont2 - second expression
IntExp plus(IntExp t1,
int c)
t1 - the expressionc - the search constant
IntExp plus(int c,
IntExp t1)
t1 - the expressionc - the search constant
IntExp minus(IntExp t1,
IntExp t2)
t1 - first expressiont2 - second expression
IntExp minus(IntExp t1,
int c)
t1 - the expressionc - the search constant
IntExp minus(int c,
IntExp t1)
t1 - the expressionc - the search constant
IntExp scalar(int[] lc,
IntVar[] lv)
lc - the array of coefficientslv - the array of variables
IntExp scalar(IntVar[] lv,
int[] lc)
lv - the array of variableslc - the array of coefficients
IntExp sum(IntExp[] lv)
lv - the array of integer expressions
Constraint geq(IntExp x,
IntExp y)
x - the first search expressiony - the second search expression
Constraint geq(IntExp x,
int c)
x - the search expressionc - the search constant
Constraint geq(int c,
IntExp x)
x - the search expressionc - the search constant
Constraint gt(IntExp x,
IntExp y)
x - the first search expressiony - the second search expression
Constraint gt(IntExp x,
int c)
x - the search expressionc - the search constant
Constraint gt(int c,
IntExp x)
x - the search expressionc - the search constant
Constraint leq(IntExp x,
int c)
x - the search expressionc - the search constant
Constraint leq(int c,
IntExp x)
x - the search expressionc - the search constant
Constraint leq(IntExp x,
IntExp y)
x - the first search expressiony - the second search expression
Constraint lt(IntExp x,
int c)
x - the search expressionc - the search constant
Constraint lt(int c,
IntExp x)
x - the search expressionc - the search constant
Constraint lt(IntExp x,
IntExp y)
x - the first search expressiony - the second search expression
Constraint eq(IntExp x,
IntExp y)
x - the first search expressiony - the second search expression
Constraint eq(IntExp x,
int c)
x - the search expressionc - the search constant
Constraint eq(int c,
IntExp x)
x - the search expressionc - the search constant
Constraint neq(IntExp x,
int c)
x - the search expressionc - the search constant
Constraint neq(int c,
IntExp x)
x - the search expressionc - the search constant
Constraint neq(IntExp x,
IntExp y)
x - the first variabley - the second variale
Constraint times(IntVar x,
IntVar y,
IntVar z)
x - the first operand of the multiplicationy - the second operand of the multiplicationz - the result of the multiplication
void setMinimizationObjective(IntVar obj)
obj - the variable to be minimizedvoid setMaximizationObjective(IntVar obj)
obj - the variable to be maximized
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||