|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for basic modeling.
IloModeler
defines an interface for building basic optimization
models. This interface contains methods for constructing variables, basic
constraints, and objective function objects. It is typically implemented by
such optimizer classes as IloCplex
, available in ILOG CPLEX
or IloSolverFactory
, available in ILOG JSolver.
By using this interface rather than the actual implementation class,
you can create optimization models that can be solved by any optimizer
implementing the interface.
This interface is an extension of the IloModel
interface, and allows you
to add modeling objects (instances of IloAddable
) to an IloModeler
object. For an optimizer implementing this interface, the model built corresponds to the
model the optimizer will solve using its solve()
method.
Note that there are two interfaces derived from IloModeler
:
IloCPModeler
, available in ILOG JSolver and IloMPModeler
, available in ILOG CPLEX.
IloCPModeler
defines the API for constraint-based engines. (An engine is an object whose
function is to manipulate models that include variables and constraints.)
IloMPModeler
is a modeling interface for Mathematical Programming.
It adds support for several new modeling object interfaces, including LP
matrices, semi-continuous variables, and special ordered sets (SOSs). It
extends the functionality of IloModeler
to column-wise
modeling and supports modification of variable types and expressions of ranged
constraints and objective functions.
Method Summary | |
ilog.concert.IloRange |
addEq(double val,
ilog.concert.IloNumExpr expr)
Creates and returns an IloRange object. |
ilog.concert.IloRange |
addEq(double val,
ilog.concert.IloNumExpr expr,
java.lang.String name)
Creates and returns an IloRange object. |
ilog.concert.IloRange |
addEq(ilog.concert.IloNumExpr expr,
double rhs)
Creates and returns an IloRange object. |
ilog.concert.IloRange |
addEq(ilog.concert.IloNumExpr expr,
double rhs,
java.lang.String name)
Creates and returns an IloRange object. |
ilog.concert.IloConstraint |
addEq(ilog.concert.IloNumExpr e1,
ilog.concert.IloNumExpr e2)
Creates and returns an IloRange object. |
ilog.concert.IloConstraint |
addEq(ilog.concert.IloNumExpr e1,
ilog.concert.IloNumExpr e2,
java.lang.String name)
Creates and returns an IloRange object. |
ilog.concert.IloRange |
addGe(double val,
ilog.concert.IloNumExpr expr)
Creates and returns an IloRange object. |
ilog.concert.IloRange |
addGe(double val,
ilog.concert.IloNumExpr expr,
java.lang.String name)
Creates and returns an IloRange object. |
ilog.concert.IloRange |
addGe(ilog.concert.IloNumExpr expr,
double rhs)
Creates and returns an IloRange object. |
ilog.concert.IloRange |
addGe(ilog.concert.IloNumExpr expr,
double rhs,
java.lang.String name)
Creates and returns an IloRange object. |
ilog.concert.IloConstraint |
addGe(ilog.concert.IloNumExpr e1,
ilog.concert.IloNumExpr e2)
Creates and returns an IloRange object. |
ilog.concert.IloConstraint |
addGe(ilog.concert.IloNumExpr e1,
ilog.concert.IloNumExpr e2,
java.lang.String name)
Creates and returns an IloRange object. |
ilog.concert.IloRange |
addLe(double val,
ilog.concert.IloNumExpr expr)
Creates and returns an IloRange object. |
ilog.concert.IloRange |
addLe(double val,
ilog.concert.IloNumExpr expr,
java.lang.String name)
Creates and returns an IloRange object. |
ilog.concert.IloRange |
addLe(ilog.concert.IloNumExpr expr,
double rhs)
Creates and returns an IloRange object. |
ilog.concert.IloRange |
addLe(ilog.concert.IloNumExpr expr,
double rhs,
java.lang.String name)
Creates and returns an IloRange object. |
ilog.concert.IloConstraint |
addLe(ilog.concert.IloNumExpr e1,
ilog.concert.IloNumExpr e2)
Creates and returns an IloRange object. |
ilog.concert.IloConstraint |
addLe(ilog.concert.IloNumExpr e1,
ilog.concert.IloNumExpr e2,
java.lang.String name)
Creates and returns an IloRange object. |
ilog.concert.IloObjective |
addMaximize(ilog.concert.IloNumExpr expr)
Creates and returns an IloObjective object. |
ilog.concert.IloObjective |
addMaximize(ilog.concert.IloNumExpr expr,
java.lang.String name)
Creates and returns an IloObjective object. |
ilog.concert.IloObjective |
addMinimize(ilog.concert.IloNumExpr expr)
Creates and returns an IloObjective object. |
ilog.concert.IloObjective |
addMinimize(ilog.concert.IloNumExpr expr,
java.lang.String name)
Creates and returns an IloObjective object. |
ilog.concert.IloObjective |
addObjective(ilog.concert.IloObjectiveSense sense,
ilog.concert.IloNumExpr expr)
Creates and returns an IloObjective object. |
ilog.concert.IloObjective |
addObjective(ilog.concert.IloObjectiveSense sense,
ilog.concert.IloNumExpr expr,
java.lang.String name)
Creates and returns an IloObjective object. |
ilog.concert.IloRange |
addRange(double lb,
ilog.concert.IloNumExpr expr,
double ub)
Creates and returns an IloRange object. |
ilog.concert.IloRange |
addRange(double lb,
ilog.concert.IloNumExpr expr,
double ub,
java.lang.String name)
Creates and returns an IloRange object. |
ilog.concert.IloIntVar |
boolVar()
Creates and returns a new Boolean variable (domain 0,1) |
ilog.concert.IloIntVar |
boolVar(java.lang.String name)
Creates and returns a new Boolean variable (domain 0,1) and a name. |
ilog.concert.IloIntVar[] |
boolVarArray(int n)
Creates and returns an array of n new Boolean variables (domain 0,1). |
ilog.concert.IloIntVar[] |
boolVarArray(int n,
java.lang.String[] name)
Creates and returns an array of n new Boolean variables (domain 0,1). |
ilog.concert.IloNumExpr |
constant(double x)
Creates and returns an expression object representing the constant term x . |
ilog.concert.IloIntExpr |
constant(int x)
Creates and returns a new constant expression equal to x . |
ilog.concert.IloNumExpr |
diff(double v,
ilog.concert.IloNumExpr e1)
Creates and returns an expression object representing the difference of value v and expression e1 . |
ilog.concert.IloIntExpr |
diff(ilog.concert.IloIntExpr expr1,
ilog.concert.IloIntExpr expr2)
Creates and returns an integer expression object representing the difference of integer expressions expr1 and expr2 . |
ilog.concert.IloIntExpr |
diff(ilog.concert.IloIntExpr e,
int v)
Creates and returns an integer expression object representing the difference of integer expression e and value v . |
ilog.concert.IloNumExpr |
diff(ilog.concert.IloNumExpr e,
double v)
Creates and returns an expression object representing the difference of expression e and value v . |
ilog.concert.IloNumExpr |
diff(ilog.concert.IloNumExpr e1,
ilog.concert.IloNumExpr e2)
Creates and returns an expression object representing the difference of expressions e1 and e2 . |
ilog.concert.IloIntExpr |
diff(int v,
ilog.concert.IloIntExpr e1)
Creates and returns an integer expression object representing the difference of value v and integer expression e1 . |
ilog.concert.IloRange |
eq(double val,
ilog.concert.IloNumExpr expr)
Creates and returns an IloRange object. |
ilog.concert.IloRange |
eq(double val,
ilog.concert.IloNumExpr expr,
java.lang.String name)
Creates and returns an IloRange object. |
ilog.concert.IloRange |
eq(ilog.concert.IloNumExpr expr,
double rhs)
Creates and returns an IloRange object. |
ilog.concert.IloRange |
eq(ilog.concert.IloNumExpr expr,
double rhs,
java.lang.String name)
Creates and returns an IloRange object. |
ilog.concert.IloConstraint |
eq(ilog.concert.IloNumExpr e1,
ilog.concert.IloNumExpr e2)
Creates and returns an IloRange object. |
ilog.concert.IloConstraint |
eq(ilog.concert.IloNumExpr e1,
ilog.concert.IloNumExpr e2,
java.lang.String name)
Creates and returns an IloRange object. |
ilog.concert.IloRange |
ge(double val,
ilog.concert.IloNumExpr expr)
Creates and returns an IloRange object. |
ilog.concert.IloRange |
ge(double val,
ilog.concert.IloNumExpr expr,
java.lang.String name)
Creates and returns an IloRange object. |
ilog.concert.IloRange |
ge(ilog.concert.IloNumExpr expr,
double rhs)
Creates and returns an IloRange object. |
ilog.concert.IloRange |
ge(ilog.concert.IloNumExpr expr,
double rhs,
java.lang.String name)
Creates and returns an IloRange object. |
ilog.concert.IloConstraint |
ge(ilog.concert.IloNumExpr e1,
ilog.concert.IloNumExpr e2)
Creates and returns an IloRange object. |
ilog.concert.IloConstraint |
ge(ilog.concert.IloNumExpr e1,
ilog.concert.IloNumExpr e2,
java.lang.String name)
Creates and returns an IloRange object. |
ilog.concert.IloIntVar |
intVar(int min,
int max)
Creates and returns a new integer variable with the specified bounds. |
ilog.concert.IloIntVar |
intVar(int min,
int max,
java.lang.String name)
Creates and returns a new integer variable with the specified bounds and a name. |
ilog.concert.IloIntVar[] |
intVarArray(int n,
int[] min,
int[] max)
Creates an array of length n initialized to n new integer variables,
each variable with its own bounds. |
ilog.concert.IloIntVar[] |
intVarArray(int n,
int[] min,
int[] max,
java.lang.String[] name)
Creates an array of length n initialized to n new integer variables,
each variable with its own bounds. |
ilog.concert.IloIntVar[] |
intVarArray(int n,
int min,
int max)
Returns a new array of n integer variables
with the specified bounds. |
ilog.concert.IloIntVar[] |
intVarArray(int n,
int min,
int max,
java.lang.String[] name)
Creates an array of length n initialized to n new modeling integer
variables, each with the same specified bounds
and returns them in an array. |
ilog.concert.IloRange |
le(double val,
ilog.concert.IloNumExpr expr)
Creates and returns an IloRange object. |
ilog.concert.IloRange |
le(double val,
ilog.concert.IloNumExpr expr,
java.lang.String name)
Creates and returns an IloRange object. |
ilog.concert.IloRange |
le(ilog.concert.IloNumExpr expr,
double rhs)
Creates and returns an IloRange object. |
ilog.concert.IloRange |
le(ilog.concert.IloNumExpr expr,
double rhs,
java.lang.String name)
Creates and returns an IloRange object. |
ilog.concert.IloConstraint |
le(ilog.concert.IloNumExpr e1,
ilog.concert.IloNumExpr e2)
Creates and returns an IloRange object. |
ilog.concert.IloConstraint |
le(ilog.concert.IloNumExpr e1,
ilog.concert.IloNumExpr e2,
java.lang.String name)
Creates and returns an IloRange object. |
ilog.concert.IloLinearIntExpr |
linearIntExpr()
Creates and returns a zero integer linear expression. |
ilog.concert.IloLinearIntExpr |
linearIntExpr(int val)
Creates and returns an integer linear expression initialized to a constant. |
ilog.concert.IloLinearNumExpr |
linearNumExpr()
Creates and returns a zero linear expression. |
ilog.concert.IloLinearNumExpr |
linearNumExpr(double val)
Creates and returns a linear expression initialized to a constant. |
ilog.concert.IloObjective |
maximize(ilog.concert.IloNumExpr expr)
Creates and returns an IloObjective object. |
ilog.concert.IloObjective |
maximize(ilog.concert.IloNumExpr expr,
java.lang.String name)
Creates and returns an IloObjective object. |
ilog.concert.IloObjective |
minimize(ilog.concert.IloNumExpr expr)
Creates and returns an IloObjective object. |
ilog.concert.IloObjective |
minimize(ilog.concert.IloNumExpr expr,
java.lang.String name)
Creates and returns an IloObjective object. |
ilog.concert.IloIntExpr |
negative(ilog.concert.IloIntExpr e)
Creates and returns the new expression -e ,
the negative of the expression e . |
ilog.concert.IloNumExpr |
negative(ilog.concert.IloNumExpr e)
Creates and returns the new expression -e ,
the negative of the expression e . |
ilog.concert.IloNumVar |
numVar(double lb,
double ub)
Creates a new modeling variable object of the type IloNumVarType.Float . |
ilog.concert.IloNumVar |
numVar(double lb,
double ub,
ilog.concert.IloNumVarType type)
Creates a new numerical variable object. |
ilog.concert.IloNumVar |
numVar(double lb,
double ub,
ilog.concert.IloNumVarType type,
java.lang.String name)
Creates a new modeling variable object. |
ilog.concert.IloNumVar |
numVar(double lb,
double ub,
java.lang.String name)
Creates a new modeling variable object of the type IloNumVarType.Float . |
ilog.concert.IloNumVar[] |
numVarArray(int n,
double[] lb,
double[] ub)
Creates an array of length n initialized to n new modeling variable
objects of type IloNumVarType.Float . |
ilog.concert.IloNumVar[] |
numVarArray(int n,
double[] lb,
double[] ub,
ilog.concert.IloNumVarType[] type)
Creates n new numerical variable objects and returns them in an array. |
ilog.concert.IloNumVar[] |
numVarArray(int n,
double[] lb,
double[] ub,
ilog.concert.IloNumVarType[] type,
java.lang.String[] name)
Creates n new numerical variable objects and returns them in an array. |
ilog.concert.IloNumVar[] |
numVarArray(int n,
double[] lb,
double[] ub,
java.lang.String[] name)
Creates an array of length n initialized to n new modeling variable
objects of type IloNumVarType.Float . |
ilog.concert.IloNumVar[] |
numVarArray(int n,
double lb,
double ub)
Creates an array of length n initialized to n new modeling variable
objects of the type IloNumVarType.Float . |
ilog.concert.IloNumVar[] |
numVarArray(int n,
double lb,
double ub,
ilog.concert.IloNumVarType type)
Creates n new numerical variable objects and returns them in an array. |
ilog.concert.IloNumVar[] |
numVarArray(int n,
double lb,
double ub,
ilog.concert.IloNumVarType type,
java.lang.String[] name)
Creates n new numerical variable objects and returns them in an array. |
ilog.concert.IloNumVar[] |
numVarArray(int n,
double lb,
double ub,
java.lang.String[] name)
Creates an array of length n initialized to n new modeling variable
objects of type IloNumVarType.Float . |
ilog.concert.IloObjective |
objective(ilog.concert.IloObjectiveSense sense,
ilog.concert.IloNumExpr expr)
Creates and returns an IloObjective object. |
ilog.concert.IloObjective |
objective(ilog.concert.IloObjectiveSense sense,
ilog.concert.IloNumExpr expr,
java.lang.String name)
Creates and returns an IloObjective object. |
ilog.concert.IloNumExpr |
prod(double v,
ilog.concert.IloNumExpr e1)
Creates and returns an expression object representing the product of the expression e1 and the value v . |
ilog.concert.IloIntExpr |
prod(ilog.concert.IloIntExpr e1,
ilog.concert.IloIntExpr e2)
Creates and returns the new expression e1 * e2 . |
ilog.concert.IloIntExpr |
prod(ilog.concert.IloIntExpr e,
int v)
Creates and returns the new expression e * v . |
ilog.concert.IloNumExpr |
prod(ilog.concert.IloNumExpr e,
double v)
Creates and returns an expression object representing the product of expression e and value v . |
ilog.concert.IloNumExpr |
prod(ilog.concert.IloNumExpr expr1,
ilog.concert.IloNumExpr expr2)
Creates and returns an expression object representing the product of expressions expr1 and expr2 . |
ilog.concert.IloIntExpr |
prod(int v,
ilog.concert.IloIntExpr e)
Creates and returns the new expression v * e . |
ilog.concert.IloRange |
range(double lb,
ilog.concert.IloNumExpr expr,
double ub)
Creates and returns an IloRange object. |
ilog.concert.IloRange |
range(double lb,
ilog.concert.IloNumExpr expr,
double ub,
java.lang.String name)
Creates and returns an IloRange object. |
ilog.concert.IloLinearNumExpr |
scalProd(double[] coefs,
ilog.concert.IloNumVar[] vars)
Creates and returns a linear expression representing the scalar product of the provided values with the provided variables. |
ilog.concert.IloLinearNumExpr |
scalProd(double[] coefs,
ilog.concert.IloNumVar[] vars,
int start,
int num)
Creates and returns a linear expression representing the scalar product of the values provided in coefs[start]...coefs[start+num-1] with the variables
provided in vars[start]...vars[start+num-1] . |
ilog.concert.IloLinearIntExpr |
scalProd(ilog.concert.IloIntVar[] vars,
int[] vals)
Creates and returns an integer linear expression representing the scalar product of the provided integer values with the provided integer variables. |
ilog.concert.IloLinearIntExpr |
scalProd(ilog.concert.IloIntVar[] vars,
int[] vals,
int start,
int num)
Creates and returns an integer linear expression representing the scalar product of the integer values provided in vals[start]...vals[start+num-1]
with the integer variables provided in vars[start]...vars[start+num-1] . |
ilog.concert.IloLinearNumExpr |
scalProd(ilog.concert.IloNumVar[] vars,
double[] coefs)
Creates and returns a linear expression representing the scalar product of the provided values with the provided variables. |
ilog.concert.IloLinearNumExpr |
scalProd(ilog.concert.IloNumVar[] vars,
double[] coefs,
int start,
int num)
Creates and returns a linear expression representing the scalar product of the values provided in coefs[start]...coefs[start+num-1] with the variables
provided in vars[start]...vars[start+num-1] . |
ilog.concert.IloLinearNumExpr |
scalProd(ilog.concert.IloNumVar[] vars,
int[] coefs)
Creates and returns a linear expression representing the scalar product of the provided values with the provided variables. |
ilog.concert.IloLinearIntExpr |
scalProd(int[] vals,
ilog.concert.IloIntVar[] vars)
Creates and returns an integer linear expression representing the scalar product of the provided integer values with the provided integer variables. |
ilog.concert.IloLinearIntExpr |
scalProd(int[] vals,
ilog.concert.IloIntVar[] vars,
int start,
int num)
Creates and returns an integer linear expression representing the scalar product of the integer values provided in vals[start]...vals[start+num-1]
with the integer variables provided in vars[start]...vars[start+num-1] . |
ilog.concert.IloLinearNumExpr |
scalProd(int[] coefs,
ilog.concert.IloNumVar[] vars)
Creates and returns a linear expression representing the scalar product of the provided values with the provided variables. |
ilog.concert.IloIntExpr |
square(ilog.concert.IloIntExpr e)
Creates and returns the new expression e^2 . |
ilog.concert.IloNumExpr |
square(ilog.concert.IloNumExpr e)
Creates and returns an expression object representing the square of the expression e (that is, e * e ). |
ilog.concert.IloNumExpr |
sum(double v,
ilog.concert.IloNumExpr e)
Creates and returns an expression object representing the sum of a value and a numeric expression. |
ilog.concert.IloIntExpr |
sum(ilog.concert.IloIntExpr[] expr)
Creates and returns an integer expression representing the sum of the expressions provided in the array expr . |
ilog.concert.IloIntExpr |
sum(ilog.concert.IloIntExpr[] expr,
int start,
int num)
Creates and returns an integer expression representing the sum of the num expressions provided in the array expr
starting with element start . |
ilog.concert.IloIntExpr |
sum(ilog.concert.IloIntExpr e1,
ilog.concert.IloIntExpr e2)
Adds two integer expressions and returns the sum. |
ilog.concert.IloIntExpr |
sum(ilog.concert.IloIntExpr e1,
ilog.concert.IloIntExpr e2,
ilog.concert.IloIntExpr e3)
Adds three integer expressions and returns the sum. |
ilog.concert.IloIntExpr |
sum(ilog.concert.IloIntExpr e1,
ilog.concert.IloIntExpr e2,
ilog.concert.IloIntExpr e3,
ilog.concert.IloIntExpr e4)
Adds four integer expressions and returns the sum. |
ilog.concert.IloIntExpr |
sum(ilog.concert.IloIntExpr e1,
ilog.concert.IloIntExpr e2,
ilog.concert.IloIntExpr e3,
ilog.concert.IloIntExpr e4,
ilog.concert.IloIntExpr e5)
Adds five integer expressions and returns the sum. |
ilog.concert.IloIntExpr |
sum(ilog.concert.IloIntExpr e1,
ilog.concert.IloIntExpr e2,
ilog.concert.IloIntExpr e3,
ilog.concert.IloIntExpr e4,
ilog.concert.IloIntExpr e5,
ilog.concert.IloIntExpr e6)
Adds six integer expressions and returns the sum. |
ilog.concert.IloIntExpr |
sum(ilog.concert.IloIntExpr e1,
ilog.concert.IloIntExpr e2,
ilog.concert.IloIntExpr e3,
ilog.concert.IloIntExpr e4,
ilog.concert.IloIntExpr e5,
ilog.concert.IloIntExpr e6,
ilog.concert.IloIntExpr e7)
Adds seven integer expressions and returns the sum. |
ilog.concert.IloIntExpr |
sum(ilog.concert.IloIntExpr e1,
ilog.concert.IloIntExpr e2,
ilog.concert.IloIntExpr e3,
ilog.concert.IloIntExpr e4,
ilog.concert.IloIntExpr e5,
ilog.concert.IloIntExpr e6,
ilog.concert.IloIntExpr e7,
ilog.concert.IloIntExpr e8)
Adds eight integer expressions and returns the sum. |
ilog.concert.IloIntExpr |
sum(ilog.concert.IloIntExpr e,
int v)
Creates and returns an integer expression representing the sum of an integer expression and a value. |
ilog.concert.IloNumExpr |
sum(ilog.concert.IloNumExpr[] expr)
Creates and returns an expression representing the sum of the expressions provided in the array expr . |
ilog.concert.IloNumExpr |
sum(ilog.concert.IloNumExpr[] expr,
int start,
int num)
Creates and returns an expression representing the sum of the num expressions provided in the array expr
starting with element start . |
ilog.concert.IloNumExpr |
sum(ilog.concert.IloNumExpr e,
double v)
Creates and returns an expression object representing the sum of a numeric expression and a value. |
ilog.concert.IloNumExpr |
sum(ilog.concert.IloNumExpr e1,
ilog.concert.IloNumExpr e2)
Adds two numeric expressions and returns the sum. |
ilog.concert.IloNumExpr |
sum(ilog.concert.IloNumExpr e1,
ilog.concert.IloNumExpr e2,
ilog.concert.IloNumExpr e3)
Adds three numeric expressions and returns the sum. |
ilog.concert.IloNumExpr |
sum(ilog.concert.IloNumExpr e1,
ilog.concert.IloNumExpr e2,
ilog.concert.IloNumExpr e3,
ilog.concert.IloNumExpr e4)
Adds four numeric expressions and returns the sum. |
ilog.concert.IloNumExpr |
sum(ilog.concert.IloNumExpr e1,
ilog.concert.IloNumExpr e2,
ilog.concert.IloNumExpr e3,
ilog.concert.IloNumExpr e4,
ilog.concert.IloNumExpr e5)
Adds five numeric expressions and returns the sum. |
ilog.concert.IloNumExpr |
sum(ilog.concert.IloNumExpr e1,
ilog.concert.IloNumExpr e2,
ilog.concert.IloNumExpr e3,
ilog.concert.IloNumExpr e4,
ilog.concert.IloNumExpr e5,
ilog.concert.IloNumExpr e6)
Adds six numeric expressions and returns the sum. |
ilog.concert.IloNumExpr |
sum(ilog.concert.IloNumExpr e1,
ilog.concert.IloNumExpr e2,
ilog.concert.IloNumExpr e3,
ilog.concert.IloNumExpr e4,
ilog.concert.IloNumExpr e5,
ilog.concert.IloNumExpr e6,
ilog.concert.IloNumExpr e7)
Adds seven numeric expressions and returns the sum. |
ilog.concert.IloNumExpr |
sum(ilog.concert.IloNumExpr e1,
ilog.concert.IloNumExpr e2,
ilog.concert.IloNumExpr e3,
ilog.concert.IloNumExpr e4,
ilog.concert.IloNumExpr e5,
ilog.concert.IloNumExpr e6,
ilog.concert.IloNumExpr e7,
ilog.concert.IloNumExpr e8)
Adds eight numeric expressions and returns the sum. |
ilog.concert.IloIntExpr |
sum(int v,
ilog.concert.IloIntExpr e)
Creates and returns an integer expression representing the sum of a value and an integer expression. |
Methods inherited from interface ilog.concert.IloModel |
add, add, add, iterator, remove, remove, remove |
Methods inherited from interface ilog.concert.IloAddable |
getName, setName |
Method Detail |
public ilog.concert.IloNumVar numVar(double lb, double ub, ilog.concert.IloNumVarType type, java.lang.String name) throws IloException
lb
- The lower bound of the new numerical variable.ub
- The upper bound of the new numerical variable.type
- The type of the new numerical variable.name
- The name of the new numerical variable.
IloException
public ilog.concert.IloNumVar numVar(double lb, double ub, ilog.concert.IloNumVarType type) throws IloException
lb
- The lower bound of the new numerical variable.ub
- The upper bound of the new numerical variable.type
- The type of the new numerical variable.
IloException
public ilog.concert.IloNumVar[] numVarArray(int n, double lb, double ub, ilog.concert.IloNumVarType type) throws IloException
n
new numerical variable objects and returns them in an array.
All variables are created with the same bounds and type.
n
- The number of new numerical variables.lb
- The lower bound of the new numerical variables.ub
- The upper bound of the new numerical variables.type
- The type of the new numerical variables.
n
new numerical variable
objects.
IloException
public ilog.concert.IloNumVar[] numVarArray(int n, double lb, double ub, ilog.concert.IloNumVarType type, java.lang.String[] name) throws IloException
n
new numerical variable objects and returns them in an array.
All variables are created with the same bounds and type, but with
different names.
lb
- The lower bound of the new numerical variables.ub
- The upper bound of the new numerical variables.type
- The type of the new numerical variables.name
- The names of the new numerical variables. Variable i
is assigned the name name[i]
.
n
new numerical variable
objects.
IloException
public ilog.concert.IloNumVar[] numVarArray(int n, double[] lb, double[] ub, ilog.concert.IloNumVarType[] type, java.lang.String[] name) throws IloException
n
new numerical variable objects and returns them in an array.
lb
- The lower bounds of the new numerical variables.
Variable i
is constructed with
the lower bound lb[i]
.ub
- The upper bounds of the new numerical variables.
Variable i
is constructed with
the upper bound ub[i]
.type
- The types of the new numerical variables.
Variable i
is constructed with
the type type[i]
.name
- The names of the new numerical variables. Variable i
is assigned the name name[i]
.
n
new numerical variable
objects.
IloException
public ilog.concert.IloNumVar[] numVarArray(int n, double[] lb, double[] ub, ilog.concert.IloNumVarType[] type) throws IloException
n
new numerical variable objects and returns them in an array.
lb
- The lower bounds of the new numerical variables.
Variable i
is constructed with the lower bound lb[i]
.ub
- The upper bounds of the new numerical variables.
Variable i
is constructed with the upper bound ub[i]
.type
- The types of the new numerical variables.
Variable i
is constructed with the type type[i]
.
n
new numerical variable
objects.
IloException
public ilog.concert.IloNumVar numVar(double lb, double ub, java.lang.String name) throws IloException
IloNumVarType.Float
.
This method returns an object representing a new modeling variable of type
IloNumVarType.Float
with the specified bounds and name.
lb
- The lower bound of the new modeling variable.ub
- The upper bound of the new modeling variable.name
- The name of the new modeling variable.
IloException
public ilog.concert.IloNumVar numVar(double lb, double ub) throws IloException
IloNumVarType.Float
.
This method returns an object representing a new modeling variable of the type
IloNumVarType.Float
with the specified bounds.
lb
- The lower bound of the new modeling variable.ub
- The upper bound of the new modeling variable.
IloException
public ilog.concert.IloNumVar[] numVarArray(int n, double lb, double ub) throws IloException
n
initialized to n
new modeling variable
objects of the type IloNumVarType.Float
. This method creates n
new modeling
variables of the type IloNumVarType.Float
, each with the same specified bounds
and returns them in an array.
lb
- The lower bound of the new modeling variable.ub
- The upper bound of the new modeling variable.
IloException
public ilog.concert.IloNumVar[] numVarArray(int n, double lb, double ub, java.lang.String[] name) throws IloException
n
initialized to n
new modeling variable
objects of type IloNumVarType.Float
. This method creates n
new modeling
variables of type IloNumVarType.Float
, each with the same specified bounds,
and returns them in an array. Each new variable is assigned a name, where
variable i
is assigned the name name[i]
.
lb
- The lower bound of the new modeling variable.ub
- The upper bound of the new modeling variable.name
- The names of the new modeling variables. Variable i
is assigned the name name[i]
.
IloException
public ilog.concert.IloNumVar[] numVarArray(int n, double[] lb, double[] ub, java.lang.String[] name) throws IloException
n
initialized to n
new modeling variable
objects of type IloNumVarType.Float
. This method creates n
new modeling
variables of the type IloNumVarType.Float
, each with the same specified bounds,
and returns them in an array. Each new variable is assigned a name, where
variable i
is assigned the name name[i]
.
lb
- The lower bound of the new modeling variable.ub
- The upper bound of the new modeling variable.name
- The names of the new modeling variables. Variable i
is assigned the name name[i]
.
IloException
public ilog.concert.IloNumVar[] numVarArray(int n, double[] lb, double[] ub) throws IloException
n
initialized to n
new modeling variable
objects of type IloNumVarType.Float
. This method creates n new modeling
variables of the type IloNumVarType.Float
, each with its own bounds, and
returns them in an array. Variable i
will be constructed with bounds
lb[i]
and ub[i]
.
lb
- The lower bounds of the new modeling variable.
Variable i
will be constructed with a lower bound of lb[i]
.ub
- The upper bounds of the new modeling variable.
Variable i
will be constructed with an upper bound of lb[i]
.
IloException
public ilog.concert.IloIntVar intVar(int min, int max, java.lang.String name) throws IloException
min
- The minimum value of the variable.max
- The maximum value of the variable.name
- The name of the variable.
IloException
public ilog.concert.IloIntVar intVar(int min, int max) throws IloException
min
- The minimum value of the variable.max
- The maximum value of the variable.
IloException
public ilog.concert.IloIntVar[] intVarArray(int n, int min, int max) throws IloException
n
integer variables
with the specified bounds.
min
- The lower bound of the new modeling variable.max
- The upper bound of the new modeling variable.
IloException
public ilog.concert.IloIntVar[] intVarArray(int n, int min, int max, java.lang.String[] name) throws IloException
n
initialized to n
new modeling integer
variables, each with the same specified bounds
and returns them in an array. Each new variable is assigned a name, where
variable i
is assigned the name name[i]
.
min
- The lower bound of the new modeling variable.max
- The upper bound of the new modeling variable.name
- The names of the new modeling variables. Variable i
is assigned the name name[i]
.
IloException
public ilog.concert.IloIntVar[] intVarArray(int n, int[] min, int[] max) throws IloException
n
initialized to n
new integer variables,
each variable with its own bounds.
Variable i
will be constructed with bounds min[i]
and max[i]
.
min
- The lower bounds of the new modeling variable.
Variable i
will be constructed with a lower bound of min[i]
.max
- The upper bounds of the new modeling variable.
Variable i
will be constructed with an upper bound of max[i]
.
IloException
public ilog.concert.IloIntVar[] intVarArray(int n, int[] min, int[] max, java.lang.String[] name) throws IloException
n
initialized to n
new integer variables,
each variable with its own bounds.
Variable i
will be constructed with bounds
min[i]
and max[i]
and will be assigned the name name[i]
.
min
- The lower bounds of the new modeling variable.
Variable i
will be constructed with a lower bound of min[i]
.max
- The upper bounds of the new modeling variable.
Variable i
will be constructed with an upper bound of max[i]
.name
- The names of the new modeling variables. Variable i
will be assigned the name name[i]
.
IloException
public ilog.concert.IloIntVar boolVar(java.lang.String name) throws IloException
name
- The name of the variable.
IloException
public ilog.concert.IloIntVar boolVar() throws IloException
IloException
public ilog.concert.IloIntVar[] boolVarArray(int n) throws IloException
n
new Boolean variables (domain 0,1).
IloException
public ilog.concert.IloIntVar[] boolVarArray(int n, java.lang.String[] name) throws IloException
n
new Boolean variables (domain 0,1).
Variable i
will be assigned the name name[i]
.
IloException
public ilog.concert.IloLinearNumExpr linearNumExpr() throws IloException
IloException
public ilog.concert.IloLinearNumExpr linearNumExpr(double val) throws IloException
val
- The constant term of the new linear expression.
val
.
IloException
public ilog.concert.IloLinearNumExpr scalProd(ilog.concert.IloNumVar[] vars, double[] coefs) throws IloException
coefs
- The values involved in the new scalar product
expression.vars
- The variables involved in the new scalar product
expression.
IloException
public ilog.concert.IloLinearNumExpr scalProd(ilog.concert.IloNumVar[] vars, double[] coefs, int start, int num) throws IloException
coefs[start]...coefs[start+num-1]
with the variables
provided in vars[start]...vars[start+num-1]
.
coefs
- An array containing the values to be used for the
scalar product.vars
- An array containing the variables to be used for the
scalar product.start
- The first element in coefs/vars
to use for the scalar product.num
- The number of elements in coefs/vars
to use for the scalar product.
IloException
public ilog.concert.IloLinearNumExpr scalProd(double[] coefs, ilog.concert.IloNumVar[] vars) throws IloException
coefs
- The values involved in the new scalar product expression.vars
- The variables involved in the new scalar product expression.
IloException
public ilog.concert.IloLinearNumExpr scalProd(double[] coefs, ilog.concert.IloNumVar[] vars, int start, int num) throws IloException
coefs[start]...coefs[start+num-1]
with the variables
provided in vars[start]...vars[start+num-1]
.
coefs
- An array containing the values to be used for the scalar product.vars
- An array containing the variables to be used for the scalar product.start
- The first element in coefs/vars
to use for the scalar product.num
- The number of elements in coefs/vars
to use for the scalar product.
IloException
public ilog.concert.IloLinearNumExpr scalProd(ilog.concert.IloNumVar[] vars, int[] coefs) throws IloException
coefs
- The values involved in the new scalar product expression.vars
- The variables involved in the new scalar product expression.
IloException
public ilog.concert.IloLinearNumExpr scalProd(int[] coefs, ilog.concert.IloNumVar[] vars) throws IloException
coefs
- The values involved in the new scalar product expression.vars
- The variables involved in the new scalar product expression.
IloException
public ilog.concert.IloNumExpr negative(ilog.concert.IloNumExpr e) throws IloException
-e
,
the negative of the expression e
.
e
- An expression for which the negative value is given.
e
.
IloException
public ilog.concert.IloNumExpr sum(ilog.concert.IloNumExpr e, double v) throws IloException
e
- The numeric expression.v
- The value.
e + v
.
IloException
public ilog.concert.IloNumExpr sum(double v, ilog.concert.IloNumExpr e) throws IloException
v
- The value.e
- The numeric expression.
v + e
.
IloException
public ilog.concert.IloNumExpr sum(ilog.concert.IloNumExpr e1, ilog.concert.IloNumExpr e2) throws IloException
e1
- The first numeric expression.e2
- The second numeric expression.
e1 + e2
.
IloException
public ilog.concert.IloNumExpr sum(ilog.concert.IloNumExpr e1, ilog.concert.IloNumExpr e2, ilog.concert.IloNumExpr e3) throws IloException
e1
- The first numeric expression.e2
- The second numeric expression.e3
- The third numeric expression.
e1 + e2 + e3
.
IloException
public ilog.concert.IloNumExpr sum(ilog.concert.IloNumExpr e1, ilog.concert.IloNumExpr e2, ilog.concert.IloNumExpr e3, ilog.concert.IloNumExpr e4) throws IloException
e1
- The first numeric expression.e2
- The second numeric expression.e3
- The third numeric expression.e4
- The fourth numeric expression.
e1 + e2 + e3 + e4
.
IloException
public ilog.concert.IloNumExpr sum(ilog.concert.IloNumExpr e1, ilog.concert.IloNumExpr e2, ilog.concert.IloNumExpr e3, ilog.concert.IloNumExpr e4, ilog.concert.IloNumExpr e5) throws IloException
e1
- The first numeric expression.e2
- The second numeric expression.e3
- The third numeric expression.e4
- The fourth numeric expression.e5
- The fifth numeric expression.
e1 + e2 + e3 + e4 + e5
.
IloException
public ilog.concert.IloNumExpr sum(ilog.concert.IloNumExpr e1, ilog.concert.IloNumExpr e2, ilog.concert.IloNumExpr e3, ilog.concert.IloNumExpr e4, ilog.concert.IloNumExpr e5, ilog.concert.IloNumExpr e6) throws IloException
e1
- The first numeric expression.e2
- The second numeric expression.e3
- The third numeric expression.e4
- The fourth numeric expression.e5
- The fifth numeric expression.e6
- The sixth numeric expression.
e1 + e2 + e3 + e4 + e5 + e6
.
IloException
public ilog.concert.IloNumExpr sum(ilog.concert.IloNumExpr e1, ilog.concert.IloNumExpr e2, ilog.concert.IloNumExpr e3, ilog.concert.IloNumExpr e4, ilog.concert.IloNumExpr e5, ilog.concert.IloNumExpr e6, ilog.concert.IloNumExpr e7) throws IloException
e1
- The first numeric expression.e2
- The second numeric expression.e3
- The third numeric expression.e4
- The fourth numeric expression.e5
- The fifth numeric expression.e6
- The sixth numeric expression.e7
- The seventh numeric expression.
e1 + e2 + e3 + e4 + e5 + e6 + e7
.
IloException
public ilog.concert.IloNumExpr sum(ilog.concert.IloNumExpr e1, ilog.concert.IloNumExpr e2, ilog.concert.IloNumExpr e3, ilog.concert.IloNumExpr e4, ilog.concert.IloNumExpr e5, ilog.concert.IloNumExpr e6, ilog.concert.IloNumExpr e7, ilog.concert.IloNumExpr e8) throws IloException
e1
- The first numeric expression.e2
- The second numeric expression.e3
- The third numeric expression.e4
- The fourth numeric expression.e5
- The fifth numeric expression.e6
- The sixth numeric expression.e7
- The seventh numeric expression.e8
- The eighth numeric expression.
e1 + e2 + e3 + e4 + e5 + e6 + e7 + e8
.
IloException
public ilog.concert.IloNumExpr sum(ilog.concert.IloNumExpr[] expr, int start, int num) throws IloException
num
expressions provided in the array expr
starting with element start
.
expr
- An array containing the expressions to be summed.start
- The first expression in expr
to be used.num
- The number of expressions in expr
to be used.
IloException
public ilog.concert.IloNumExpr sum(ilog.concert.IloNumExpr[] expr) throws IloException
expr
.
expr
- An array containing the expressions to be summed.
IloException
public ilog.concert.IloNumExpr diff(ilog.concert.IloNumExpr e, double v) throws IloException
e
and value v
.
e
- An expression to use in the difference.v
- A value to use in the difference.
e - v
.
IloException
public ilog.concert.IloNumExpr diff(ilog.concert.IloNumExpr e1, ilog.concert.IloNumExpr e2) throws IloException
e1
and e2
.
e1
- An expression to use in the difference.e2
- An expression to use in the difference.
e1 - e2
.
IloException
public ilog.concert.IloNumExpr diff(double v, ilog.concert.IloNumExpr e1) throws IloException
v
and expression e1
.
v
- A value to use in the difference.e1
- An expression to use in the difference.
v - e1
.
IloException
public ilog.concert.IloNumExpr prod(ilog.concert.IloNumExpr e, double v) throws IloException
e
and value v
.
e
- An expression to use in the product.v
- A value to use in the product.
e * v
.
IloException
public ilog.concert.IloNumExpr prod(ilog.concert.IloNumExpr expr1, ilog.concert.IloNumExpr expr2) throws IloException
expr1
and expr2
.
expr1
- An expression to use in the product.expr2
- An expression to use in the product.
expr1 * expr2
.
IloException
public ilog.concert.IloNumExpr prod(double v, ilog.concert.IloNumExpr e1) throws IloException
e1
and the value v
.
e1
- An expression to use in the product.v
- A value to use in the product.
e1 * v
.
IloException
public ilog.concert.IloNumExpr square(ilog.concert.IloNumExpr e) throws IloException
e
(that is, e * e
).
e
- An expression to use in the square.
e * e
.
IloException
public ilog.concert.IloNumExpr constant(double x) throws IloException
x
.
This method does not need to be called by the user, as overloaded versions
of all expression methods are available to deal directly with constants.
x
- A value for which to construct a constant expression term.
x
.
IloException
public ilog.concert.IloLinearIntExpr linearIntExpr() throws IloException
IloException
public ilog.concert.IloLinearIntExpr linearIntExpr(int val) throws IloException
val
- Constant term of the new linear expression.
val
.
IloException
public ilog.concert.IloLinearIntExpr scalProd(int[] vals, ilog.concert.IloIntVar[] vars) throws IloException
vals
- The integer values involved in the new scalar product
expression.vars
- The integer variables involved in the new scalar product
expression.
IloException
public ilog.concert.IloLinearIntExpr scalProd(int[] vals, ilog.concert.IloIntVar[] vars, int start, int num) throws IloException
vals[start]...vals[start+num-1]
with the integer variables provided in vars[start]...vars[start+num-1]
.
vals
- An array containing the values to be used for the
scalar product.vars
- An array containing the variables to be used for the
scalar product.start
- First element in vals/vars
to be used for the scalar product.num
- Number of elements in vals/vars
to be used for the scalar product.
IloException
public ilog.concert.IloLinearIntExpr scalProd(ilog.concert.IloIntVar[] vars, int[] vals) throws IloException
vars
- The integer variables involved in the new scalar product
expression.vals
- The integer values involved in the new scalar product
expression.
IloException
public ilog.concert.IloLinearIntExpr scalProd(ilog.concert.IloIntVar[] vars, int[] vals, int start, int num) throws IloException
vals[start]...vals[start+num-1]
with the integer variables provided in vars[start]...vars[start+num-1]
.
vars
- An array containing the variables to be used for the
scalar product.vals
- An array containing the values to be used for the
scalar product.start
- First element in vals/vars
to be used for the scalar product.num
- Number of elements in vals/vars
to be used for the scalar product.
IloException
public ilog.concert.IloIntExpr negative(ilog.concert.IloIntExpr e) throws IloException
-e
,
the negative of the expression e
.
e
- An integer expression for which the negative value is given.
e
.
IloException
public ilog.concert.IloIntExpr sum(ilog.concert.IloIntExpr e, int v) throws IloException
e
- The integer expression.v
- The value.
e + v
.
IloException
public ilog.concert.IloIntExpr sum(int v, ilog.concert.IloIntExpr e) throws IloException
v
- The value.e
- The integer expression.
e + v
.
IloException
public ilog.concert.IloIntExpr sum(ilog.concert.IloIntExpr e1, ilog.concert.IloIntExpr e2) throws IloException
e1
- The first integer expression.e2
- The second integer expression.
e1 + e2
.
IloException
public ilog.concert.IloIntExpr sum(ilog.concert.IloIntExpr e1, ilog.concert.IloIntExpr e2, ilog.concert.IloIntExpr e3) throws IloException
e1
- The first integer expression.e2
- The second integer expression.e3
- The third integer expression.
exp
, representing the
sum of e1 +e2 +e3
.
IloException
public ilog.concert.IloIntExpr sum(ilog.concert.IloIntExpr e1, ilog.concert.IloIntExpr e2, ilog.concert.IloIntExpr e3, ilog.concert.IloIntExpr e4) throws IloException
e1
- The first integer expression.e2
- The second integer expression.e3
- The third integer expression.e4
- The fourth integer expression.
exp
, representing the
sum of e1 + e2 + e3 +e 4
.
IloException
public ilog.concert.IloIntExpr sum(ilog.concert.IloIntExpr e1, ilog.concert.IloIntExpr e2, ilog.concert.IloIntExpr e3, ilog.concert.IloIntExpr e4, ilog.concert.IloIntExpr e5) throws IloException
e1
- The first integer expression.e2
- The second integer expression.e3
- The third integer expression.e4
- The fourth integer expression.e5
- The fifth integer expression.
exp
, representing the
sum of e1 + e2 + e3 + e4 + e5
.
IloException
public ilog.concert.IloIntExpr sum(ilog.concert.IloIntExpr e1, ilog.concert.IloIntExpr e2, ilog.concert.IloIntExpr e3, ilog.concert.IloIntExpr e4, ilog.concert.IloIntExpr e5, ilog.concert.IloIntExpr e6) throws IloException
e1
- The first integer expression.e2
- The second integer expression.e3
- The third integer expression.e4
- The fourth integer expression.e5
- The fifth integer expression.e6
- The sixth integer expression.
exp
, representing the
sum of e1 + e2 + e3 + e4 + e5 + e6
.
IloException
public ilog.concert.IloIntExpr sum(ilog.concert.IloIntExpr e1, ilog.concert.IloIntExpr e2, ilog.concert.IloIntExpr e3, ilog.concert.IloIntExpr e4, ilog.concert.IloIntExpr e5, ilog.concert.IloIntExpr e6, ilog.concert.IloIntExpr e7) throws IloException
e1
- The first integer expression.e2
- The second integer expression.e3
- The third integer expression.e4
- The fourth integer expression.e5
- The fifth integer expression.e6
- The sixth integer expression.e7
- The seventh integer expression.
exp
, representing the
sum of e1 + e2 + e3 + e4 + e5 + e6 + e7
.
IloException
public ilog.concert.IloIntExpr sum(ilog.concert.IloIntExpr e1, ilog.concert.IloIntExpr e2, ilog.concert.IloIntExpr e3, ilog.concert.IloIntExpr e4, ilog.concert.IloIntExpr e5, ilog.concert.IloIntExpr e6, ilog.concert.IloIntExpr e7, ilog.concert.IloIntExpr e8) throws IloException
e1
- The first integer expression.e2
- The second integer expression.e3
- The third integer expression.e4
- The fourth integer expression.e5
- The fifth integer expression.e6
- The sixth integer expression.e7
- The seventh integer expression.e8
- The eighth integer expression.
exp
, representing the
sum of e1 + e2 + e3 + e4 + e5 + e6 + e7 + e8
.
IloException
public ilog.concert.IloIntExpr sum(ilog.concert.IloIntExpr[] expr, int start, int num) throws IloException
num
expressions provided in the array expr
starting with element start
.
expr
- An array containing the expressions to be summed.start
- The first expression in expr
to be used.num
- The number of expressions in expr
to be used.
IloException
public ilog.concert.IloIntExpr sum(ilog.concert.IloIntExpr[] expr) throws IloException
expr
.
expr
- An array containing the expressions to be summed.
IloException
public ilog.concert.IloIntExpr diff(ilog.concert.IloIntExpr e, int v) throws IloException
e
and value v
.
e
- An integer expression to use in the difference.v
- A value to use in the difference.
e - v
.
IloException
public ilog.concert.IloIntExpr diff(ilog.concert.IloIntExpr expr1, ilog.concert.IloIntExpr expr2) throws IloException
expr1
and expr2
.
expr1
- An integer expression to use in the difference.expr2
- An integer expression to use in the difference.
expr1 - expr2
.
IloException
public ilog.concert.IloIntExpr diff(int v, ilog.concert.IloIntExpr e1) throws IloException
v
and integer expression e1
.
v
- A value to use in the difference.e1
- An integer expression to use in the difference.
v - e1
.
IloException
public ilog.concert.IloIntExpr prod(ilog.concert.IloIntExpr e, int v) throws IloException
e * v
.
IloException
public ilog.concert.IloIntExpr prod(ilog.concert.IloIntExpr e1, ilog.concert.IloIntExpr e2) throws IloException
e1 * e2
.
IloException
public ilog.concert.IloIntExpr prod(int v, ilog.concert.IloIntExpr e) throws IloException
v * e
.
IloException
public ilog.concert.IloIntExpr square(ilog.concert.IloIntExpr e) throws IloException
e^2
.
IloException
public ilog.concert.IloIntExpr constant(int x) throws IloException
x
.
x
- The value of the constant expression.
IloException
public ilog.concert.IloConstraint eq(ilog.concert.IloNumExpr e1, ilog.concert.IloNumExpr e2) throws IloException
IloRange
object. The new IloRange
object is
initialized to represent the constraint e1 == e2
.
e1
- Left-hand side expression of the new equality constraint.e2
- Right-hand side expression of the new equality constraint.
IloRange
object initialized to represent the
constraint e1 == e2
.
IloException
public ilog.concert.IloConstraint eq(ilog.concert.IloNumExpr e1, ilog.concert.IloNumExpr e2, java.lang.String name) throws IloException
IloRange
object.
The new IloRange
object is initialized to represent
the constraint e1 == e2
and is assigned the name name
.
e1
- Left-hand side expression of the new equality constraint.e2
- Right-hand side expression of the new equality constraint.name
- Name assigned to the new IloRange
constraint.
IloRange
object initialized to represent the
constraint e1 == e2
.
IloException
public ilog.concert.IloRange eq(ilog.concert.IloNumExpr expr, double rhs) throws IloException
IloRange
object. The new IloRange
object is
initialized to represent the constraint expr == rhs
.
expr
- Expression of the new equality constraint.rhs
- Upper bound of the new equality constraint.
IloRange
object initialized to represent the
constraint expr == rhs
.
IloException
public ilog.concert.IloRange eq(ilog.concert.IloNumExpr expr, double rhs, java.lang.String name) throws IloException
IloRange
object. The new IloRange
object is initialized to represent the constraint expr == rhs
and is assigned the name name
.
expr
- Expression of the new equality constraint.rhs
- Upper bound of the new equality constraint.name
- Name assigned to the new equality constraint.
IloRange
object initialized to represent the
constraint expr == rhs
.
IloException
public ilog.concert.IloRange eq(double val, ilog.concert.IloNumExpr expr) throws IloException
IloRange
object. The new IloRange
object is
initialized to represent the constraint val == expr
.
val
- Value of the new equality constraint.expr
- Expression of the new equality constraint.
IloRange
object initialized to represent the
constraint val == expr
.
IloException
public ilog.concert.IloRange eq(double val, ilog.concert.IloNumExpr expr, java.lang.String name) throws IloException
IloRange
object. The new IloRange
object is initialized to represent the constraint val == expr
and is assigned the name name
.
val
- Value of the new equality constraint.expr
- Expression of the new equality constraint.name
- Name assigned to the new equality constraint.
IloRange
object initialized to represent the
constraint val == expr
.
IloException
public ilog.concert.IloRange le(ilog.concert.IloNumExpr expr, double rhs) throws IloException
IloRange
object. The new IloRange
object is
initialized to represent the constraint expr <= rhs
.
expr
- Expression of the new less-equal constraint.rhs
- Upper bound of the new less-equal constraint.
IloRange
object initialized to represent the
constraint expr <= rhs
.
IloException
public ilog.concert.IloRange le(ilog.concert.IloNumExpr expr, double rhs, java.lang.String name) throws IloException
IloRange
object. The new IloRange
object is initialized to represent the constraint expr <= rhs
and is assigned the name name
.
expr
- Expression of the new less-equal constraint.rhs
- Upper bound of the new less-equal constraint.name
- Name assigned to the new less-equal constraint.
IloRange
object initialized to represent the
constraint expr <= rhs
.
IloException
public ilog.concert.IloConstraint le(ilog.concert.IloNumExpr e1, ilog.concert.IloNumExpr e2) throws IloException
IloRange
object. The new IloRange
object is initialized to represent the constraint e1 <= e2
.
e1
- Left-hand side expression of the new less-equal constraint.e2
- Right-hand side expression of the new less-equal constraint.
IloRange
object initialized to represent the
constraint e1 <= e2
.
IloException
public ilog.concert.IloConstraint le(ilog.concert.IloNumExpr e1, ilog.concert.IloNumExpr e2, java.lang.String name) throws IloException
IloRange
object. The new IloRange
object is initialized to represent the constraint e1 <= e2
and is assigned the name name
.
e1
- Left-hand side expression of the new less-equal constraint.e2
- Right-hand side expression of the new less-equal constraint.name
- Name assigned to the new IloRange
constraint.
IloRange
object initialized to represent the
constraint e1 <= e2
.
IloException
public ilog.concert.IloRange le(double val, ilog.concert.IloNumExpr expr) throws IloException
IloRange
object. The new IloRange
object is initialized to represent the constraint val <= expr
.
val
- Value of the new less-equal constraint.expr
- Expression of the new less-equal constraint.
IloRange
object initialized to represent the
constraint val <= expr
.
IloException
public ilog.concert.IloRange le(double val, ilog.concert.IloNumExpr expr, java.lang.String name) throws IloException
IloRange
object. The new IloRange
object is initialized to represent the constraint val <= expr
and is assigned the name name
.
val
- Value of the new less-equal constraint.expr
- Expression of the new less-equal constraint.name
- Name assigned to the new less-equal constraint.
IloRange
object initialized to represent the
constraint val <= expr
.
IloException
public ilog.concert.IloRange ge(ilog.concert.IloNumExpr expr, double rhs) throws IloException
IloRange
object. The new IloRange
object is initialized to represent the constraint expr >= rhs
.
expr
- Expression of the new greater-equal constraint.rhs
- Upper bound of the new greater-equal constraint.
IloRange
object initialized to represent the
constraint expr >= rhs
.
IloException
public ilog.concert.IloRange ge(ilog.concert.IloNumExpr expr, double rhs, java.lang.String name) throws IloException
IloRange
object. The new IloRange
object is initialized to represent the constraint expr >= rhs
and is assigned the name name
.
expr
- Expression of the new greater-equal constraint.rhs
- Upper bound of the new greater-equal constraint.name
- Name assigned to the new greater-equal constraint.
IloRange
object initialized to represent the
constraint expr >= rhs
.
IloException
public ilog.concert.IloConstraint ge(ilog.concert.IloNumExpr e1, ilog.concert.IloNumExpr e2) throws IloException
IloRange
object. The new IloRange
object is initialized to represent the constraint e1 >= e2
.
e1
- Left-hand side expression of the new greater-equal constraint.e2
- Right-hand side expression of the new greater-equal constraint.
IloRange
object initialized to represent the
constraint e1 >= e2
.
IloException
public ilog.concert.IloConstraint ge(ilog.concert.IloNumExpr e1, ilog.concert.IloNumExpr e2, java.lang.String name) throws IloException
IloRange
object. The new IloRange
object is initialized to represent the constraint e1 >= e2
and is assigned the name name
.
e1
- Left-hand side expression of the new greater-equal constraint.e2
- Right-hand side expression of the new greater-equal constraint.name
- Name assigned to the new greater-equal constraint.
IloRange
object initialized to represent the
constraint e1 >= e2
.
IloException
public ilog.concert.IloRange ge(double val, ilog.concert.IloNumExpr expr) throws IloException
IloRange
object. The new IloRange
object is initialized to represent the constraint val >= expr
.
val
- Value of the new greater-equal constraint.expr
- Expression of the new greater-equal constraint.
IloRange
object initialized to represent the
constraint val >= expr
.
IloException
public ilog.concert.IloRange ge(double val, ilog.concert.IloNumExpr expr, java.lang.String name) throws IloException
IloRange
object. The new IloRange
object is initialized to represent the constraint val >= expr
and is assigned the name name
.
val
- Value of the new greater-equal constraint.expr
- Expression of the new greater-equal constraint.name
- Name assigned to the new greater-equal constraint.
IloRange
object initialized to represent the
constraint val >= expr
.
IloException
public ilog.concert.IloRange range(double lb, ilog.concert.IloNumExpr expr, double ub) throws IloException
IloRange
object. The new IloRange
object is initialized to represent the constraint lb <= expr <= ub
.
lb
- Lower bound of the new IloRange
constraint.expr
- Expression of the new IloRange
constraint.ub
- Upper bound of the new IloRange
constraint.
IloRange
object initialized to represent the
constraint lb <= expr <= ub
.
IloException
public ilog.concert.IloRange range(double lb, ilog.concert.IloNumExpr expr, double ub, java.lang.String name) throws IloException
IloRange
object. The new IloRange
object is initialized to represent the constraint lb <= expr <= ub
and is assigned the name name
.
lb
- Lower bound of the new IloRange
constraint.expr
- Expression of the new IloRange
constraint.ub
- Upper bound of the new IloRange
constraint.name
- Name assigned to the new IloRange
constraint.
IloRange
object initialized to represent the
constraint lb <= expr <= ub
.
IloException
public ilog.concert.IloRange addEq(ilog.concert.IloNumExpr expr, double rhs) throws IloException
IloRange
object. The new IloRange
object is initialized to represent the constraint expr == rhs
,
and is added to the invoking IloModel
.
expr
- Expression of the new equality constraint.rhs
- Upper bound of the new equality constraint.
IloRange
object initialized to represent the
constraint expr == rhs
.
IloException
public ilog.concert.IloRange addEq(ilog.concert.IloNumExpr expr, double rhs, java.lang.String name) throws IloException
IloRange
object. The new IloRange
object is initialized to represent the constraint expr == rhs
,
and is added to the invoking IloModel
. The new IloRange
object is assigned the name name
.
expr
- Expression of the new equality constraint.rhs
- Upper bound of the new equality constraint.name
- Name assigned to the new equality constraint.
IloRange
object initialized to represent the
constraint expr == rhs
.
IloException
public ilog.concert.IloConstraint addEq(ilog.concert.IloNumExpr e1, ilog.concert.IloNumExpr e2) throws IloException
IloRange
object. The new IloRange
object is initialized to represent the constraint e1 == e2
, and is added to
the invoking IloModel
.
e1
- Left-hand side expression of the new equality constraint.e2
- Right-hand side expression of the new equality constraint.
IloRange
object initialized to represent the
constraint e1 == e2
.
IloException
public ilog.concert.IloConstraint addEq(ilog.concert.IloNumExpr e1, ilog.concert.IloNumExpr e2, java.lang.String name) throws IloException
IloRange
object. The new IloRange
object is initialized to represent the constraint e1 == e2
, and is added to
the invoking IloModel
. The new IloRange
object
is assigned the name name
.
e1
- Left-hand side expression of the new equality constraint.e2
- Right-hand side expression of the new equality constraint.name
- Name assigned to the new IloRange
constraint.
IloRange
object initialized to represent the
constraint e1 == e2
.
IloException
public ilog.concert.IloRange addEq(double val, ilog.concert.IloNumExpr expr) throws IloException
IloRange
object. The new IloRange
object is initialized to represent the constraint val == expr
,
and is added to the invoking IloModel
.
val
- Value of the new equality constraint.expr
- Expression of the new equality constraint.
IloRange
object initialized to represent the
constraint val == expr
.
IloException
public ilog.concert.IloRange addEq(double val, ilog.concert.IloNumExpr expr, java.lang.String name) throws IloException
IloRange
object. The new IloRange
object is initialized to represent the constraint val == expr
,
and is added to the invoking IloModel
. The new IloRange
object is assigned the name name
.
val
- Value of the new equality constraint.expr
- Expression of the new equality constraint.name
- Name assigned to the new equality constraint.
IloRange
object initialized to represent the
constraint val == expr
.
IloException
public ilog.concert.IloRange addLe(ilog.concert.IloNumExpr expr, double rhs) throws IloException
IloRange
object. The new IloRange
object is initialized to represent the constraint expr <= rhs
,
and is added to the invoking IloModel
.
expr
- Expression of the new less-equal constraint.rhs
- Upper bound of the new less-equal constraint.
IloRange
object initialized to represent the
constraint expr <= rhs
.
IloException
public ilog.concert.IloRange addLe(ilog.concert.IloNumExpr expr, double rhs, java.lang.String name) throws IloException
IloRange
object. The new IloRange
object is initialized to represent the constraint expr <= rhs
,
and is added to the invoking IloModel
. The new IloRange
object is assigned the name name
.
expr
- Expression of the new less-equal constraint.rhs
- Upper bound of the new less-equal constraint.name
- Name assigned to the new less-equal constraint.
IloRange
object initialized to represent the
constraint expr <= rhs
.
IloException
public ilog.concert.IloConstraint addLe(ilog.concert.IloNumExpr e1, ilog.concert.IloNumExpr e2) throws IloException
IloRange
object. The new IloRange
object is initialized to represent the constraint e1 <= e2
, and is added to
the invoking IloModel
.
e1
- Left-hand side expression of the new less-equal constraint.e2
- Right-hand side expression of the new less-equal constraint.
IloRange
object initialized to represent the
constraint e1 <= e2
.
IloException
public ilog.concert.IloConstraint addLe(ilog.concert.IloNumExpr e1, ilog.concert.IloNumExpr e2, java.lang.String name) throws IloException
IloRange
object. The new IloRange
object is initialized to represent the constraint e1 <= e2
, and is added to
the invoking IloModel
. The new IloRange
object
is assigned the name name
.
e1
- Left-hand side expression of the new less-equal constraint.e2
- Right-hand side expression of the new less-equal constraint.name
- Name assigned to the new IloRange
constraint.
IloRange
object initialized to represent the
constraint e1 <= e2
.
IloException
public ilog.concert.IloRange addLe(double val, ilog.concert.IloNumExpr expr) throws IloException
IloRange
object. The new IloRange
object is initialized to represent the constraint val <= expr
,
and is added to the invoking IloModel
.
val
- Value of the new less-equal constraint.expr
- Expression of the new less-equal constraint.
IloRange
object initialized to represent the
constraint val <= exp
.
IloException
public ilog.concert.IloRange addLe(double val, ilog.concert.IloNumExpr expr, java.lang.String name) throws IloException
IloRange
object. The new IloRange
object is initialized to represent the constraint val <= expr
,
and is added to the invoking IloModel
. The new IloRange
object is assigned the name name
.
val
- Value of the new less-equal constraint.expr
- Expression of the new less-equal constraint.name
- Name assigned to the new less-equal constraint.
IloRange
object initialized to represent the
constraint val <= expr
.
IloException
public ilog.concert.IloRange addGe(ilog.concert.IloNumExpr expr, double rhs) throws IloException
IloRange
object. The new IloRange
object is initialized to represent the constraint expr >= rhs
,
and is added to the invoking IloModel
.
expr
- Expression of the new greater-equal constraint.rhs
- Upper bound of the new greater-equal constraint.
IloRange
object initialized to represent the
constraint expr >= rhs
.
IloException
public ilog.concert.IloRange addGe(ilog.concert.IloNumExpr expr, double rhs, java.lang.String name) throws IloException
IloRange
object. The new IloRange
object is initialized to represent the constraint expr >= rhs
,
and is added to the invoking IloModel
. The new IloRange
object is assigned the name name
.
expr
- Expression of the new greater-equal constraint.rhs
- Upper bound of the new greater-equal constraint.name
- Name assigned to the new greater-equal constraint.
IloRange
object initialized to represent the
constraint expr >= rhs
.
IloException
public ilog.concert.IloConstraint addGe(ilog.concert.IloNumExpr e1, ilog.concert.IloNumExpr e2) throws IloException
IloRange
object. The new IloRange
object is initialized to represent the constraint e1 >= e2
,
and is added to the invoking IloModel
.
e1
- Left-hand side expression of the new greater-equal constraint.e2
- Right-hand side expression of the new greater-equal constraint.
IloRange
object initialized to represent the
constraint e1 >= e2
.
IloException
public ilog.concert.IloConstraint addGe(ilog.concert.IloNumExpr e1, ilog.concert.IloNumExpr e2, java.lang.String name) throws IloException
IloRange
object. The new IloRange
object is initialized to represent the constraint e1 >= e2
,
and is added to the invoking IloModel
. The new IloRange
object is assigned the name name
.
e1
- Left-hand side expression of the new greater-equal constraint.e2
- Right-hand side expression of the new greater-equal constraint.name
- Name assigned to the new IloRange
constraint.
IloRange
object initialized to represent the
constraint e1 >= e2
.
IloException
public ilog.concert.IloRange addGe(double val, ilog.concert.IloNumExpr expr) throws IloException
IloRange
object. The new IloRange
object is initialized to represent the constraint val >= expr
,
and is added to the invoking IloModel
.
val
- Value of the new greater-equal constraint.expr
- Expression of the new greater-equal constraint.
IloRange
object initialized to represent the
constraint val >= expr
.
IloException
public ilog.concert.IloRange addGe(double val, ilog.concert.IloNumExpr expr, java.lang.String name) throws IloException
IloRange
object. The new IloRange
object is initialized to represent the constraint val >= expr
,
and is added to the invoking IloModel
. The new IloRange
object is assigned the name name
.
val
- Value of the new greater-equal constraint.expr
- Expression of the new greater-equal constraint.name
- Name assigned to the new greater-equal constraint.
IloRange
object initialized to represent the
constraint val >= expr
.
IloException
public ilog.concert.IloRange addRange(double lb, ilog.concert.IloNumExpr expr, double ub) throws IloException
IloRange
object. The new IloRange
object is initialized to represent the constraint lb <= expr <= ub
,
and is added to the invoking lb <= expr <= ub
.
lb
- Lower bound of the new IloRange
constraint.expr
- Expression of the new IloRange
constraint.ub
- Upper bound of the new IloRange
constraint.
IloRange
object initialized to represent the
constraint lb <= expr <= ub
.
IloException
public ilog.concert.IloRange addRange(double lb, ilog.concert.IloNumExpr expr, double ub, java.lang.String name) throws IloException
IloRange
object. The new IloRange
object is initialized to represent the constraint lb <= expr <= ub
,
and is added to the invoking IloModel
. The new IloRange
object is assigned the name name
.
lb
- Lower bound of the new IloRange
constraint.expr
- Expression of the new IloRange
constraint.ub
- Upper bound of the new IloRange
constraint.name
- Name assigned to the new IloRange
constraint.
IloRange
object initialized to represent the
constraint lb <= expr <= ub
.
IloException
public ilog.concert.IloObjective maximize(ilog.concert.IloNumExpr expr) throws IloException
IloObjective
object. The IloObjective
object
represents an objective to maximize the expression expr
.
expr
- Expression to maximize.
IloObjective
object representing the objective
to maximize expr
.
IloException
public ilog.concert.IloObjective maximize(ilog.concert.IloNumExpr expr, java.lang.String name) throws IloException
IloObjective
object. The IloObjective
object
represents an objective to maximize the expression expr
and is assigned the name
name
.
expr
- Expression to maximize.name
- Name assigned to the new IloObjective
object.
IloObjective
object representing the objective
to maximize expr
.
IloException
public ilog.concert.IloObjective minimize(ilog.concert.IloNumExpr expr) throws IloException
IloObjective
object. The IloObjective
object
represents an objective to minimize the expression expr
.
expr
- Expression to minimize.
IloObjective
object representing the objective
to minimize expr
.
IloException
public ilog.concert.IloObjective minimize(ilog.concert.IloNumExpr expr, java.lang.String name) throws IloException
IloObjective
object. The IloObjective
object
represents an objective to minimize the expression expr
and is assigned the name
name
.
expr
- Expression to minimize.name
- Name assigned to the new IloObjective
object.
IloObjective
object representing the objective
to minimize expr
.
IloException
public ilog.concert.IloObjective objective(ilog.concert.IloObjectiveSense sense, ilog.concert.IloNumExpr expr) throws IloException
IloObjective
object. The IloObjective
object
represents an objective to optimize the expression expr
with respect to the
optimization sense sense
.
sense
- Optimization sense.expr
- Expression to maximize.
IloObjective
object representing the objective
to maximize expr
.
IloException
public ilog.concert.IloObjective objective(ilog.concert.IloObjectiveSense sense, ilog.concert.IloNumExpr expr, java.lang.String name) throws IloException
IloObjective
object. The IloObjective
object
represents an objective to optimize the expression expr
with respect to the
optimization sense sense
and is assigned the name name
.
sense
- Optimization sense.expr
- Expression to maximize.name
- Name assigned to the new IloObjective
object.
IloObjective
object representing the objective
to maximize expr
.
IloException
public ilog.concert.IloObjective addMaximize(ilog.concert.IloNumExpr expr) throws IloException
IloObjective
object. The IloObjective
object
represents an objective to maximize the expression expr
. The new objective
is added to the invoking model.
expr
- Expression to maximize.
IloObjective
object representing the objective
to maximize expr
.
IloException
public ilog.concert.IloObjective addMaximize(ilog.concert.IloNumExpr expr, java.lang.String name) throws IloException
IloObjective
object. The IloObjective
object
represents an objective to maximize the expression expr
and is assigned the name
name
. The new objective is added to the invoking model.
expr
- Expression to maximize.name
- Name assigned to the new IloObjective
object.
IloObjective
object representing the objective
to maximize expr
.
IloException
public ilog.concert.IloObjective addMinimize(ilog.concert.IloNumExpr expr) throws IloException
IloObjective
object. The IloObjective
object
represents an objective to minimize the expression expr
. The new objective
is added to the invoking model.
expr
- Expression to minimize.
IloObjective
object representing the objective
to minimize expr
.
IloException
public ilog.concert.IloObjective addMinimize(ilog.concert.IloNumExpr expr, java.lang.String name) throws IloException
IloObjective
object. The IloObjective
object
represents an objective to minimize the expression expr
and is assigned the name
name
. The new objective is added to the invoking model.
expr
- Expression to minimize.name
- Name assigned to the new IloObjective
object.
IloObjective
object representing the objective
to minimize expr
.
IloException
public ilog.concert.IloObjective addObjective(ilog.concert.IloObjectiveSense sense, ilog.concert.IloNumExpr expr) throws IloException
IloObjective
object. The IloObjective
object
represents an objective to optimize the expression expr
with respect to the
optimization sense sense
. The new objective is added to the invoking model.
sense
- Optimization sense.expr
- Expression to maximize.
IloObjective
object representing the objective
to maximize expr
.
IloException
public ilog.concert.IloObjective addObjective(ilog.concert.IloObjectiveSense sense, ilog.concert.IloNumExpr expr, java.lang.String name) throws IloException
IloObjective
object. The IloObjective
object
represents an objective to optimize the expression expr
with respect to the
optimization sense sense
and is assigned the name name
.
The new objective is added to the invoking model.
sense
- Optimization sense.expr
- Expression to maximize.name
- Name assigned to the new IloObjective
object.
IloObjective
object representing the objective
to maximize expr
.
IloException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |