ilog.concert
Interface IloMPModeler

All Superinterfaces:
IloAddable, IloModel, IloModeler
All Known Implementing Classes:
IloCplex

public interface IloMPModeler
extends IloModeler

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.

See Also:
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.IloModeler
addEq, addEq, addEq, addEq, addEq, addEq, addGe, addGe, addGe, addGe, addGe, addGe, addLe, addLe, addLe, addLe, addLe, addLe, addMaximize, addMaximize, addMinimize, addMinimize, addObjective, addObjective, addRange, addRange, boolVar, boolVar, boolVarArray, boolVarArray, constant, constant, diff, diff, diff, diff, diff, diff, eq, eq, eq, eq, eq, eq, ge, ge, ge, ge, ge, ge, intVar, intVar, intVarArray, intVarArray, intVarArray, intVarArray, le, le, le, le, le, le, linearIntExpr, linearIntExpr, linearNumExpr, linearNumExpr, maximize, maximize, minimize, minimize, negative, negative, numVar, numVar, numVar, numVar, numVarArray, numVarArray, numVarArray, numVarArray, numVarArray, numVarArray, numVarArray, numVarArray, objective, objective, prod, prod, prod, prod, prod, prod, range, range, scalProd, scalProd, scalProd, scalProd, scalProd, scalProd, scalProd, scalProd, scalProd, scalProd, square, square, sum, sum, sum, sum, sum, sum, sum, sum, sum, sum, sum, sum, sum, sum, sum, sum, sum, sum, sum, sum, sum, sum
 
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

delete

public void delete(ilog.concert.IloCopyable obj)
            throws IloException
Deletes an object from a model.

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.

Parameters:
obj - The modeling object to be deleted from the invoking IloModel.
IloException

delete

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.

Parameters:
obj - The array of modeling objects to be deleted from the invoking IloModel
IloException

delete

public void delete(ilog.concert.IloCopyable[] obj,
                   int start,
                   int num)
            throws IloException
Deletes the modeling objects in 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.

Parameters:
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

minimize

public ilog.concert.IloObjective minimize()
                                   throws IloException
Creates and returns an empty minimization objective function. This method creates and returns an 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.

Returns:
The new zero minimization objective.
IloException

minimize

public ilog.concert.IloObjective minimize(java.lang.String name)
                                   throws IloException
Creates and returns an empty minimization objective function. This method creates and returns an 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.

Parameters:
name - The name assigned to the new objective.
Returns:
The new zero minimization objective.
IloException

maximize

public ilog.concert.IloObjective maximize()
                                   throws IloException
Creates and returns an empty maximization objective function. This method creates an 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.

Returns:
The new zero maximization objective.
IloException

maximize

public ilog.concert.IloObjective maximize(java.lang.String name)
                                   throws IloException
Creates and returns an empty maximization objective function. This method creates an 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.

Parameters:
name - The name assigned to the new objective.
Returns:
The new zero maximization objective.
IloException

objective

public ilog.concert.IloObjective objective(ilog.concert.IloObjectiveSense sense)
                                    throws IloException
Creates and returns an empty objective function. This method creates and returns an 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.

Parameters:
sense - The optimization sense of the new objective.
Returns:
The new zero objective.
IloException

objective

public ilog.concert.IloObjective objective(ilog.concert.IloObjectiveSense sense,
                                           java.lang.String name)
                                    throws IloException
Creates and returns an empty objective function. This method creates and returns an 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.

Parameters:
sense - The optimization sense of the new objective.
name - The name assigned to the new objective.
Returns:
The new zero objective.
IloException

addMinimize

public ilog.concert.IloObjective addMinimize()
                                      throws IloException
Creates and returns an empty minimization objective function. This method creates and returns an 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.

Returns:
The new zero minimization objective.
IloException

addMinimize

public ilog.concert.IloObjective addMinimize(java.lang.String name)
                                      throws IloException
Creates and returns an empty minimization objective function. This method creates and returns an 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.

Parameters:
name - The name assigned to the new objective.
Returns:
The new zero minimization objective.
IloException

addMaximize

public ilog.concert.IloObjective addMaximize()
                                      throws IloException
Creates and returns an empty maximization objective function. This method creates and returns an 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.

Returns:
The new zero maximization objective.
IloException

addMaximize

public ilog.concert.IloObjective addMaximize(java.lang.String name)
                                      throws IloException
Creates and returns an empty maximization objective function. This method creates and returns an 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.

Parameters:
name - The name assigned to the new objective.
Returns:
The new zero maximization objective.
IloException

addObjective

public ilog.concert.IloObjective addObjective(ilog.concert.IloObjectiveSense sense)
                                       throws IloException
Creates and returns an empty objective function. This method creates and returns an 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.

Parameters:
sense - The optimization sense of the new objective.
Returns:
The new zero objective.
IloException

addObjective

public ilog.concert.IloObjective addObjective(ilog.concert.IloObjectiveSense sense,
                                              java.lang.String name)
                                       throws IloException
