|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
IloMPModeler is an extension of the IloModeler
modeling interface for Mathematical Programing.
It adds support for several new modeling object interfaces, including LP
matrices, semi-continuous variables, and special ordered sets (SOSs). It
extends the functionality of IloModeler to column-wise
modeling and supports modification of variable types and expressions of
ranged constraints and objective functions. This interface is implemented
by the IloCplex optimizer class.
IloCplex,
IloModeler| Method Summary | |
ilog.concert.IloLPMatrix |
addLPMatrix()
Creates and returns an empty IloLPMatrix object. |
ilog.concert.IloLPMatrix |
addLPMatrix(java.lang.String name)
Creates and returns an empty IloLPMatrix object. |
ilog.concert.IloObjective |
addMaximize()
Creates and returns an empty maximization objective function. |
ilog.concert.IloObjective |
addMaximize(java.lang.String name)
Creates and returns an empty maximization objective function. |
ilog.concert.IloObjective |
addMinimize()
Creates and returns an empty minimization objective function. |
ilog.concert.IloObjective |
addMinimize(java.lang.String name)
Creates and returns an empty minimization objective function. |
ilog.concert.IloObjective |
addObjective(ilog.concert.IloObjectiveSense sense)
Creates and returns an empty objective function. |
ilog.concert.IloObjective |
addObjective(ilog.concert.IloObjectiveSense sense,
java.lang.String name)
Creates and returns an empty objective function. |
ilog.concert.IloRange |
addRange(double lb,
double ub)
Creates and returns an empty IloRange object. |
ilog.concert.IloRange |
addRange(double lb,
double ub,
java.lang.String name)
Creates and returns an empty IloRange object. |
ilog.concert.IloSOS1 |
addSOS1(ilog.concert.IloNumVar[] var,
double[] val)
Creates an SOS of type 1 with the specified variables and weight values. |
ilog.concert.IloSOS1 |
addSOS1(ilog.concert.IloNumVar[] var,
double[] val,
int start,
int num)
Creates an SOS of type 1 with the specified variables and weight values. |
ilog.concert.IloSOS1 |
addSOS1(ilog.concert.IloNumVar[] var,
double[] val,
int start,
int num,
java.lang.String name)
Creates an SOS of type 1 with the specified variables and weight values. |
ilog.concert.IloSOS1 |
addSOS1(ilog.concert.IloNumVar[] var,
double[] val,
java.lang.String name)
Creates an SOS of type 1 with the specified variables and weight values. |
ilog.concert.IloSOS2 |
addSOS2(ilog.concert.IloNumVar[] var,
double[] val)
Creates an SOS of type 2 with the specified variables and weight values. |
ilog.concert.IloSOS2 |
addSOS2(ilog.concert.IloNumVar[] var,
double[] val,
int start,
int num)
Creates an SOS of type 2 with the specified variables and weight values. |
ilog.concert.IloSOS2 |
addSOS2(ilog.concert.IloNumVar[] var,
double[] val,
int start,
int num,
java.lang.String name)
Creates an SOS of type 2 with the specified variables and weight values. |
ilog.concert.IloSOS2 |
addSOS2(ilog.concert.IloNumVar[] var,
double[] val,
java.lang.String name)
Creates an SOS of type 2 with the specified variables and weight values. |
void |
addToExpr(ilog.concert.IloObjective obj,
ilog.concert.IloNumExpr expr)
Adds an expression term to the expression of the specified IloObjective object. |
void |
addToExpr(ilog.concert.IloRange rng,
ilog.concert.IloNumExpr expr)
Adds an expression term to the expression of the specified IloRange object. |
ilog.concert.IloIntVar |
boolVar(ilog.concert.IloColumn column)
Creates a new Boolean or binary modeling variable with column-wise modeling. |
ilog.concert.IloIntVar |
boolVar(ilog.concert.IloColumn column,
java.lang.String name)
Creates a new Boolean or binary modeling variable with column-wise modeling. |
ilog.concert.IloIntVar[] |
boolVarArray(ilog.concert.IloColumnArray cols)
Creates and returns Boolean or binary modeling variables with column-wise modeling. |
ilog.concert.IloIntVar[] |
boolVarArray(ilog.concert.IloColumnArray cols,
java.lang.String[] name)
Creates and returns Boolean or binary modeling variables with column-wise modeling. |
ilog.concert.IloColumn |
column(ilog.concert.IloLPMatrix lp)
Creates an IloColumn object suitable for adding a new
variable to an LP matrix as an empty column. |
ilog.concert.IloColumn |
column(ilog.concert.IloLPMatrix lp,
int[] ind,
double[] val)
Creates an IloColumn object suitable for adding a new
variable to an LP matrix as a new column. |
ilog.concert.IloColumn |
column(ilog.concert.IloLPMatrix lp,
int[] ind,
double[] val,
int start,
int num)
Creates an IloColumn object suitable for adding a new
variable to an LP matrix as a new column. |
ilog.concert.IloColumn |
column(ilog.concert.IloObjective obj,
double val)
Creates an IloColumn object suitable for adding a new
variable to the objective obj as a linear term with
coefficient val. |
ilog.concert.IloColumn |
column(ilog.concert.IloRange rng,
double val)
Creates an IloColumn object suitable for adding a new
variable to
constraint rng as a linear term with coefficient
val. |
ilog.concert.IloColumnArray |
columnArray(ilog.concert.IloLPMatrix lp,
int num)
Creates an IloColumnArray object suitable for adding new
variables to an IloLPMatrix as empty columns. |
ilog.concert.IloColumnArray |
columnArray(ilog.concert.IloLPMatrix lp,
int num,
int[][] ind,
double[][] val)
Creates an IloColumnArray object suitable for adding new
variables to an IloLPMatrix as columns. |
ilog.concert.IloColumnArray |
columnArray(ilog.concert.IloObjective obj,
double[] val)
Creates an IloColumnArray object suitable for adding new
variables to the objective obj as linear terms with
coefficients specified in val. |
ilog.concert.IloColumnArray |
columnArray(ilog.concert.IloObjective obj,
double[] val,
int start,
int num)
Creates an IloColumnArray object suitable for adding
num new variables to the objective obj as
linear terms with coefficients specified in val. |
ilog.concert.IloColumnArray |
columnArray(ilog.concert.IloRange rng,
double[] val)
Creates an IloColumnArray suitable for adding new variables
to constraint rng as linear terms with coefficients specified
in val. |
ilog.concert.IloColumnArray |
columnArray(ilog.concert.IloRange rng,
double[] val,
int start,
int num)
Creates an IloColumnArray suitable for adding
num new variables to constraint IloRange as
linear terms with coefficients specified in val. |
ilog.concert.IloConversion |
conversion(ilog.concert.IloNumVar[] var,
ilog.concert.IloNumVarType type)
Creates and returns an IloConversion object for converting
the type of the variables in array var in a model. |
ilog.concert.IloConversion |
conversion(ilog.concert.IloNumVar[] var,
ilog.concert.IloNumVarType[] type)
Creates and returns an IloConversion object for converting
the type of the variables in array var in a model. |
ilog.concert.IloConversion |
conversion(ilog.concert.IloNumVar[] var,
ilog.concert.IloNumVarType[] type,
java.lang.String name)
Creates and returns an IloConversion object for converting
the type of the variables in array var in a model. |
ilog.concert.IloConversion |
conversion(ilog.concert.IloNumVar[] var,
ilog.concert.IloNumVarType type,
java.lang.String name)
Creates and returns an IloConversion object for converting
the type of the variables in array var in a model. |
ilog.concert.IloConversion |
conversion(ilog.concert.IloNumVar var,
ilog.concert.IloNumVarType type)
Creates and returns an IloConversion object for converting
the type of a variable in a model. |
ilog.concert.IloConversion |
conversion(ilog.concert.IloNumVar var,
ilog.concert.IloNumVarType type,
java.lang.String name)
Creates and returns an IloConversion object for converting
the type of a variable in a model. |
void |
delete(ilog.concert.IloCopyable obj)
Deletes an object from a model. |
void |
delete(ilog.concert.IloCopyable[] obj)
Deletes the modeling objects in an array obj from the
invoking IloModel. |
void |
delete(ilog.concert.IloCopyable[] obj,
int start,
int num)
Deletes the modeling objects in obj[start] through
obj[start+num-1] from a model. |
ilog.concert.IloIntVar |
intVar(ilog.concert.IloColumn column,
int lb,
int ub)
Creates an integer modeling variable with column-wise modeling. |
ilog.concert.IloIntVar |
intVar(ilog.concert.IloColumn column,
int lb,
int ub,
java.lang.String name)
Creates an integer modeling variable with column-wise modeling. |
ilog.concert.IloIntVar[] |
intVarArray(ilog.concert.IloColumnArray cols,
int[] lb,
int[] ub)
Creates and returns integer modeling variables with column-wise modeling. |
ilog.concert.IloIntVar[] |
intVarArray(ilog.concert.IloColumnArray cols,
int[] lb,
int[] ub,
java.lang.String[] name)
Creates and returns integer modeling variables with column-wise modeling. |
ilog.concert.IloIntVar[] |
intVarArray(ilog.concert.IloColumnArray cols,
int lb,
int ub)
Creates and returns integer modeling variables with column-wise modeling. |
ilog.concert.IloIntVar[] |
intVarArray(ilog.concert.IloColumnArray cols,
int lb,
int ub,
java.lang.String[] name)
Creates and returns integer modeling variables with column-wise modeling. |
ilog.concert.IloLPMatrix |
LPMatrix()
Creates and returns an empty IloLPMatrix object. |
ilog.concert.IloLPMatrix |
LPMatrix(java.lang.String name)
Creates and returns an empty IloLPMatrix object. |
ilog.concert.IloObjective |
maximize()
Creates and returns an empty maximization objective function. |
ilog.concert.IloObjective |
maximize(java.lang.String name)
Creates and returns an empty maximization objective function. |
ilog.concert.IloObjective |
minimize()
Creates and returns an empty minimization objective function. |
ilog.concert.IloObjective |
minimize(java.lang.String name)
Creates and returns an empty minimization objective function. |
ilog.concert.IloNumVar |
numVar(ilog.concert.IloColumn column,
double lb,
double ub)
Creates a continuous modeling variable with column-wise modeling. |
ilog.concert.IloNumVar |
numVar(ilog.concert.IloColumn column,
double lb,
double ub,
ilog.concert.IloNumVarType type)
Creates and returns a new modeling variable with column-wise modeling. |
ilog.concert.IloNumVar |
numVar(ilog.concert.IloColumn column,
double lb,
double ub,
ilog.concert.IloNumVarType type,
java.lang.String name)
Creates and returns a new modeling variable with column-wise modeling. |
ilog.concert.IloNumVar |
numVar(ilog.concert.IloColumn column,
double lb,
double ub,
java.lang.String name)
Creates a continuous modeling variable with column-wise modeling. |
ilog.concert.IloNumVar[] |
numVarArray(ilog.concert.IloColumnArray cols,
double[] lb,
double[] ub)
Creates and returns continuous modeling variables with column-wise modeling. |
ilog.concert.IloNumVar[] |
numVarArray(ilog.concert.IloColumnArray cols,
double[] lb,
double[] ub,
ilog.concert.IloNumVarType[] type)
Creates and returns modeling variables with column-wise modeling. |
ilog.concert.IloNumVar[] |
numVarArray(ilog.concert.IloColumnArray cols,
double[] lb,
double[] ub,
ilog.concert.IloNumVarType[] type,
java.lang.String[] name)
Creates and returns modeling variables with column-wise modeling. |
ilog.concert.IloNumVar[] |
numVarArray(ilog.concert.IloColumnArray cols,
double[] lb,
double[] ub,
java.lang.String[] name)
Creates and returns continuous modeling variables with column-wise modeling. |
ilog.concert.IloNumVar[] |
numVarArray(ilog.concert.IloColumnArray cols,
double lb,
double ub)
Creates and returns continuous modeling variables with column-wise modeling. |
ilog.concert.IloNumVar[] |
numVarArray(ilog.concert.IloColumnArray cols,
double lb,
double ub,
ilog.concert.IloNumVarType type)
Creates and returns modeling variables with column-wise modeling. |
ilog.concert.IloNumVar[] |
numVarArray(ilog.concert.IloColumnArray cols,
double lb,
double ub,
ilog.concert.IloNumVarType type,
java.lang.String[] name)
Creates and returns modeling variables with column-wise modeling. |
ilog.concert.IloNumVar[] |
numVarArray(ilog.concert.IloColumnArray cols,
double lb,
double ub,
java.lang.String[] name)
Creates and returns continuous modeling variables with column-wise modeling. |
ilog.concert.IloObjective |
objective(ilog.concert.IloObjectiveSense sense)
Creates and returns an empty objective function. |
ilog.concert.IloObjective |
objective(ilog.concert.IloObjectiveSense sense,
java.lang.String name)
Creates and returns an empty objective function. |
ilog.concert.IloNumExpr |
piecewiseLinear(ilog.concert.IloNumExpr expr,
double[] points,
double[] slopes,
double a,
double fa)
Creates an expression node that represents a continuous or discontinuous piecewise linear function. |
ilog.concert.IloNumExpr |
piecewiseLinear(ilog.concert.IloNumExpr expr,
double[] points,
int startPoints,
int num,
double[] slopes,
int startSlopes,
double a,
double fa)
Creates an expression node to represent a continuous or discontinuous piecewise linear function. |
ilog.concert.IloNumExpr |
prod(double val,
ilog.concert.IloNumVar var1,
ilog.concert.IloNumVar var2)
Creates and returns an expression object representing the product of value val, variablevar1 and variable
var2. |
ilog.concert.IloNumExpr |
prod(ilog.concert.IloNumVar var1,
double val,
ilog.concert.IloNumVar var2)
Creates and returns an expression object representing the product of value val, variablevar1 and variable
var2. |
ilog.concert.IloNumExpr |
prod(ilog.concert.IloNumVar var1,
ilog.concert.IloNumVar var2,
double val)
Creates and returns an expression object representing the product of value val, variablevar1 and variable
var2. |
ilog.concert.IloRange |
range(double lb,
double ub)
Creates and returns an empty IloRange object. |
ilog.concert.IloRange |
range(double lb,
double ub,
java.lang.String name)
Creates and returns an empty IloRange object. |
ilog.concert.IloSemiContVar |
semiContVar(double sclb,
double ub,
ilog.concert.IloNumVarType type)
Creates and returns a new semi-continuous modeling variable. |
ilog.concert.IloSemiContVar |
semiContVar(double sclb,
double ub,
ilog.concert.IloNumVarType type,
java.lang.String name)
Creates and returns a new semi-continuous modeling variable. |
ilog.concert.IloSemiContVar |
semiContVar(ilog.concert.IloColumn column,
double sclb,
double ub,
ilog.concert.IloNumVarType type)
Creates and returns a new semi-continuous modeling variable with column-wise modeling. |
ilog.concert.IloSemiContVar |
semiContVar(ilog.concert.IloColumn column,
double sclb,
double ub,
ilog.concert.IloNumVarType type,
java.lang.String name)
Creates and returns a new semi-continuous modeling variable with column-wise modeling. |
ilog.concert.IloSemiContVar[] |
semiContVarArray(ilog.concert.IloColumnArray cols,
double[] sclb,
double[] ub,
ilog.concert.IloNumVarType[] type)
Creates and returns semi-continuous modeling variables with column-wise modeling. |
ilog.concert.IloSemiContVar[] |
semiContVarArray(ilog.concert.IloColumnArray cols,
double[] sclb,
double[] ub,
ilog.concert.IloNumVarType[] type,
java.lang.String[] name)
Creates and returns semi-continuous modeling variables with column-wise modeling. |
ilog.concert.IloSemiContVar[] |
semiContVarArray(ilog.concert.IloColumnArray cols,
double sclb,
double ub,
ilog.concert.IloNumVarType type)
Creates and returns semi-continuous modeling variables with column-wise modeling. |
ilog.concert.IloSemiContVar[] |
semiContVarArray(ilog.concert.IloColumnArray cols,
double sclb,
double ub,
ilog.concert.IloNumVarType type,
java.lang.String[] name)
Creates and returns semi-continuous modeling variables with column-wise modeling. |
ilog.concert.IloSemiContVar[] |
semiContVarArray(int n,
double[] sclb,
double[] ub,
ilog.concert.IloNumVarType[] type)
Creates and returns n semi-continuous modeling variables. |
ilog.concert.IloSemiContVar[] |
semiContVarArray(int n,
double[] sclb,
double[] ub,
ilog.concert.IloNumVarType[] type,
java.lang.String[] name)
Creates and returns n semi-continuous modeling variables. |
ilog.concert.IloSemiContVar[] |
semiContVarArray(int n,
double sclb,
double ub,
ilog.concert.IloNumVarType type)
Creates and returns n semi-continuous modeling variables. |
ilog.concert.IloSemiContVar[] |
semiContVarArray(int n,
double sclb,
double ub,
ilog.concert.IloNumVarType type,
java.lang.String[] name)
Creates and returns n semi-continuous modeling variables. |
void |
setLinearCoef(ilog.concert.IloObjective obj,
double val,
ilog.concert.IloNumVar var)
Sets linear coefficient for variable var to val
in the expression of the specified IloObjective object. |
void |
setLinearCoef(ilog.concert.IloObjective obj,
ilog.concert.IloNumVar var,
double val)
Sets linear coefficient for variable var to val
in the expression of the specified IloObjective object. |
void |
setLinearCoef(ilog.concert.IloRange rng,
double val,
ilog.concert.IloNumVar var)
Sets linear coefficient for variable var to val
in the expression of the specified IloRange object. |
void |
setLinearCoef(ilog.concert.IloRange rng,
ilog.concert.IloNumVar var,
double val)
Sets linear coefficient for variable var to val
in the expression of the specified IloRange object. |
void |
setLinearCoefs(ilog.concert.IloObjective obj,
double[] val,
ilog.concert.IloNumVar[] var)
Sets linear coefficients for variables in the expression of the specified IloObjective object. |
void |
setLinearCoefs(ilog.concert.IloObjective obj,
double[] val,
ilog.concert.IloNumVar[] var,
int start,
int num)
Sets linear coefficients for variables in the expression of the specified IloObjective object. |
void |
setLinearCoefs(ilog.concert.IloObjective obj,
ilog.concert.IloNumVar[] var,
double[] val)
Sets linear coefficients for variables in the expression of the specified IloObjective object. |
void |
setLinearCoefs(ilog.concert.IloObjective obj,
ilog.concert.IloNumVar[] var,
double[] val,
int start,
int num)
Sets linear coefficients for variables in the expression of the specified IloObjective object. |
void |
setLinearCoefs(ilog.concert.IloRange rng,
double[] val,
ilog.concert.IloNumVar[] var)
Sets linear coefficients for variables in the expression of the specified IloRange object. |
void |
setLinearCoefs(ilog.concert.IloRange rng,
double[] val,
ilog.concert.IloNumVar[] var,
int start,
int num)
Sets linear coefficients for variables in the expression of the specified IloRange object. |
void |
setLinearCoefs(ilog.concert.IloRange rng,
ilog.concert.IloNumVar[] var,
double[] val)
Sets linear coefficients for variables in the expression of the specified IloRange object. |
void |
setLinearCoefs(ilog.concert.IloRange rng,
ilog.concert.IloNumVar[] var,
double[] val,
int start,
int num)
Sets linear coefficients for variables in the expression of the specified IloRange object. |
ilog.concert.IloSOS1 |
SOS1(ilog.concert.IloNumVar[] var,
double[] val)
Creates an SOS of type 1 with the specified variables and weight values. |
ilog.concert.IloSOS1 |
SOS1(ilog.concert.IloNumVar[] var,
double[] val,
int start,
int num)
Creates an SOS of type 1 with the specified variables and weight values. |
ilog.concert.IloSOS1 |
SOS1(ilog.concert.IloNumVar[] var,
double[] val,
int start,
int num,
java.lang.String name)
Creates an SOS of type 1 with the specified variables and weight values. |
ilog.concert.IloSOS1 |
SOS1(ilog.concert.IloNumVar[] var,
double[] val,
java.lang.String name)
Creates an SOS of type 1 with the specified variables and weight values. |
ilog.concert.IloSOS2 |
SOS2(ilog.concert.IloNumVar[] var,
double[] val)
Creates an SOS of type 2 with the specified variables and weight values. |
ilog.concert.IloSOS2 |
SOS2(ilog.concert.IloNumVar[] var,
double[] val,
int start,
int num)
Creates an SOS of type 2 with the specified variables and weight values. |
ilog.concert.IloSOS2 |
SOS2(ilog.concert.IloNumVar[] var,
double[] val,
int start,
int num,
java.lang.String name)
Creates an SOS of type 2 with the specified variables and weight values. |
ilog.concert.IloSOS2 |
SOS2(ilog.concert.IloNumVar[] var,
double[] val,
java.lang.String name)
Creates an SOS of type 2 with the specified variables and weight values. |
| Methods inherited from interface ilog.concert.IloModel |
add, add, add, iterator, remove, remove, remove |
| Methods inherited from interface ilog.concert.IloAddable |
getName, setName |
| Method Detail |
public void delete(ilog.concert.IloCopyable obj)
throws IloException
After calling this method, the modeling object obj is no
longer in the model. If the modeling object is referenced multiple
times in a model, for example, a variable used by multiple constraints, it
is removed from all places. When you delete a variable from a
model, it is removed from all the other modeling objects in the
model. Modeling variable objects are not of type
IloAddable, so the type of the removed object is
IloCopyable, a common base interface of both
IloAddable and IloNumVar.
obj - The modeling object to be deleted from the invoking
IloModel.
IloException
public void delete(ilog.concert.IloCopyable[] obj)
throws IloException
Deletes the modeling objects in an array obj from the
invoking IloModel. After calling this method, the
deleted objects are no longer in the model. If a modeling object is
referenced multiple times in a model, for example, a variable used by
multiple constraints, it is removed from all places. When you delete
variables from a model, they are removed from all other modeling
objects in the model.
obj - The array of modeling objects to be deleted from the
invoking IloModel
IloException
public void delete(ilog.concert.IloCopyable[] obj,
int start,
int num)
throws IloException
obj[start] through
obj[start+num-1] from a model. Modeling objects
obj[start] through obj[start+num-1] are
deleted from the invoking IloModel. After calling this
method, the deleted objects will no longer be in the model. If a
modeling object is referenced multiple times in a model, e.g. a variable
used by multiple constraints, it is removed from all places. Thus,
when deleting variables from a model, they are removed from all
other modeling objects in the model.
obj - An array containing the modeling objects to be deleted
from the invoking IloModel.start - The index of the first modeling object in
obj to be deleted from the invoking
IloModel.num - The number of modeling objects in obj to
be deleted from the invoking IloModel.
IloException
public ilog.concert.IloObjective minimize()
throws IloException
IloObjective object
representing a minimization objective function with a zero expression.
This is typically used in an application that uses column-wise modeling
to fill in the objective function while creating the variables.
IloException
public ilog.concert.IloObjective minimize(java.lang.String name)
throws IloException
IloObjective object
representing a minimization objective function with a zero expression.
The new IloObjective object is assigned name
name. This is typically used in an application that uses
column-wise modeling to fill in the objective function while creating the
variables.
name - The name assigned to the new objective.
IloException
public ilog.concert.IloObjective maximize()
throws IloException
IloObjective object representing a
maximization objective function with a zero expression. This is
typically used in an application that uses column-wise modeling to fill
in the objective function while creating the variables.
IloException
public ilog.concert.IloObjective maximize(java.lang.String name)
throws IloException
IloObjective object representing a
maximization objective function with a zero expression. The new
IloObjective object is assigned the name name.
This is typically used in an application that uses column-wise modeling
to fill in the objective function while creating the variables.
name - The name assigned to the new objective.
IloException
public ilog.concert.IloObjective objective(ilog.concert.IloObjectiveSense sense)
throws IloException
IloObjective object with
a zero expression and the specified optimization sense. This is typically
used in an application that uses column-wise modeling to fill in the
objective function while creating the variables.
sense - The optimization sense of the new objective.
IloException
public ilog.concert.IloObjective objective(ilog.concert.IloObjectiveSense sense,
java.lang.String name)
throws IloException
IloObjective object with
a zero expression and the specified optimization sense. The new
IloObjective object is assigned the name name.
This is typically used in an application that uses column-wise modeling
to fill in the objective function while creating the variables.
sense - The optimization sense of the new objective.name - The name assigned to the new objective.
IloException
public ilog.concert.IloObjective addMinimize()
throws IloException
IloObjective object
representing a minimization objective function with a zero expression.
The new IloObjective object is added to the invoking
IloModel. This method is typically used in an application
that uses column-wise modeling to fill in the objective function while
creating the variables.
IloException
public ilog.concert.IloObjective addMinimize(java.lang.String name)
throws IloException
IloObjective object
representing a minimization objective function with a zero expression.
The new IloObjective object is assigned the name
name and added to the invoking IloModel.
This method is typically used in an application that uses column-wise
modeling to fill in the objective function while creating the variables.
name - The name assigned to the new objective.
IloException
public ilog.concert.IloObjective addMaximize()
throws IloException
IloObjective object
representing a maximization objective function with a zero expression.
The new IloObjective object is added to the invoking
IloModel. This method is typically used in an application
that uses column-wise modeling to fill in the objective function while
creating the variables.
IloException
public ilog.concert.IloObjective addMaximize(java.lang.String name)
throws IloException
IloObjective object
representing a maximization objective function with a zero expression.
The new IloObjective object is assigned the name
name and added to the invoking IloModel. This
is typically used in an application that uses column-wise modeling to
fill in the objective function while creating the variables.
name - The name assigned to the new objective.
IloException
public ilog.concert.IloObjective addObjective(ilog.concert.IloObjectiveSense sense)
throws IloException
IloObjective object with
a zero expression and the specified optimization sense. The new
IloObjective object is added to the invoking
IloModel. This method is typically used in an application
that uses column-wise modeling to fill in the objective function while
creating the variables.
sense - The optimization sense of the new objective.
IloException
public ilog.concert.IloObjective addObjective(ilog.concert.IloObjectiveSense sense,
java.lang.String name)
throws IloException
IloObjective object with
a zero expression and the specified optimization sense. The new
IloObjective object is assigned name name and
added to the invoking IloModel. This method is typically
used in an application that uses column-wise modeling to fill in the
objective function while creating the variables.
sense - The optimization sense of the new objective.name - The name assigned to the new objective.
IloException
public ilog.concert.IloRange addRange(double lb,
double ub)
throws IloException
IloRange object. The new
IloRange object is initialized
to represent the constraint lb <= 0 <= ub,
and is added to the invoking IloModel.
This method is typically used in an application that uses column-wise
modeling to fill in the expression for the ranged constraint while
creating the variables.
lb - 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.
IloException
public ilog.concert.IloRange addRange(double lb,
double ub,
java.lang.String name)
throws IloException
IloRange object. The new
IloRange object is initialized to represent the constraint
lb <= 0 lt;= ub, and is added to the invoking
IloModel. The new IloRange object is assigned
name name.
This method is typically used in an application that uses column-wise
modeling to fill in the expression for the ranged constraint while
creating the variables.
lb - 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.
IloException
public ilog.concert.IloRange range(double lb,
double ub)
throws IloException
IloRange object. The new
IloRange object is
initialized to represent the constraint lb <= 0 <= ub.
This method is typically used in an application that uses column-wise
modeling to fill in the expression for the ranged constraint while
creating the variables.
lb - 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.
IloException
public ilog.concert.IloRange range(double lb,
double ub,
java.lang.String name)
throws IloException
IloRange object. The new
IloRange object is initialized to represent the constraint
lb <= 0 <= ub. The new IloRange object is
assigned the name name. This method is typically used in an
application that uses column-wise modeling to fill in the expression for
the ranged constraint while creating the variables.
lb - 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.
IloException
public ilog.concert.IloNumVar numVar(ilog.concert.IloColumn column,
double lb,
double ub,
ilog.concert.IloNumVarType type,
java.lang.String name)
throws IloException
IloColumn parameter column.
column - The column object describing 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.
IloException
public ilog.concert.IloNumVar numVar(ilog.concert.IloColumn column,
double lb,
double ub,
ilog.concert.IloNumVarType type)
throws IloException
IloColumn parameter column.
column - The column object describing 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.
IloException
public ilog.concert.IloNumVar[] numVarArray(ilog.concert.IloColumnArray cols,
double lb,
double ub,
ilog.concert.IloNumVarType type,
java.lang.String[] name)
throws IloException
IloColumnArray parameter
cols. Each new variable is assigned a separate name, with
variable i assigned name name[i]. The new
variables are then installed in existing modeling objects, as described
by the IloColumnArray parameter cols.
cols - An IloColumnArray object describing 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 name[i].
IloException
public ilog.concert.IloNumVar[] numVarArray(ilog.concert.IloColumnArray cols,
double lb,
double ub,
ilog.concert.IloNumVarType type)
throws IloException
IloColumnArray parameter
cols. The new variables are then installed in existing
modeling objects, as described by the IloColumnArray
parameter cols.
cols - An IloColumnArray object describing where
to install the new variables.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.
IloException
public ilog.concert.IloNumVar[] numVarArray(ilog.concert.IloColumnArray cols,
double[] lb,
double[] ub,
ilog.concert.IloNumVarType[] type)
throws IloException
IloColumnArray parameter
cols. The new variable i is constructed
with bounds lb[i] and ub[i] and type
type[i]. The new variables are installed in existing
modeling objects, as described by the cols parameter.
cols - An IloColumnArray object describing where
to install the new variables.lb - The lower bounds of the new modeling variable.
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 a
upper bound of ub[i].type - The type of the new modeling variable. Variable
i is constructed with a type of
type[i].
IloException
public ilog.concert.IloNumVar[] numVarArray(ilog.concert.IloColumnArray cols,
double[] lb,
double[] ub,
ilog.concert.IloNumVarType[] type,
java.lang.String[] name)
throws IloException
IloColumnArray parameter
cols. Variable i is constructed with
bounds lb[i] and ub[i] and type
type[i], and it is assigned name name[i]. The
new variables are installed in existing modeling objects, as described
by the cols parameter.
cols - An IloColumnArray object describing where
to install the new variables.lb - The lower bounds of the new modeling variable.
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 a
upper bound of lb[i].type - The type of the new modeling variable. Variable
i will
be constructed with a type of type[i].name - The name of the new modeling variable. Variable
i is assigned name name[i].
IloException
public ilog.concert.IloNumVar numVar(ilog.concert.IloColumn column,
double lb,
double ub,
java.lang.String name)
throws IloException
IloNumVarType.Float with the specified bounds and name.
The newly created variable is then installed in existing modeling objects
as described by the IloColumn parameter column.
column - The column object describing 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.
IloException
public ilog.concert.IloNumVar numVar(ilog.concert.IloColumn column,
double lb,
double ub)
throws IloException
IloNumVarType.Float with the specified bounds. The newly
created variable
is then installed in existing modeling objects as described by the
IloColumn parameter column.
column - The column object describing where to install the new
variable.lb - The lower bound of the new modeling variable.ub - The upper bound of the new modeling variable.
IloException
public ilog.concert.IloNumVar[] numVarArray(ilog.concert.IloColumnArray cols,
double lb,
double ub,
java.lang.String[] name)
throws IloException
IloNumVarType.Float, each with the same specified bounds, and
returns them in an array. The number of new variables is determined by
the size of the IloColumnArray parameter cols.
Each new variable is assigned a separate name, where variable
i is assigned name name[i]. The new variables
are then installed in existing modeling objects as describe by the
IloColumnArray parameter cols.
cols - An IloColumnArray object describing 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 name[i].
IloException
public ilog.concert.IloNumVar[] numVarArray(ilog.concert.IloColumnArray cols,
double lb,
double ub)
throws IloException
IloNumVarType.Float, each with the same specified bounds, and
returns them in an array. The number of new variables is determined by
the size of the IloColumnArray parameter cols.
The new variables are then installed in existing modeling objects as
described by the IloColumnArray parameter cols.
cols - An IloColumnArray object describing where
to install the new variables.lb - The lower bound of the new modeling variables.ub - The upper bound of the new modeling variables.
IloException
public ilog.concert.IloNumVar[] numVarArray(ilog.concert.IloColumnArray cols,
double[] lb,
double[] ub)
throws IloException
IloNumVarType.Float, each with its own bounds, and returns
them in an array. The number of new variables is determined by the size
of the IloColumnArray parameter cols.
Variable i is constructed with bounds lb[i]
and ub[i]. The new variables are installed in existing
modeling objects as described by the cols parameter.
cols - IloColumnArray object describing 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].
IloException
public ilog.concert.IloNumVar[] numVarArray(ilog.concert.IloColumnArray cols,
double[] lb,
double[] ub,
java.lang.String[] name)
throws IloException
IloNumVarType.Float, each with its own bounds, and returns
them in an array. The number of new variables is determined by the size
of the IloColumnArray parameter cols.
Variable i is constructed with bounds
lb[i] and ub[i]. and it is assigned name
name[i]. The new variables are installed in existing
modeling objects as described by the cols parameter.
cols - An IloColumnArray object describing
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 name[i].
IloException
public ilog.concert.IloIntVar intVar(ilog.concert.IloColumn column,
int lb,
int ub,
java.lang.String name)
throws IloException
IloNumVarType.Int with the specified bounds and name. The
newly created variable is then installed in existing modeling objects as
described by the IloColumn parameter column.
column - The column object describing 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.
IloException
public ilog.concert.IloIntVar intVar(ilog.concert.IloColumn column,
int lb,
int ub)
throws IloException
IloNumVarType.Int with the specified bounds. The newly
created variable is then installed in existing modeling objects as
described by the IloColumn parameter column.
column - The column object describing where to install the new
variable.lb - The lower bound of the new modeling variable.ub - The upper bound of the new modeling variable.
IloException
public ilog.concert.IloIntVar[] intVarArray(ilog.concert.IloColumnArray cols,
int lb,
int ub,
java.lang.String[] name)
throws IloException
IloNumVarType.Int, each with the same specified bounds, and
returns them in an array. The number of new variables is determined by
the size of the IloColumnArray parameter cols.
Each new variable is assigned a separate name, with variable
i being assigned name name[i]. The new variables
are then installed in existing modeling objects as described by the
IloColumnArray parameter cols.
cols - An IloColumnArray object describing 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 name[i].
IloException
public ilog.concert.IloIntVar[] intVarArray(ilog.concert.IloColumnArray cols,
int lb,
int ub)
throws IloException
IloNumVarType.Int, each with the same specified bounds, and
returns them in an array. The number of new variables is determined by
the size of the IloColumnArray parameter cols.
The new variables are then installed in existing modeling objects as
described by the IloColumnArray parameter cols.
cols - An IloColumnArray object describing where
to install the new variables.lb - The lower bound of the new modeling variables.ub - The upper bound of the new modeling variables.
IloException
public ilog.concert.IloIntVar[] intVarArray(ilog.concert.IloColumnArray cols,
int[] lb,
int[] ub)
throws IloException
IloNumVarType.Int, each with its own bounds, and returns
them in an array. The number of new variables is determined by the size
of the IloColumnArray parameter cols. Variable
i is constructed with bounds lb[i] and
ub[i]. The new variables are installed in existing
modeling objects as described by the cols parameter.
cols - An IloColumnArray object describing 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].
IloException
public ilog.concert.IloIntVar[] intVarArray(ilog.concert.IloColumnArray cols,
int[] lb,
int[] ub,
java.lang.String[] name)
throws IloException
IloNumVarType.Int, each with its own bounds, and returns
them in an array. The number of new variables is determined by the size
of the IloColumnArray parameter cols. Variable
i is constructed with bounds lb[i] and
ub[i] and is assigned name name[i]. The
new variables are installed in existing modeling objects as described
by the cols parameter.
cols - An IloColumnArray object describing 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 name[i].
IloException
public ilog.concert.IloIntVar boolVar(ilog.concert.IloColumn column)
throws IloException
IloNumVarType.Bool. The newly created
variable is then installed in existing modeling objects as described
by the IloColumn parameter column.
column - The column object describing where to install the new
variable.
IloException
public ilog.concert.IloIntVar boolVar(ilog.concert.IloColumn column,
java.lang.String name)
throws IloException
IloNumVarType.Bool with the specified
name. The newly created variable is then installed in existing
modeling objects as described by the IloColumn parameter
column.
column - The column object describing where to install the new
variable.name - The name of the new modeling variable.
IloException
public ilog.concert.IloIntVar[] boolVarArray(ilog.concert.IloColumnArray cols)
throws IloException
IloNumVarType.Bool and returns them in an array. The number
of new variables is determined by the size of the
IloColumnArray parameter cols. The new
variables are installed in existing modeling objects as described by
the cols parameter.
cols - The IloColumnArray object describing
where to install the new variables.
IloException
public ilog.concert.IloIntVar[] boolVarArray(ilog.concert.IloColumnArray cols,
java.lang.String[] name)
throws IloException
IloNumVarType.Bool and returns them in an array. The number
of new variables is determined by the size of the
IloColumnArray parameter cols. Variable
i will be assigned name name[i]. The new
variables are installed in existing modeling objects as described by
the cols parameter.
cols - The IloColumnArray object describing
where to install the new variables.name - The names of the new modeling variables. Variable
i is assigned name name[i].
IloException
public ilog.concert.IloSemiContVar semiContVar(double sclb,
double ub,
ilog.concert.IloNumVarType type)
throws IloException
sclb - 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.
IloException
public ilog.concert.IloSemiContVar semiContVar(double sclb,
double ub,
ilog.concert.IloNumVarType type,
java.lang.String name)
throws IloException
sclb - 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.
IloException
public ilog.concert.IloSemiContVar semiContVar(ilog.concert.IloColumn column,
double sclb,
double ub,
ilog.concert.IloNumVarType type)
throws IloException
IloColumn parameter
column.
column - The column object describing where to install the new
variable.sclb - 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.
IloException
public ilog.concert.IloSemiContVar semiContVar(ilog.concert.IloColumn column,
double sclb,
double ub,
ilog.concert.IloNumVarType type,
java.lang.String name)
throws IloException
IloColumn parameter
column.
column - The column object describing where to install the new
variable.sclb - 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.
IloException
public ilog.concert.IloSemiContVar[] semiContVarArray(int n,
double sclb,
double ub,
ilog.concert.IloNumVarType type,
java.lang.String[] name)
throws IloException
n semi-continuous modeling variables.
This method creates n new semi-continuous modeling
variables, each with the same specified bounds and type, and returns them
in an array. Each new variable is assigned a separate name, with variable
i assigned name name[i].
n - The number of new semi-continuous variables to create.sclb - 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 name[i].
IloException
public ilog.concert.IloSemiContVar[] semiContVarArray(int n,
double sclb,
double ub,
ilog.concert.IloNumVarType type)
throws IloException
n semi-continuous modeling variables.
This method creates n new semi-continuous modeling
variables, each with the same specified bounds and type, and returns them
in an array.
n - The number of new semi-continuous variables to create.sclb - 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.
IloException
public ilog.concert.IloSemiContVar[] semiContVarArray(int n,
double[] sclb,
double[] ub,
ilog.concert.IloNumVarType[] type,
java.lang.String[] name)
throws IloException
n semi-continuous modeling variables.
This method creates new semi-continuous modeling variables, each with
its own bounds and type, and returns them in an array. Variable
i is constructed with bounds sclb[i] and
ub[i] and type type[i], and it is assigned
name name[i].
n - The number of new semi-continuous variables to create.sclb - 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 name[i].
IloException
public ilog.concert.IloSemiContVar[] semiContVarArray(int n,
double[] sclb,
double[] ub,
ilog.concert.IloNumVarType[] type)
throws IloException
n semi-continuous modeling variables.
This method creates new semi-continuous modeling variables, each with its
own bounds and type, and returns them in an array. Variable
i is constructed with bounds sclb[i] and
ub[i] and type type[i].
n - The number of new semi-continuous variables to create.sclb - 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].
IloException
public ilog.concert.IloSemiContVar[] semiContVarArray(ilog.concert.IloColumnArray cols,
double sclb,
double ub,
ilog.concert.IloNumVarType type,
java.lang.String[] name)
throws IloException
IloColumnArray
parameter cols. Each new variable is assigned a separate
name, where variable i is assigned name name[i].
The new variables are then installed in existing modeling objects as
describe by the IloColumnArray parameter cols.
cols - An IloColumnArray object describing
where to install the new variables.sclb - 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 name[i].
IloException
public ilog.concert.IloSemiContVar[] semiContVarArray(ilog.concert.IloColumnArray cols,
double sclb,
double ub,
ilog.concert.IloNumVarType type)
throws IloException
IloColumnArray parameter cols. The new
variables are then installed in existing modeling objects as described
by the IloColumnArray parameter cols.
cols - An IloColumnArray object describing
where to install the new variables.sclb - 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.
IloException
public ilog.concert.IloSemiContVar[] semiContVarArray(ilog.concert.IloColumnArray cols,
double[] sclb,
double[] ub,
ilog.concert.IloNumVarType[] type)
throws IloException
IloColumnArray parameter cols. Variable
i is constructed with bounds sclb[i] and
ub[i] and type type[i]. The new variables will
be installed in existing modeling objects as described by the
cols parameter.
cols - An IloColumnArray object describing where
to install the new variables.sclb - 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].
IloException
public ilog.concert.IloSemiContVar[] semiContVarArray(ilog.concert.IloColumnArray cols,
double[] sclb,
double[] ub,
ilog.concert.IloNumVarType[] type,
java.lang.String[] name)
throws IloException
IloColumnArray parameter cols. Variable
i is constructed with bounds sclb[i] and
ub[i] and type type[i], and it is assigned name
name[i]. The new variables are installed in existing
modeling objects as described by the cols parameter.
cols - An IloColumnArray object describing
where to install the new variables.sclb - 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 name[i].
IloException
public ilog.concert.IloNumExpr piecewiseLinear(ilog.concert.IloNumExpr expr,
double[] points,
double[] slopes,
double a,
double fa)
throws IloException
The piecewise linear function is evaluated at expr and is
defined by the remaining parameters. The array points
contains breakpoints such that points[i-1] is less than
or equal to points[i]. The
array slopes contains the value of the slope
for each piece defined
by the breakpoints. The slope of the function for values less than
points[0] is slopes[0]. Similarly,
slopes[i] specifies the slope between
points[i-1] and points[i]. Thus the array
slope
must have one more element than the array points.
By setting points[i-1] == points[i], you can
represent a discontinuous
piecewise linear function. In this case,
the function will
make a step of size slopes[i-1] at position
points[i].
The values a and fa define the x and y
coordinates of one point of the piecewise linear function. This point is
referred to as the anchor point.
expr - An expression indicating 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.
IloException
public ilog.concert.IloNumExpr piecewiseLinear(ilog.concert.IloNumExpr expr,
double[] points,
int startPoints,
int num,
double[] slopes,
int startSlopes,
double a,
double fa)
throws IloException
The piecewise linear function is evaluated at expr and is
defined by the remaining parameters. The array points
contains breakpoints such that points[i-1] is
less than or equal to points[i].
Only num elements starting with element
startPoints are considered. The array slopes
contains the slope for each piece defined by the breakpoints. Only
num+1 elements starting with element
startSlopes are considered.
The element slopes[startSlopes]
specifies the slope of the piecewise linear function for values less than
points[startPoints], and slopes[startSlopes+num]
specifies the slope of the piecewise linear function for values greater
than points[startPoints+num-1]. For elements in between,
slopes[startSlopes+i] specifies the slope between
points[startPoints+i-1] and
points[startPoints+i].
By selecting
points[startPoints+i-1] == points[startPoints+i],
you can represent
a discontinuous piecewise linear function. At
points[startPoints+i], it will make a step of size
slope[startSlopes+i-1].
The values a and fa define the x and y
coordinates of one point of the piecewise linear function. This point is
referred to as the anchor point.
expr - 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 breakpoint to use from array
points. Thus num+1 elements
of array slopes are used.slopes - An array containing the slope values 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.
IloException
public ilog.concert.IloConversion conversion(ilog.concert.IloNumVar var,
ilog.concert.IloNumVarType type)
throws IloException
IloConversion object for converting
the type of a variable in a model.
var - The variable the type of which is to be converted.type - The converted type for variable var.
IloConversion object.
IloException
public ilog.concert.IloConversion conversion(ilog.concert.IloNumVar var,
ilog.concert.IloNumVarType type,
java.lang.String name)
throws IloException
IloConversion object for converting
the type of a variable in a model. The new conversion object is assigned
the specified name.
var - 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.
IloException
public ilog.concert.IloConversion conversion(ilog.concert.IloNumVar[] var,
ilog.concert.IloNumVarType type)
throws IloException
IloConversion object for converting
the type of the variables in array var in a model.
var - The array of variables the types of which are to be
converted.type - The converted type for all variables in var.
IloConversion object.
IloException
public ilog.concert.IloConversion conversion(ilog.concert.IloNumVar[] var,
ilog.concert.IloNumVarType type,
java.lang.String name)
throws IloException
IloConversion object for converting
the type of the variables in array var in a model. The new
conversion object is assigned the specified name.
var - 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.
IloException
public ilog.concert.IloConversion conversion(ilog.concert.IloNumVar[] var,
ilog.concert.IloNumVarType[] type)
throws IloException
IloConversion object for converting
the type of the variables in array var in a model.
var - 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.
IloException
public ilog.concert.IloConversion conversion(ilog.concert.IloNumVar[] var,
ilog.concert.IloNumVarType[] type,
java.lang.String name)
throws IloException
IloConversion object for converting
the type of the variables in array var in a model. The new
conversion object is assigned the specified name.
var - 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.
IloException
public ilog.concert.IloLPMatrix addLPMatrix()
throws IloException
IloLPMatrix object.
The new IloLPMatrix object is initialized to
0 columns and 0 rows. It can be populated later
by the IloLPMatrix manipulation API. The new
IloLPMatrix object is added to the invoking
IloModel model.
IloLPMatrix object.
IloException
public ilog.concert.IloLPMatrix addLPMatrix(java.lang.String name)
throws IloException
IloLPMatrix object.
The new IloLPMatrix object is initialized to
0 columns and 0 rows. It can be populated later
using the IloLPMatrix manipulation API. The new
IloLPMatrix object is added to the invoking
IloModel model. The new IloLPMatrix object is
assigned name name.
name - The name for the new IloLPMatrix object.
IloLPMatrix object.
IloException
public ilog.concert.IloLPMatrix LPMatrix()
throws IloException
IloLPMatrix object.
The new IloLPMatrix object is initialized to
0 (zero) columns and 0 rows. It can be populated
later by the IloLPMatrix manipulation API.
IloLPMatrix object.
IloException
public ilog.concert.IloLPMatrix LPMatrix(java.lang.String name)
throws IloException
IloLPMatrix object.
The new IloLPMatrix object is initialized to
0 columns and 0 rows. It can be populated
later using the IloLPMatrix manipulation API. The new
IloLPMatrix object is assigned the name.
name - The name for the new IloLPMatrix object.
IloLPMatrix object.
IloException
public ilog.concert.IloSOS1 addSOS1(ilog.concert.IloNumVar[] var,
double[] val)
throws IloException
IloModel model.
var - The variables in the new SOS.val - The weight values for the variables in the new SOS.
IloSOS1 object.
IloException
public ilog.concert.IloSOS1 addSOS1(ilog.concert.IloNumVar[] var,
double[] val,
int start,
int num)
throws IloException
IloModel model.
var - 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 elements in var and
val to use for the new SOS.
IloSOS1 object.
IloException
public ilog.concert.IloSOS1 addSOS1(ilog.concert.IloNumVar[] var,
double[] val,
java.lang.String name)
throws IloException
IloModel model.
var - 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.
IloException
public ilog.concert.IloSOS1 addSOS1(ilog.concert.IloNumVar[] var,
double[] val,
int start,
int num,
java.lang.String name)
throws IloException
IloModel model.
var - 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 elements in var and
val to use for the new SOS.name - The name of the new SOS.
IloSOS1 object.
IloException
public ilog.concert.IloSOS2 addSOS2(ilog.concert.IloNumVar[] var,
double[] val)
throws IloException
IloModel model.
var - The variables in the new SOS.val - The weight values for the variables in the new SOS.
IloSOS2 object.
IloException
public ilog.concert.IloSOS2 addSOS2(ilog.concert.IloNumVar[] var,
double[] val,
int start,
int num)
throws IloException
IloModel model.
var - 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 elements in var and
val to use for the new SOS.
IloSOS2 object.
IloException
public ilog.concert.IloSOS2 addSOS2(ilog.concert.IloNumVar[] var,
double[] val,
java.lang.String name)
throws IloException
IloModel model.
var - 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.
IloException
public ilog.concert.IloSOS2 addSOS2(ilog.concert.IloNumVar[] var,
double[] val,
int start,
int num,
java.lang.String name)
throws IloException
IloModel model.
var - 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 elements in var and
val to use for the new SOS.name - The name of the new SOS.
IloSOS2 object.
IloException
public ilog.concert.IloSOS1 SOS1(ilog.concert.IloNumVar[] var,
double[] val)
throws IloException
var - The variables in the new SOS.val - The weight values for the variables in the new SOS.
IloSOS1 object.
IloException
public ilog.concert.IloSOS1 SOS1(ilog.concert.IloNumVar[] var,
double[] val,
int start,
int num)
throws IloException
var - 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 elements in var and
val to use for the new SOS.
IloSOS1 object.
IloException
public ilog.concert.IloSOS1 SOS1(ilog.concert.IloNumVar[] var,
double[] val,
java.lang.String name)
throws IloException
name.
var - 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.
IloException
public ilog.concert.IloSOS1 SOS1(ilog.concert.IloNumVar[] var,
double[] val,
int start,
int num,
java.lang.String name)
throws IloException
name.
var - 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 elements in var and
val to use for the new SOS.name - The name of the new SOS.
IloSOS1 object.
IloException
public ilog.concert.IloSOS2 SOS2(ilog.concert.IloNumVar[] var,
double[] val)
throws IloException
var - The variables in the new SOS.val - The weight values for the variables in the new SOS.
IloSOS2 object.
IloException
public ilog.concert.IloSOS2 SOS2(ilog.concert.IloNumVar[] var,
double[] val,
int start,
int num)
throws IloException
var - 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 elements in var and
val to use for the new SOS.
IloSOS2 object.
IloException
public ilog.concert.IloSOS2 SOS2(ilog.concert.IloNumVar[] var,
double[] val,
java.lang.String name)
throws IloException
name.
var - 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.
IloException
public ilog.concert.IloSOS2 SOS2(ilog.concert.IloNumVar[] var,
double[] val,
int start,
int num,
java.lang.String name)
throws IloException
name.
var - 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 elements in var and
val to use for the new SOS.name - The name of the new SOS.
IloSOS2 object.
IloException
public ilog.concert.IloColumn column(ilog.concert.IloRange rng,
double val)
throws IloException
IloColumn object suitable for adding a new
variable to
constraint rng as a linear term with coefficient
val.
rng - 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.
IloException
public ilog.concert.IloColumnArray columnArray(ilog.concert.IloRange rng,
double[] val)
throws IloException
IloColumnArray suitable for adding new variables
to constraint rng as linear terms with coefficients specified
in val.
rng - 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.
IloException
public ilog.concert.IloColumnArray columnArray(ilog.concert.IloRange rng,
double[] val,
int start,
int num)
throws IloException
IloColumnArray suitable for adding
num new variables to constraint IloRange as
linear terms with coefficients specified in val.
rng - 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 elements in val to use.
IloColumnArray object.
IloException
public ilog.concert.IloColumn column(ilog.concert.IloObjective obj,
double val)
throws IloException
IloColumn object suitable for adding a new
variable to the objective obj as a linear term with
coefficient val.
obj - 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.
IloException
public ilog.concert.IloColumnArray columnArray(ilog.concert.IloObjective obj,
double[] val)
throws IloException
IloColumnArray object suitable for adding new
variables to the objective obj as linear terms with
coefficients specified in val.
obj - 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.
IloException
public ilog.concert.IloColumnArray columnArray(ilog.concert.IloObjective obj,
double[] val,
int start,
int num)
throws IloException
IloColumnArray object suitable for adding
num new variables to the objective obj as
linear terms with coefficients specified in val.
obj - 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 elements in val to use.
IloColumnArray object.
IloException
public ilog.concert.IloColumn column(ilog.concert.IloLPMatrix lp)
throws IloException
IloColumn object suitable for adding a new
variable to an LP matrix as an empty column. Note, that the column of
the LP matrix is only created when creating a variable with the returned
IloColumn object but not when calling this method.
lp - The IloLPMatrix object for which to create
the new column.
IloColumn object.
IloException
public ilog.concert.IloColumn column(ilog.concert.IloLPMatrix lp,
int[] ind,
double[] val)
throws IloException
IloColumn object suitable for adding a new
variable to an LP matrix as a new column. Note, that the column of the
LP matrix is only created when creating a variable with the returned
IloColumn object but not when calling this method.
lp - The IloLPMatrix object for which to create
the new column.ind - An array of indices indicating the row indices of the
non-zeros 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 non-zero
entries for the column.
IloColumn object suitable for creating
a new column in lp with nonzeros as
specified by parameters ind and
val.
IloException
public ilog.concert.IloColumn column(ilog.concert.IloLPMatrix lp,
int[] ind,
double[] val,
int start,
int num)
throws IloException
IloColumn object suitable for adding a new
variable to an LP matrix as a new column. Note, that the column of the
LP matrix is only created when creating a variable with the returned
IloColumn object but not when calling this method.
lp - The IloLPMatrix object for which to create
the new column.ind - An array containing the indices indicating the row
indices of the non-zeros 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
non-zero entries for the column.start - The index of the first element in arrays
ind and val to use.num - The number of elements in arrays ind and
val to use.
IloColumn object suitable for creating
a new column in lp with nonzeros as
specified in parameters ind and
val.
IloException
public ilog.concert.IloColumnArray columnArray(ilog.concert.IloLPMatrix lp,
int num,
int[][] ind,
double[][] val)
throws IloException
IloColumnArray object suitable for adding new
variables to an IloLPMatrix as columns. The procedure is
as follows: You create an IloColumnArray from an
IloLPMatrix by calling columnArray() with the
list of non-zeros for each new column given in arrays ind and
val. You optionally combine this column array with
IloColumnArray objects created for other modeling objects.
Then you create an array of variables by passing the so constructed
IloColumnArray object to the appropriate method of the
IloMPModeler you use.
lp - 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 elements in
ind and val to use.ind - An array of arrays of row indices of the non-zeros
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 non-zeros for each
of the new columns.
IloColumnArray object suitable for
creating new columns in the LP matrix lp
as specified by parameters ind and
val.
IloException
public ilog.concert.IloColumnArray columnArray(ilog.concert.IloLPMatrix lp,
int num)
throws IloException
IloColumnArray object suitable for adding new
variables to an IloLPMatrix as empty columns.
lp - 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.
IloException
public void addToExpr(ilog.concert.IloObjective obj,
ilog.concert.IloNumExpr expr)
throws IloException
IloObjective object.
obj - The objective to modify.expr - The new expression to add.
IloException
public ilog.concert.IloNumExpr prod(double val,
ilog.concert.IloNumVar var1,
ilog.concert.IloNumVar var2)
throws IloException
val, variablevar1 and variable
var2.
val - 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.
IloException
public ilog.concert.IloNumExpr prod(ilog.concert.IloNumVar var1,
double val,
ilog.concert.IloNumVar var2)
throws IloException
val, variablevar1 and variable
var2.
val - 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.
IloException
public ilog.concert.IloNumExpr prod(ilog.concert.IloNumVar var1,
ilog.concert.IloNumVar var2,
double val)
throws IloException
val, variablevar1 and variable
var2.
val - 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.
IloException
public void setLinearCoef(ilog.concert.IloObjective obj,
double val,
ilog.concert.IloNumVar var)
throws IloException
var to val
in the expression of the specified IloObjective object.
obj - The objective to modify.val - The coefficient to set.var - The variable for which to set the coefficient.
IloException
public void setLinearCoef(ilog.concert.IloObjective obj,
ilog.concert.IloNumVar var,
double val)
throws IloException
var to val
in the expression of the specified IloObjective object.
obj - The objective to modify.var - The variable for which to set the coefficient.val - The coefficient to set.
IloException
public void setLinearCoefs(ilog.concert.IloObjective obj,
double[] val,
ilog.concert.IloNumVar[] var)
throws IloException
IloObjective object.
obj - 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.
IloException
public void setLinearCoefs(ilog.concert.IloObjective obj,
ilog.concert.IloNumVar[] var,
double[] val)
throws IloException
IloObjective object.
obj - 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.
IloException
public void setLinearCoefs(ilog.concert.IloObjective obj,
double[] val,
ilog.concert.IloNumVar[] var,
int start,
int num)
throws IloException
IloObjective object.
obj - 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 elements in val and
var to use for setting coefficients.
IloException
public void setLinearCoefs(ilog.concert.IloObjective obj,
ilog.concert.IloNumVar[] var,
double[] val,
int start,
int num)
throws IloException
IloObjective object.
obj - 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 elements in val and
var to use for setting coefficients.
IloException
public void addToExpr(ilog.concert.IloRange rng,
ilog.concert.IloNumExpr expr)
throws IloException
IloRange object.
rng - The range constraint to modify.expr - The expression to add.
IloException
public void setLinearCoef(ilog.concert.IloRange rng,
double val,
ilog.concert.IloNumVar var)
throws IloException
var to val
in the expression of the specified IloRange object.
rng - The range constraint to modify.val - The coefficient to set.var - The variable for which to set the coefficient.
IloException
public void setLinearCoef(ilog.concert.IloRange rng,
ilog.concert.IloNumVar var,
double val)
throws IloException
var to val
in the expression of the specified IloRange object.
rng - The range constraint to modify.val - The coefficient to set.var - The variable for which to set the coefficient.
IloException
public void setLinearCoefs(ilog.concert.IloRange rng,
double[] val,
ilog.concert.IloNumVar[] var)
throws IloException
IloRange object.
rng - 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.
IloException
public void setLinearCoefs(ilog.concert.IloRange rng,
ilog.concert.IloNumVar[] var,
double[] val)
throws IloException
IloRange object.
rng - 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].
IloException
public void setLinearCoefs(ilog.concert.IloRange rng,
double[] val,
ilog.concert.IloNumVar[] var,
int start,
int num)
throws IloException
IloRange object.
rng - 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 elements in val and
var to use for setting coefficients.
IloException
public void setLinearCoefs(ilog.concert.IloRange rng,
ilog.concert.IloNumVar[] var,
double[] val,
int start,
int num)
throws IloException
IloRange object.
rng - 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 elements in val and
var to use for setting coefficients.
IloException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||