public class IloCplexModeler extends java.lang.Object implements IloModel, IloMPModeler, java.io.Serializable
Algorithmic methods are implemented in
IloCplex.
By implementing the modeling methods of IloMPModeler,
this class makes it possible for you to build models in your Java
application with pure Java objects.
| Modifier and Type | Class and Description |
|---|---|
static class |
IloCplexModeler.Exception
This class extends the class
IloException
by also capturing the CPLEX error code. |
| Constructor and Description |
|---|
IloCplexModeler() |
| Modifier and Type | Method and Description |
|---|---|
IloIntExpr |
abs(IloIntExpr expr)
Returns an expression representing the absolute value of its argument,
the expression specified by
expr. |
IloNumExpr |
abs(IloNumExpr expr)
Returns an expression representing the absolute value of its argument,
the expression specified by
expr. |
IloAddable |
add(IloAddable object)
Adds
object to the invoking model. |
IloAddable[] |
add(IloAddable[] objects)
Adds the array of
objects to the invoking model. |
IloAddable[] |
add(IloAddable[] objects,
int start,
int num)
Adds part of the array of
objects to the invoking model,
starting with the index start and continuing to
the number of objects specified by num. |
IloRange |
addEq(double v,
IloNumExpr e)
Creates and returns a range initialized to represent the
equality of the specified value and expression.
|
IloRange |
addEq(double v,
IloNumExpr e,
java.lang.String name)
Creates and returns a named range initialized to represent the
equality of the specified value and expression.
|
IloRange |
addEq(IloNumExpr e,
double v)
Creates and returns a range initialized to represent the
equality of the specified expression and value.
|
IloRange |
addEq(IloNumExpr e,
double v,
java.lang.String name)
Creates and returns a named range initialized to represent the
equality of the specified expression and value.
|
IloConstraint |
addEq(IloNumExpr e1,
IloNumExpr e2)
Creates and returns a constraint initialized to represent the
equality of the two specified expressions.
|
IloConstraint |
addEq(IloNumExpr e1,
IloNumExpr e2,
java.lang.String name)
Creates and returns a named constraint initialized to represent the
equality of the two specified expressions.
|
IloRange |
addGe(double v,
IloNumExpr e)
Creates and returns a constraint that the specified
value must be greater than or equal to the
specified numeric expression.
|
IloRange |
addGe(double v,
IloNumExpr e,
java.lang.String name)
Creates and returns a named constraint that the specified
value must be greater than or equal to the
specified numeric expression.
|
IloRange |
addGe(IloNumExpr e,
double v)
Creates and returns a range representing the constraint
that the specified numeric expression must be greater than or equal to
the specified value.
|
IloRange |
addGe(IloNumExpr e,
double v,
java.lang.String name)
Creates and returns a range representing the constraint
that the specified numeric expression must be greater than or equal to
the specified value.
|
IloConstraint |
addGe(IloNumExpr e1,
IloNumExpr e2)
Creates and returns a constraint that the first specified
numeric expression must be greater than or equal to the
second specified numeric expression.
|
IloConstraint |
addGe(IloNumExpr e1,
IloNumExpr e2,
java.lang.String name)
Creates and returns a named constraint that the first specified
numeric expression must be greater than or equal to the
second specified numeric expression.
|
IloRange |
addLe(double v,
IloNumExpr e)
Creates and returns a range forcing the specified
value to be less than than or equal to the
specified numeric expression.
|
IloRange |
addLe(double v,
IloNumExpr e,
java.lang.String name)
Creates and returns a named range forcing the specified
value to be less than than or equal to the
specified numeric expression.
|
IloRange |
addLe(IloNumExpr e,
double v)
Creates and returns a range forcing the specified
numeric expression to be less than than or equal to the
specified value.
|
IloRange |
addLe(IloNumExpr e,
double v,
java.lang.String name)
Creates and returns a named range forcing the specified
numeric expression to be less than than or equal to the
specified value.
|
IloConstraint |
addLe(IloNumExpr e1,
IloNumExpr e2)
Creates and returns a constraint forcing the first specified
numeric expression to be less than than or equal to the
second specified numeric expression.
|
IloConstraint |
addLe(IloNumExpr e1,
IloNumExpr e2,
java.lang.String name)
Creates and returns a named constraint forcing the first specified
numeric expression to be less than than or equal to the
second specified numeric expression.
|
IloLPMatrix |
addLPMatrix()
Creates, returns, and adds an empty LP matrix object
to the invoking model.
|
IloLPMatrix |
addLPMatrix(java.lang.String name)
Creates, returns, and adds an empty LP matrix object,
with the specified name, to the invoking model.
|
IloObjective |
addMaximize()
Creates and returns an empty objective function
and adds it to the invoking model.
|
IloObjective |
addMaximize(IloNumExpr expr)
Creates and returns an objective to maximize the expression
and adds it to the invoking model.
|
IloObjective |
addMaximize(IloNumExpr expr,
java.lang.String name)
Creates and returns a named objective function
and adds it to the invoking model.
|
IloObjective |
addMaximize(java.lang.String name)
Creates and returns a named objective function
and adds it to the invoking model.
|
IloObjective |
addMinimize()
Creates and returns an empty objective function
and adds it to the invoking model.
|
IloObjective |
addMinimize(IloNumExpr expr)
Creates and returns an objective to minimize the expression
and adds it to the invoking model.
|
IloObjective |
addMinimize(IloNumExpr expr,
java.lang.String name)
Creates and returns a named objective function
and adds it to the invoking model.
|
IloObjective |
addMinimize(java.lang.String name)
Creates and returns a named objective function
and adds it to the invoking model.
|
IloObjective |
addObjective(IloObjectiveSense sense)
Creates and returns an empty objective function
with the specified sense
and adds it to the invoking model.
|
IloObjective |
addObjective(IloObjectiveSense sense,
IloNumExpr expr)
Creates and returns an objective to optimize the expression
in the specified sense and adds the objective to the invoking model.
|
IloObjective |
addObjective(IloObjectiveSense sense,
IloNumExpr expr,
java.lang.String name)
Creates and returns an objective to optimize the expression
with respect to the sense and adds it to the invoking model.
|
IloObjective |
addObjective(IloObjectiveSense sense,
java.lang.String name)
Creates and returns a named objective function
with the specified sense
and adds it to the invoking model.
|
IloRange |
addRange(double lb,
double ub)
Creates and returns an empty range object with the
specified lower and upper bounds.
|
IloRange |
addRange(double lb,
double ub,
java.lang.String name)
Creates and returns an empty range object with the specified
name and specified lower and upper bounds.
|
IloRange |
addRange(double lb,
IloNumExpr expr,
double ub)
Creates, returns, and adds to the invoking model a
range object with the specified expression as well as
upper and lower bounds.
|
IloRange |
addRange(double lb,
IloNumExpr expr,
double ub,
java.lang.String name)
Creates, returns, and adds to the invoking model a
range object with the specified name, upper and lower bounds, and
expression.
|
IloSOS1 |
addSOS1(IloNumVar[] var,
double[] val)
Creates a special ordered set (SOS) of type 1
with the specified variables and weights and
adds it to the invoking model.
|
IloSOS1 |
addSOS1(IloNumVar[] var,
double[] val,
int start,
int num)
Creates a special ordered set (SOS) of type 1
with the specified variables and weights and
adds it to the invoking model.
|
IloSOS1 |
addSOS1(IloNumVar[] var,
double[] val,
int start,
int num,
java.lang.String name)
Creates and returns a named special ordered set (SOS) of type 1,
starting from the specified index and continuing through a number of
elements in the array of
specified variables and weights, and adds that named SOS1
to the invoking model.
|
IloSOS1 |
addSOS1(IloNumVar[] var,
double[] val,
java.lang.String name)
Creates and returns a named special ordered set (SOS) of type 1
with the specified variables and weights, and
adds that SOS1 to the invoking model.
|
IloSOS2 |
addSOS2(IloNumVar[] var,
double[] val)
Creates and returns a special ordered set (SOS) of type 2
from the specified array of variables and weights, and adds
that SOS2 to the invoking model.
|
IloSOS2 |
addSOS2(IloNumVar[] var,
double[] val,
int start,
int num)
Creates and returns a special ordered set (SOS) of type 2
from a number of elements, starting at the specified index, of
the specified array of variables and weights, and adds
that SOS2 to the invoking model.
|
IloSOS2 |
addSOS2(IloNumVar[] var,
double[] val,
int start,
int num,
java.lang.String name)
Creates and returns a named special ordered set (SOS) of type 2
from a number of elements, starting at the specified index, of
the specified array of variables and weights, and adds
that SOS2 to the invoking model.
|
IloSOS2 |
addSOS2(IloNumVar[] var,
double[] val,
java.lang.String name)
Creates and returns a named special ordered set (SOS) of type 2
from the specified array of variables and weights, and adds
that SOS2 to the invoking model.
|
void |
addToExpr(IloObjective obj,
IloNumExpr expr)
Adds a numeric expression to an objective.
|
void |
addToExpr(IloRange rng,
IloNumExpr expr)
Adds the specified numeric expression to the specified range.
|
IloAnd |
and()
Groups constraints together.
|
IloAnd |
and(IloConstraint[] cons)
Groups constraints together.
|
IloAnd |
and(IloConstraint[] cons,
int start,
int num)
Groups together part of the constraints in the array
cons
starting with the index specified by start and continuing
to the number of constraints specified by num. |
IloAnd |
and(IloConstraint[] cons,
int start,
int num,
java.lang.String name)
Groups together part of the constraints from the array
cons
starting with the index specified by start and
continuing to the number of constraints specified by num. |
IloAnd |
and(IloConstraint[] cons,
java.lang.String name)
Groups constraints together.
|
IloAnd |
and(IloConstraint con1,
IloConstraint con2)
Groups together the constraints specified by its arguments.
|
IloAnd |
and(IloConstraint con1,
IloConstraint con2,
java.lang.String name)
Groups together the constraints specified by its arguments and
assigns the string
name to the group. |
IloIntVar |
boolVar()
Creates and returns a new Boolean variable (domain 0,1).
|
IloIntVar |
boolVar(IloColumn column)
Creates and returns a Boolean variable (domain 0, 1) representing
a column.
|
IloIntVar |
boolVar(IloColumn column,
java.lang.String name)
Creates and returns a Boolean variable (domain 0, 1)
representing a column with a name.
|
IloIntVar |
boolVar(java.lang.String name)
Creates and returns a new Boolean variable (domain 0,1)
with the specified name.
|
IloIntVar[] |
boolVarArray(IloColumnArray cols)
Creates and returns an array of Boolean variables (domain 0, 1)
representing an array of columns.
|
IloIntVar[] |
boolVarArray(IloColumnArray cols,
java.lang.String[] name)
Creates and returns an array of Boolean variables (domain 0, 1)
representing an array of named columns.
|
IloIntVar[] |
boolVarArray(int n)
Creates and returns an array of n new Boolean variables (domain 0,1).
|
IloIntVar[] |
boolVarArray(int n,
java.lang.String[] name)
Creates and returns an array of n new Boolean variables (domain 0,1)
each with an individually specified name.
|
IloColumn |
column(IloLPMatrix lp)
Creates and returns a column from an LP matrix.
|
IloColumn |
column(IloLPMatrix lp,
int[] ind,
double[] val)
Creates and returns a column from part of an LP matrix, using
the specified indices and values.
|
IloColumn |
column(IloLPMatrix lp,
int[] ind,
double[] val,
int start,
int num)
Creates and returns a column suitable for adding a number of
variables to an LP matrix, using a number of
the specified indices and values, starting from the specified
index.
|
IloColumn |
column(IloObjective obj,
double val)
Creates and returns a column from the specified objective and value.
|
IloColumn |
column(IloRange rng,
double val)
Creates and returns a column from the specified range and value.
|
IloColumnArray |
columnArray(IloLPMatrix lp,
int num)
Creates and returns an array of a number of columns from an LP matrix.
|
IloColumnArray |
columnArray(IloLPMatrix lp,
int num,
int[][] ind,
double[][] val)
Creates and returns an array of columns suitable for
adding new variables as columns in an LP matrix.
|
IloColumnArray |
columnArray(IloObjective obj,
double[] val)
Creates and returns an array of columns
from the specified objective and array of values.
|
IloColumnArray |
columnArray(IloObjective obj,
double[] val,
int start,
int num)
Creates and returns an array of a number of columns,
starting from the specified index,
of the specified objective and the corresponding array of values.
|
IloColumnArray |
columnArray(IloRange rng,
double[] val)
Creates and returns an array of columns from the
specified range and array of values.
|
IloColumnArray |
columnArray(IloRange rng,
double[] val,
int start,
int num)
Creates and returns an array of a number of columns,
starting from the specified index of the
range and corresponding array of values.
|
IloNumExpr |
constant(double x)
Creates and returns an expression representing
a constant term.
|
IloIntExpr |
constant(int x)
Creates and returns an integer expression representing
a constant integer value.
|
IloConversion |
conversion(IloNumVar[] ilovar,
IloNumVarType type)
Converts an array of numeric variables to the specified type.
|
IloConversion |
conversion(IloNumVar[] ilovar,
IloNumVarType[] type)
Converts an array of numeric variables to the corresponding
specified types.
|
IloConversion |
conversion(IloNumVar[] ilovar,
IloNumVarType[] type,
java.lang.String name)
Converts an array of numeric variables, each one converted to the type
corresponding to the types in an array of types, and names the
conversion object.
|
IloConversion |
conversion(IloNumVar[] ilovar,
IloNumVarType type,
java.lang.String name)
Converts an array of numeric variables to the specified type
and names the conversion object.
|
IloConversion |
conversion(IloNumVar var,
IloNumVarType type)
Converts a numeric variable to a specified type.
|
IloConversion |
conversion(IloNumVar var,
IloNumVarType type,
java.lang.String name)
Converts a numeric variable to the specified type and names
the converted variable.
|
java.util.Iterator |
conversionIterator()
Returns an iterator over all conversion objects in the
active model.
|
void |
delete(IloCopyable obj)
Deletes a copyable object.
|
void |
delete(IloCopyable[] obj)
Deletes an array of copyable objects.
|
void |
delete(IloCopyable[] obj,
int beg,
int num)
Deletes a number of copyable objects, starting from
the specified index, from an array of copyable objects.
|
IloNumExpr |
diff(double v,
IloNumExpr e1)
Creates and returns a numeric expression representing the
difference between a value and a numeric expression.
|
IloIntExpr |
diff(IloIntExpr e1,
IloIntExpr e2)
Creates and returns an expression representing
the difference between two integer expressions.
|
IloIntExpr |
diff(IloIntExpr e,
int v)
Creates and returns an integer expression representing the
difference between an integer expression and an integer value.
|
IloNumExpr |
diff(IloNumExpr e,
double v)
Creates and returns a numeric expression representing the
difference between a numeric expression and a value.
|
IloNumExpr |
diff(IloNumExpr e1,
IloNumExpr e2)
Creates and returns a numeric expression representing the
difference between two numeric expressions.
|
IloIntExpr |
diff(int v,
IloIntExpr e1)
Creates and returns an expression representing
the difference between a value and an integer expression.
|
IloRange |
eq(double v,
IloNumExpr e)
Creates and returns a range forcing the specified value
to be equal to the specified numeric expression.
|
IloRange |
eq(double v,
IloNumExpr e,
java.lang.String name)
Creates and returns a named range forcing the specified value
to be equal to the specified numeric expression.
|
IloRange |
eq(IloNumExpr e,
double v)
Creates and returns a range forcing the specified numeric
expression to be equal to the specified value.
|
IloRange |
eq(IloNumExpr e,
double v,
java.lang.String name)
Creates and returns a named range forcing the specified numeric
expression to be equal to the specified value.
|
IloConstraint |
eq(IloNumExpr e1,
IloNumExpr e2)
Creates and returns a constraint forcing the specified
numeric expressions to be equal.
|
IloConstraint |
eq(IloNumExpr e1,
IloNumExpr e2,
java.lang.String name)
Creates and returns a named constraint forcing the specified
numeric expressions to be equal.
|
IloRange |
ge(double v,
IloNumExpr e)
Creates and returns a range that forces the specified
value to be greater than or equal to the specified expression.
|
IloRange |
ge(double v,
IloNumExpr e,
java.lang.String name)
Creates and returns a named range that forces the specified
value to be greater than or equal to the specified expression.
|
IloRange |
ge(IloNumExpr e,
double v)
Creates and returns a range forcing the specified numeric expression
to be greater than or equal to the specified value.
|
IloRange |
ge(IloNumExpr e,
double v,
java.lang.String name)
Creates and returns a named range forcing the
specified numeric expression
to be greater than or equal to the specified value.
|
IloConstraint |
ge(IloNumExpr e1,
IloNumExpr e2)
Creates and returns a constraint forcing the
first specified numeric expression
to be greater than or equal to the second specified numeric expression.
|
IloConstraint |
ge(IloNumExpr e1,
IloNumExpr e2,
java.lang.String name)
Creates and returns a named constraint forcing the
first specified numeric expression
to be greater than or equal to the second specified numeric expression.
|
IloModel |
getModel()
Returns the active model.
|
java.lang.String |
getName()
Returns the name of the invoking model, if there is one.
|
IloObjective |
getObjective()
Returns the
IloObjective object of the
active model, or null if no IloObjective object
is currently in the active model. |
IloConstraint |
ifThen(IloConstraint con1,
IloConstraint con2)
Returns a constraint that if
con1 is true, then
con2 must also be true. |
IloConstraint |
ifThen(IloConstraint con1,
IloConstraint con2,
java.lang.String name)
Returns a constraint that if
con1 is true, then
con2 must also be true. |
IloIntExpr |
intExpr()
Creates and returns an empty integer expression.
|
IloIntVar |
intVar(IloColumn column,
int lb,
int ub)
Creates and returns an integer variable representing
a column with an integer lower and upper bound.
|
IloIntVar |
intVar(IloColumn column,
int lb,
int ub,
java.lang.String name)
Creates and returns an integer variable representing
a column with an integer lower and upper bound as well as a name.
|
IloIntVar |
intVar(int lb,
int ub)
Creates and returns an integer variable with specified
upper and lower bound.
|
IloIntVar |
intVar(int lb,
int ub,
java.lang.String name)
Creates and returns an integer variable with specified
upper bound, lower bound, and name.
|
IloIntVar[] |
intVarArray(IloColumnArray cols,
int[] lb,
int[] ub)
Creates and returns an array of integer variables representing
an array of columns with individually specified integer lower
and upper bounds.
|
IloIntVar[] |
intVarArray(IloColumnArray cols,
int[] lb,
int[] ub,
java.lang.String[] name)
Creates and returns an array of integer variables representing
an array of columns with individually specified integer lower
and upper bounds as well as individually specified names.
|
IloIntVar[] |
intVarArray(IloColumnArray cols,
int lb,
int ub)
Creates and returns an array of integer variables representing
an array of columns with an integer lower and upper bound.
|
IloIntVar[] |
intVarArray(IloColumnArray cols,
int lb,
int ub,
java.lang.String[] name)
Creates and returns an array of integer variables representing
an array of columns with an integer lower and upper bound
as well as individually specified names.
|
IloIntVar[] |
intVarArray(int n,
int[] lb,
int[] ub)
Creates and returns an array of integer variables with
individually specified upper and lower bounds.
|
IloIntVar[] |
intVarArray(int n,
int[] lb,
int[] ub,
java.lang.String[] name)
Creates and returns an array of integer variables each with
individually specified upper bound, lower bound, and name.
|
IloIntVar[] |
intVarArray(int n,
int lb,
int ub)
Creates and returns an array of integer variables with the same specified
upper and lower bound.
|
IloIntVar[] |
intVarArray(int n,
int lb,
int ub,
java.lang.String[] name)
Creates and returns an array of integer variables all with the same
upper and lower bound, but individually specified names.
|
java.util.Iterator |
iterator()
Returns an iterator suitable for the invoking model.
|
IloRange |
le(double v,
IloNumExpr e)
Creates and returns a range that forces the specified value
to be less than or equal to the specified numeric expression.
|
IloRange |
le(double v,
IloNumExpr e,
java.lang.String name)
Creates and returns a named range that forces the specified value
to be less than or equal to the specified numeric expression.
|
IloRange |
le(IloNumExpr e,
double v)
Creates and returns a range that forces the specified
numeric expression to be less than or equal to
the specified value.
|
IloRange |
le(IloNumExpr e,
double v,
java.lang.String name)
Creates and returns a named range that forces the specified
numeric expression to be less than or equal to
the specified value.
|
IloConstraint |
le(IloNumExpr e1,
IloNumExpr e2)
Creates and returns a constraint that forces the first specified
numeric expression to be less than or equal to
the second specified numeric expression.
|
IloConstraint |
le(IloNumExpr e1,
IloNumExpr e2,
java.lang.String name)
Creates and returns a named constraint that forces the
first specified numeric expression to be less than or
equal to the second specified numeric expression.
|
IloLinearIntExpr |
linearIntExpr()
Creates and returns an integer linear expression
initialized as 0 (zero).
|
IloLinearIntExpr |
linearIntExpr(int val)
Creates and returns an integer linear expression
initialized as a constant.
|
IloLinearNumExpr |
linearNumExpr()
Creates and returns a zero-valued linear expression.
|
IloLinearNumExpr |
linearNumExpr(double val)
Creates and returns a linear expression initialized as the constant.
|
IloLPMatrix |
LPMatrix()
Creates and returns an empty LP matrix object.
|
IloLPMatrix |
LPMatrix(java.lang.String name)
Creates and returns an empty, named LP matrix object.
|
java.util.Iterator |
LPMatrixIterator()
Returns an iterator over all LP matrix objects in the
active model.
|
IloLQIntExpr |
lqIntExpr()
Creates and returns a zero-valued linear and quadratic expression.
|
IloLQNumExpr |
lqNumExpr()
Creates and returns a zero-valued linear and quadratic expression.
|
IloNumExpr |
max(double expr2,
IloNumExpr expr1)
Returns an expression representing the maximum of its two arguments.
|
IloIntExpr |
max(IloIntExpr[] exprs)
Returns an expression representing the maximum of its argument,
the elements of an array.
|
IloIntExpr |
max(IloIntExpr expr1,
IloIntExpr expr2)
Returns an expression representing the maximum of its two arguments.
|
IloIntExpr |
max(IloIntExpr expr1,
int expr2)
Returns an expression representing the maximum of its two arguments.
|
IloNumExpr |
max(IloNumExpr[] exprs)
Returns an expression representing the maximum of its argument,
the elements of an array.
|
IloNumExpr |
max(IloNumExpr expr1,
double expr2)
Returns an expression representing the maximum of its two arguments.
|
IloNumExpr |
max(IloNumExpr expr1,
IloNumExpr expr2)
Returns an expression representing the maximum of its two arguments.
|
IloIntExpr |
max(int expr1,
IloIntExpr expr2)
Returns an expression representing the maximum of its two arguments.
|
IloObjective |
maximize()
Creates and returns an empty maximization objective function.
|
IloObjective |
maximize(IloCplexMultiCriterionExpr expr)
Creates and returns an objective to maximize the multi-criterion expression.
|
IloObjective |
maximize(IloCplexMultiCriterionExpr expr,
java.lang.String name)
Creates and returns an objective to maximize the multi-criterion expression.
|
IloObjective |
maximize(IloNumExpr expr)
Creates and returns an objective from an expression.
|
IloObjective |
maximize(IloNumExpr expr,
java.lang.String name)
Creates and returns a named objective to minimize the expression.
|
IloObjective |
maximize(java.lang.String name)
Creates and returns a named empty maximization objective function.
|
IloNumExpr |
min(double expr2,
IloNumExpr expr1)
Returns an expression representing the minimum of its two arguments.
|
IloIntExpr |
min(IloIntExpr[] exprs)
Returns an expression representing the minimum of its argument,
the elements of an array.
|
IloIntExpr |
min(IloIntExpr expr1,
IloIntExpr expr2)
Returns an expression representing the minimum of its two arguments.
|
IloIntExpr |
min(IloIntExpr expr1,
int expr2)
Returns an expression representing the minimum of its two arguments.
|
IloNumExpr |
min(IloNumExpr[] exprs)
Returns an expression representing the minimum of its argument,
the elements of an array.
|
IloNumExpr |
min(IloNumExpr expr1,
double expr2)
Returns an expression representing the minimum of its two arguments.
|
IloNumExpr |
min(IloNumExpr expr1,
IloNumExpr expr2)
Returns an expression representing the minimum of its two arguments.
|
IloIntExpr |
min(int expr1,
IloIntExpr expr2)
Returns an expression representing the minimum of its two arguments.
|
IloObjective |
minimize()
Creates and returns an empty minimization objective function.
|
IloObjective |
minimize(IloCplexMultiCriterionExpr expr)
Creates and returns an objective to minimize the multi-criterion expression.
|
IloObjective |
minimize(IloCplexMultiCriterionExpr expr,
java.lang.String name)
Creates and returns an objective to minimize the multi-criterion expression.
|
IloObjective |
minimize(IloNumExpr expr)
Creates and returns an objective from an expression.
|
IloObjective |
minimize(IloNumExpr expr,
java.lang.String name)
Creates and returns an objective to minimize the expression.
|
IloObjective |
minimize(java.lang.String name)
Creates and returns a named empty minimization objective function.
|
IloIntExpr |
negative(IloIntExpr e)
Creates and returns a new integer expression representing
the negation of its argument.
|
IloNumExpr |
negative(IloNumExpr e)
Creates and returns a new numeric expression which is the
negation of the original expression.
|
IloConstraint |
not(IloConstraint con1)
Returns a constraint that is the logical negation of its argument.
|
IloConstraint |
not(IloConstraint con1,
java.lang.String name)
Returns a constraint that is the logical negation of its argument
and assigns the string
name as the name of the
returned constraint. |
IloNumExpr |
numExpr()
Creates and returns an empty expression.
|
IloNumVar |
numVar(double lb,
double ub)
Creates and returns a numeric variable with specified bounds.
|
IloNumVar |
numVar(double lb,
double ub,
IloNumVarType type)
Creates and returns a numeric variable with bounds and specified type.
|
IloNumVar |
numVar(double lb,
double ub,
IloNumVarType type,
java.lang.String name)
Creates and returns a named numeric variable with bounds and specified type.
|
IloNumVar |
numVar(double lb,
double ub,
java.lang.String name)
Creates and returns a numeric variable with specified bounds and name.
|
IloNumVar |
numVar(IloColumn column,
double lb,
double ub)
Creates and returns a numeric variable representing
a column with a specified lower and upper bound.
|
IloNumVar |
numVar(IloColumn column,
double lb,
double ub,
IloNumVarType type)
Creates and returns a numeric variable representing
a column with specified lower and upper bounds as well as type.
|
IloNumVar |
numVar(IloColumn column,
double lb,
double ub,
IloNumVarType type,
java.lang.String name)
Creates and returns a named numeric variable representing
a column with specified lower and upper bounds as well as type.
|
IloNumVar |
numVar(IloColumn column,
double lb,
double ub,
java.lang.String name)
Creates and returns a named numeric variable representing
representing a column with a specified lower and upper bound.
|
IloNumVar[] |
numVarArray(IloColumnArray cols,
double[] lb,
double[] ub)
Creates and returns an array of numeric variables representing
an array of columns with individually specified lower and upper bounds.
|
IloNumVar[] |
numVarArray(IloColumnArray cols,
double[] lb,
double[] ub,
IloNumVarType[] type)
Creates and returns an array of numeric variables representing
an array of columns with individually specified lower and upper bounds
as well as individual types.
|
IloNumVar[] |
numVarArray(IloColumnArray cols,
double[] lb,
double[] ub,
IloNumVarType[] type,
java.lang.String[] name)
Creates and returns an array of numeric variables representing
an array of columns with individually specified lower and upper bounds
as well as individual types and individual names.
|
IloNumVar[] |
numVarArray(IloColumnArray cols,
double[] lb,
double[] ub,
java.lang.String[] name)
Creates and returns an array of numeric variables representing
an array of columns with individually specified lower and upper bounds
as well as names.
|
IloNumVar[] |
numVarArray(IloColumnArray cols,
double lb,
double ub)
Creates and returns an array of numeric variables representing
an array of columns with a specified lower and upper bound.
|
IloNumVar[] |
numVarArray(IloColumnArray cols,
double lb,
double ub,
IloNumVarType type)
Creates and returns an array of numeric variables representing
an array of columns with specified lower and upper bounds
as well as type.
|
IloNumVar[] |
numVarArray(IloColumnArray cols,
double lb,
double ub,
IloNumVarType type,
java.lang.String[] name)
Creates and returns an array of numeric variables representing
an array of columns with specified lower and upper bounds
as well as a type and individual names.
|
IloNumVar[] |
numVarArray(IloColumnArray cols,
double lb,
double ub,
java.lang.String[] name)
Creates and returns an array of numeric variables representing
an array of columns with a lower and upper bound
as well as individually specified names.
|
IloNumVar[] |
numVarArray(int n,
double[] lb,
double[] ub)
Creates an array of numeric variables with individually specified upper
and lower bounds.
|
IloNumVar[] |
numVarArray(int n,
double[] lb,
double[] ub,
IloNumVarType[] type)
Creates and returns an array of numeric variables with individual
bounds and types.
|
IloNumVar[] |
numVarArray(int n,
double[] lb,
double[] ub,
IloNumVarType[] type,
java.lang.String[] name)
Creates and returns an array of numeric variables, all with
individual specified bounds, types, and names.
|
IloNumVar[] |
numVarArray(int n,
double[] lb,
double[] ub,
java.lang.String[] name)
Creates an array of numeric variables, each with individually specified
upper bound, lower bound, and name.
|
IloNumVar[] |
numVarArray(int n,
double lb,
double ub)
Creates an array of numeric variables, all with the same upper
and lower bound.
|
IloNumVar[] |
numVarArray(int n,
double lb,
double ub,
IloNumVarType type)
Creates and returns an array of numeric variables, all with same
specified bounds, all of the same type.
|
IloNumVar[] |
numVarArray(int n,
double lb,
double ub,
IloNumVarType type,
java.lang.String[] name)
Creates and returns an array of numeric variables, all with same
specified bounds, all with same type, and individual names.
|
IloNumVar[] |
numVarArray(int n,
double lb,
double ub,
java.lang.String[] name)
Creates an array of numeric variables, all with the same upper and
lower bound, but with individually specified names.
|
IloObjective |
objective(IloObjectiveSense sense)
Creates and returns an empty objective function with the specified sense.
|
IloObjective |
objective(IloObjectiveSense sense,
IloNumExpr expr)
Creates and returns an objective from an expression
to optimize in the specified sense.
|
IloObjective |
objective(IloObjectiveSense sense,
IloNumExpr expr,
java.lang.String name)
Creates and returns a named objective with a sense (maximize or minimize).
|
IloObjective |
objective(IloObjectiveSense sense,
java.lang.String name)
Creates and returns a named, empty objective function
with the specified sense.
|
IloOr |
or()
Returns a constraint that at least one and possibly more than one
of the elements is true in its argument
cons, an array
of constraints. |
IloOr |
or(IloConstraint[] cons)
Returns a constraint that at least one and possibly more than one
of the elements is true in its argument
cons, an array
of constraints. |
IloOr |
or(IloConstraint[] cons,
int start,
int num)
Returns a constraint that at least one and possibly more than one
of the elements is true in the range of indices starting at the index
specified by
start and continuing through the number
of elements specified by the number num among the elements
of its argument cons, an array of constraints. |
IloOr |
or(IloConstraint[] cons,
int start,
int num,
java.lang.String name)
Returns a constraint that at least one and possibly more than one
of the elements is true in the range of indices starting at the index
specified by
start and continuing through the number
of elements specified by the number num among the elements
of its argument cons, an array of constraints;
also assigns the string name as the name of
the returned constraint. |
IloOr |
or(IloConstraint[] cons,
java.lang.String name)
Returns a constraint that at least one and possibly more than one
of the elements is true in its argument
cons, an array
of constraints and also assigns the string name as the
name of that returned constraint. |
IloOr |
or(IloConstraint con1,
IloConstraint con2)
Returns a constraint that at least one and possibly both of its
arguments are true.
|
IloOr |
or(IloConstraint con1,
IloConstraint con2,
java.lang.String name)
Returns a constraint that at least one and possibly both of its
arguments are true.
|
IloNumExpr |
piecewiseLinear(IloNumExpr expr,
double[] points,
double[] slopes,
double a,
double fa)
Creates and returns a numeric expression representing
a piecewise linear function.
|
IloNumExpr |
piecewiseLinear(IloNumExpr expr,
double[] points,
int startPoints,
int num,
double[] slopes,
int startSlopes,
double a,
double fa)
Creates and returns a numeric expression representing
a piecewise linear function.
|
IloNumExpr |
piecewiseLinear(IloNumExpr expr,
double firstSlope,
double[] points,
double[] values,
double lastSlope)
Creates and returns a numeric expression representing
a piecewise linear function.
|
IloNumExpr |
piecewiseLinear(IloNumExpr expr,
double firstSlope,
double[] points,
int startPoints,
int num,
double[] values,
int startSlopes,
double lastSlope)
Creates and returns a numeric expression representing
a piecewise linear function.
|
IloNumExpr |
prod(double v,
IloNumExpr e1)
Creates and returns an expression representing
the product of a value and a numeric expression.
|
IloNumExpr |
prod(double v,
IloNumVar var1,
IloNumVar var2)
Creates and returns an expression representing
the product of a value and two numeric variables.
|
IloIntExpr |
prod(IloIntExpr e1,
IloIntExpr e2)
Creates and returns an expression representing
the product of two integer expressions.
|
IloIntExpr |
prod(IloIntExpr e,
int v)
Creates and returns an expression representing
the product of an integer expression and a value.
|
IloNumExpr |
prod(IloNumExpr e,
double v)
Creates and returns an expression representing
the product of a numeric expression and a value.
|
IloNumExpr |
prod(IloNumExpr e1,
IloNumExpr e2)
Creates and returns an expression representing
the product of two numeric expressions.
|
IloNumExpr |
prod(IloNumVar var1,
double v,
IloNumVar var2)
Creates and returns an expression representing
the product of a numeric variable, a value, and another numeric variable.
|
IloNumExpr |
prod(IloNumVar var1,
IloNumVar var2,
double v)
Creates and returns an expression representing
the product of two numeric variables and a value.
|
IloIntExpr |
prod(int v,
IloIntExpr e1)
Creates and returns an integer expression representing
the product of a value and an integer expression.
|
IloQuadIntExpr |
quadIntExpr()
Creates and returns a zero-valued quadratic integer expression.
|
IloQuadNumExpr |
quadNumExpr()
Creates and returns a zero-valued quadratic expression.
|
IloRange |
range(double lb,
double ub)
Creates and returns a range with the specified lower
and upper bound.
|
IloRange |
range(double lb,
double ub,
java.lang.String name)
Creates and returns a named range with the specified lower
and upper bound.
|
IloRange |
range(double lb,
IloNumExpr expr,
double ub)
Creates and returns a range with the specified lower bound,
numeric expression, and upper bound.
|
IloRange |
range(double lb,
IloNumExpr expr,
double ub,
java.lang.String name)
Creates and returns a named range with the specified lower bound,
numeric expression, and upper bound.
|
java.util.Iterator |
rangeIterator()
Returns an iterator over all ranges in the active model.
|
IloAddable |
remove(IloAddable object)
Removes
object from the invoking model. |
IloAddable[] |
remove(IloAddable[] objects)
Removes the array of
objects from the invoking model. |
IloAddable[] |
remove(IloAddable[] objects,
int start,
int num)
Removes part of the array of
objects from the
invoking model, starting with the index start and
continuing to the number of objects specified by num. |
IloLinearNumExpr |
scalProd(double[] vals,
IloNumVar[] vars)
Creates and returns a linear expression representing
the scalar product of the provided values with the provided variables.
|
IloLinearNumExpr |
scalProd(double[] vals,
IloNumVar[] vars,
int start,
int num)
Creates and returns a linear expression representing
the scalar product of the values and variables provided
in the specified range of indices.
|
IloIntExpr |
scalProd(IloIntVar[] vars1,
IloIntVar[] vars2)
Creates and returns a linear expression representing the scalar product
of the given variables.
|
IloIntExpr |
scalProd(IloIntVar[] vars1,
IloIntVar[] vars2,
int start,
int num)
Creates and returns a linear expression representing the scalar product
of the given variables.
|
IloLinearIntExpr |
scalProd(IloIntVar[] vars,
int[] vals)
Creates and returns a linear integer expression
representing the scalar product of the provided
integer variables and integer values.
|
IloLinearIntExpr |
scalProd(IloIntVar[] vars,
int[] vals,
int start,
int num)
Creates and returns a linear integer expression
representing the scalar product of the provided
integer variables and integer values from the specified
range of indices.
|
IloLinearNumExpr |
scalProd(IloNumVar[] vars,
double[] vals)
Creates and returns a linear expression representing
the scalar product of the provided variables with the provided values.
|
IloLinearNumExpr |
scalProd(IloNumVar[] vars,
double[] vals,
int start,
int num)
Creates and returns a linear expression representing
the scalar product of the variables and values provided
in the specified range of indices.
|
IloNumExpr |
scalProd(IloNumVar[] vars1,
IloNumVar[] vars2)
Creates and returns a linear expression representing the scalar product
of the given variables.
|
IloNumExpr |
scalProd(IloNumVar[] vars1,
IloNumVar[] vars2,
int start,
int num)
Creates and returns a linear expression representing the scalar product
of the given variables.
|
IloLinearNumExpr |
scalProd(IloNumVar[] vars,
int[] vals)
Creates and returns a linear expression representing
the scalar product of the numeric variables and integer values provided.
|
IloLinearNumExpr |
scalProd(IloNumVar[] vars,
int[] vals,
int start,
int num)
Creates and returns a new linear expression representing the scalar
product of the
num variables in vars starting
at element start with the corresponding values in
vals. |
IloLinearIntExpr |
scalProd(int[] vals,
IloIntVar[] vars)
Creates and returns a linear integer expression
representing the scalar product of the provided
integer values and integer variables.
|
IloLinearIntExpr |
scalProd(int[] vals,
IloIntVar[] vars,
int start,
int num)
Creates and returns a linear integer expression
representing the scalar product of the provided
integer values and integer variables from the specified
range of indices.
|
IloLinearNumExpr |
scalProd(int[] vals,
IloNumVar[] vars)
Creates and returns a linear expression representing
the scalar product of the integer values and numeric variables provided.
|
IloLinearNumExpr |
scalProd(int[] vals,
IloNumVar[] vars,
int start,
int num)
Creates and returns a new linear expression representing the scalar
product of the
num values in vals starting
at element start with the corresponding variables in
vars. |
IloSemiContVar |
semiContVar(double lb,
double ub,
IloNumVarType type)
Creates and returns a semi-continuous variable with
a specified lower and upper bound and of a specified type.
|
IloSemiContVar |
semiContVar(double lb,
double ub,
IloNumVarType type,
java.lang.String name)
Creates and returns a named semi-continuous variable with
a specified lower and upper bound and of a specified type.
|
IloSemiContVar |
semiContVar(IloColumn column,
double lb,
double ub,
IloNumVarType type)
Creates and returns a semicontinuous variable with
a specified lower and upper bound and of a specified type,
representing a column.
|
IloSemiContVar |
semiContVar(IloColumn column,
double lb,
double ub,
IloNumVarType type,
java.lang.String name)
Creates and returns a named semi-continuous variable with
a specified lower and upper bound and of a specified type,
representing a column.
|
IloSemiContVar[] |
semiContVarArray(IloColumnArray cols,
double[] lb,
double[] ub,
IloNumVarType[] type)
Creates and returns an array of semi-continuous variables with
individually specified lower and upper bounds and
individually specified types, representing an array of columns.
|
IloSemiContVar[] |
semiContVarArray(IloColumnArray cols,
double[] lb,
double[] ub,
IloNumVarType[] type,
java.lang.String[] name)
Creates and returns an array of named semi-continuous variables
with individually specified lower and upper bounds, and
individually specified type, representing an array of columns.
|
IloSemiContVar[] |
semiContVarArray(IloColumnArray cols,
double lb,
double ub,
IloNumVarType type)
Creates and returns an array of semi-continuous variables with
a specified lower and upper bound and of a specified type,
representing an array of columns.
|
IloSemiContVar[] |
semiContVarArray(IloColumnArray cols,
double lb,
double ub,
IloNumVarType type,
java.lang.String[] name)
Creates and returns an array of named semi-continuous variables
with a specified lower and upper bound as well as type,
representing an array of columns.
|
IloSemiContVar[] |
semiContVarArray(int n,
double[] lb,
double[] ub,
IloNumVarType[] type)
Creates and returns an array of semi-continuous variables with
individually specified lower and upper bounds and
individually specified types.
|
IloSemiContVar[] |
semiContVarArray(int n,
double[] lb,
double[] ub,
IloNumVarType[] type,
java.lang.String[] name)
Creates and returns an array of individually named
semi-continuous variables with
individually specified lower and upper bounds and
individually specified types.
|
IloSemiContVar[] |
semiContVarArray(int n,
double lb,
double ub,
IloNumVarType type)
Creates and returns an array of semi-continuous variables with
a specified lower and upper bound and of a specified type.
|
IloSemiContVar[] |
semiContVarArray(int n,
double lb,
double ub,
IloNumVarType type,
java.lang.String[] name)
Creates and returns an array of individually named
semi-continuous variables with
a specified lower and upper bound and of a specified type.
|
void |
setLinearCoef(IloObjective obj,
double val,
IloNumVar var)
Sets a value as the linear coefficient of the variable in the objective.
|
void |
setLinearCoef(IloObjective obj,
IloNumVar var,
double val)
Sets a value as the linear coefficient of the variable in the objective.
|
void |
setLinearCoef(IloRange rng,
double val,
IloNumVar var)
Sets the specified value as the linear coefficient of the
specified variable in the specified range.
|
void |
setLinearCoef(IloRange rng,
IloNumVar var,
double val)
Sets the specified value as the linear coefficient of the
specified variable in the specified range.
|
void |
setLinearCoefs(IloObjective obj,
double[] val,
IloNumVar[] var)
Sets an array of values as the corresponding linear coefficients of
an array of variables in the objective.
|
void |
setLinearCoefs(IloObjective obj,
double[] val,
IloNumVar[] var,
int start,
int num)
Sets an array of values as the corresponding linear coefficients of
an array of variables in the objective from a starting index for a
range of those values and variables.
|
void |
setLinearCoefs(IloObjective obj,
IloNumVar[] var,
double[] val)
Sets an array of values as the corresponding linear coefficients of
an array of variables in the objective.
|
void |
setLinearCoefs(IloObjective obj,
IloNumVar[] var,
double[] val,
int start,
int num)
Sets an array of values as the corresponding linear coefficients of
an array of variables in the objective from a starting index for a
range of those values and variables.
|
void |
setLinearCoefs(IloRange rng,
double[] val,
IloNumVar[] var)
Sets the array of specified values as the linear coefficients of the
specified array of variables in the specified range.
|
void |
setLinearCoefs(IloRange rng,
double[] val,
IloNumVar[] var,
int start,
int num)
Sets a number of the array of specified values,
from a starting index, as
the linear coefficients of the corresponding part of the
array of variables in the specified range.
|
void |
setLinearCoefs(IloRange rng,
IloNumVar[] var,
double[] val)
Sets the array of specified values as the linear coefficients of the
specified array of variables in the specified range.
|
void |
setLinearCoefs(IloRange rng,
IloNumVar[] var,
double[] val,
int start,
int num)
Sets a number of the array of specified values,
from a starting index, as
the linear coefficients of the corresponding part of the
array of variables in the specified range.
|
void |
setModel(IloModel model)
Sets
model as the active model. |
void |
setName(java.lang.String str)
Sets
str as the name of the invoking model. |
void |
setQuadCoef(IloObjective obj,
double val,
IloNumVar var1,
IloNumVar var2)
Sets the quadratic coefficient for the variable
var1*var2 to val
in the expression of the specified IloObjective object. |
void |
setQuadCoef(IloObjective obj,
IloNumVar var1,
IloNumVar var2,
double val)
Sets quadratic coefficient for variable
var1*var2 to val
in the expression of the specified IloObjective object. |
IloSOS1 |
SOS1(IloNumVar[] var,
double[] val)
Creates and returns a special ordered set (SOS) of type 1 from
the specified array of variables and weights.
|
IloSOS1 |
SOS1(IloNumVar[] var,
double[] val,
int start,
int num)
Creates and returns a special ordered set (SOS) of type 1
consisting of a number of elements
from the specified starting index of
the specified array of variables and weights.
|
IloSOS1 |
SOS1(IloNumVar[] var,
double[] val,
int start,
int num,
java.lang.String name)
Creates and returns a named special ordered set (SOS) of type 1
consisting of a number of elements
from the specified starting index of
the specified array of variables and weights.
|
IloSOS1 |
SOS1(IloNumVar[] var,
double[] val,
java.lang.String name)
Creates and returns a named special ordered set (SOS) of type 1
from the specified array of variables and weights.
|
java.util.Iterator |
SOS1iterator()
Returns an iterator over all SOS1 objects in the
active model.
|
IloSOS2 |
SOS2(IloNumVar[] var,
double[] val)
Creates and returns a special ordered set (SOS) of type 2
from the specified array of variables and weights.
|
IloSOS2 |
SOS2(IloNumVar[] var,
double[] val,
int start,
int num)
Creates and returns a special ordered set (SOS) of type 2
consisting of a number of elements, starting at the specified
index, from the specified array of variables and weights.
|
IloSOS2 |
SOS2(IloNumVar[] var,
double[] val,
int start,
int num,
java.lang.String name)
Creates and returns a named special ordered set (SOS) of type 2
from a number of elements, starting at the specified index,
of the array of variables and weights.
|
IloSOS2 |
SOS2(IloNumVar[] var,
double[] val,
java.lang.String name)
Creates and returns a named special ordered set (SOS) of type 2
from the specified array of variables and weights.
|
java.util.Iterator |
SOS2iterator()
Returns an iterator over all SOS2 objects in the
active model.
|
IloIntExpr |
square(IloIntExpr e)
Creates and returns an integer expression representing
the square of an integer expression.
|
IloNumExpr |
square(IloNumExpr e)
Creates and returns an expression representing
the square of a numeric expression.
|
IloNumExpr |
sum(double v,
IloNumExpr e1)
Creates and returns a numeric expression representing
the sum of a value and a numeric expression.
|
IloIntExpr |
sum(IloIntExpr[] expr)
Creates and returns an integer expression that is the sum of
the elements in an array of integer expressions.
|
IloIntExpr |
sum(IloIntExpr[] expr,
int start,
int num)
Creates and returns an integer expression that is the sum of a
number of expressions, starting from the specified index, of
an array of integer expressions.
|
IloIntExpr |
sum(IloIntExpr expr1,
IloIntExpr expr2)
Creates and returns an integer expression representing
the sum of two integer expressions.
|
IloIntExpr |
sum(IloIntExpr expr1,
IloIntExpr expr2,
IloIntExpr expr3)
Creates and returns an integer expression representing
the sum of three integer expressions.
|
IloIntExpr |
sum(IloIntExpr expr1,
IloIntExpr expr2,
IloIntExpr expr3,
IloIntExpr expr4)
Creates and returns an integer expression representing
the sum of four integer expressions.
|
IloIntExpr |
sum(IloIntExpr expr1,
IloIntExpr expr2,
IloIntExpr expr3,
IloIntExpr expr4,
IloIntExpr expr5)
Creates and returns an integer expression representing
the sum of five integer expressions.
|
IloIntExpr |
sum(IloIntExpr expr1,
IloIntExpr expr2,
IloIntExpr expr3,
IloIntExpr expr4,
IloIntExpr expr5,
IloIntExpr expr6)
Creates and returns an integer expression representing
the sum of six integer expressions.
|
IloIntExpr |
sum(IloIntExpr expr1,
IloIntExpr expr2,
IloIntExpr expr3,
IloIntExpr expr4,
IloIntExpr expr5,
IloIntExpr expr6,
IloIntExpr expr7)
Creates and returns an integer expression representing
the sum of seven integer expressions.
|
IloIntExpr |
sum(IloIntExpr expr1,
IloIntExpr expr2,
IloIntExpr expr3,
IloIntExpr expr4,
IloIntExpr expr5,
IloIntExpr expr6,
IloIntExpr expr7,
IloIntExpr expr8)
Creates and returns an integer expression representing
the sum of eight integer expressions.
|
IloIntExpr |
sum(IloIntExpr e,
int v)
Creates and returns an integer expression representing
the sum of an integer expression and a value.
|
IloNumExpr |
sum(IloNumExpr[] expr)
Creates and returns a numeric expression that is the sum
of the elements in an array of numeric expressions.
|
IloNumExpr |
sum(IloNumExpr[] expr,
int start,
int num)
Creates and returns a numeric expression that is the sum of a
number of expressions, starting from the specified index, of
an array of numeric expressions.
|
IloNumExpr |
sum(IloNumExpr e,
double v)
Creates and returns an expression representing
the sum of a numeric expression and a value.
|
IloNumExpr |
sum(IloNumExpr e1,
IloNumExpr e2)
Creates and returns an expression representing
the sum of two numeric expressions.
|
IloNumExpr |
sum(IloNumExpr expr1,
IloNumExpr expr2,
IloNumExpr expr3)
Creates and returns a numeric expression representing
the sum of three numeric expressions.
|
IloNumExpr |
sum(IloNumExpr expr1,
IloNumExpr expr2,
IloNumExpr expr3,
IloNumExpr expr4)
Creates and returns a numeric expression representing
the sum of four numeric expressions.
|
IloNumExpr |
sum(IloNumExpr expr1,
IloNumExpr expr2,
IloNumExpr expr3,
IloNumExpr expr4,
IloNumExpr expr5)
Creates and returns a numeric expression representing
the sum of five numeric expressions.
|
IloNumExpr |
sum(IloNumExpr expr1,
IloNumExpr expr2,
IloNumExpr expr3,
IloNumExpr expr4,
IloNumExpr expr5,
IloNumExpr expr6)
Creates and returns a numeric expression representing
the sum of six numeric expressions.
|
IloNumExpr |
sum(IloNumExpr expr1,
IloNumExpr expr2,
IloNumExpr expr3,
IloNumExpr expr4,
IloNumExpr expr5,
IloNumExpr expr6,
IloNumExpr expr7)
Creates and returns a numeric expression representing
the sum of seven numeric expressions.
|
IloNumExpr |
sum(IloNumExpr expr1,
IloNumExpr expr2,
IloNumExpr expr3,
IloNumExpr expr4,
IloNumExpr expr5,
IloNumExpr expr6,
IloNumExpr expr7,
IloNumExpr expr8)
Creates and returns a numeric expression representing
the sum of eight numeric expressions.
|
IloIntExpr |
sum(int v,
IloIntExpr e1)
Creates and returns an integer expression representing
the sum of a value and an integer expression.
|
java.lang.String |
toString() |
public java.lang.String toString()
toString in class java.lang.Objectpublic IloModel getModel() throws IloException
Returns the active model.
getModel in interface IloMPModelerIloExceptionpublic void setModel(IloModel model) throws IloException
model as the active model.setModel in interface IloMPModelerIloExceptionpublic java.lang.String getName()
getName in interface IloAddablepublic void setName(java.lang.String str)
str as the name of the invoking model.
setName in interface IloAddablestr - The name assigned to the invoking modeling object.
null can be passed as argument to remove an assigned
name from the invoking modeling object.public IloAddable add(IloAddable object) throws IloException
object to the invoking model.
Do not use this method in a callback to modify the model currently being optimized.
add in interface IloModelIloExceptionobject - The modeling object to be added to the
invoking IloModel.public IloAddable[] add(IloAddable[] objects) throws IloException
objects to the invoking model.
See IloModel.add(IloAddable[])
Do not use this method in a callback to modify the model currently being optimized.
add in interface IloModelIloExceptionobjects - The array of modeling objects to be added to the
invoking IloModel.public IloAddable[] add(IloAddable[] objects, int start, int num) throws IloException
objects to the invoking model,
starting with the index start and continuing to
the number of objects specified by num.
See IloModel.add(IloAddable[], int, int)
Do not use this method in a callback to modify the model currently being optimized.
add in interface IloModelIloExceptionobjects - The array of modeling objects to be added
to the invoking IloModel.start - The first modeling object to be added to the
invoking IloModel.num - The number of modeling objects to be added to
the invoking IloModel.public IloAddable remove(IloAddable object) throws IloException
object from the invoking model.
remove in interface IloModelIloExceptionobject - The modeling object to be removed from the invoking
IloModel.public IloAddable[] remove(IloAddable[] objects) throws IloException
objects from the invoking model.
remove in interface IloModelIloExceptionobjects - The array of modeling objects to be removed from the
invoking IloModel.public IloAddable[] remove(IloAddable[] objects, int start, int num) throws IloException
objects from the
invoking model, starting with the index start and
continuing to the number of objects specified by num.
remove in interface IloModelIloExceptionobjects - The array of modeling objects to be removed
from the invoking IloModel.start - The first modeling object to be removed from the
invoking IloModel.num - The number of modeling objects to be removed from
the invoking IloModel.public java.util.Iterator iterator()
See IloModel.iterator()
for additional information.
This iterator traverses only those objects explicitly added
to the model. Range objects implement the interface
IloNumVar
because indicator variables can be associated with a constraint.
Consequently, this iterator treats a range object added to a model
as an instance of a range and an instance of a numeric variable.
You can use the Java keyword instanceof
to distinguish those two modeling objects resulting from a single range.
public IloNumVar numVar(double lb, double ub, IloNumVarType type) throws IloException
numVar in interface IloModelerIloExceptionlb - The lower bound of the new numeric variable.ub - The upper bound of the new numeric variable.type - The type of the new numeric variable.public IloNumVar numVar(double lb, double ub, IloNumVarType type, java.lang.String name) throws IloException
See IloModeler.numVar(double, double, IloNumVarType, String)
numVar in interface IloModelerIloExceptionlb - The lower bound of the new numeric variable.ub - The upper bound of the new numeric variable.type - The type of the new numeric variable.name - The name of the new numeric variable.public IloNumVar[] numVarArray(int n, double lb, double ub, IloNumVarType type) throws IloException
See IloModeler.numVarArray(int, double, double, IloNumVarType)
numVarArray in interface IloModelerIloExceptionn - The number of new numeric variables.lb - The lower bound of the new numeric variables.ub - The upper bound of the new numeric variables.type - The type of the new numeric variables.n new numeric variables.public IloNumVar[] numVarArray(int n, double lb, double ub, IloNumVarType type, java.lang.String[] name) throws IloException
See IloModeler.numVarArray(int, double, double, IloNumVarType, String[])
numVarArray in interface IloModelerIloExceptionlb - The lower bound of the new numeric variables.ub - The upper bound of the new numeric variables.type - The type of the new numeric variables.name - The names of the new numeric variables.
Variable i
is assigned the name name[i].n new numeric variables.public IloNumVar[] numVarArray(int n, double[] lb, double[] ub, IloNumVarType[] type) throws IloException
See IloModeler.numVarArray(int, double[], double[], IloNumVarType[]).
numVarArray in interface IloModelerIloExceptionlb - The lower bounds of the new numeric variables.
Variable i is constructed with the
lower bound lb[i].ub - The upper bounds of the new numeric variables.
Variable i is constructed with the
upper bound ub[i].type - The types of the new numeric variables.
Variable i is constructed with the
type type[i].n new numeric variables.public IloNumVar[] numVarArray(int n, double[] lb, double[] ub, IloNumVarType[] type, java.lang.String[] name) throws IloException
See IloModeler.numVarArray(int, double[], double[], IloNumVarType[], String[])
numVarArray in interface IloModelerIloExceptionlb - The lower bounds of the new numeric variables.
Variable i is constructed with
the lower bound lb[i].ub - The upper bounds of the new numeric variables.
Variable i is constructed with
the upper bound ub[i].type - The types of the new numeric variables.
Variable i is constructed with
the type type[i].name - The names of the new numeric variables.
Variable i
is assigned the name name[i].n new numeric variables.public IloNumVar numVar(double lb, double ub, java.lang.String name) throws IloException
numVar in interface IloModelerIloExceptionlb - 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.public IloNumVar numVar(double lb, double ub) throws IloException
numVar in interface IloModelerIloExceptionlb - The lower bound of the new modeling variable.ub - The upper bound of the new modeling variable.public IloNumVar[] numVarArray(int n, double lb, double ub) throws IloException
numVarArray in interface IloModelerIloExceptionn - Length of the new array; that is, number of new
numeric variables.lb - The lower bound of each new variable.ub - The upper bound of each new variable.public IloNumVar[] numVarArray(int n, double[] lb, double[] ub) throws IloException
numVarArray in interface IloModelerIloExceptionlb - 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].public IloNumVar[] numVarArray(int n, double lb, double ub, java.lang.String[] name) throws IloException
numVarArray in interface IloModelerIloExceptionlb - 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.public IloNumVar[] numVarArray(int n, double[] lb, double[] ub, java.lang.String[] name) throws IloException
See IloModeler.numVarArray(int, double[], double[], String[])
numVarArray in interface IloModelerIloExceptionlb - 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].public IloIntVar intVar(int lb, int ub, java.lang.String name) throws IloException
intVar in interface IloModelerIloExceptionlb - The minimum value of the variable.ub - The maximum value of the variable.name - The name of the variable.public IloIntVar intVar(int lb, int ub) throws IloException
intVar in interface IloModelerIloExceptionlb - The minimum value of the variable.ub - The maximum value of the variable.public IloIntVar[] intVarArray(int n, int lb, int ub) throws IloException
intVarArray in interface IloModelerIloExceptionlb - The lower bound of the new modeling variable.ub - The upper bound of the new modeling variable.public IloIntVar[] intVarArray(int n, int[] lb, int[] ub) throws IloException
intVarArray in interface IloModelerIloExceptionlb - The lower bounds of the new modeling variable.
Variable i will be constructed
with a lower bound of min[i].ub - The upper bounds of the new modeling variable.
Variable i will be constructed
with an upper bound of max[i].public IloIntVar[] intVarArray(int n, int lb, int ub, java.lang.String[] name) throws IloException
intVarArray in interface IloModelerIloExceptionlb - 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].public IloIntVar[] intVarArray(int n, int[] lb, int[] ub, java.lang.String[] name) throws IloException
intVarArray in interface IloModelerIloExceptionlb - The lower bounds of the new modeling variable.
Variable i will be constructed
with a lower bound of min[i].ub - 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].public IloIntVar boolVar(java.lang.String name) throws IloException
boolVar in interface IloModelerIloExceptionname - The name of the variable.public IloIntVar boolVar() throws IloException
boolVar in interface IloModelerIloExceptionpublic IloIntVar[] boolVarArray(int n) throws IloException
boolVarArray in interface IloModelerIloExceptionpublic IloIntVar[] boolVarArray(int n, java.lang.String[] name) throws IloException
boolVarArray in interface IloModelerIloExceptionpublic IloObjective minimize(IloNumExpr expr, java.lang.String name) throws IloException
minimize in interface IloModelerIloExceptionexpr - Expression to minimize.name - Name assigned to the new IloObjective object.IloObjective object representing the objective
to minimize expr.public IloObjective minimize(IloCplexMultiCriterionExpr expr, java.lang.String name) throws IloException
IloExceptionexpr - the multi-criterion expression to minimize.name - the name for the new objective.IloCplex.staticLex(IloNumExpr[], double[], int[], double[], double[], String)public IloObjective minimize(IloCplexMultiCriterionExpr expr) throws IloException
IloExceptionexpr - the multi-criterion expression to minimize.IloCplex.staticLex(IloNumExpr[], double[], int[], double[], double[], String)public IloObjective maximize(IloNumExpr expr, java.lang.String name) throws IloException
maximize in interface IloModelerIloExceptionexpr - Expression to maximize.name - Name assigned to the new IloObjective object.IloObjective object representing the
objective to maximize expr.public IloObjective maximize(IloCplexMultiCriterionExpr expr, java.lang.String name) throws IloException
IloExceptionexpr - the multi-criterion expression to maximize.name - the name for the new objective.IloCplex.staticLex(IloNumExpr[], double[], int[], double[], double[], String)public IloObjective maximize(IloCplexMultiCriterionExpr expr) throws IloException
IloExceptionexpr - the multi-criterion expression to maximize.IloCplex.staticLex(IloNumExpr[], double[], int[], double[], double[], String)public IloObjective objective(IloObjectiveSense sense, IloNumExpr expr, java.lang.String name) throws IloException
See IloModeler.objective(IloObjectiveSense, IloNumExpr, String)
objective in interface IloModelerIloExceptionsense - Optimization sense.expr - Expression to optimize.name - Name assigned to the new IloObjective object.IloObjective object representing the objective
to optimize expr.public IloObjective minimize(IloNumExpr expr) throws IloException
minimize in interface IloModelerIloExceptionexpr - Expression to minimize.IloObjective object representing the objective
to minimize expr.public IloObjective maximize(IloNumExpr expr) throws IloException
maximize in interface IloModelerIloExceptionexpr - Expression to maximize.IloObjective object representing the
objective to maximize expr.public IloObjective objective(IloObjectiveSense sense, IloNumExpr expr) throws IloException
objective in interface IloModelerIloExceptionsense - Optimization sense.expr - Expression to optimize.IloObjective object representing the objective
to optimize expr.public IloObjective addObjective(IloObjectiveSense sense, IloNumExpr expr, java.lang.String name) throws IloException
See IloModeler.addObjective(IloObjectiveSense, IloNumExpr, String)
Do not use this method in a callback to modify the model currently being optimized.
addObjective in interface IloModelerIloExceptionsense - Optimization sense.expr - Expression to maximize.name - Name assigned to the new IloObjective object.IloObjective object representing the objective
to maximize expr.public IloObjective addMinimize(IloNumExpr expr) throws IloException
See IloModeler.addMinimize(IloNumExpr)
Do not use this method in a callback to modify the model currently being optimized.
addMinimize in interface IloModelerIloExceptionexpr - Expression to minimize.IloObjective object representing
the objective to minimize expr.public IloObjective addMaximize(IloNumExpr expr) throws IloException
See IloModeler.addMaximize(IloNumExpr)
Do not use this method in a callback to modify the model currently being optimized.
addMaximize in interface IloModelerIloExceptionexpr - Expression to maximize.IloObjective object representing the objective
to maximize expr.public IloObjective addObjective(IloObjectiveSense sense, IloNumExpr expr) throws IloException
See IloModeler.addObjective(IloObjectiveSense, IloNumExpr)
Do not use this method in a callback to modify the model currently being optimized.
addObjective in interface IloModelerIloExceptionsense - Optimization sense.expr - Expression to maximize.IloObjective object representing
the objective to maximize expr.public IloLinearNumExpr linearNumExpr() throws IloException
linearNumExpr in interface IloModelerIloExceptionpublic IloLinearNumExpr linearNumExpr(double val) throws IloException
linearNumExpr in interface IloModelerIloExceptionval - The constant term of the new linear expression.val.public IloLinearNumExpr scalProd(double[] vals, IloNumVar[] vars) throws IloException
scalProd in interface IloModelerIloExceptionvals - The values involved in the new scalar product expression.vars - The variables involved in the new scalar product expression.public IloLinearNumExpr scalProd(IloNumVar[] vars, double[] vals) throws IloException
scalProd in interface IloModelerIloExceptionvars - The variables involved in the new scalar product
expression.vals - The values involved in the new scalar product
expression.public IloLinearNumExpr scalProd(double[] vals, IloNumVar[] vars, int start, int num) throws IloException
scalProd in interface IloModelerIloExceptionvals - 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.public IloLinearNumExpr scalProd(IloNumVar[] vars, double[] vals, int start, int num) throws IloException
scalProd in interface IloModelerIloExceptionvars - 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 - The first element in coefs and in
vars
to use for the scalar product.num - The number of elements in coefs and in
vars
to use for the scalar product.public IloLinearNumExpr scalProd(int[] vals, IloNumVar[] vars) throws IloException
scalProd in interface IloModelerIloExceptionvals - The values involved in the new scalar product expression.vars - The variables involved in the new scalar product expression.public IloLinearNumExpr scalProd(IloNumVar[] vars, int[] vals) throws IloException
scalProd in interface IloModelerIloExceptionvars - The variables involved in the new scalar product expression.vals - The values involved in the new scalar product expression.public IloLinearIntExpr linearIntExpr(int val) throws IloException
linearIntExpr in interface IloModelerIloExceptionval - Constant term of the new linear expression.val.public IloLinearIntExpr scalProd(int[] vals, IloIntVar[] vars) throws IloException
scalProd in interface IloModelerIloExceptionvals - The integer values involved in the new scalar product.vars - The integer variables involved in the new scalar productpublic IloLinearIntExpr scalProd(IloIntVar[] vars, int[] vals) throws IloException
scalProd in interface IloModelerIloExceptionvars - The integer variables involved in the new scalar product
expression.vals - The integer values involved in the new scalar product
expression.public IloLinearIntExpr scalProd(int[] vals, IloIntVar[] vars, int start, int num) throws IloException
scalProd in interface IloModelerIloExceptionvals - 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 and
vars to be used for the scalar product.num - Number of elements in vals and
vars to be used for the scalar product.public IloLinearIntExpr scalProd(IloIntVar[] vars, int[] vals, int start, int num) throws IloException
scalProd in interface IloModelerIloExceptionvars - 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 and
vars to be used for the scalar product.num - Number of elements in vals and
vars to be used for the scalar product.public IloIntExpr scalProd(IloIntVar[] vars1, IloIntVar[] vars2) throws IloException
scalProd in interface IloModelerIloExceptionvars1 - The first array of variables involved in the new scalar
product expression.vars2 - The second array of variables involved in the new scalar
product expression.public IloIntExpr scalProd(IloIntVar[] vars1, IloIntVar[] vars2, int start, int num) throws IloException
scalProd in interface IloModelerIloExceptionvars1 - The first array of variables involved in the new scalar
product expression.vars2 - The second array of variables involved in the new scalar
product expression.start - Index of the term to start the multiplication.num - Number of consecutive terms to multiply, starting
from the index specified by start.public IloNumExpr negative(IloNumExpr e) throws IloException
negative in interface IloModelerIloExceptione - An expression for which the negative value is given.e.public IloNumExpr sum(IloNumExpr e, double v) throws IloException
sum in interface IloModelerIloExceptione - The numeric expression.v - The value.e + v.public IloNumExpr sum(IloNumExpr e1, IloNumExpr e2) throws IloException
sum in interface IloModelerIloExceptione1 - The first numeric expression.e2 - The second numeric expression.e1 + e2.public IloNumExpr sum(double v, IloNumExpr e1) throws IloException
sum in interface IloModelerIloExceptionv - The value.e1 - The numeric expression.v + e.public IloNumExpr sum(IloNumExpr expr1, IloNumExpr expr2, IloNumExpr expr3) throws IloException
sum in interface IloModelerIloExceptionexpr1 - The first numeric expression.expr2 - The second numeric expression.expr3 - The third numeric expression.e1 + e2 + e3.public IloNumExpr sum(IloNumExpr expr1, IloNumExpr expr2, IloNumExpr expr3, IloNumExpr expr4) throws IloException
See IloModeler.sum(IloNumExpr, IloNumExpr, IloNumExpr, IloNumExpr)
sum in interface IloModelerIloExceptionexpr1 - The first numeric expression.expr2 - The second numeric expression.expr3 - The third numeric expression.expr4 - The fourth numeric expression.e1 + e2 + e3 + e4.public IloNumExpr sum(IloNumExpr expr1, IloNumExpr expr2, IloNumExpr expr3, IloNumExpr expr4, IloNumExpr expr5) throws IloException
See IloModeler.sum(IloNumExpr, IloNumExpr, IloNumExpr, IloNumExpr, IloNumExpr)
sum in interface IloModelerIloExceptionexpr1 - The first numeric expression.expr2 - The second numeric expression.expr3 - The third numeric expression.expr4 - The fourth numeric expression.expr5 - The fifth numeric expression.e1 + e2 + e3 + e4 + e5.public IloNumExpr sum(IloNumExpr expr1, IloNumExpr expr2, IloNumExpr expr3, IloNumExpr expr4, IloNumExpr expr5, IloNumExpr expr6) throws IloException
See IloModeler.sum(IloNumExpr, IloNumExpr, IloNumExpr, IloNumExpr, IloNumExpr, IloNumExpr)
sum in interface IloModelerIloExceptionexpr1 - The first numeric expression.expr2 - The second numeric expression.expr3 - The third numeric expression.expr4 - The fourth numeric expression.expr5 - The fifth numeric expression.expr6 - The sixth numeric expression.e1 + e2 + e3 + e4 + e5 + e6.public IloNumExpr sum(IloNumExpr expr1, IloNumExpr expr2, IloNumExpr expr3, IloNumExpr expr4, IloNumExpr expr5, IloNumExpr expr6, IloNumExpr expr7) throws IloException
See IloModeler.sum(IloNumExpr, IloNumExpr, IloNumExpr, IloNumExpr, IloNumExpr, IloNumExpr, IloNumExpr)
sum in interface IloModelerIloExceptionexpr1 - The first numeric expression.expr2 - The second numeric expression.expr3 - The third numeric expression.expr4 - The fourth numeric expression.expr5 - The fifth numeric expression.expr6 - The sixth numeric expression.expr7 - The seventh numeric expression.e1 + e2 + e3 + e4 + e5 + e6 + e7.public IloNumExpr sum(IloNumExpr expr1, IloNumExpr expr2, IloNumExpr expr3, IloNumExpr expr4, IloNumExpr expr5, IloNumExpr expr6, IloNumExpr expr7, IloNumExpr expr8) throws IloException
sum in interface IloModelerIloExceptionexpr1 - The first numeric expression.expr2 - The second numeric expression.expr3 - The third numeric expression.expr4 - The fourth numeric expression.expr5 - The fifth numeric expression.expr6 - The sixth numeric expression.expr7 - The seventh numeric expression.expr8 - The eighth numeric expression.e1 + e2 + e3 + e4 + e5 + e6 + e7 + e8.public IloIntExpr diff(IloIntExpr e, int v) throws IloException
diff in interface IloModelerIloExceptione - An integer expression to use in the difference.v - A value to subtracte - v.public IloNumExpr diff(IloNumExpr e, double v) throws IloException
diff in interface IloModelerIloExceptione - An expression to use in the difference.v - A value to subtract.e - v.public IloNumExpr diff(IloNumExpr e1, IloNumExpr e2) throws IloException
diff in interface IloModelerIloExceptione1 - An expression to use in the difference.e2 - An expression to subtract.e1 - e2.public IloNumExpr diff(double v, IloNumExpr e1) throws IloException
diff in interface IloModelerIloExceptionv - A value to use in the difference.e1 - An expression to subtract.v - e1.public final IloAnd and() throws IloException
See IloModeler.and()
and in interface IloModelerIloExceptionIloAndpublic final IloAnd and(IloConstraint[] cons) throws IloException
See IloModeler.and()
and in interface IloModelerIloExceptioncons - The array of constraints to group.IloAndpublic final IloAnd and(IloConstraint[] cons, java.lang.String name) throws IloException
See IloModeler.and()
and in interface IloModelerIloExceptioncons - The array of constraints to group.name - The name of the resulting and-constraint.IloAndpublic final IloAnd and(IloConstraint[] cons, int start, int num) throws IloException
cons
starting with the index specified by start and continuing
to the number of constraints specified by num.
See IloModeler.and()
and in interface IloModelerIloExceptioncons - The array of constraints to group.start - Index of the first constraint in the resulting and-constraint.num - Number of constraints in the resulting and-constraint.IloAndpublic final IloAnd and(IloConstraint[] cons, int start, int num, java.lang.String name) throws IloException
cons
starting with the index specified by start and
continuing to the number of constraints specified by num.
This method assigns the string name to the group.
See IloModeler.and()
and in interface IloModelerIloExceptioncons - The array of constraints to group.start - Index of the first constraint in the resulting and-constraint.num - Number of constraints in the resulting and-constraint.name - The name of the and-constraint.IloAndpublic final IloAnd and(IloConstraint con1, IloConstraint con2) throws IloException
See IloModeler.and()
and in interface IloModelerIloExceptioncon1 - The first constraint to group.con2 - The second constraint to group.IloAndpublic final IloAnd and(IloConstraint con1, IloConstraint con2, java.lang.String name) throws IloException
name to the group.
See IloModeler.and()
and in interface IloModelerIloExceptioncon1 - The first constraint to group.con2 - The second constraint to group.name - The name of the resulting and-constraint.IloAndpublic final IloOr or() throws IloException
cons, an array
of constraints.
See IloModeler.or()
or in interface IloModelerIloExceptionIloOrpublic final IloOr or(IloConstraint[] cons) throws IloException
cons, an array
of constraints.
See IloModeler.or()
or in interface IloModelerIloExceptionpublic final IloOr or(IloConstraint[] cons, java.lang.String name) throws IloException
cons, an array
of constraints and also assigns the string name as the
name of that returned constraint.
See IloModeler.or()
or in interface IloModelerIloExceptionpublic final IloOr or(IloConstraint[] cons, int start, int num) throws IloException
start and continuing through the number
of elements specified by the number num among the elements
of its argument cons, an array of constraints.
See IloModeler.or()
or in interface IloModelerIloExceptionpublic final IloOr or(IloConstraint[] cons, int start, int num, java.lang.String name) throws IloException
start and continuing through the number
of elements specified by the number num among the elements
of its argument cons, an array of constraints;
also assigns the string name as the name of
the returned constraint.
See IloModeler.or()
or in interface IloModelerIloExceptionpublic final IloOr or(IloConstraint con1, IloConstraint con2) throws IloException
In other words, it returns the logical-or of two constraints.
See IloModeler.or()
or in interface IloModelerIloExceptionpublic final IloOr or(IloConstraint con1, IloConstraint con2, java.lang.String name) throws IloException
In other words, it returns the logical-or of
two constraints. It also assigns the string name as
the name of that returned constraint.
See IloModeler.or()
or in interface IloModelerIloExceptionpublic final IloConstraint ifThen(IloConstraint con1, IloConstraint con2) throws IloException
con1 is true, then
con2 must also be true.
In other words, it returns a conditional constraint based on its arguments.
See IloModeler.ifThen(ilog.concert.IloConstraint, ilog.concert.IloConstraint)
ifThen in interface IloModelerIloExceptionpublic final IloConstraint ifThen(IloConstraint con1, IloConstraint con2, java.lang.String name) throws IloException
con1 is true, then
con2 must also be true.
In other words, it returns
a conditional constraint based on its arguments. Also assigns
the string name as the name of the returned constraint.
See IloModeler.ifThen(ilog.concert.IloConstraint, ilog.concert.IloConstraint)
ifThen in interface IloModelerIloExceptionpublic final IloConstraint not(IloConstraint con1) throws IloException
not in interface IloModelerIloExceptionpublic final IloConstraint not(IloConstraint con1, java.lang.String name) throws IloException
name as the name of the
returned constraint.
not in interface IloModelerIloExceptionpublic IloNumExpr prod(double v, IloNumVar var1, IloNumVar var2) throws IloException
prod in interface IloModelerIloExceptionv - The value to be used in the product.var1 - The first variable to be used in the product.var2 - The second variable to be used in the product.val * var1 * var2.public IloNumExpr prod(IloNumVar var1, double v, IloNumVar var2) throws IloException
prod in interface IloModelerIloExceptionvar1 - The first variable to be used in the product.v - The value to be used in the product.var2 - The second variable to be used in the product.val * var1 * var2.public IloNumExpr prod(IloNumVar var1, IloNumVar var2, double v) throws IloException
prod in interface IloModelerIloExceptionvar1 - The first variable to be used in the product.var2 - The second variable to be used in the product.v - The value to be used in the product.var1 * var2 * val.public IloNumExpr prod(IloNumExpr e, double v) throws IloException
prod in interface IloModelerIloExceptione - An expression to use in the product.v - A value to add.e * v.public IloNumExpr prod(IloNumExpr e1, IloNumExpr e2) throws IloException
prod in interface IloModelerIloExceptione1 - An expression to use in the product.e2 - An expression to use in the product.expr1 * expr2.public IloNumExpr prod(double v, IloNumExpr e1) throws IloException
prod in interface IloModelerIloExceptionv - A value to use in the product.e1 - An expression to use in the product.e1 * v.public IloNumExpr square(IloNumExpr e) throws IloException
square in interface IloModelerIloExceptione - An expression to use in the square.e * e.public IloNumExpr constant(double x) throws IloException
constant in interface IloModelerIloExceptionx - A value for which to construct a constant expression term.c.public IloNumExpr numExpr() throws IloException
numExpr in interface IloModelerIloExceptionpublic IloIntExpr negative(IloIntExpr e) throws IloException
negative in interface IloModelerIloExceptione - An integer expression for which the negative value is given.e.public IloIntExpr sum(IloIntExpr e, int v) throws IloException
sum in interface IloModelerIloExceptione - The integer expression.v - The value.e + v.public IloIntExpr sum(int v, IloIntExpr e1) throws IloException
sum in interface IloModelerIloExceptionv - The value.e1 - The integer expression.e + v.public IloIntExpr sum(IloIntExpr expr1, IloIntExpr expr2) throws IloException
sum in interface IloModelerIloExceptionexpr1 - The first integer expression.expr2 - The second integer expression.e1 + e2.public IloIntExpr sum(IloIntExpr expr1, IloIntExpr expr2, IloIntExpr expr3) throws IloException
sum in interface IloModelerIloExceptionexpr1 - The first integer expression.expr2 - The second integer expression.expr3 - The third integer expression.exp, representing the
sum e1 +e2 +e3.public IloIntExpr sum(IloIntExpr expr1, IloIntExpr expr2, IloIntExpr expr3, IloIntExpr expr4) throws IloException
See IloModeler.sum(IloIntExpr, IloIntExpr, IloIntExpr, IloIntExpr)
sum in interface IloModelerIloExceptionexpr1 - The first integer expression.expr2 - The second integer expression.expr3 - The third integer expression.expr4 - The fourth integer expression.exp, representing the
sum e1 + e2 + e3 +e 4.public IloIntExpr sum(IloIntExpr expr1, IloIntExpr expr2, IloIntExpr expr3, IloIntExpr expr4, IloIntExpr expr5) throws IloException
See IloModeler.sum(IloIntExpr, IloIntExpr, IloIntExpr, IloIntExpr, IloIntExpr)
sum in interface IloModelerIloExceptionexpr1 - The first integer expression.expr2 - The second integer expression.expr3 - The third integer expression.expr4 - The fourth integer expression.expr5 - The fifth integer expression.exp, representing the
sum e1 + e2 + e3 + e4 + e5.public IloIntExpr sum(IloIntExpr expr1, IloIntExpr expr2, IloIntExpr expr3, IloIntExpr expr4, IloIntExpr expr5, IloIntExpr expr6) throws IloException
See IloModeler.sum(IloIntExpr, IloIntExpr, IloIntExpr, IloIntExpr, IloIntExpr, IloIntExpr)
sum in interface IloModelerIloExceptionexpr1 - The first integer expression.expr2 - The second integer expression.expr3 - The third integer expression.expr4 - The fourth integer expression.expr5 - The fifth integer expression.expr6 - The sixth integer expression.exp, representing the
sum e1 + e2 + e3 + e4 + e5 + e6.public IloIntExpr sum(IloIntExpr expr1, IloIntExpr expr2, IloIntExpr expr3, IloIntExpr expr4, IloIntExpr expr5, IloIntExpr expr6, IloIntExpr expr7) throws IloException
See IloModeler.sum(IloIntExpr, IloIntExpr, IloIntExpr, IloIntExpr, IloIntExpr, IloIntExpr, IloIntExpr)
sum in interface IloModelerIloExceptionexpr1 - The first integer expression.expr2 - The second integer expression.expr3 - The third integer expression.expr4 - The fourth integer expression.expr5 - The fifth integer expression.expr6 - The sixth integer expression.expr7 - The seventh integer expression.exp, representing the
sum e1 + e2 + e3 + e4 + e5 + e6 + e7.public IloIntExpr sum(IloIntExpr expr1, IloIntExpr expr2, IloIntExpr expr3, IloIntExpr expr4, IloIntExpr expr5, IloIntExpr expr6, IloIntExpr expr7, IloIntExpr expr8) throws IloException
sum in interface IloModelerIloExceptionexpr1 - The first integer expression.expr2 - The second integer expression.expr3 - The third integer expression.expr4 - The fourth integer expression.expr5 - The fifth integer expression.expr6 - The sixth integer expression.expr7 - The seventh integer expression.expr8 - The eighth integer expression.exp, representing the
sum e1 + e2 + e3 + e4 + e5 + e6 + e7 + e8.public IloIntExpr diff(IloIntExpr e1, IloIntExpr e2) throws IloException
diff in interface IloModelerIloExceptione1 - An integer expression to use in the difference.e2 - An integer expression to subtract.expr1 - expr2.public IloIntExpr diff(int v, IloIntExpr e1) throws IloException
diff in interface IloModelerIloExceptionv - A value to use in the difference.e1 - An integer expression to subtract.v - e1.public IloIntExpr prod(IloIntExpr e, int v) throws IloException
prod in interface IloModelerIloExceptionpublic IloIntExpr prod(IloIntExpr e1, IloIntExpr e2) throws IloException
prod in interface IloModelerIloExceptionpublic IloIntExpr prod(int v, IloIntExpr e1) throws IloException
prod in interface IloModelerIloExceptionpublic IloIntExpr square(IloIntExpr e) throws IloException
square in interface IloModelerIloExceptionpublic IloIntExpr constant(int x) throws IloException
constant in interface IloModelerIloExceptionx - The value of the constant expression.public IloIntExpr intExpr() throws IloException
intExpr in interface IloModelerIloExceptionpublic IloNumVar numVar(IloColumn column, double lb, double ub, IloNumVarType type) throws IloException
See IloMPModeler.numVar(IloColumn column, double lb, double ub, IloNumVarType type)
numVar in interface IloMPModelerIloExceptioncolumn - The column object defining where to install the new
variable.lb - The lower bound of the new modeling variable.ub - The upper bound of the new modeling variable.type - The type of the new modeling variable.public IloNumVar numVar(IloColumn column, double lb, double ub, IloNumVarType type, java.lang.String name) throws IloException
See IloMPModeler.numVar(IloColumn column, double lb, double ub, IloNumVarType type, String name)
numVar in interface IloMPModelerIloExceptioncolumn - The column object defining where to install the new
variable.lb - The lower bound of the new modeling variable.ub - The upper bound of the new modeling variable.type - The type of the new modeling variable.name - The name of the new modeling variable.public IloNumVar[] numVarArray(IloColumnArray cols, double lb, double ub, IloNumVarType type) throws IloException
See IloMPModeler.numVarArray(IloColumnArray cols, double lb, double ub, IloNumVarType type)
numVarArray in interface IloMPModelerIloExceptioncols - An IloColumnArray object defining
where to install the new variables.lb - The lower bound of the new modeling variables.ub - The upper bound of the new modeling variables.type - The type of the new modeling variables.public IloNumVar[] numVarArray(IloColumnArray cols, double lb, double ub, IloNumVarType type, java.lang.String[] name) throws IloException
numVarArray in interface IloMPModelerIloExceptioncols - An IloColumnArray object defining where
to install the new variables.lb - The lower bound of the new modeling variables.ub - The upper bound of the new modeling variables.type - The type of the new modeling variables.name - The names of the new modeling variables. Variable
i is assigned name[i].public IloNumVar[] numVarArray(IloColumnArray cols, double[] lb, double[] ub, IloNumVarType[] type) throws IloException
See IloMPModeler.numVarArray(IloColumnArray cols, double[] lb, double[] ub, IloNumVarType[] type)
numVarArray in interface IloMPModelerIloExceptioncols - An IloColumnArray object defining where
to install the new variables.lb - The lower bounds of the new modeling variables.
Variable i is constructed with a
lower bound of lb[i].ub - The upper bounds of the new modeling variables.
Variable i is constructed with a
upper bound of ub[i].type - The types of the new modeling variables. Variable
i is constructed with a type of
type[i].public IloNumVar[] numVarArray(IloColumnArray cols, double[] lb, double[] ub, IloNumVarType[] type, java.lang.String[] name) throws IloException
numVarArray in interface IloMPModelerIloExceptioncols - An IloColumnArray object defining where
to install the new variables.lb - The lower bounds of the new modeling variables.
Variable i is constructed with a
lower bound of lb[i].ub - The upper bounds of the new modeling variables.
Variable i is constructed with a
upper bound of lb[i].type - The types of the new modeling variables. Variable
i is
constructed with a type of type[i].name - The names of the new modeling variables. Variable
i is assigned name[i].public IloNumVar numVar(IloColumn column, double lb, double ub, java.lang.String name) throws IloException
See IloMPModeler.numVar(IloColumn column, double lb, double ub, String name)
numVar in interface IloMPModelerIloExceptioncolumn - The column object defining where to install the new
variable.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.public IloNumVar numVar(IloColumn column, double lb, double ub) throws IloException
See IloMPModeler.numVar(IloColumn column, double lb, double ub)
numVar in interface IloMPModelerIloExceptioncolumn - The column object defining where to install the new
variable.lb - The lower bound of the new modeling variable.ub - The upper bound of the new modeling variable.public IloNumVar[] numVarArray(IloColumnArray cols, double lb, double ub) throws IloException
See IloMPModeler.numVarArray(IloColumnArray cols, double lb, double ub)
numVarArray in interface IloMPModelerIloExceptioncols - An IloColumnArray object defining where
to install the new variables.lb - The lower bound of the new modeling variables.ub - The upper bound of the new modeling variables.public IloNumVar[] numVarArray(IloColumnArray cols, double[] lb, double[] ub) throws IloException
See IloMPModeler.numVarArray(IloColumnArray cols, double[] lb, double[] ub)
numVarArray in interface IloMPModelerIloExceptioncols - IloColumnArray object defining where to
install the new variables.lb - The lower bounds of the new modeling variables.
Variable i is constructed with a
lower bound of lb[i].ub - The upper bounds of the new modeling variables.
Variable i is constructed with an
upper bound of ub[i].public IloNumVar[] numVarArray(IloColumnArray cols, double lb, double ub, java.lang.String[] name) throws IloException
See IloMPModeler.numVarArray(IloColumnArray cols, double lb, double ub, String[] name)
numVarArray in interface IloMPModelerIloExceptioncols - An IloColumnArray object defining where
to install the new variables.lb - The lower bounds of the new modeling variables.
Variable i is assigned lower bound
lb[i].ub - The upper bounds of the new modeling variables.
Variable i is assigned upper bound
ub[i].name - The names of the new modeling variables. Variable
i is assigned name[i].public IloNumVar[] numVarArray(IloColumnArray cols, double[] lb, double[] ub, java.lang.String[] name) throws IloException
See IloMPModeler.numVarArray(IloColumnArray cols, double[] lb, double[] ub, String[] name)
numVarArray in interface IloMPModelerIloExceptioncols - An IloColumnArray object defining
where to install the new variables.lb - The lower bounds of the new modeling variables.
Variable i is constructed with a
lower bound of lb[i].ub - The upper bounds of the new modeling variables.
Variable i is constructed with an
upper bound of ub[i].name - The names of the new modeling variables. Variable
i is assigned name[i].public IloIntVar intVar(IloColumn column, int lb, int ub) throws IloException
intVar in interface IloMPModelerIloExceptioncolumn - The column object defining where to install the new
variable.lb - The lower bound of the new modeling variable.ub - The upper bound of the new modeling variable.public IloIntVar intVar(IloColumn column, int lb, int ub, java.lang.String name) throws IloException
See IloMPModeler.intVar(IloColumn column, int lb, int ub, String name)
intVar in interface IloMPModelerIloExceptioncolumn - The column object defining where to install the new
variable.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.public IloIntVar[] intVarArray(IloColumnArray cols, int lb, int ub, java.lang.String[] name) throws IloException
See IloMPModeler.intVarArray(IloColumnArray cols, int lb, int ub, String[] name)
intVarArray in interface IloMPModelerIloExceptioncols - An IloColumnArray object defining where
to install the new variables.lb - The lower bound of the new modeling variables.ub - The upper bound of the new modeling variables.name - The names of the new modeling variables. Variable
i is assigned name[i].public IloIntVar[] intVarArray(IloColumnArray cols, int[] lb, int[] ub, java.lang.String[] name) throws IloException
See IloMPModeler.intVarArray(IloColumnArray cols, int[] lb, int[] ub, String[] name)
intVarArray in interface IloMPModelerIloExceptioncols - An IloColumnArray object defining where
to install the new variables.lb - The lower bounds of the new modeling variables.
Variable i is constructed with a
lower bound of lb[i].ub - The upper bounds of the new modeling variable.
Variable i is constructed with an
upper bound of ub[i].name - The names of the new modeling variables. Variable
i is assigned name[i].public IloIntVar[] intVarArray(IloColumnArray cols, int lb, int ub) throws IloException
See IloMPModeler.intVarArray(IloColumnArray cols, int lb, int ub)
intVarArray in interface IloMPModelerIloExceptioncols - An IloColumnArray object defining where
to install the new variables.lb - The lower bound of the new modeling variables.ub - The upper bound of the new modeling variables.public IloIntVar[] intVarArray(IloColumnArray cols, int[] lb, int[] ub) throws IloException
See IloMPModeler.intVarArray(IloColumnArray cols, int[] lb, int[] ub)
intVarArray in interface IloMPModelerIloExceptioncols - An IloColumnArray object defining where
to install the new variables.lb - The lower bounds of the new modeling variables.
Variable i is constructed with a
lower bound of lb[i].ub - The upper bounds of the new modeling variables.
Variable i is constructed with a
upper bound of ub[i].public IloIntVar boolVar(IloColumn column, java.lang.String name) throws IloException
boolVar in interface IloMPModelerIloExceptioncolumn - The column object defining where to install the new
variable.name - The name of the new modeling variable.public IloIntVar boolVar(IloColumn column) throws IloException
boolVar in interface IloMPModelerIloExceptioncolumn - The column object defining where to install the new
variable.public IloIntVar[] boolVarArray(IloColumnArray cols) throws IloException
boolVarArray in interface IloMPModelerIloExceptioncols - The IloColumnArray object defining
where to install the new variables.public IloIntVar[] boolVarArray(IloColumnArray cols, java.lang.String[] name) throws IloException
See IloMPModeler.boolVarArray(IloColumnArray cols, String[] name)
boolVarArray in interface IloMPModelerIloExceptioncols - The IloColumnArray object defining
where to install the new variables.name - The names of the new modeling variables. Variable
i is assigned name[i].public IloNumExpr piecewiseLinear(IloNumExpr expr, double[] points, double[] slopes, double a, double fa) throws IloException
See IloMPModeler.piecewiseLinear(IloNumExpr, double[], double[], double, double)
piecewiseLinear in interface IloMPModelerIloExceptionexpr - An expression specifying where to evaluate the
piecewise linear function.points - An array of breakpoints for the piecewise linear
function.slopes - An array of slopes for the piecewise linear function.a - First coordinate of the anchor point of the piecewise
linear function.fa - Second coordinate of the anchor point of the
piecewise linear function.expr.public IloNumExpr piecewiseLinear(IloNumExpr expr, double[] points, int startPoints, int num, double[] slopes, int startSlopes, double a, double fa) throws IloException
See IloMPModeler.piecewiseLinear(IloNumExpr, double[], int, int, double[], int, double, double)
piecewiseLinear in interface IloMPModelerIloExceptionexpr - An expression indicating where to evaluate the
piecewise linear function.points - An array containing breakpoints that define the
piecewise linear function.startPoints - An integer indicating the first element in array
points to use for the definition
of the breakpoints of the piecewise linear function.num - The number of breakpoints to use from the array
points. Thus num+1 elements
of array slopes are used.slopes - An array containing the slopes that define the
piecewise linear function.startSlopes - The first element in array slopes to use
for the definition of the slopes of the piecewise
linear function.a - The first coordinate of the anchor point of the
piecewise linear function.fa - The second coordinate of the anchor point of the
piecewise linear function.expr.public IloNumExpr piecewiseLinear(IloNumExpr expr, double firstSlope, double[] points, double[] values, double lastSlope) throws IloException
See IloMPModeler.piecewiseLinear(IloNumExpr, double, double[], double[], double)
piecewiseLinear in interface IloMPModelerIloExceptionexpr - An expression indicating where to evaluate
the piecewise linear function.firstSlope - Specifies the slope of the first segment
of the piecewise linear function.points - Array specifying the x-coordinate of each breakpoint.values - Array specifying the corresponding y-coordinates of the
breakpoints in the piecewise linear function.lastSlope - Specifies the slope of the last segment of the
piecewise linear function.public IloNumExpr piecewiseLinear(IloNumExpr expr, double firstSlope, double[] points, int startPoints, int num, double[] values, int startSlopes, double lastSlope) throws IloException
See IloMPModeler.piecewiseLinear(IloNumExpr, double, double[], int, int, double[], int, double)
piecewiseLinear in interface IloMPModelerIloExceptionfirstSlope - Specifies the slope of the first segment of the
PWL function.points - An array of the x-coordinates of the breakpoints
of the PWL function.startPoints - Specifies the index in the array of
x-coordinates where the relevant breakpoints
begin and in the array of slopes where the
relevant slopes begin.num - Number of indices to consider in the arrays of
x-coordinates of breakpoints and slopes of segments.values - Specifies the slopes of the segments.startSlopes - Specifies the index of the slope to begin.lastSlope - Specifies the slope of the last segment of
the PWL function.public IloNumExpr abs(IloNumExpr expr) throws IloException
expr.abs in interface IloMPModelerIloExceptionpublic IloIntExpr abs(IloIntExpr expr) throws IloException
expr.abs in interface IloModelerIloExceptionpublic IloNumExpr max(IloNumExpr expr1, IloNumExpr expr2) throws IloException
max in interface IloModelerIloExceptionpublic IloNumExpr max(IloNumExpr expr1, double expr2) throws IloException
max in interface IloModelerIloExceptionpublic IloNumExpr max(double expr2, IloNumExpr expr1) throws IloException
max in interface IloModelerIloExceptionpublic IloNumExpr max(IloNumExpr[] exprs) throws IloException
max in interface IloModelerIloExceptionexprs - The array of expressions.public IloIntExpr max(IloIntExpr expr1, IloIntExpr expr2) throws IloException
max in interface IloModelerIloExceptionpublic IloIntExpr max(IloIntExpr expr1, int expr2) throws IloException
max in interface IloModelerIloExceptionpublic IloIntExpr max(int expr1, IloIntExpr expr2) throws IloException
max in interface IloModelerIloExceptionpublic IloIntExpr max(IloIntExpr[] exprs) throws IloException
max in interface IloModelerIloExceptionexprs - the array of expressionspublic IloNumExpr min(IloNumExpr expr1, IloNumExpr expr2) throws IloException
min in interface IloModelerIloExceptionpublic IloNumExpr min(IloNumExpr expr1, double expr2) throws IloException
min in interface IloModelerIloExceptionpublic IloNumExpr min(double expr2, IloNumExpr expr1) throws IloException
min in interface IloModelerIloExceptionpublic IloNumExpr min(IloNumExpr[] exprs) throws IloException
min in interface IloModelerIloExceptionpublic IloIntExpr min(IloIntExpr expr1, IloIntExpr expr2) throws IloException
min in interface IloModelerIloExceptionpublic IloIntExpr min(IloIntExpr expr1, int expr2) throws IloException
min in interface IloModelerIloExceptionpublic IloIntExpr min(int expr1, IloIntExpr expr2) throws IloException
min in interface IloModelerIloExceptionpublic IloIntExpr min(IloIntExpr[] exprs) throws IloException
min in interface IloModelerIloExceptionpublic void addToExpr(IloObjective obj, IloNumExpr expr) throws IloException
addToExpr in interface IloMPModelerIloExceptionobj - The objective to modify.expr - The new expression to add.public void setLinearCoef(IloObjective obj, double val, IloNumVar var) throws IloException
See IloMPModeler.setLinearCoef(IloObjective, double, IloNumVar)
setLinearCoef in interface IloMPModelerIloExceptionobj - The objective to modify.val - The coefficient to set.var - The variable for which to set the coefficient.public void setLinearCoef(IloObjective obj, IloNumVar var, double val) throws IloException
See IloMPModeler.setLinearCoef(IloObjective, IloNumVar, double)
setLinearCoef in interface IloMPModelerIloExceptionobj - The objective to modify.var - The variable for which to set the coefficient.val - The coefficient to set.public void setLinearCoefs(IloObjective obj, double[] val, IloNumVar[] var) throws IloException
See IloMPModeler.setLinearCoefs(IloObjective, double[], IloNumVar[])
setLinearCoefs in interface IloMPModelerIloExceptionobj - The objective to modify.val - The array of linear coefficient values. The linear
coefficient of variable var[i] is set
to val[i].var - The array of variables for which to set linear
coefficients. A variable may only appear once in this
array.public void setLinearCoefs(IloObjective obj, IloNumVar[] var, double[] val) throws IloException
See IloMPModeler.setLinearCoefs(IloObjective, IloNumVar[], double[])
setLinearCoefs in interface IloMPModelerIloExceptionobj - The objective to modify.var - The array of variables for which to set linear
coefficients. A variable may only appear once in this
array.val - The array of linear coefficient values. The linear
coefficient of variable var[i] is set
to val[i].public void setLinearCoefs(IloObjective obj, double[] val, IloNumVar[] var, int start, int num) throws IloException
See IloMPModeler.setLinearCoefs(IloObjective, double[], IloNumVar[], int, int)
setLinearCoefs in interface IloMPModelerIloExceptionobj - The objective to modify.val - The array containing linear coefficient values. The
linear coefficient of variable var[i] is
set to val[i].var - The array containing the variables for which to set
linear coefficients. A variable may only appear once
in this array.start - The first element in val and
var to use for setting coefficients.num - The number of consecutive elements in val
and var to use for setting coefficients.public void setLinearCoefs(IloObjective obj, IloNumVar[] var, double[] val, int start, int num) throws IloException
See IloMPModeler.setLinearCoefs(IloObjective, IloNumVar[], double[], int, int)
setLinearCoefs in interface IloMPModelerIloExceptionobj - The objective to modify.var - An array containing the variables for which to set
linear coefficients. A variable may only appear once
in this array.val - An array containing linear coefficient values. The
linear coefficient of variable var[i] is
set to val[i].start - The first element in val and
var to use for setting coefficients.num - The number of consecutive elements in val
and var to use for setting coefficients.public IloSemiContVar semiContVar(double lb, double ub, IloNumVarType type, java.lang.String name) throws IloException
The semi-continuous lower bound (sclb) must be greater than or equal to 0 (zero). An attempt to use a negative value for the semi-continuous lower bound (sclb) will result in that bound being treated as 0 (zero).
See IloMPModeler.semiContVar(double, double, IloNumVarType, String)
semiContVar in interface IloMPModelerIloExceptionlb - The semi-continuous lower bound of the new modeling
variableub - The upper bound of the new modeling variable.type - The type of the new modeling variable.name - The name of the new modeling variable.public IloSemiContVar semiContVar(double lb, double ub, IloNumVarType type) throws IloException
The semi-continuous lower bound (sclb) must be greater than or equal to 0 (zero). An attempt to use a negative value for the semi-continuous lower bound (sclb) will result in that bound being treated as 0 (zero).
semiContVar in interface IloMPModelerIloExceptionlb - The semi-continuous lower bound of the new modeling
variableub - The upper bound of the new modeling variable.type - The type of the new modeling variable.public IloSemiContVar semiContVar(IloColumn column, double lb, double ub, IloNumVarType type, java.lang.String name) throws IloException
The semi-continuous lower bound (sclb) must be greater than or equal to 0 (zero). An attempt to use a negative value for the semi-continuous lower bound (sclb) will result in that bound being treated as 0 (zero).
See IloMPModeler.semiContVar(IloColumn, double, double, IloNumVarType, String)
semiContVar in interface IloMPModelerIloExceptioncolumn - The column object defining where to install the new
variable.lb - The semi-continuous lower bound of the new modeling
variable.ub - The upper bound of the new modeling variable.type - The type of the new modeling variable.name - The name of the new modeling variable.public IloSemiContVar semiContVar(IloColumn column, double lb, double ub, IloNumVarType type) throws IloException
The semi-continuous lower bound (sclb) must be greater than or equal to 0 (zero). An attempt to use a negative value for the semi-continuous lower bound (sclb) will result in that bound being treated as 0 (zero).
See IloMPModeler.semiContVar(IloColumn, double, double, IloNumVarType)
semiContVar in interface IloMPModelerIloExceptioncolumn - The column object defining where to install the new
variable.lb - The semi-continuous lower bound of the new modeling
variable.ub - The upper bound of the new modeling variable.type - The type of the new modeling variable.public IloSemiContVar[] semiContVarArray(int n, double lb, double ub, IloNumVarType type) throws IloException
The semi-continuous lower bound (sclb) must be greater than or equal to 0 (zero). An attempt to use a negative value for the semi-continuous lower bound (sclb) will result in that bound being treated as 0 (zero).
See IloMPModeler.semiContVarArray(int, double, double, IloNumVarType)
semiContVarArray in interface IloMPModelerIloExceptionn - The number of new semi-continuous variables to create.lb - The semi-continuous lower bound of the new modeling
variables.ub - The upper bound of the new modeling variables.type - The type of the new modeling variables.public IloSemiContVar[] semiContVarArray(int n, double[] lb, double[] ub, IloNumVarType[] type) throws IloException
The semi-continuous lower bound (sclb) must be greater than or equal to 0 (zero). An attempt to use a negative value for the semi-continuous lower bound (sclb) will result in that bound being treated as 0 (zero).
See IloMPModeler.semiContVarArray(int, double[], double[], IloNumVarType[])
semiContVarArray in interface IloMPModelerIloExceptionn - The number of new semi-continuous variables to create.lb - The semi-continuous lower bounds of the new modeling
variables. Variable i is constructed
with a semi-continuous lower bound of
sclb[i].ub - The upper bounds of the new modeling variables.
Variable i is constructed with an
upper bound of ub[i].type - The types of the new modeling variables. Variable
i is constructed with a type of
type[i].public IloSemiContVar[] semiContVarArray(int n, double lb, double ub, IloNumVarType type, java.lang.String[] name) throws IloException
The semi-continuous lower bound (sclb) must be greater than or equal to 0 (zero). An attempt to use a negative value for the semi-continuous lower bound (sclb) will result in that bound being treated as 0 (zero).
See IloMPModeler.semiContVarArray(int, double, double, IloNumVarType, String[])
semiContVarArray in interface IloMPModelerIloExceptionn - The number of new semi-continuous variables to create.lb - The semi-continuous lower bound of the new modeling
variables.ub - The upper bound of the new modeling variables.type - The type of the new modeling variables.name - The names of the new modeling variables. Variable
i is assigned name[i].public IloSemiContVar[] semiContVarArray(int n, double[] lb, double[] ub, IloNumVarType[] type, java.lang.String[] name) throws IloException
The semi-continuous lower bound (sclb) must be greater than or equal to 0 (zero). An attempt to use a negative value for the semi-continuous lower bound (sclb) will result in that bound being treated as 0 (zero).
See IloMPModeler.semiContVarArray(int, double[], double[], IloNumVarType[], String[])
semiContVarArray in interface IloMPModelerIloExceptionn - The number of new semi-continuous variables to create.lb - The semi-continuous lower bounds of the new modeling
variables.
Variable i is constructed with a
semi-continuous lower bound of sclb[i].ub - The upper bounds of the new modeling variables.
Variable i is constructed with an
upper bound of ub[i].type - The types of the new modeling variables. Variable
i is constructed with a type of
type[i].name - The names of the new modeling variables. Variable
i is assigned name[i].public IloSemiContVar[] semiContVarArray(IloColumnArray cols, double lb, double ub, IloNumVarType type) throws IloException
The semi-continuous lower bound (sclb) must be greater than or equal to 0 (zero). An attempt to use a negative value for the semi-continuous lower bound (sclb) will result in that bound being treated as 0 (zero).
See IloMPModeler.semiContVarArray(IloColumnArray, double, double, IloNumVarType)
semiContVarArray in interface IloMPModelerIloExceptioncols - An IloColumnArray object defining
where to install the new variables.lb - The semi-continuous lower bound of the new modeling
variables.ub - The upper bound of the new modeling variables.type - The type of the new modeling variables.public IloSemiContVar[] semiContVarArray(IloColumnArray cols, double[] lb, double[] ub, IloNumVarType[] type) throws IloException
The semi-continuous lower bound (sclb) must be greater than or equal to 0 (zero). An attempt to use a negative value for the semi-continuous lower bound (sclb) will result in that bound being treated as 0 (zero).
See IloMPModeler.semiContVarArray(IloColumnArray, double[], double[], IloNumVarType[])
semiContVarArray in interface IloMPModelerIloExceptioncols - An IloColumnArray object defining where
to install the new variables.lb - The semi-continuous lower bounds of the new modeling
variables. Variable i is constructed
with a semi-continuous lower bound of
sclb[i].ub - The upper bounds of the new modeling variables.
Variable i is constructed with an
upper bound of ub[i].type - The types of the new modeling variables. Variable
i is constructed with a type of
type[i].public IloSemiContVar[] semiContVarArray(IloColumnArray cols, double lb, double ub, IloNumVarType type, java.lang.String[] name) throws IloException
The semi-continuous lower bound (sclb) must be greater than or equal to 0 (zero). An attempt to use a negative value for the semi-continuous lower bound (sclb) will result in that bound being treated as 0 (zero).
See IloMPModeler.semiContVarArray(IloColumnArray, double, double, IloNumVarType, String[])
semiContVarArray in interface IloMPModelerIloExceptioncols - An IloColumnArray object defining
where to install the new variables.lb - The semi-continuous lower bound of the new modeling
variables.ub - The upper bound of the new modeling variables.type - The type of the new modeling variables.name - The names of the new modeling variables. Variable
i is assigned name[i].public IloSemiContVar[] semiContVarArray(IloColumnArray cols, double[] lb, double[] ub, IloNumVarType[] type, java.lang.String[] name) throws IloException
The semi-continuous lower bound (sclb) must be greater than or equal to 0 (zero). An attempt to use a negative value for the semi-continuous lower bound (sclb) will result in that bound being treated as 0 (zero).
semiContVarArray in interface IloMPModelerIloExceptioncols - An IloColumnArray object defining
where to install the new variables.lb - The semi-continuous lower bounds of the new modeling
variables. Variable i is constructed
with a semi-continuous lower bound of
sclb[i].ub - The upper bounds of the new modeling variables.
Variable i is constructed with an
upper bound of ub[i].type - The types of the new modeling variables. Variable
i is constructed with a type of
type[i].name - The names of the new modeling variables. Variable
i is assigned name[i].public IloObjective minimize() throws IloException
minimize in interface IloMPModelerIloExceptionpublic IloObjective maximize() throws IloException
maximize in interface IloMPModelerIloExceptionpublic IloObjective minimize(java.lang.String name) throws IloException
minimize in interface IloMPModelerIloExceptionname - The name assigned to the new objective.public IloObjective maximize(java.lang.String name) throws IloException
maximize in interface IloMPModelerIloExceptionname - The name assigned to the new objective.public IloObjective objective(IloObjectiveSense sense) throws IloException
objective in interface IloMPModelerIloExceptionsense - The optimization sense of the new objective.public IloObjective objective(IloObjectiveSense sense, java.lang.String name) throws IloException
objective in interface IloMPModelerIloExceptionsense - The optimization sense of the new objective.name - The name assigned to the new objective.public IloObjective addMinimize(IloNumExpr expr, java.lang.String name) throws IloException
See IloModeler.addMinimize(IloNumExpr, String)
Do not use this method in a callback to modify the model currently being optimized.
addMinimize in interface IloModelerIloExceptionexpr - Expression to minimize.name - Name assigned to the new IloObjective object.IloObjective object representing
the objective to minimize expr.public IloObjective addMaximize(IloNumExpr expr, java.lang.String name) throws IloException
See IloModeler.addMaximize(IloNumExpr, String)
Do not use this method in a callback to modify the model currently being optimized.
addMaximize in interface IloModelerIloExceptionexpr - Expression to maximize.name - Name assigned to the new IloObjective object.IloObjective object representing the
objective to maximize expr.public IloObjective addMinimize() throws IloException
See IloMPModeler.addMinimize()
Do not use this method in a callback to modify the model currently being optimized.
addMinimize in interface IloMPModelerIloExceptionpublic IloObjective addMaximize() throws IloException
See IloMPModeler.addMaximize()
Do not use this method in a callback to modify the model currently being optimized.
addMaximize in interface IloMPModelerIloExceptionpublic IloObjective addObjective(IloObjectiveSense sense) throws IloException
See IloMPModeler.addObjective(IloObjectiveSense)
Do not use this method in a callback to modify the model currently being optimized.
addObjective in interface IloMPModelerIloExceptionsense - The optimization sense of the new objective.public IloObjective addMinimize(java.lang.String name) throws IloException
See IloMPModeler.addMinimize(String)
Do not use this method in a callback to modify the model currently being optimized.
addMinimize in interface IloMPModelerIloExceptionname - The name assigned to the new objective.public IloObjective addMaximize(java.lang.String name) throws IloException
See IloMPModeler.addMaximize(String)
Do not use this method in a callback to modify the model currently being optimized.
addMaximize in interface IloMPModelerIloExceptionname - The name assigned to the new objective.public IloObjective addObjective(IloObjectiveSense sense, java.lang.String name) throws IloException
See IloMPModeler.addObjective(IloObjectiveSense, String)
Do not use this method in a callback to modify the model currently being optimized.
addObjective in interface IloMPModelerIloExceptionsense - The optimization sense of the new objective.name - The name assigned to the new objective.public IloConversion conversion(IloNumVar var, IloNumVarType type, java.lang.String name) throws IloException
See IloMPModeler.conversion(IloNumVar var, IloNumVarType type, String name)
conversion in interface IloMPModelerIloExceptionvar - The variable the type of which is to be converted.type - The converted type for variable var.name - The name of the new IloConversion object.IloConversion object.public IloConversion conversion(IloNumVar var, IloNumVarType type) throws IloException
See IloMPModeler.conversion(IloNumVar var, IloNumVarType type)
conversion in interface IloMPModelerIloExceptionvar - The variable the type of which is to be converted.type - The converted type for variable var.IloConversion object.public IloConversion conversion(IloNumVar[] ilovar, IloNumVarType type, java.lang.String name) throws IloException
See IloMPModeler.conversion(IloNumVar[] ilovar, IloNumVarType type, String name)
conversion in interface IloMPModelerIloExceptionilovar - The array of variables the types of which are to be
converted.type - The converted type for all variables in var.name - The name of the new IloConversion object.IloConversion object.public IloConversion conversion(IloNumVar[] ilovar, IloNumVarType type) throws IloException
See IloMPModeler.conversion(IloNumVar[] ilovar, IloNumVarType type)
conversion in interface IloMPModelerIloExceptionilovar - The array of variables the types of which are to be
converted.type - The converted type for all variables in var.IloConversion object.public IloConversion conversion(IloNumVar[] ilovar, IloNumVarType[] type, java.lang.String name) throws IloException
See IloMPModeler.conversion(IloNumVar[] ilovar, IloNumVarType[] type, String name)
conversion in interface IloMPModelerIloExceptionilovar - The array of variables the types of which are to be
converted.type - An array of variable types containing the types to which
the variables are converted. The type of variable
var[i] is converted to
type[i].name - The name of the new IloConversion object.IloConversion object.public IloConversion conversion(IloNumVar[] ilovar, IloNumVarType[] type) throws IloException
See IloMPModeler.conversion(IloNumVar[] ilovar, IloNumVarType[] type)
conversion in interface IloMPModelerIloExceptionilovar - The array of variables the types of which are to be
converted.type - An array of variable types containing the types to which
the variables are converted. The type of variable
var[i] is converted to type[i].IloConversion object.public IloLPMatrix addLPMatrix(java.lang.String name) throws IloException
See IloMPModeler.addLPMatrix(String name)
Do not use this method in a callback to modify the model currently being optimized.
addLPMatrix in interface IloMPModelerIloExceptionname - The name for the new IloLPMatrix object.IloLPMatrix object.public IloLPMatrix addLPMatrix() throws IloException
See IloMPModeler.addLPMatrix()
Do not use this method in a callback to modify the model currently being optimized.
addLPMatrix in interface IloMPModelerIloExceptionIloLPMatrix object.public IloLPMatrix LPMatrix(java.lang.String name) throws IloException
LPMatrix in interface IloMPModelerIloExceptionname - The name for the new IloLPMatrix object.IloLPMatrix object.public IloLPMatrix LPMatrix() throws IloException
LPMatrix in interface IloMPModelerIloExceptionIloLPMatrix object.public IloRange addRange(double lb, IloNumExpr expr, double ub, java.lang.String name) throws IloException
See IloModeler.addRange(double lb, IloNumExpr expr, double ub, String name)
Do not use this method in a callback to modify the model currently being optimized.
addRange in interface IloModelerIloExceptionlb - 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.public IloRange addRange(double lb, IloNumExpr expr, double ub) throws IloException
See IloModeler.addRange(double lb, IloNumExpr expr, double ub)
Do not use this method in a callback to modify the model currently being optimized.
addRange in interface IloModelerIloExceptionlb - 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.public IloRange addRange(double lb, double ub, java.lang.String name) throws IloException
See IloMPModeler.addRange(double lb, double ub, String name)
Do not use this method in a callback to modify the model currently being optimized.
addRange in interface IloMPModelerIloExceptionlb - The lower bound of the new IloRange constraint.ub - The upper bound of the new IloRange constraint.name - The name assigned to the new IloRange constraint.IloRange object initialized to represent
the constraint lb <= 0 <= ub.public IloRange addRange(double lb, double ub) throws IloException
See IloMPModeler.addRange(double lb, double ub)
Do not use this method in a callback to modify the model currently being optimized.
addRange in interface IloMPModelerIloExceptionlb - The lower bound of the new IloRange constraint.ub - The upper bound of the new IloRange constraint.IloRange object initialized to represent
the constraint lb <= 0 <= ub.public IloRange addEq(IloNumExpr e, double v) throws IloException
The range is added to the invoking model; that is, this method modifies the current model.
See IloModeler.addEq(IloNumExpr e, double v)
Do not use this method in a callback to modify the model currently being optimized.
addEq in interface IloModelerIloExceptione - Expression of the new equality constraint.v - Upper bound of the new equality constraint.IloRange object initialized
to represent the constraint expr == rhs.public IloRange addEq(IloNumExpr e, double v, java.lang.String name) throws IloException
The range is added to the invoking model; that is, this method modifies the current model.
See IloModeler.addEq(IloNumExpr e, double v, String name)
Do not use this method in a callback to modify the model currently being optimized.
addEq in interface IloModelerIloExceptione - Expression of the new equality constraint.v - Upper bound of the new equality constraint.name - Name assigned to the new equality constraint.IloRange object initialized
to represent theconstraint expr == rhs.public IloConstraint addEq(IloNumExpr e1, IloNumExpr e2) throws IloException
The constraint is added to the invoking model; that is, this method modifies the current model.
See IloModeler.addEq(IloNumExpr e1, IloNumExpr e2)
Do not use this method in a callback to modify the model currently being optimized.
addEq in interface IloModelerIloExceptione1 - Lefthand side expression of the new equality constraint.e2 - Righthand side expression of the new equality constraint.IloConstraint object
initialized to represent
the constraint e1 == e2.public IloConstraint addEq(IloNumExpr e1, IloNumExpr e2, java.lang.String name) throws IloException
The constraint is added to the invoking model; that is, this method modifies the current model.
See IloModeler.addEq(IloNumExpr e1, IloNumExpr e2, String name)
Do not use this method in a callback to modify the model currently being optimized.
addEq in interface IloModelerIloExceptione1 - Lefthand side expression of the new equality constraint.e2 - Righthand side expression of the new equality constraint.name - Name assigned to the new IloRange constraint.IloConstraint object initialized to
represent the constraint e1 == e2.public IloRange addEq(double v, IloNumExpr e) throws IloException
The range is added to the invoking model; that is, this method modifies the current model.
See IloModeler.addEq(double v, IloNumExpr e)
Do not use this method in a callback to modify the model currently being optimized.
addEq in interface IloModelerIloExceptionv - Value of the new equality constraint.e - Expression of the new equality constraint.IloRange object
initialized to represent the
constraint val == expr.public IloRange addEq(double v, IloNumExpr e, java.lang.String name) throws IloException
The range is added to the invoking model; that is, this method modifies the current model.
See IloModeler.addEq(double v, IloNumExpr e, String name)
Do not use this method in a callback to modify the model currently being optimized.
addEq in interface IloModelerIloExceptionv - Value of the new equality constraint.e - Expression of the new equality constraint.name - Name assigned to the new equality constraint.IloRange object
initialized to represent the
constraint val == expr.public IloRange addGe(IloNumExpr e, double v) throws IloException
The range is added to the invoking model; that is, this method modifies the current model.
See IloModeler.addGe(IloNumExpr e, double v)
Do not use this method in a callback to modify the model currently being optimized.
addGe in interface IloModelerIloExceptione - Expression of the new greater-than-or-equal-to constraint.v - Upper bound of the new greater-than-or-equal-to constraint.IloRange object initialized to represent
the constraint expr >= rhs.public IloRange addGe(IloNumExpr e, double v, java.lang.String name) throws IloException
The range is added to the invoking model; that is, this method modifies the current model.
See IloModeler.addGe(IloNumExpr e, double v, String name)
Do not use this method in a callback to modify the model currently being optimized.
addGe in interface IloModelerIloExceptione - Expression of the new greater-than-or-equal-to constraint.v - Upper bound of the new greater-than-or-equal-to constraint.name - Name of the new greater-than-or-equal-to constraint.IloRange object initialized to represent
the constraint expr >= rhs.public IloConstraint addGe(IloNumExpr e1, IloNumExpr e2) throws IloException
The constraint is added to the invoking model; that is, this method modifies the current model.
See IloModeler.addGe(IloNumExpr e1, IloNumExpr e2)
Do not use this method in a callback to modify the model currently being optimized.
addGe in interface IloModelerIloExceptione1 - Lefthand side expression of the new
greater-than-or-equal-to constraint.e2 - Righthand side expression of the new
greater-than-or-equal-to constraint.IloConstraint object
initialized to represent
the constraint e1 >= e2.public IloConstraint addGe(IloNumExpr e1, IloNumExpr e2, java.lang.String name) throws IloException
The constraint is added to the invoking model; that is, this method modifies the current model.
See IloModeler.addGe(IloNumExpr e1, IloNumExpr e2, String name)
Do not use this method in a callback to modify the model currently being optimized.
addGe in interface IloModelerIloExceptione1 - Lefthand side expression of the new
greater-than-or-equal-to constraint.e2 - Righthand side expression of the new
greater-than-or-equal-to constraint.name - Name assigned to the new constraint.IloConstraint object
initialized to represent
the constraint e1 >= e2.public IloRange addGe(double v, IloNumExpr e) throws IloException
The constraint is added to the invoking model; that is, this method modifies the current model.
See IloModeler.addGe(double v, IloNumExpr e)
Do not use this method in a callback to modify the model currently being optimized.
addGe in interface IloModelerIloExceptionv - Value of the new greater-than-or-equal-to constraint.e - Expression of the new greater-than-or-equal-to
constraint.IloRange object initialized to
represent the constraint val >= expr.public IloRange addGe(double v, IloNumExpr e, java.lang.String name) throws IloException
The constraint is added to the invoking model; that is, this method modifies the current model.
See IloModeler.addGe(double v, IloNumExpr e, String name)
Do not use this method in a callback to modify the model currently being optimized.
addGe in interface IloModelerIloExceptionv - Value of the new greater-than-or-equal-to constraint.e - Expression of the new greater-than-or-equal-to constraint.name - Name of the new greater-than-or-equal-to constraint.IloRange object initialized to
represent the constraint val >= expr.public IloRange addLe(IloNumExpr e, double v) throws IloException
The range is added to the invoking model; that is, this method modifies the current model.
See IloModeler.addLe(IloNumExpr e, double v)
Do not use this method in a callback to modify the model currently being optimized.
addLe in interface IloModelerIloExceptione - Expression of the new less-than-or-equal-to constraint.v - Upper bound of the new less-than-or-equal-to constraint.IloRange object initialized to represent
the constraint expr <= rhs.public IloRange addLe(IloNumExpr e, double v, java.lang.String name) throws IloException
The range is added to the invoking model; that is, this method modifies the current model.
See IloModeler.addLe(IloNumExpr e, double v, String name)
Do not use this method in a callback to modify the model currently being optimized.
addLe in interface IloModelerIloExceptione - Expression of the new less-than-or-equal-to constraint.v - Upper bound of the new less-than-or-equal-to constraint.name - Name assigned to the new less-than-or-equal-to constraint.IloRange object initialized to represent
the constraint expr <= rhs.public IloConstraint addLe(IloNumExpr e1, IloNumExpr e2) throws IloException
The constraint is added to the invoking model; that is, this method modifies the current model.
See IloModeler.addLe(IloNumExpr e1, IloNumExpr e2)
Do not use this method in a callback to modify the model currently being optimized.
addLe in interface IloModelerIloExceptione1 - Lefthand side expression of the new
less-than-or-equal-to constraint.e2 - Righthand side expression of the new
less-than-or-equal-to constraint.IloConstraint object initialized to represent
the constraint e1 <= e2.public IloConstraint addLe(IloNumExpr e1, IloNumExpr e2, java.lang.String name) throws IloException
The constraint is added to the invoking model; that is, this method modifies the current model.
See IloModeler.addLe(IloNumExpr e1, IloNumExpr e2, String name)
Do not use this method in a callback to modify the model currently being optimized.
addLe in interface IloModelerIloExceptione1 - Lefthand side expression of the new
less-than-or-equal-to constraint.e2 - Righthand side expression of the new
less-than-or-equal-to constraint.name - Name assigned to the new constraint.IloConstraint object
initialized to represent the
constraint e1 <= e2.public IloRange addLe(double v, IloNumExpr e) throws IloException
The range is added to the invoking model; that is, this method modifies the current model.
See IloModeler.addLe(double v, IloNumExpr e)
Do not use this method in a callback to modify the model currently being optimized.
addLe in interface IloModelerIloExceptionv - Value of the new less-than-or-equal-to constraint.e - Expression of the new less-than-or-equal-to constraint.IloRange object initialized to
represent the constraint val <= exp.public IloRange addLe(double v, IloNumExpr e, java.lang.String name) throws IloException
The range is added to the invoking model; that is, this method modifies the current model.
See IloModeler.addLe(double v, IloNumExpr e, String name)
Do not use this method in a callback to modify the model currently being optimized.
addLe in interface IloModelerIloExceptionv - Value of the new less-than-or-equal-to constraint.e - Expression of the new less-than-or-equal-to constraint.name - Name assigned to the new less-than-or-equal-to constraint.IloRange object initialized to represent
the constraint val <= expr.public IloRange range(double lb, IloNumExpr expr, double ub, java.lang.String name) throws IloException
See IloModeler.range(double lb, IloNumExpr expr, double ub, String name)
range in interface IloModelerIloExceptionlb - 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.public IloRange range(double lb, IloNumExpr expr, double ub) throws IloException
range in interface IloModelerIloExceptionlb - 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.public IloRange range(double lb, double ub, java.lang.String name) throws IloException
range in interface IloMPModelerIloExceptionlb - The lower bound of the new IloRange constraint.ub - The upper bound of the new IloRange constraint.name - The name assigned to the new IloRange constraint.IloRange object initialized to represent
the constraint lb <= 0 <= ub.public IloRange range(double lb, double ub) throws IloException
range in interface IloMPModelerIloExceptionlb - The lower bound of the new IloRange constraint.ub - The upper bound of the new IloRange constraint.IloRange object initialized to represent
the constraint lb <= 0 <= ub.public IloRange eq(IloNumExpr e, double v) throws IloException
eq in interface IloModelerIloExceptione - Expression of the new equality constraint.v - Upper bound of the new equality constraint.IloRange object initialized to
represent the constraint expr == rhs.public IloRange eq(IloNumExpr e, double v, java.lang.String name) throws IloException
eq in interface IloModelerIloExceptione - Expression of the new equality constraint.v - Upper bound of the new equality constraint.name - Name assigned to the new equality constraint.IloRange object
initialized to represent the
constraint expr == rhs.public IloConstraint eq(IloNumExpr e1, IloNumExpr e2) throws IloException
eq in interface IloModelerIloExceptione1 - Lefthand side expression of the new equality constraint.e2 - Righthand side expression of the new equality constraint.IloRange
initialized to represent the constraint e1 == e2.public IloConstraint eq(IloNumExpr e1, IloNumExpr e2, java.lang.String name) throws IloException
See IloModeler.eq(IloNumExpr e1, IloNumExpr e2, String name)
eq in interface IloModelerIloExceptione1 - Lefthand side expression of the new equality constraint.e2 - Righthand side expression of the new equality constraint.name - Name assigned to the new IloRange constraint.IloRange object initialized
to represent the constraint e1 == e2.public IloRange eq(double v, IloNumExpr e) throws IloException
eq in interface IloModelerIloExceptionv - Value of the new equality constraint.e - Expression of the new equality constraint.IloRange object
initialized to represent the
constraint val == expr.public IloRange eq(double v, IloNumExpr e, java.lang.String name) throws IloException
eq in interface IloModelerIloExceptionv - Value of the new equality constraint.e - Expression of the new equality constraint.name - Name assigned to the new equality constraint.IloRange object
initialized to represent the
constraint val == expr.public IloRange ge(IloNumExpr e, double v) throws IloException
ge in interface IloModelerIloExceptione - Expression of the new greater-than-or-equal-to constraint.v - Upper bound of the new greater-than-or-equal-to constraint.IloRange object
initialized to represent the
constraint expr >= rhs.public IloRange ge(IloNumExpr e, double v, java.lang.String name) throws IloException
ge in interface IloModelerIloExceptione - Expression of the new greater-than-or-equal-to constraint.v - Upper bound of the new greater-than-or-equal-to constraint.name - Name assigned to the new greater-than-or-equal-to constraint.IloRange object
initialized to represent the
constraint expr >= rhs.public IloConstraint ge(IloNumExpr e1, IloNumExpr e2) throws IloException
ge in interface IloModelerIloExceptione1 - Lefthand side expression of the new
greater-than-or-equal-to constraint.e2 - Righthand side expression of the new
greater-than-or-equal-to constraint.IloConstraint object
initialized to represent the
constraint e1 >= e2.public IloConstraint ge(IloNumExpr e1, IloNumExpr e2, java.lang.String name) throws IloException
See IloModeler.ge(IloNumExpr e1, IloNumExpr e2, String name)
ge in interface IloModelerIloExceptione1 - Lefthand side expression of the new
greater-than-or-equal-to constraint.e2 - Righthand side expression of the new
greater-than-or-equal-to constraint.name - Name of the new greater-than-or-equal-to constraint.IloConstraint object initialized
to represent the
constraint e1 >= e2.public IloRange ge(double v, IloNumExpr e) throws IloException
ge in interface IloModelerIloExceptionv - Value of the new greater-than-or-equal-to constraint.e - Expression of the new greater-than-or-equal-to constraint.IloRange object
initialized to represent the
constraint val >= expr.public IloRange ge(double v, IloNumExpr e, java.lang.String name) throws IloException
ge in interface IloModelerIloExceptionv - Value of the new greater-than-or-equal-to constraint.e - Expression of the new greater-than-or-equal-to constraint.name - Name of the new greater-than-or-equal-to constraint.IloRange object
initialized to represent the
constraint val >= expr.public IloRange le(IloNumExpr e, double v) throws IloException
le in interface IloModelerIloExceptione - Expression of the new less-than-or-equal-to constraint.v - Upper bound of the new less-than-or-equal-to constraint.expr <= rhs.public IloRange le(IloNumExpr e, double v, java.lang.String name) throws IloException
le in interface IloModelerIloExceptione - Expression of the new less-than-or-equal-to
constraint.v - Upper bound of the new less-than-or-equal-to
constraint.name - Name assigned to the new less-than-or-equal-to
constraint.expr <= rhs.public IloConstraint le(IloNumExpr e1, IloNumExpr e2) throws IloException
le in interface IloModelerIloExceptione1 - Lefthand side expression of the new
less-than-or-equal-to constraint.e2 - Righthand side expression of the new
less-than-or-equal-to constraint.IloConstraint object
initialized to represent the
constraint e1 <= e2.public IloConstraint le(IloNumExpr e1, IloNumExpr e2, java.lang.String name) throws IloException
See IloModeler.le(IloNumExpr e1, IloNumExpr e2, String name)
le in interface IloModelerIloExceptione1 - Lefthand side expression of the new less-than-or-equal-to
constraint.e2 - Righthand side expression of the new less-than-or-equal-to
constraint.name - Name assigned to the new IloRange constraint.IloConstraint object
initialized to represent the
constraint e1 <= e2.public IloRange le(double v, IloNumExpr e) throws IloException
le in interface IloModelerIloExceptionv - Value of the new less-than-or-equal-to constraint.e - Expression of the new less-than-or-equal-to constraint.IloRange object
initialized to represent the
constraint val <= expr.public IloRange le(double v, IloNumExpr e, java.lang.String name) throws IloException
le in interface IloModelerIloExceptionv - Value of the new less-than-or-equal-to constraint.e - Expression of the new less-than-or-equal-to constraint.name - Name assigned to the new less-than-or-equal-to constraint.IloRange object
initialized to represent the
constraint val <= expr.public void addToExpr(IloRange rng, IloNumExpr expr) throws IloException
addToExpr in interface IloMPModelerIloExceptionrng - The range constraint to modify.expr - The expression to add.public void setLinearCoef(IloRange rng, double val, IloNumVar var) throws IloException
See IloMPModeler.setLinearCoef(IloRange rng, double val, IloNumVar var)
setLinearCoef in interface IloMPModelerIloExceptionrng - The range constraint to modify.val - The coefficient to set.var - The variable for which to set the coefficient.public void setLinearCoef(IloRange rng, IloNumVar var, double val) throws IloException
See IloMPModeler.setLinearCoef(IloRange rng, IloNumVar var, double val)
setLinearCoef in interface IloMPModelerIloExceptionrng - The range constraint to modify.var - The variable for which to set the coefficient.val - The coefficient to set.public void setLinearCoefs(IloRange rng, double[] val, IloNumVar[] var) throws IloException
See IloMPModeler.setLinearCoefs(IloRange rng, double[] val, IloNumVar[] var)
setLinearCoefs in interface IloMPModelerIloExceptionrng - The range constraint to modify.val - The array of linear coefficient values. The linear
coefficient of variable var[i] is set
to val[i].var - The array of variables for which to set linear coefficients.
A variable may only appear once in this array.public void setLinearCoefs(IloRange rng, IloNumVar[] var, double[] val) throws IloException
See IloMPModeler.setLinearCoefs(IloRange rng, IloNumVar[] var, double[] val)
setLinearCoefs in interface IloMPModelerIloExceptionrng - The range constraint to modify.var - The array of variables for which to set linear coefficients.
A variable may only appear once in this array.val - The array of linear coefficient values. The linear
coefficient of variable var[i] is set
to val[i].public void setLinearCoefs(IloRange rng, double[] val, IloNumVar[] var, int start, int num) throws IloException
See IloMPModeler.setLinearCoefs(IloRange rng, double[] val, IloNumVar[] var, int start, int num)
setLinearCoefs in interface IloMPModelerIloExceptionrng - The range constraint to modify.val - An array containing linear coefficient values. The linear
coefficient of variable var[i] is set to
val[i].var - An array containing the variables for which to set linear
coefficients. A variable may only appear once in this
array.start - The first element in val and var
to use for setting coefficients.num - The number of consecutive elements in val and
var to use for setting coefficients.public void setLinearCoefs(IloRange rng, IloNumVar[] var, double[] val, int start, int num) throws IloException
See IloMPModeler.setLinearCoefs(IloRange rng, IloNumVar[] var, double[] val, int start, int num)
setLinearCoefs in interface IloMPModelerIloExceptionrng - The range constraint to modify.var - An array containing the variables for which to set linear
coefficients. A variable may only appear once in this
array.val - An array containing linear coefficient values. The linear
coefficient of variable var[i] is set
to val[i].start - The first element in val and var
to use for setting coefficients.num - The number of consecutive elements in val and
var to use for setting coefficients.public void setQuadCoef(IloObjective obj, double val, IloNumVar var1, IloNumVar var2) throws IloException
var1*var2 to val
in the expression of the specified IloObjective object.setQuadCoef in interface IloMPModelerIloExceptionobj - The objective to modify.val - The coefficient to set.var1 - The first variable for which to set the coefficient.var2 - The second for which to set the coefficient.public void setQuadCoef(IloObjective obj, IloNumVar var1, IloNumVar var2, double val) throws IloException
var1*var2 to val
in the expression of the specified IloObjective object.setQuadCoef in interface IloMPModelerIloExceptionobj - The objective to modify.var1 - The first variable for which to set the coefficient.var2 - The second for which to set the coefficient.val - The coefficient to set.public IloSOS1 addSOS1(IloNumVar[] var, double[] val) throws IloException
See IloMPModeler.addSOS1(IloNumVar[] var, double[] val)
Do not use this method in a callback to modify the model currently being optimized.
addSOS1 in interface IloMPModelerIloExceptionvar - The variables in the new SOS.val - The weight values for the variables in the new SOS.IloSOS1 object.public IloSOS1 addSOS1(IloNumVar[] var, double[] val, int start, int num) throws IloException
See IloMPModeler.addSOS1(IloNumVar[] var, double[] val, int start, int num)
Do not use this method in a callback to modify the model currently being optimized.
addSOS1 in interface IloMPModelerIloExceptionvar - The array containing the variables in the new SOS.val - The array containing the weight values for the variables
in the new SOS.start - The first element in var and
val to use for the new SOS.num - The number of consecutive elements in var
and val to use for the new SOS.IloSOS1 object.public IloSOS1 addSOS1(IloNumVar[] var, double[] val, java.lang.String name) throws IloException
See IloMPModeler.addSOS1(IloNumVar[] var, double[] val, String name)
Do not use this method in a callback to modify the model currently being optimized.
addSOS1 in interface IloMPModelerIloExceptionvar - The variables in the new SOS.val - The weight values for the variables in the new SOS.name - The name of the new SOS.IloSOS1 object.public IloSOS1 addSOS1(IloNumVar[] var, double[] val, int start, int num, java.lang.String name) throws IloException
See IloMPModeler.addSOS1(IloNumVar[] var, double[] val, int start, int num, String name)
Do not use this method in a callback to modify the model currently being optimized.
addSOS1 in interface IloMPModelerIloExceptionvar - An array containing the variables in the new SOS.val - An array containing the weight values for the variables
in the new SOS.start - The first element in var and
val to use for the new SOS.num - The number of consecutive elements in var
and val to use for the new SOS.name - The name of the new SOS.IloSOS1 object.public IloSOS1 SOS1(IloNumVar[] var, double[] val) throws IloException
SOS1 in interface IloMPModelerIloExceptionvar - The variables in the new SOS.val - The weight values for the variables in the new SOS.IloSOS1 object.public IloSOS1 SOS1(IloNumVar[] var, double[] val, int start, int num) throws IloException
See IloMPModeler.SOS1(IloNumVar[] var, double[] val, int start, int num)
SOS1 in interface IloMPModelerIloExceptionvar - An array containing the variables in the new SOS.val - An array containing the weight values for the variables
in the new SOS.start - The first element in var and
val to use for the new SOS.num - The number of consecutive elements in var
and val to use for the new SOS.IloSOS1 object.public IloSOS1 SOS1(IloNumVar[] var, double[] val, java.lang.String name) throws IloException
See IloMPModeler.SOS1(IloNumVar[] var, double[] val, String name)
SOS1 in interface IloMPModelerIloExceptionvar - The variables in the new SOS.val - The weight values for the variables in the new SOS.name - The name of the new SOS.IloSOS1 object.public IloSOS1 SOS1(IloNumVar[] var, double[] val, int start, int num, java.lang.String name) throws IloException
See IloMPModeler.SOS1(IloNumVar[] var, double[] val, int start, int num, String name)
SOS1 in interface IloMPModelerIloExceptionvar - An array containing the variables in the new SOS.val - An array containing the weight values for the variables
in the new SOS.start - The first element in var and
val to use for the new SOS.num - The number of consecutive elements in var
and val to use for the new SOS.name - The name of the new SOS.IloSOS1 object.public IloSOS2 addSOS2(IloNumVar[] var, double[] val) throws IloException
See IloMPModeler.addSOS2(IloNumVar[] var, double[] val)
Do not use this method in a callback to modify the model currently being optimized.
addSOS2 in interface IloMPModelerIloExceptionvar - The variables in the new SOS.val - The weight values for the variables in the new SOS.IloSOS2 object.public IloSOS2 addSOS2(IloNumVar[] var, double[] val, int start, int num) throws IloException
See IloMPModeler.addSOS2(IloNumVar[] var, double[] val, int start, int num)
Do not use this method in a callback to modify the model currently being optimized.
addSOS2 in interface IloMPModelerIloExceptionvar - An array containing the variables in the new SOS.val - An array containing the weight values for the variables
in the new SOS.start - The first element in var and
val to use for the new SOS.num - The number of consecutive elements in var
and val to use for the new SOS.IloSOS2 object.public IloSOS2 addSOS2(IloNumVar[] var, double[] val, java.lang.String name) throws IloException
See IloMPModeler.addSOS2(IloNumVar[] var, double[] val, String name)
Do not use this method in a callback to modify the model currently being optimized.
addSOS2 in interface IloMPModelerIloExceptionvar - The variables in the new SOS.val - The weight values for the variables in the new SOS.name - The name of the new SOS.IloSOS2 object.public IloSOS2 addSOS2(IloNumVar[] var, double[] val, int start, int num, java.lang.String name) throws IloException
See IloMPModeler.addSOS2(IloNumVar[] var, double[] val, int start, int num, String name)
Do not use this method in a callback to modify the model currently being optimized.
addSOS2 in interface IloMPModelerIloExceptionvar - An array containing the variables in the new SOS.val - An array containing the weight values for the variables
in the new SOS.start - The first element in var and
val to use for the new SOS.num - The number of consecutive elements in var
and val to use for the new SOS.name - The name of the new SOS.IloSOS2 object.public IloSOS2 SOS2(IloNumVar[] var, double[] val) throws IloException
SOS2 in interface IloMPModelerIloExceptionvar - The variables in the new SOS.val - The weight values for the variables in the new SOS.IloSOS2 object.public IloSOS2 SOS2(IloNumVar[] var, double[] val, int start, int num) throws IloException
See IloMPModeler.SOS2(IloNumVar[] var, double[] val, int start, int num)
SOS2 in interface IloMPModelerIloExceptionvar - An array containing the variables in the new SOS.val - An array containing the weight values for the variables
in the new SOS.start - The first element in var and
val to use for the new SOS.num - The number of consecutive elements in var
and val to use for the new SOS.IloSOS2 object.public IloSOS2 SOS2(IloNumVar[] var, double[] val, java.lang.String name) throws IloException
See IloMPModeler.SOS2(IloNumVar[] var, double[] val, String name)
SOS2 in interface IloMPModelerIloExceptionvar - The variables in the new SOS.val - The weight values for the variables in the new SOS.name - The name of the new SOS.IloSOS2 object.public IloSOS2 SOS2(IloNumVar[] var, double[] val, int start, int num, java.lang.String name) throws IloException
See IloMPModeler.SOS2(IloNumVar[] var, double[] val, int start, int num, String name)
SOS2 in interface IloMPModelerIloExceptionvar - An array containing the variables in the new SOS.val - An array containing the weight values for the variables
in the new SOS.start - The first element in var and
val to use for the new SOS.num - The number of consecutive elements in var
and val to use for the new SOS.name - The name of the new SOS.IloSOS2 object.public IloColumn column(IloRange rng, double val) throws IloException
column in interface IloMPModelerIloExceptionrng - The range constraint for which to create the column
term.val - The linear coefficient the new IloColumn
will use for adding a new variable to rng.IloColumn object.public IloColumnArray columnArray(IloRange rng, double[] val) throws IloException
columnArray in interface IloMPModelerIloExceptionrng - The range constraint for which to create the column
array term.val - The linear coefficient the IloColumnArray
will use for adding new variables to rng.IloColumnArray object.public IloColumnArray columnArray(IloRange rng, double[] val, int start, int num) throws IloException
See IloMPModeler.columnArray(IloRange rng, double[] val, int start, int num)
columnArray in interface IloMPModelerIloExceptionrng - The range constraint for which to create the column
array term.val - An array containing the linear coefficients the
IloColumnArray will use for adding new
variables to rng.start - The first element in val to use.num - The number of consecutive elements in val
to use.IloColumnArray object.public IloColumn column(IloObjective obj, double val) throws IloException
column in interface IloMPModelerIloExceptionobj - The objective for which to create the column term.val - The linear coefficient the new IloColumn
will use for adding a new variable to obj.IloColumn object.public IloColumnArray columnArray(IloObjective obj, double[] val) throws IloException
See IloMPModeler.columnArray(IloObjective obj, double[] val)
columnArray in interface IloMPModelerIloExceptionobj - The objective for which to create the column array term.val - The linear coefficients the IloColumnArray
will use for adding new variables to obj.IloColumnArray object.public IloColumnArray columnArray(IloObjective obj, double[] val, int start, int num) throws IloException
See IloMPModeler.columnArray(IloObjective obj, double[] val, int start, int num)
columnArray in interface IloMPModelerIloExceptionobj - The objective for which to create the column array term.val - An array containing the linear coefficients the
IloColumnArray will use for adding new
variables to obj.start - The first element in val to use.num - The number of consecutive elements in val
to use.IloColumnArray object.public IloColumn column(IloLPMatrix lp) throws IloException
column in interface IloMPModelerIloExceptionlp - The IloLPMatrix object for which to create
the new column.IloColumn object.public IloColumn column(IloLPMatrix lp, int[] ind, double[] val) throws IloException
See IloMPModeler.column(IloLPMatrix lp, int[] ind, double[] val)
column in interface IloMPModelerIloExceptionlp - The IloLPMatrix object for which to create
the new column.ind - An array of indices indicating the row indices of the
nonzeros in the new column. Indices may not occur
multiple times in this list and must be in the range
0 through lp.getNcols()-1.val - An array of values indicating the value of the nonzero
entries for the column.IloColumn object suitable for creating
a new column in lp with nonzeros as
specified by the arguments ind and
val.public IloColumn column(IloLPMatrix lp, int[] ind, double[] val, int start, int num) throws IloException
See IloMPModeler.column(IloLPMatrix lp, int[] ind, double[] val, int start, int num)
column in interface IloMPModelerIloExceptionlp - The IloLPMatrix object for which to create
the new column.ind - An array containing the indices indicating the row
indices of the nonzeros in the new column. Indices
may not occur multiple times in this list and must be
in the range 0 through
lp.getNcols()-1.val - An array containing values indicating the value of the
nonzero entries for the column.start - The index of the first element in arrays
ind and val to use.num - The number of consecutive elements in arrays
ind and val to use.IloColumn object suitable for creating
a new column in lp with nonzeros as
specified in arguments ind and
val.public IloColumnArray columnArray(IloLPMatrix lp, int num, int[][] ind, double[][] val) throws IloException
See IloMPModeler.columnArray(IloLPMatrix lp, int num, int[][] ind, double[][] val)
columnArray in interface IloMPModelerIloExceptionlp - The IloLPMatrix object for which to create
the new column array term.num - The size of the column array term to create or,
equivalently, the number of consecutive elements in
ind and val to use.ind - An array of arrays of row indices of the nonzeros
for each of the new columns. Indices may not occur
multiple times within one column, and they must be in
the range 0 through
lp.getNcols()-1.val - An array of arrays of values of the nonzeros for each
of the new columns.IloColumnArray object suitable for
creating new columns in the LP matrix lp
as specified by arguments ind and
val.public IloColumnArray columnArray(IloLPMatrix lp, int num) throws IloException
columnArray in interface IloMPModelerIloExceptionlp - The IloLPMatrix object for which to create
the new column.num - The size of the new column array term to create.IloColumnArray object suitable for
creating num empty columns to the
IloLPMatrix.public void delete(IloCopyable obj)
throws IloException
delete in interface IloMPModelerIloExceptionobj - The modeling object to be deleted from the invoking
model.public void delete(IloCopyable[] obj)
throws IloException
delete in interface IloMPModelerIloExceptionobj - The modeling object to be deleted from the invoking
model.public void delete(IloCopyable[] obj,
int beg,
int num)
throws IloException
See IloMPModeler.delete(IloCopyable[] obj, int beg, int num)
delete in interface IloMPModelerIloExceptionobj - An array containing the modeling objects to be deleted
from the invoking model.beg - The index of the first modeling object in
obj to be deleted from the invoking
model.num - The number of modeling objects in obj to
be deleted from the invoking model.public IloLinearNumExpr scalProd(int[] vals, IloNumVar[] vars, int start, int num) throws IloException
num values in vals starting
at element start with the corresponding variables in
vars.IloExceptionvals - An array containing the values to use for building the
scalar product.vars - An array containing the variables to use for building
the scalar product.start - The index of the first element to use in vals
and vars.num - The number of elements to use in vals and
vars.public IloLinearNumExpr scalProd(IloNumVar[] vars, int[] vals, int start, int num) throws IloException
num variables in vars starting
at element start with the corresponding values in
vals.IloExceptionvars - An array containing the variables to use for building
the scalar product.vals - An array containing the values to use for building the
scalar product.start - The index of the first element to use in vals
and vars.num - The number of elements to use in vals and
vars.public IloNumExpr scalProd(IloNumVar[] vars1, IloNumVar[] vars2) throws IloException
scalProd in interface IloModelerIloExceptionvars1 - The first array of variables involved in the new scalar
product.vars2 - The second array of variables involved in the new scalar * product.public IloNumExpr scalProd(IloNumVar[] vars1, IloNumVar[] vars2, int start, int num) throws IloException
scalProd in interface IloModelerIloExceptionvars1 - The first array of variables involved in the new scalar
product.vars2 - The second array of variables involved in the new scalar * product.start - The index of the first element to use in the
multiplication.num - The number of elements to use in the multiplication,
starting from the element specified by
start.public IloLinearIntExpr linearIntExpr() throws IloException
linearIntExpr in interface IloModelerIloExceptionpublic IloQuadNumExpr quadNumExpr() throws IloException
quadNumExpr in interface IloMPModelerIloExceptionpublic IloQuadIntExpr quadIntExpr() throws IloException
quadIntExpr in interface IloMPModelerIloExceptionpublic IloLQNumExpr lqNumExpr() throws IloException
lqNumExpr in interface IloMPModelerIloExceptionpublic IloLQIntExpr lqIntExpr() throws IloException
lqIntExpr in interface IloMPModelerIloExceptionpublic IloNumExpr sum(IloNumExpr[] expr, int start, int num) throws IloException
sum in interface IloModelerIloExceptionexpr - An array containing the expressions to be summed.start - The first term in expr to be used.num - The number of terms in expr to be used.public IloNumExpr sum(IloNumExpr[] expr) throws IloException
sum in interface IloModelerIloExceptionexpr - An array containing the terms to be summed.public IloIntExpr sum(IloIntExpr[] expr, int start, int num) throws IloException
sum in interface IloModelerIloExceptionexpr - 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.public IloIntExpr sum(IloIntExpr[] expr) throws IloException
sum in interface IloModelerIloExceptionexpr - An array containing the expressions to be summed.public java.util.Iterator LPMatrixIterator()
IloLPMatrix objects in the
active model.public java.util.Iterator rangeIterator()
This iterator accounts only for the IloRange
objects directly added to the active model and not the objects that may
be in an instance of IloLPMatrix and
have been added indirectly.
IloRange objects in the
active model.public java.util.Iterator conversionIterator()
IloConversion objects in the
active model.public java.util.Iterator SOS1iterator()
IloSOS1 objects in the
active model.public java.util.Iterator SOS2iterator()
IloSOS2 objects in the
active model.public IloObjective getObjective()
IloObjective object of the
active model, or null if no IloObjective object
is currently in the active model.IloObjective object in the active
model, or null if there is no
IloObjective.