Creates and returns an empty objective function. This method creates and returns an 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.

Parameters:
sense - The optimization sense of the new objective.
name - The name assigned to the new objective.
Returns:
The new zero objective.
IloException

addRange

public ilog.concert.IloRange addRange(double lb,
                                      double ub)
                               throws IloException
Creates and returns an empty 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.

Parameters:
lb - The lower bound of the new IloRange constraint.
ub - The upper bound of the new IloRange constraint.
Returns:
A new IloRange object initialized to represent the constraint lb <= 0 <= ub.
IloException

addRange

public ilog.concert.IloRange addRange(double lb,
                                      double ub,
                                      java.lang.String name)
                               throws IloException
Creates and returns an empty 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.

Parameters:
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.
Returns:
A new IloRange object initialized to represent the constraint lb <= 0 <= ub.
IloException

range

public ilog.concert.IloRange range(double lb,
                                   double ub)
                            throws IloException
Creates and returns an empty 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.

Parameters:
lb - The lower bound of the new IloRange constraint.
ub - The upper bound of the new IloRange constraint.
Returns:
A new IloRange object initialized to represent the constraint lb <= 0 <= ub.
IloException

range

public ilog.concert.IloRange range(double lb,
                                   double ub,
                                   java.lang.String name)
                            throws IloException
Creates and returns an empty 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.

Parameters:
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.
Returns:
A new IloRange object initialized to represent the constraint lb <= 0 <= ub.
IloException

numVar

public ilog.concert.IloNumVar numVar(ilog.concert.IloColumn column,
                                     double lb,
                                     double ub,
                                     ilog.concert.IloNumVarType type,
                                     java.lang.String name)
                              throws IloException
Creates and returns a new modeling variable with column-wise modeling. This method returns an object representing a new modeling variable with the specified bounds, type, and name. The newly created variable is then installed in existing modeling objects, as described by the IloColumn parameter column.

Parameters:
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.
Returns:
The new modeling variable.
IloException

numVar

public ilog.concert.IloNumVar numVar(ilog.concert.IloColumn column,
                                     double lb,
                                     double ub,
                                     ilog.concert.IloNumVarType type)
                              throws IloException
Creates and returns a new modeling variable with column-wise modeling. This method returns an object representing a new modeling variable with the specified bounds and type. The newly created variable is then installed in existing modeling objects, as described by the IloColumn parameter column.

Parameters:
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.
Returns:
The new modeling variable.
IloException

numVarArray

public ilog.concert.IloNumVar[] numVarArray(ilog.concert.IloColumnArray cols,
                                            double lb,
                                            double ub,
                                            ilog.concert.IloNumVarType type,
                                            java.lang.String[] name)
                                     throws IloException
Creates and returns modeling variables with column-wise modeling. This method creates new modeling variables, each with the same specified bounds and type, 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 assigned name name[i]. The new variables are then installed in existing modeling objects, as described by the IloColumnArray parameter cols.

Parameters:
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].
Returns:
The array of new modeling variables.
IloException

numVarArray

public ilog.concert.IloNumVar[] numVarArray(ilog.concert.IloColumnArray cols,
                                            double lb,
                                            double ub,
                                            ilog.concert.IloNumVarType type)
                                     throws IloException
Creates and returns modeling variables with column-wise modeling. This method creates new modeling variables, each with the same specified bounds and type, 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.

Parameters:
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.
Returns:
The array of new modeling variables.
IloException

numVarArray

public ilog.concert.IloNumVar[] numVarArray(ilog.concert.IloColumnArray cols,
                                            double[] lb,
                                            double[] ub,
                                            ilog.concert.IloNumVarType[] type)
                                     throws IloException
Creates and returns modeling variables with column-wise modeling. This method creates new modeling variables, each with its own bounds and type, and returns them in an array. The number of new variables is determined by the size of the 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.

Parameters:
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].
Returns:
The array of new modeling variables.
IloException

numVarArray

public ilog.concert.IloNumVar[] numVarArray(ilog.concert.IloColumnArray cols,
                                            double[] lb,
                                            double[] ub,
                                            ilog.concert.IloNumVarType[] type,
                                            java.lang.String[] name)
                                     throws IloException
Creates and returns modeling variables with column-wise modeling. This method creates new modeling variables, each with its own bounds and type, 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 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.

Parameters:
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].
Returns:
The array of new modeling variables.
IloException

numVar

public ilog.concert.IloNumVar numVar(ilog.concert.IloColumn column,
                                     double lb,
                                     double ub,
                                     java.lang.String name)
                              throws IloException
Creates a continuous modeling variable with column-wise modeling. This method returns an object representing a new modeling variable of type 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.

Parameters:
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.
Returns:
The new continuous modeling variable.
IloException

numVar

public ilog.concert.IloNumVar numVar(ilog.concert.IloColumn column,
                                     double lb,
                                     double ub)
                              throws IloException
Creates a continuous modeling variable with column-wise modeling. This method returns an object representing a new modeling variable of type IloNumVarType.Float with the specified bounds. The newly created variable is then installed in existing modeling objects as described by the IloColumn parameter column.

Parameters:
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.
Returns:
The new continuous modeling variable.
IloException

numVarArray

public ilog.concert.IloNumVar[] numVarArray(ilog.concert.IloColumnArray cols,
                                            double lb,
                                            double ub,
                                            java.lang.String[] name)
                                     throws IloException
Creates and returns continuous modeling variables with column-wise modeling. This method creates new modeling variables of type 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.

Parameters:
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].
Returns:
The array of new continuous modeling variables.
IloException

numVarArray

public ilog.concert.IloNumVar[] numVarArray(ilog.concert.IloColumnArray cols,
                                            double lb,
                                            double ub)
                                     throws IloException
Creates and returns continuous modeling variables with column-wise modeling. This method creates new modeling variables of type 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.

Parameters:
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.
Returns:
The array of new continuous modeling variables.
IloException

numVarArray

public ilog.concert.IloNumVar[] numVarArray(ilog.concert.IloColumnArray cols,
                                            double[] lb,
                                            double[] ub)
                                     throws IloException
Creates and returns continuous modeling variables with column-wise modeling. This method creates new modeling variables of type 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.

Parameters:
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].
Returns:
The array of new continuous modeling variables
IloException

numVarArray

public ilog.concert.IloNumVar[] numVarArray(ilog.concert.IloColumnArray cols,
                                            double[] lb,
                                            double[] ub,
                                            java.lang.String[] name)
                                     throws IloException
Creates and returns continuous modeling variables with column-wise modeling. This method creates new modeling variables of type 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.

Parameters:
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].
Returns:
The array of new continuous modeling variables.
IloException

intVar

public ilog.concert.IloIntVar intVar(ilog.concert.IloColumn column,
                                     int lb,
                                     int ub,
                                     java.lang.String name)
                              throws IloException
Creates an integer modeling variable with column-wise modeling. This method returns an object representing a new modeling variable of type 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.

Parameters:
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.
Returns:
The new integer modeling variable.
IloException

intVar

public ilog.concert.IloIntVar intVar(ilog.concert.IloColumn column,
                                     int lb,
                                     int ub)
                              throws IloException
Creates an integer modeling variable with column-wise modeling. This method returns an object representing a new modeling variable of type IloNumVarType.Int with the specified bounds. The newly created variable is then installed in existing modeling objects as described by the IloColumn parameter column.

Parameters:
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.
Returns:
The new integer modeling variable.
IloException

intVarArray

public ilog.concert.IloIntVar[] intVarArray(ilog.concert.IloColumnArray cols,
                                            int lb,
                                            int ub,
                                            java.lang.String[] name)
                                     throws IloException
Creates and returns integer modeling variables with column-wise modeling. This method creates new modeling variables of type 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.

Parameters:
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].
Returns:
The array of new integer modeling variables.
IloException

intVarArray

public ilog.concert.IloIntVar[] intVarArray(ilog.concert.IloColumnArray cols,
                                            int lb,
                                            int ub)
                                     throws IloException
Creates and returns integer modeling variables with column-wise modeling. This method creates new modeling variables of type 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.

Parameters:
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.
Returns:
The array of new integer modeling variables.
IloException

intVarArray

public ilog.concert.IloIntVar[] intVarArray(ilog.concert.IloColumnArray cols,
                                            int[] lb,
                                            int[] ub)
                                     throws IloException
Creates and returns integer modeling variables with column-wise modeling. This method creates new modeling variables of type 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.

Parameters:
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].
Returns:
The array of new integer modeling variables.
IloException

intVarArray

public ilog.concert.IloIntVar[] intVarArray(ilog.concert.IloColumnArray cols,
                                            int[] lb,
                                            int[] ub,
                                            java.lang.String[] name)
                                     throws IloException
Creates and returns integer modeling variables with column-wise modeling. This method creates new modeling variables of type 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.

Parameters:
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].
Returns:
The array of new integer modeling variables.
IloException

boolVar

public ilog.concert.IloIntVar boolVar(ilog.concert.IloColumn column)
                               throws IloException
Creates a new Boolean or binary modeling variable with column-wise modeling. This method returns an object representing a new modeling variable of type IloNumVarType.Bool. The newly created variable is then installed in existing modeling objects as described by the IloColumn parameter column.

Parameters:
column - The column object describing where to install the new variable.
Returns:
The new Boolean modeling variable.
IloException

boolVar

public ilog.concert.IloIntVar boolVar(ilog.concert.IloColumn column,
                                      java.lang.String name)
                               throws IloException
Creates a new Boolean or binary modeling variable with column-wise modeling. This method returns an object representing a new modeling variable of type IloNumVarType.Bool with the specified name. The newly created variable is then installed in existing modeling objects as described by the IloColumn parameter column.

Parameters:
column - The column object describing where to install the new variable.
name - The name of the new modeling variable.
Returns:
The new Boolean modeling variable.
IloException

boolVarArray

public ilog.concert.IloIntVar[] boolVarArray(ilog.concert.IloColumnArray cols)
                                      throws IloException
Creates and returns Boolean or binary modeling variables with column-wise modeling. This method creates new modeling variables of type 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.

Parameters:
cols - The IloColumnArray object describing where to install the new variables.
Returns:
The array of new Boolean modeling variables
IloException

boolVarArray

public ilog.concert.IloIntVar[] boolVarArray(ilog.concert.IloColumnArray cols,
                                             java.lang.String[] name)
                                      throws IloException
Creates and returns Boolean or binary modeling variables with column-wise modeling. This method creates new modeling variables of type 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.

Parameters:
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].
Returns:
The array of new Boolean modeling variables.
IloException

semiContVar

public ilog.concert.IloSemiContVar semiContVar(double sclb,
                                               double ub,
                                               ilog.concert.IloNumVarType type)
                                        throws IloException
Creates and returns a new semi-continuous modeling variable. This method returns an object representing a new semi-continuous modeling variable with the specified bounds and type.

Parameters:
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.
Returns:
The new modeling variable.
IloException

semiContVar

public ilog.concert.IloSemiContVar semiContVar(double sclb,
                                               double ub,
                                               ilog.concert.IloNumVarType type,
                                               java.lang.String name)
                                        throws IloException
Creates and returns a new semi-continuous modeling variable. This method returns an object representing a new semi-continuous modeling variable with the specified bounds, type, and name.

Parameters:
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.
Returns:
The new modeling variable.
IloException

semiContVar

public ilog.concert.IloSemiContVar semiContVar(ilog.concert.IloColumn column,
                                               double sclb,
                                               double ub,
                                               ilog.concert.IloNumVarType type)
                                        throws IloException
Creates and returns a new semi-continuous modeling variable with column-wise modeling. This method returns an object representing a new semi-continuous modeling variable with the specified bounds and type. The newly created variable is then installed in existing modeling objects as described by the IloColumn parameter column.

Parameters:
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.
Returns:
The new modeling variable.
IloException

semiContVar

public ilog.concert.IloSemiContVar semiContVar(ilog.concert.IloColumn column,
                                               double sclb,
                                               double ub,
                                               ilog.concert.IloNumVarType type,
                                               java.lang.String name)
                                        throws IloException
Creates and returns a new semi-continuous modeling variable with column-wise modeling. This method returns an object representing a new semi-continuous modeling variable with the specified bounds, type, and name. The newly created variable is then installed in existing modeling objects as described by the IloColumn parameter column.

Parameters:
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.
Returns:
The new modeling variable.
IloException

semiContVarArray

public ilog.concert.IloSemiContVar[] semiContVarArray(int n,
                                                      double sclb,
                                                      double ub,
                                                      ilog.concert.IloNumVarType type,
                                                      java.lang.String[] name)
                                               throws IloException
Creates and returns 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].

Parameters:
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].
Returns:
The array of new modeling variables.
IloException

semiContVarArray

public ilog.concert.IloSemiContVar[] semiContVarArray(int n,
                                                      double sclb,
                                                      double ub,
                                                      ilog.concert.IloNumVarType type)
                                               throws IloException
Creates and returns 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.

Parameters:
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.
Returns:
The array of new modeling variables.
IloException

semiContVarArray

public ilog.concert.IloSemiContVar[] semiContVarArray(int n,
                                                      double[] sclb,
                                                      double[] ub,
                                                      ilog.concert.IloNumVarType[] type,
                                                      java.lang.String[] name)
                                               throws IloException
Creates and returns 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].

Parameters:
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].
Returns:
The array of new modeling variables.
IloException

semiContVarArray

public ilog.concert.IloSemiContVar[] semiContVarArray(int n,
                                                      double[] sclb,
                                                      double[] ub,
                                                      ilog.concert.IloNumVarType[] type)
                                               throws IloException
Creates and returns 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].

Parameters:
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].
Returns:
The array of new modeling variables.
IloException

semiContVarArray

public ilog.concert.IloSemiContVar[] semiContVarArray(ilog.concert.IloColumnArray cols,
                                                      double sclb,
                                                      double ub,
                                                      ilog.concert.IloNumVarType type,
                                                      java.lang.String[] name)
                                               throws IloException
Creates and returns semi-continuous modeling variables with column-wise modeling. This method creates new semi-continuous modeling variables, each with the same specified bounds and type, 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.

Parameters:
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].
Returns:
The array of new modeling variables.
IloException

semiContVarArray

public ilog.concert.IloSemiContVar[] semiContVarArray(ilog.concert.IloColumnArray cols,
                                                      double sclb,
                                                      double ub,
                                                      ilog.concert.IloNumVarType type)
                                               throws IloException
Creates and returns semi-continuous modeling variables with column-wise modeling. This method creates new semi-continuous modeling variables, each with the same specified bounds and type, 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.

Parameters:
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.
Returns:
The array of new modeling variables.
IloException

semiContVarArray

public ilog.concert.IloSemiContVar[] semiContVarArray(ilog.concert.IloColumnArray cols,
                                                      double[] sclb,
                                                      double[] ub,
                                                      ilog.concert.IloNumVarType[] type)
                                               throws IloException
Creates and returns semi-continuous modeling variables with column-wise modeling. This method creates new semi-continuous modeling variables, each with its own bounds and type, 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 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.

Parameters:
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].
Returns:
The array of new modeling variables.
IloException

semiContVarArray

public ilog.concert.IloSemiContVar[] semiContVarArray(ilog.concert.IloColumnArray cols,
                                                      double[] sclb,
                                                      double[] ub,
                                                      ilog.concert.IloNumVarType[] type,
                                                      java.lang.String[] name)
                                               throws IloException
Creates and returns semi-continuous modeling variables with column-wise modeling. This method creates new semi-continuous modeling variables, each with its own bounds and type, 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 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.

Parameters:
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].
Returns:
The array of new modeling variables.
IloException

piecewiseLinear

public ilog.concert.IloNumExpr piecewiseLinear(ilog.concert.IloNumExpr expr,
                                               double[] points,
                                               double[] slopes,
                                               double a,
                                               double fa)
                                        throws IloException
Creates an expression node that represents a continuous or discontinuous piecewise linear function.

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.

Parameters:
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.
Returns:
A piecewise linear function of expr.
IloException

piecewiseLinear

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
Creates an expression node to represent a continuous or discontinuous piecewise linear function.

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.

Parameters:
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.
Returns:
A piecewise linear function of expr.
IloException

conversion

public ilog.concert.IloConversion conversion(ilog.concert.IloNumVar var,
                                             ilog.concert.IloNumVarType type)
                                      throws IloException
Creates and returns an IloConversion object for converting the type of a variable in a model.

Parameters:
var - The variable the type of which is to be converted.
type - The converted type for variable var.
Returns:
The new IloConversion object.
IloException

conversion

public ilog.concert.IloConversion conversion(ilog.concert.IloNumVar var,
                                             ilog.concert.IloNumVarType type,
                                             java.lang.String name)
                                      throws IloException
Creates and returns an IloConversion object for converting the type of a variable in a model. The new conversion object is assigned the specified name.

Parameters:
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.
Returns:
The new IloConversion object.
IloException

conversion

public ilog.concert.IloConversion conversion(ilog.concert.IloNumVar[] var,
                                             ilog.concert.IloNumVarType type)
                                      throws IloException
Creates and returns an IloConversion object for converting the type of the variables in array var in a model.

Parameters:
var - The array of variables the types of which are to be converted.
type - The converted type for all variables in var.
Returns:
The new IloConversion object.
IloException

conversion

public ilog.concert.IloConversion conversion(ilog.concert.IloNumVar[] var,
                                             ilog.concert.IloNumVarType type,
                                             java.lang.String name)
                                      throws IloException
Creates and returns an IloConversion object for converting the type of the variables in array var in a model. The new conversion object is assigned the specified name.

Parameters:
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.
Returns:
The new IloConversion object.
IloException

conversion

public ilog.concert.IloConversion conversion(ilog.concert.IloNumVar[] var,
                                             ilog.concert.IloNumVarType[] type)
                                      throws IloException
Creates and returns an IloConversion object for converting the type of the variables in array var in a model.

Parameters:
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].
Returns:
The new IloConversion object.
IloException

conversion

public ilog.concert.IloConversion conversion(ilog.concert.IloNumVar[] var,
                                             ilog.concert.IloNumVarType[] type,
                                             java.lang.String name)
                                      throws IloException
Creates and returns an IloConversion object for converting the type of the variables in array var in a model. The new conversion object is assigned the specified name.

Parameters:
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.
Returns:
The new IloConversion object.
IloException

addLPMatrix

public ilog.concert.IloLPMatrix addLPMatrix()
                                     throws IloException
Creates and returns an empty 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.

Returns:
The new IloLPMatrix object.
IloException

addLPMatrix

public ilog.concert.IloLPMatrix addLPMatrix(java.lang.String name)
                                     throws IloException
Creates and returns an empty 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.

Parameters:
name - The name for the new IloLPMatrix object.
Returns:
The new IloLPMatrix object.
IloException

LPMatrix

public ilog.concert.IloLPMatrix LPMatrix()
                                  throws IloException
Creates and returns an empty 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.

Returns:
The new IloLPMatrix object.
IloException

LPMatrix

public ilog.concert.IloLPMatrix LPMatrix(java.lang.String name)
                                  throws IloException
Creates and returns an empty 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.

Parameters:
name - The name for the new IloLPMatrix object.
Returns:
The new IloLPMatrix object.
IloException

addSOS1

public ilog.concert.IloSOS1 addSOS1(ilog.concert.IloNumVar[] var,
                                    double[] val)
                             throws IloException
Creates an SOS of type 1 with the specified variables and weight values. The new SOS is added to the invoking IloModel model.

Parameters:
var - The variables in the new SOS.
val - The weight values for the variables in the new SOS.
Returns:
The new IloSOS1 object.
IloException

addSOS1

public ilog.concert.IloSOS1 addSOS1(ilog.concert.IloNumVar[] var,
                                    double[] val,
                                    int start,
                                    int num)
                             throws IloException
Creates an SOS of type 1 with the specified variables and weight values. The new SOS is added to the invoking IloModel model.

Parameters:
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.
Returns:
The new IloSOS1 object.
IloException

addSOS1

public ilog.concert.IloSOS1 addSOS1(ilog.concert.IloNumVar[] var,
                                    double[] val,
                                    java.lang.String name)
                             throws IloException
Creates an SOS of type 1 with the specified variables and weight values. The new SOS is added to the invoking IloModel model.

Parameters:
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.
Returns:
The new IloSOS1 object.
IloException

addSOS1

public ilog.concert.IloSOS1 addSOS1(ilog.concert.IloNumVar[] var,
                                    double[] val,
                                    int start,
                                    int num,
                                    java.lang.String name)
                             throws IloException
Creates an SOS of type 1 with the specified variables and weight values. The new SOS is added to the invoking IloModel model.

Parameters:
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.
Returns:
The new IloSOS1 object.
IloException

addSOS2

public ilog.concert.IloSOS2 addSOS2(ilog.concert.IloNumVar[] var,
                                    double[] val)
                             throws IloException
Creates an SOS of type 2 with the specified variables and weight values. The new SOS is added to the invoking IloModel model.

Parameters:
var - The variables in the new SOS.
val - The weight values for the variables in the new SOS.
Returns:
The new IloSOS2 object.
IloException

addSOS2

public ilog.concert.IloSOS2 addSOS2(ilog.concert.IloNumVar[] var,
                                    double[] val,
                                    int start,
                                    int num)
                             throws IloException
Creates an SOS of type 2 with the specified variables and weight values. The new SOS is added to the invoking IloModel model.

Parameters:
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.
Returns:
The new IloSOS2 object.
IloException

addSOS2

public ilog.concert.IloSOS2 addSOS2(ilog.concert.IloNumVar[] var,
                                    double[] val,
                                    java.lang.String name)
                             throws IloException
Creates an SOS of type 2 with the specified variables and weight values. The new SOS is added to the invoking IloModel model.

Parameters:
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.
Returns:
The new IloSOS2 object.
IloException

addSOS2

public ilog.concert.IloSOS2 addSOS2(ilog.concert.IloNumVar[] var,
                                    double[] val,
                                    int start,
                                    int num,
                                    java.lang.String name)
                             throws IloException
Creates an SOS of type 2 with the specified variables and weight values. The new SOS is added to the invoking IloModel model.

Parameters:
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.
Returns:
The new IloSOS2 object.
IloException

SOS1

public ilog.concert.IloSOS1 SOS1(ilog.concert.IloNumVar[] var,
                                 double[] val)
                          throws IloException
Creates an SOS of type 1 with the specified variables and weight values.

Parameters:
var - The variables in the new SOS.
val - The weight values for the variables in the new SOS.
Returns:
The new IloSOS1 object.
IloException

SOS1

public ilog.concert.IloSOS1 SOS1(ilog.concert.IloNumVar[] var,
                                 double[] val,
                                 int start,
                                 int num)
                          throws IloException
Creates an SOS of type 1 with the specified variables and weight values.

Parameters:
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.
Returns:
The new IloSOS1 object.
IloException

SOS1

public ilog.concert.IloSOS1 SOS1(ilog.concert.IloNumVar[] var,
                                 double[] val,
                                 java.lang.String name)
                          throws IloException
Creates an SOS of type 1 with the specified variables and weight values. The new SOS is assigned name name.

Parameters:
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.
Returns:
The new IloSOS1 object.
IloException

SOS1

public ilog.concert.IloSOS1 SOS1(ilog.concert.IloNumVar[] var,
                                 double[] val,
                                 int start,
                                 int num,
                                 java.lang.String name)
                          throws IloException
Creates an SOS of type 1 with the specified variables and weight values. The new SOS is assigned name name.

Parameters:
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.
Returns:
The new IloSOS1 object.
IloException

SOS2

public ilog.concert.IloSOS2 SOS2(ilog.concert.IloNumVar[] var,
                                 double[] val)
                          throws IloException
Creates an SOS of type 2 with the specified variables and weight values.

Parameters:
var - The variables in the new SOS.
val - The weight values for the variables in the new SOS.
Returns:
The new IloSOS2 object.
IloException

SOS2

public ilog.concert.IloSOS2 SOS2(ilog.concert.IloNumVar[] var,
                                 double[] val,
                                 int start,
                                 int num)
                          throws IloException
Creates an SOS of type 2 with the specified variables and weight values.

Parameters:
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.
Returns:
The new IloSOS2 object.
IloException

SOS2

public ilog.concert.IloSOS2 SOS2(ilog.concert.IloNumVar[] var,
                                 double[] val,
                                 java.lang.String name)
                          throws IloException
Creates an SOS of type 2 with the specified variables and weight values. The new SOS is assigned name name.

Parameters:
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.
Returns:
The new IloSOS2 object.
IloException

SOS2

public ilog.concert.IloSOS2 SOS2(ilog.concert.IloNumVar[] var,
                                 double[] val,
                                 int start,
                                 int num,
                                 java.lang.String name)
                          throws IloException
Creates an SOS of type 2 with the specified variables and weight values. The new SOS is assigned name name.

Parameters:
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.
Returns:
The new IloSOS2 object.
IloException

column

public ilog.concert.IloColumn column(ilog.concert.IloRange rng,
                                     double val)
                              throws IloException
Creates an IloColumn object suitable for adding a new variable to constraint rng as a linear term with coefficient val.

Parameters:
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.
Returns:
The new IloColumn object.
IloException

columnArray

public ilog.concert.IloColumnArray columnArray(ilog.concert.IloRange rng,
                                               double[] val)
                                        throws IloException
Creates an IloColumnArray suitable for adding new variables to constraint rng as linear terms with coefficients specified in val.

Parameters:
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.
Returns:
The new IloColumnArray object.
IloException

columnArray

public ilog.concert.IloColumnArray columnArray(ilog.concert.IloRange rng,
                                               double[] val,
                                               int start,
                                               int num)
                                        throws IloException
Creates an IloColumnArray suitable for adding num new variables to constraint IloRange as linear terms with coefficients specified in val.

Parameters:
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.
Returns:
The new IloColumnArray object.
IloException

column

public ilog.concert.IloColumn column(ilog.concert.IloObjective obj,
                                     double val)
                              throws IloException
Creates an IloColumn object suitable for adding a new variable to the objective obj as a linear term with coefficient val.

Parameters:
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.
Returns:
The new IloColumn object.
IloException

columnArray

public ilog.concert.IloColumnArray columnArray(ilog.concert.IloObjective obj,
                                               double[] val)
                                        throws IloException
Creates an IloColumnArray object suitable for adding new variables to the objective obj as linear terms with coefficients specified in val.

Parameters:
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.
Returns:
The new IloColumnArray object.
IloException

columnArray

public ilog.concert.IloColumnArray columnArray(ilog.concert.IloObjective obj,
                                               double[] val,
                                               int start,
                                               int num)
                                        throws IloException
Creates an IloColumnArray object suitable for adding num new variables to the objective obj as linear terms with coefficients specified in val.

Parameters:
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.
Returns:
The new IloColumnArray object.
IloException

column

public ilog.concert.IloColumn column(ilog.concert.IloLPMatrix lp)
                              throws IloException
Creates an 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.

Parameters:
lp - The IloLPMatrix object for which to create the new column.
Returns:
The new IloColumn object.
IloException

column

public ilog.concert.IloColumn column(ilog.concert.IloLPMatrix lp,
                                     int[] ind,
                                     double[] val)
                              throws IloException
Creates an 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.

Parameters:
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.
Returns:
An IloColumn object suitable for creating a new column in lp with nonzeros as specified by parameters ind and val.
IloException

column

public ilog.concert.IloColumn column(ilog.concert.IloLPMatrix lp,
                                     int[] ind,
                                     double[] val,
                                     int start,
                                     int num)
                              throws IloException
Creates an 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.

Parameters:
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.
Returns:
An IloColumn object suitable for creating a new column in lp with nonzeros as specified in parameters ind and val.
IloException

columnArray

public ilog.concert.IloColumnArray columnArray(ilog.concert.IloLPMatrix lp,
                                               int num,
                                               int[][] ind,
                                               double[][] val)
                                        throws IloException
Creates an 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.

Parameters:
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.
Returns:
An IloColumnArray object suitable for creating new columns in the LP matrix lp as specified by parameters ind and val.
IloException

columnArray

public ilog.concert.IloColumnArray columnArray(ilog.concert.IloLPMatrix lp,
                                               int num)
                                        throws IloException
Creates an IloColumnArray object suitable for adding new variables to an IloLPMatrix as empty columns.

Parameters:
lp - The IloLPMatrix object for which to create the new column.
num - The size of the new column array term to create.
Returns:
An IloColumnArray object suitable for creating num empty columns to the IloLPMatrix.
IloException

addToExpr

public void addToExpr(ilog.concert.IloObjective obj,
                      ilog.concert.IloNumExpr expr)
               throws IloException
Adds an expression term to the expression of the specified IloObjective object.

Parameters:
obj - The objective to modify.
expr - The new expression to add.
IloException

prod

public ilog.concert.IloNumExpr prod(double val,
                                    ilog.concert.IloNumVar var1,
                                    ilog.concert.IloNumVar var2)
                             throws IloException
Creates and returns an expression object representing the product of value val, variablevar1 and variable var2.

Parameters:
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.
Returns:
An expression object representing the product val * var1 * var2.
IloException

prod

public ilog.concert.IloNumExpr prod(ilog.concert.IloNumVar var1,
                                    double val,
                                    ilog.concert.IloNumVar var2)
                             throws IloException
Creates and returns an expression object representing the product of value val, variablevar1 and variable var2.

Parameters:
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.
Returns:
An expression object representing the product val * var1 * var2.
IloException

prod

public ilog.concert.IloNumExpr prod(ilog.concert.IloNumVar var1,
                                    ilog.concert.IloNumVar var2,
                                    double val)
                             throws IloException
Creates and returns an expression object representing the product of value val, variablevar1 and variable var2.

Parameters:
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.
Returns:
An expression object representing the product val * var1 * var2.
IloException

setLinearCoef

public void setLinearCoef(ilog.concert.IloObjective obj,
                          double val,
                          ilog.concert.IloNumVar var)
                   throws IloException
Sets linear coefficient for variable var to val in the expression of the specified IloObjective object.

Parameters:
obj - The objective to modify.
val - The coefficient to set.
var - The variable for which to set the coefficient.
IloException

setLinearCoef

public void setLinearCoef(ilog.concert.IloObjective obj,
                          ilog.concert.IloNumVar var,
                          double val)
                   throws IloException
Sets linear coefficient for variable var to val in the expression of the specified IloObjective object.

Parameters:
obj - The objective to modify.
var - The variable for which to set the coefficient.
val - The coefficient to set.
IloException

setLinearCoefs

public void setLinearCoefs(ilog.concert.IloObjective obj,
                           double[] val,
                           ilog.concert.IloNumVar[] var)
                    throws IloException
Sets linear coefficients for variables in the expression of the specified IloObjective object.

Parameters:
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

setLinearCoefs

public void setLinearCoefs(ilog.concert.IloObjective obj,
                           ilog.concert.IloNumVar[] var,
                           double[] val)
                    throws IloException
Sets linear coefficients for variables in the expression of the specified IloObjective object.

Parameters:
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

setLinearCoefs

public void setLinearCoefs(ilog.concert.IloObjective obj,
                           double[] val,
                           ilog.concert.IloNumVar[] var,
                           int start,
                           int num)
                    throws IloException
Sets linear coefficients for variables in the expression of the specified IloObjective object.

Parameters:
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

setLinearCoefs

public void setLinearCoefs(ilog.concert.IloObjective obj,
                           ilog.concert.IloNumVar[] var,
                           double[] val,
                           int start,
                           int num)
                    throws IloException
Sets linear coefficients for variables in the expression of the specified IloObjective object.

Parameters:
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

addToExpr

public void addToExpr(ilog.concert.IloRange rng,
                      ilog.concert.IloNumExpr expr)
               throws IloException
Adds an expression term to the expression of the specified IloRange object.

Parameters:
rng - The range constraint to modify.
expr - The expression to add.
IloException

setLinearCoef

public void setLinearCoef(ilog.concert.IloRange rng,
                          double val,
                          ilog.concert.IloNumVar var)
                   throws IloException
Sets linear coefficient for variable var to val in the expression of the specified IloRange object.

Parameters:
rng - The range constraint to modify.
val - The coefficient to set.
var - The variable for which to set the coefficient.
IloException

setLinearCoef

public void setLinearCoef(ilog.concert.IloRange rng,
                          ilog.concert.IloNumVar var,
                          double val)
                   throws IloException
Sets linear coefficient for variable var to val in the expression of the specified IloRange object.

Parameters:
rng - The range constraint to modify.
val - The coefficient to set.
var - The variable for which to set the coefficient.
IloException

setLinearCoefs

public void setLinearCoefs(ilog.concert.IloRange rng,
                           double[] val,
                           ilog.concert.IloNumVar[] var)
                    throws IloException
Sets linear coefficients for variables in the expression of the specified IloRange object.

Parameters:
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

setLinearCoefs

public void setLinearCoefs(ilog.concert.IloRange rng,
                           ilog.concert.IloNumVar[] var,
                           double[] val)
                    throws IloException
Sets linear coefficients for variables in the expression of the specified IloRange object.

Parameters:
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

setLinearCoefs

public void setLinearCoefs(ilog.concert.IloRange rng,
                           double[] val,
                           ilog.concert.IloNumVar[] var,
                           int start,
                           int num)
                    throws IloException
Sets linear coefficients for variables in the expression of the specified IloRange object.

Parameters:
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

setLinearCoefs

public void setLinearCoefs(ilog.concert.IloRange rng,
                           ilog.concert.IloNumVar[] var,
                           double[] val,
                           int start,
                           int num)
                    throws IloException
Sets linear coefficients for variables in the expression of the specified IloRange object.

Parameters:
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