ilog.concert
Interface IloModeler

All Superinterfaces:
IloAddable, IloModel
All Known Subinterfaces:
IloMPModeler
All Known Implementing Classes:
IloCplex

public interface IloModeler
extends IloModel

Interface for basic modeling.

IloModeler defines an interface for building basic optimization models. This interface contains methods for constructing variables, basic constraints, and objective function objects. It is typically implemented by such optimizer classes as IloCplex, available in ILOG CPLEX or IloSolverFactory, available in ILOG JSolver. By using this interface rather than the actual implementation class, you can create optimization models that can be solved by any optimizer implementing the interface.

This interface is an extension of the IloModel interface, and allows you to add modeling objects (instances of IloAddable) to an IloModeler object. For an optimizer implementing this interface, the model built corresponds to the model the optimizer will solve using its solve() method.

Note that there are two interfaces derived from IloModeler: IloCPModeler, available in ILOG JSolver and IloMPModeler, available in ILOG CPLEX. IloCPModeler defines the API for constraint-based engines. (An engine is an object whose function is to manipulate models that include variables and constraints.) IloMPModeler is a modeling interface for Mathematical Programming. It adds support for several new modeling object interfaces, including LP matrices, semi-continuous variables, and special ordered sets (SOSs). It extends the functionality of IloModeler to column-wise modeling and supports modification of variable types and expressions of ranged constraints and objective functions.


Method Summary
 ilog.concert.IloRange addEq(double val, ilog.concert.IloNumExpr expr)
          Creates and returns an IloRange object.
 ilog.concert.IloRange addEq(double val, ilog.concert.IloNumExpr expr, java.lang.String name)
          Creates and returns an IloRange object.
 ilog.concert.IloRange addEq(ilog.concert.IloNumExpr expr, double rhs)
          Creates and returns an IloRange object.
 ilog.concert.IloRange addEq(ilog.concert.IloNumExpr expr, double rhs, java.lang.String name)
          Creates and returns an IloRange object.
 ilog.concert.IloConstraint addEq(ilog.concert.IloNumExpr e1, ilog.concert.IloNumExpr e2)
          Creates and returns an IloRange object.
 ilog.concert.IloConstraint addEq(ilog.concert.IloNumExpr e1, ilog.concert.IloNumExpr e2, java.lang.String name)
          Creates and returns an IloRange object.
 ilog.concert.IloRange addGe(double val, ilog.concert.IloNumExpr expr)
          Creates and returns an IloRange object.
 ilog.concert.IloRange addGe(double val, ilog.concert.IloNumExpr expr, java.lang.String name)
          Creates and returns an IloRange object.
 ilog.concert.IloRange addGe(ilog.concert.IloNumExpr expr, double rhs)
          Creates and returns an IloRange object.
 ilog.concert.IloRange addGe(ilog.concert.IloNumExpr expr, double rhs, java.lang.String name)
          Creates and returns an IloRange object.
 ilog.concert.IloConstraint addGe(ilog.concert.IloNumExpr e1, ilog.concert.IloNumExpr e2)
          Creates and returns an IloRange object.
 ilog.concert.IloConstraint addGe(ilog.concert.IloNumExpr e1, ilog.concert.IloNumExpr e2, java.lang.String name)
          Creates and returns an IloRange object.
 ilog.concert.IloRange addLe(double val, ilog.concert.IloNumExpr expr)
          Creates and returns an IloRange object.
 ilog.concert.IloRange addLe(double val, ilog.concert.IloNumExpr expr, java.lang.String name)
          Creates and returns an IloRange object.
 ilog.concert.IloRange addLe(ilog.concert.IloNumExpr expr, double rhs)
          Creates and returns an IloRange object.
 ilog.concert.IloRange addLe(ilog.concert.IloNumExpr expr, double rhs, java.lang.String name)
          Creates and returns an IloRange object.
 ilog.concert.IloConstraint addLe(ilog.concert.IloNumExpr e1, ilog.concert.IloNumExpr e2)
          Creates and returns an IloRange object.
 ilog.concert.IloConstraint addLe(ilog.concert.IloNumExpr e1, ilog.concert.IloNumExpr e2, java.lang.String name)
          Creates and returns an IloRange object.
 ilog.concert.IloObjective addMaximize(ilog.concert.IloNumExpr expr)
          Creates and returns an IloObjective object.
 ilog.concert.IloObjective addMaximize(ilog.concert.IloNumExpr expr, java.lang.String name)
          Creates and returns an IloObjective object.
 ilog.concert.IloObjective addMinimize(ilog.concert.IloNumExpr expr)
          Creates and returns an IloObjective object.
 ilog.concert.IloObjective addMinimize(ilog.concert.IloNumExpr expr, java.lang.String name)
          Creates and returns an IloObjective object.
 ilog.concert.IloObjective addObjective(ilog.concert.IloObjectiveSense sense, ilog.concert.IloNumExpr expr)
          Creates and returns an IloObjective object.
 ilog.concert.IloObjective addObjective(ilog.concert.IloObjectiveSense sense, ilog.concert.IloNumExpr expr, java.lang.String name)
          Creates and returns an IloObjective object.
 ilog.concert.IloRange addRange(double lb, ilog.concert.IloNumExpr expr, double ub)
          Creates and returns an IloRange object.
 ilog.concert.IloRange addRange(double lb, ilog.concert.IloNumExpr expr, double ub, java.lang.String name)
          Creates and returns an IloRange object.
 ilog.concert.IloIntVar boolVar()
          Creates and returns a new Boolean variable (domain 0,1)
 ilog.concert.IloIntVar boolVar(java.lang.String name)
          Creates and returns a new Boolean variable (domain 0,1) and a name.
 ilog.concert.IloIntVar[] boolVarArray(int n)
          Creates and returns an array of n new Boolean variables (domain 0,1).
 ilog.concert.IloIntVar[] boolVarArray(int n, java.lang.String[] name)
          Creates and returns an array of n new Boolean variables (domain 0,1).
 ilog.concert.IloNumExpr constant(double x)
          Creates and returns an expression object representing the constant term x.
 ilog.concert.IloIntExpr constant(int x)
          Creates and returns a new constant expression equal to x.
 ilog.concert.IloNumExpr diff(double v, ilog.concert.IloNumExpr e1)
          Creates and returns an expression object representing the difference of value v and expression e1.
 ilog.concert.IloIntExpr diff(ilog.concert.IloIntExpr expr1, ilog.concert.IloIntExpr expr2)
          Creates and returns an integer expression object representing the difference of integer expressions expr1 and expr2.
 ilog.concert.IloIntExpr diff(ilog.concert.IloIntExpr e, int v)
          Creates and returns an integer expression object representing the difference of integer expression e and value v.
 ilog.concert.IloNumExpr diff(ilog.concert.IloNumExpr e, double v)
          Creates and returns an expression object representing the difference of expression e and value v.
 ilog.concert.IloNumExpr diff(ilog.concert.IloNumExpr e1, ilog.concert.IloNumExpr e2)
          Creates and returns an expression object representing the difference of expressions e1 and e2.
 ilog.concert.IloIntExpr diff(int v, ilog.concert.IloIntExpr e1)
          Creates and returns an integer expression object representing the difference of value v and integer expression e1.
 ilog.concert.IloRange eq(double val, ilog.concert.IloNumExpr expr)
          Creates and returns an IloRange object.
 ilog.concert.IloRange eq(double val, ilog.concert.IloNumExpr expr, java.lang.String name)
          Creates and returns an IloRange object.
 ilog.concert.IloRange eq(ilog.concert.IloNumExpr expr, double rhs)
          Creates and returns an IloRange object.
 ilog.concert.IloRange eq(ilog.concert.IloNumExpr expr, double rhs, java.lang.String name)
          Creates and returns an IloRange object.
 ilog.concert.IloConstraint eq(ilog.concert.IloNumExpr e1, ilog.concert.IloNumExpr e2)
          Creates and returns an IloRange object.
 ilog.concert.IloConstraint eq(ilog.concert.IloNumExpr e1, ilog.concert.IloNumExpr e2, java.lang.String name)
          Creates and returns an IloRange object.
 ilog.concert.IloRange ge(double val, ilog.concert.IloNumExpr expr)
          Creates and returns an IloRange object.
 ilog.concert.IloRange ge(double val, ilog.concert.IloNumExpr expr, java.lang.String name)
          Creates and returns an IloRange object.
 ilog.concert.IloRange ge(ilog.concert.IloNumExpr expr, double rhs)
          Creates and returns an IloRange object.
 ilog.concert.IloRange ge(ilog.concert.IloNumExpr expr, double rhs, java.lang.String name)
          Creates and returns an IloRange object.
 ilog.concert.IloConstraint ge(ilog.concert.IloNumExpr e1, ilog.concert.IloNumExpr e2)
          Creates and returns an IloRange object.
 ilog.concert.IloConstraint ge(ilog.concert.IloNumExpr e1, ilog.concert.IloNumExpr e2, java.lang.String name)
          Creates and returns an IloRange object.
 ilog.concert.IloIntVar intVar(int min, int max)
          Creates and returns a new integer variable with the specified bounds.
 ilog.concert.IloIntVar intVar(int min, int max, java.lang.String name)
          Creates and returns a new integer variable with the specified bounds and a name.
 ilog.concert.IloIntVar[] intVarArray(int n, int[] min, int[] max)
          Creates an array of length n initialized to n new integer variables, each variable with its own bounds.
 ilog.concert.IloIntVar[] intVarArray(int n, int[] min, int[] max, java.lang.String[] name)
          Creates an array of length n initialized to n new integer variables, each variable with its own bounds.
 ilog.concert.IloIntVar[] intVarArray(int n, int min, int max)
          Returns a new array of n integer variables with the specified bounds.
 ilog.concert.IloIntVar[] intVarArray(int n, int min, int max, java.lang.String[] name)
          Creates an array of length n initialized to n new modeling integer variables, each with the same specified bounds and returns them in an array.
 ilog.concert.IloRange le(double val, ilog.concert.IloNumExpr expr)
          Creates and returns an IloRange object.
 ilog.concert.IloRange le(double val, ilog.concert.IloNumExpr expr, java.lang.String name)
          Creates and returns an IloRange object.
 ilog.concert.IloRange le(ilog.concert.IloNumExpr expr, double rhs)
          Creates and returns an IloRange object.
 ilog.concert.IloRange le(ilog.concert.IloNumExpr expr, double rhs, java.lang.String name)
          Creates and returns an IloRange object.
 ilog.concert.IloConstraint le(ilog.concert.IloNumExpr e1, ilog.concert.IloNumExpr e2)
          Creates and returns an IloRange object.
 ilog.concert.IloConstraint le(ilog.concert.IloNumExpr e1, ilog.concert.IloNumExpr e2, java.lang.String name)
          Creates and returns an IloRange object.
 ilog.concert.IloLinearIntExpr linearIntExpr()
          Creates and returns a zero integer linear expression.
 ilog.concert.IloLinearIntExpr linearIntExpr(int val)
          Creates and returns an integer linear expression initialized to a constant.
 ilog.concert.IloLinearNumExpr linearNumExpr()
          Creates and returns a zero linear expression.
 ilog.concert.IloLinearNumExpr linearNumExpr(double val)
          Creates and returns a linear expression initialized to a constant.
 ilog.concert.IloObjective maximize(ilog.concert.IloNumExpr expr)
          Creates and returns an IloObjective object.
 ilog.concert.IloObjective maximize(ilog.concert.IloNumExpr expr, java.lang.String name)
          Creates and returns an IloObjective object.
 ilog.concert.IloObjective minimize(ilog.concert.IloNumExpr expr)
          Creates and returns an IloObjective object.
 ilog.concert.IloObjective minimize(ilog.concert.IloNumExpr expr, java.lang.String name)
          Creates and returns an IloObjective object.
 ilog.concert.IloIntExpr negative(ilog.concert.IloIntExpr e)
          Creates and returns the new expression -e, the negative of the expression e.
 ilog.concert.IloNumExpr negative(ilog.concert.IloNumExpr e)
          Creates and returns the new expression -e, the negative of the expression e.
 ilog.concert.IloNumVar numVar(double lb, double ub)
          Creates a new modeling variable object of the type IloNumVarType.Float.
 ilog.concert.IloNumVar numVar(double lb, double ub, ilog.concert.IloNumVarType type)
          Creates a new numerical variable object.
 ilog.concert.IloNumVar numVar(double lb, double ub, ilog.concert.IloNumVarType type, java.lang.String name)
          Creates a new modeling variable object.
 ilog.concert.IloNumVar numVar(double lb, double ub, java.lang.String name)
          Creates a new modeling variable object of the type IloNumVarType.Float.
 ilog.concert.IloNumVar[] numVarArray(int n, double[] lb, double[] ub)
          Creates an array of length n initialized to n new modeling variable objects of type IloNumVarType.Float.
 ilog.concert.IloNumVar[] numVarArray(int n, double[] lb, double[] ub, ilog.concert.IloNumVarType[] type)
          Creates n new numerical variable objects and returns them in an array.
 ilog.concert.IloNumVar[] numVarArray(int n, double[] lb, double[] ub, ilog.concert.IloNumVarType[] type, java.lang.String[] name)
          Creates n new numerical variable objects and returns them in an array.
 ilog.concert.IloNumVar[] numVarArray(int n, double[] lb, double[] ub, java.lang.String[] name)
          Creates an array of length n initialized to n new modeling variable objects of type IloNumVarType.Float.
 ilog.concert.IloNumVar[] numVarArray(int n, double lb, double ub)
          Creates an array of length n initialized to n new modeling variable objects of the type IloNumVarType.Float.
 ilog.concert.IloNumVar[] numVarArray(int n, double lb, double ub, ilog.concert.IloNumVarType type)
          Creates n new numerical variable objects and returns them in an array.
 ilog.concert.IloNumVar[] numVarArray(int n, double lb, double ub, ilog.concert.IloNumVarType type, java.lang.String[] name)
          Creates n new numerical variable objects and returns them in an array.
 ilog.concert.IloNumVar[] numVarArray(int n, double lb, double ub, java.lang.String[] name)
          Creates an array of length n initialized to n new modeling variable objects of type IloNumVarType.Float.
 ilog.concert.IloObjective objective(ilog.concert.IloObjectiveSense sense, ilog.concert.IloNumExpr expr)
          Creates and returns an IloObjective object.
 ilog.concert.IloObjective objective(ilog.concert.IloObjectiveSense sense, ilog.concert.IloNumExpr expr, java.lang.String name)
          Creates and returns an IloObjective object.
 ilog.concert.IloNumExpr prod(double v, ilog.concert.IloNumExpr e1)
          Creates and returns an expression object representing the product of the expression e1 and the value v.
 ilog.concert.IloIntExpr prod(ilog.concert.IloIntExpr e1, ilog.concert.IloIntExpr e2)
          Creates and returns the new expression e1 * e2.
 ilog.concert.IloIntExpr prod(ilog.concert.IloIntExpr e, int v)
          Creates and returns the new expression e * v.
 ilog.concert.IloNumExpr prod(ilog.concert.IloNumExpr e, double v)
          Creates and returns an expression object representing the product of expression e and value v.
 ilog.concert.IloNumExpr prod(ilog.concert.IloNumExpr expr1, ilog.concert.IloNumExpr expr2)
          Creates and returns an expression object representing the product of expressions expr1 and expr2.
 ilog.concert.IloIntExpr prod(int v, ilog.concert.IloIntExpr e)
          Creates and returns the new expression v * e.
 ilog.concert.IloRange range(double lb, ilog.concert.IloNumExpr expr, double ub)
          Creates and returns an IloRange object.
 ilog.concert.IloRange range(double lb, ilog.concert.IloNumExpr expr, double ub, java.lang.String name)
          Creates and returns an IloRange object.
 ilog.concert.IloLinearNumExpr scalProd(double[] coefs, ilog.concert.IloNumVar[] vars)
          Creates and returns a linear expression representing the scalar product of the provided values with the provided variables.
 ilog.concert.IloLinearNumExpr scalProd(double[] coefs, ilog.concert.IloNumVar[] vars, int start, int num)
          Creates and returns a linear expression representing the scalar product of the values provided in coefs[start]...coefs[start+num-1] with the variables provided in vars[start]...vars[start+num-1].
 ilog.concert.IloLinearIntExpr scalProd(ilog.concert.IloIntVar[] vars, int[] vals)
          Creates and returns an integer linear expression representing the scalar product of the provided integer values with the provided integer variables.
 ilog.concert.IloLinearIntExpr scalProd(ilog.concert.IloIntVar[] vars, int[] vals, int start, int num)
          Creates and returns an integer linear expression representing the scalar product of the integer values provided in vals[start]...vals[start+num-1] with the integer variables provided in vars[start]...vars[start+num-1].
 ilog.concert.IloLinearNumExpr scalProd(ilog.concert.IloNumVar[] vars, double[] coefs)
          Creates and returns a linear expression representing the scalar product of the provided values with the provided variables.
 ilog.concert.IloLinearNumExpr scalProd(ilog.concert.IloNumVar[] vars, double[] coefs, int start, int num)
          Creates and returns a linear expression representing the scalar product of the values provided in coefs[start]...coefs[start+num-1] with the variables provided in vars[start]...vars[start+num-1].
 ilog.concert.IloLinearNumExpr scalProd(ilog.concert.IloNumVar[] vars, int[] coefs)
          Creates and returns a linear expression representing the scalar product of the provided values with the provided variables.
 ilog.concert.IloLinearIntExpr scalProd(int[] vals, ilog.concert.IloIntVar[] vars)
          Creates and returns an integer linear expression representing the scalar product of the provided integer values with the provided integer variables.
 ilog.concert.IloLinearIntExpr scalProd(int[] vals, ilog.concert.IloIntVar[] vars, int start, int num)
          Creates and returns an integer linear expression representing the scalar product of the integer values provided in vals[start]...vals[start+num-1] with the integer variables provided in vars[start]...vars[start+num-1].
 ilog.concert.IloLinearNumExpr scalProd(int[] coefs, ilog.concert.IloNumVar[] vars)
          Creates and returns a linear expression representing the scalar product of the provided values with the provided variables.
 ilog.concert.IloIntExpr square(ilog.concert.IloIntExpr e)
          Creates and returns the new expression e^2.
 ilog.concert.IloNumExpr square(ilog.concert.IloNumExpr e)
          Creates and returns an expression object representing the square of the expression e (that is, e * e).
 ilog.concert.IloNumExpr sum(double v, ilog.concert.IloNumExpr e)
          Creates and returns an expression object representing the sum of a value and a numeric expression.
 ilog.concert.IloIntExpr sum(ilog.concert.IloIntExpr[] expr)
          Creates and returns an integer expression representing the sum of the expressions provided in the array expr.
 ilog.concert.IloIntExpr sum(ilog.concert.IloIntExpr[] expr, int start, int num)
          Creates and returns an integer expression representing the sum of the num expressions provided in the array expr starting with element start.
 ilog.concert.IloIntExpr sum(ilog.concert.IloIntExpr e1, ilog.concert.IloIntExpr e2)
          Adds two integer expressions and returns the sum.
 ilog.concert.IloIntExpr sum(ilog.concert.IloIntExpr e1, ilog.concert.IloIntExpr e2, ilog.concert.IloIntExpr e3)
          Adds three integer expressions and returns the sum.
 ilog.concert.IloIntExpr sum(ilog.concert.IloIntExpr e1, ilog.concert.IloIntExpr e2, ilog.concert.IloIntExpr e3, ilog.concert.IloIntExpr e4)
          Adds four integer expressions and returns the sum.
 ilog.concert.IloIntExpr sum(ilog.concert.IloIntExpr e1, ilog.concert.IloIntExpr e2, ilog.concert.IloIntExpr e3, ilog.concert.IloIntExpr e4, ilog.concert.IloIntExpr e5)
          Adds five integer expressions and returns the sum.
 ilog.concert.IloIntExpr sum(ilog.concert.IloIntExpr e1, ilog.concert.IloIntExpr e2, ilog.concert.IloIntExpr e3, ilog.concert.IloIntExpr e4, ilog.concert.IloIntExpr e5, ilog.concert.IloIntExpr e6)
          Adds six integer expressions and returns the sum.
 ilog.concert.IloIntExpr sum(ilog.concert.IloIntExpr e1, ilog.concert.IloIntExpr e2, ilog.concert.IloIntExpr e3, ilog.concert.IloIntExpr e4, ilog.concert.IloIntExpr e5, ilog.concert.IloIntExpr e6, ilog.concert.IloIntExpr e7)
          Adds seven integer expressions and returns the sum.
 ilog.concert.IloIntExpr sum(ilog.concert.IloIntExpr e1, ilog.concert.IloIntExpr e2, ilog.concert.IloIntExpr e3, ilog.concert.IloIntExpr e4, ilog.concert.IloIntExpr e5, ilog.concert.IloIntExpr e6, ilog.concert.IloIntExpr e7, ilog.concert.IloIntExpr e8)
          Adds eight integer expressions and returns the sum.
 ilog.concert.IloIntExpr sum(ilog.concert.IloIntExpr e, int v)
          Creates and returns an integer expression representing the sum of an integer expression and a value.
 ilog.concert.IloNumExpr sum(ilog.concert.IloNumExpr[] expr)
          Creates and returns an expression representing the sum of the expressions provided in the array expr.
 ilog.concert.IloNumExpr sum(ilog.concert.IloNumExpr[] expr, int start, int num)
          Creates and returns an expression representing the sum of the num expressions provided in the array expr starting with element start.
 ilog.concert.IloNumExpr sum(ilog.concert.IloNumExpr e, double v)
          Creates and returns an expression object representing the sum of a numeric expression and a value.
 ilog.concert.IloNumExpr sum(ilog.concert.IloNumExpr e1, ilog.concert.IloNumExpr e2)
          Adds two numeric expressions and returns the sum.
 ilog.concert.IloNumExpr sum(ilog.concert.IloNumExpr e1, ilog.concert.IloNumExpr e2, ilog.concert.IloNumExpr e3)
          Adds three numeric expressions and returns the sum.
 ilog.concert.IloNumExpr sum(ilog.concert.IloNumExpr e1, ilog.concert.IloNumExpr e2, ilog.concert.IloNumExpr e3, ilog.concert.IloNumExpr e4)
          Adds four numeric expressions and returns the sum.
 ilog.concert.IloNumExpr sum(ilog.concert.IloNumExpr e1, ilog.concert.IloNumExpr e2, ilog.concert.IloNumExpr e3, ilog.concert.IloNumExpr e4, ilog.concert.IloNumExpr e5)
          Adds five numeric expressions and returns the sum.
 ilog.concert.IloNumExpr sum(ilog.concert.IloNumExpr e1, ilog.concert.IloNumExpr e2, ilog.concert.IloNumExpr e3, ilog.concert.IloNumExpr e4, ilog.concert.IloNumExpr e5, ilog.concert.IloNumExpr e6)
          Adds six numeric expressions and returns the sum.
 ilog.concert.IloNumExpr sum(ilog.concert.IloNumExpr e1, ilog.concert.IloNumExpr e2, ilog.concert.IloNumExpr e3, ilog.concert.IloNumExpr e4, ilog.concert.IloNumExpr e5, ilog.concert.IloNumExpr e6, ilog.concert.IloNumExpr e7)
          Adds seven numeric expressions and returns the sum.
 ilog.concert.IloNumExpr sum(ilog.concert.IloNumExpr e1, ilog.concert.IloNumExpr e2, ilog.concert.IloNumExpr e3, ilog.concert.IloNumExpr e4, ilog.concert.IloNumExpr e5, ilog.concert.IloNumExpr e6, ilog.concert.IloNumExpr e7, ilog.concert.IloNumExpr e8)
          Adds eight numeric expressions and returns the sum.
 ilog.concert.IloIntExpr sum(int v, ilog.concert.IloIntExpr e)
          Creates and returns an integer expression representing the sum of a value and an integer expression.
 
Methods inherited from interface ilog.concert.IloModel
add, add, add, iterator, remove, remove, remove
 
Methods inherited from interface ilog.concert.IloAddable
getName, setName
 

Method Detail

numVar

public ilog.concert.IloNumVar numVar(double lb,
                                     double ub,
                                     ilog.concert.IloNumVarType type,
                                     java.lang.String name)
                              throws IloException
Creates a new modeling variable object. This method returns an object representing a new modeling variable with the specified bounds, type, and name.

Parameters:
lb - The lower bound of the new numerical variable.
ub - The upper bound of the new numerical variable.
type - The type of the new numerical variable.
name - The name of the new numerical variable.
Returns:
The new numerical variable object.
IloException

numVar

public ilog.concert.IloNumVar numVar(double lb,
                                     double ub,
                                     ilog.concert.IloNumVarType type)
                              throws IloException
Creates a new numerical variable object.

Parameters:
lb - The lower bound of the new numerical variable.
ub - The upper bound of the new numerical variable.
type - The type of the new numerical variable.
Returns:
The new numerical variable object.
IloException

numVarArray

public ilog.concert.IloNumVar[] numVarArray(int n,
                                            double lb,
                                            double ub,
                                            ilog.concert.IloNumVarType type)
                                     throws IloException
Creates n new numerical variable objects and returns them in an array. All variables are created with the same bounds and type.

Parameters:
n - The number of new numerical variables.
lb - The lower bound of the new numerical variables.
ub - The upper bound of the new numerical variables.
type - The type of the new numerical variables.
Returns:
An array containing the n new numerical variable objects.
IloException

numVarArray

public ilog.concert.IloNumVar[] numVarArray(int n,
                                            double lb,
                                            double ub,
                                            ilog.concert.IloNumVarType type,
                                            java.lang.String[] name)
                                     throws IloException
Creates n new numerical variable objects and returns them in an array. All variables are created with the same bounds and type, but with different names.

Parameters:
lb - The lower bound of the new numerical variables.
ub - The upper bound of the new numerical variables.
type - The type of the new numerical variables.
name - The names of the new numerical variables. Variable i is assigned the name name[i].
Returns:
An array containing the n new numerical variable objects.
IloException

numVarArray

public ilog.concert.IloNumVar[] numVarArray(int n,
                                            double[] lb,
                                            double[] ub,
                                            ilog.concert.IloNumVarType[] type,
                                            java.lang.String[] name)
                                     throws IloException
Creates n new numerical variable objects and returns them in an array.

Parameters:
lb - The lower bounds of the new numerical variables. Variable i is constructed with the lower bound lb[i].
ub - The upper bounds of the new numerical variables. Variable i is constructed with the upper bound ub[i].
type - The types of the new numerical variables. Variable i is constructed with the type type[i].
name - The names of the new numerical variables. Variable i is assigned the name name[i].
Returns:
An array containing the n new numerical variable objects.
IloException

numVarArray

public ilog.concert.IloNumVar[] numVarArray(int n,
                                            double[] lb,
                                            double[] ub,
                                            ilog.concert.IloNumVarType[] type)
                                     throws IloException
Creates n new numerical variable objects and returns them in an array.

Parameters:
lb - The lower bounds of the new numerical variables. Variable i is constructed with the lower bound lb[i].
ub - The upper bounds of the new numerical variables. Variable i is constructed with the upper bound ub[i].
type - The types of the new numerical variables. Variable i is constructed with the type type[i].
Returns:
An array containing the n new numerical variable objects.
IloException

numVar

public ilog.concert.IloNumVar numVar(double lb,
                                     double ub,
                                     java.lang.String name)
                              throws IloException
Creates a new modeling variable object of the type IloNumVarType.Float. This method returns an object representing a new modeling variable of type IloNumVarType.Float with the specified bounds and name.

Parameters:
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 modeling variable object.
IloException

numVar

public ilog.concert.IloNumVar numVar(double lb,
                                     double ub)
                              throws IloException
Creates a new modeling variable object of the type IloNumVarType.Float. This method returns an object representing a new modeling variable of the type IloNumVarType.Float with the specified bounds.

Parameters:
lb - The lower bound of the new modeling variable.
ub - The upper bound of the new modeling variable.
Returns:
The new modeling variable object.
IloException

numVarArray

public ilog.concert.IloNumVar[] numVarArray(int n,
                                            double lb,
                                            double ub)
                                     throws IloException
Creates an array of length n initialized to n new modeling variable objects of the type IloNumVarType.Float. This method creates n new modeling variables of the type IloNumVarType.Float, each with the same specified bounds and returns them in an array.

Parameters:
lb - The lower bound of the new modeling variable.
ub - The upper bound of the new modeling variable.
Returns:
The array new modeling variables.
IloException

numVarArray

public ilog.concert.IloNumVar[] numVarArray(int n,
                                            double lb,
                                            double ub,
                                            java.lang.String[] name)
                                     throws IloException
Creates an array of length n initialized to n new modeling variable objects of type IloNumVarType.Float. This method creates n new modeling variables of type IloNumVarType.Float, each with the same specified bounds, and returns them in an array. Each new variable is assigned a name, where variable i is assigned the name name[i].

Parameters:
lb - The lower bound of the new modeling variable.
ub - The upper bound of the new modeling variable.
name - The names of the new modeling variables. Variable i is assigned the name name[i].
Returns:
The array of new modeling variables.
IloException

numVarArray

public ilog.concert.IloNumVar[] numVarArray(int n,
                                            double[] lb,
                                            double[] ub,
                                            java.lang.String[] name)
                                     throws IloException
Creates an array of length n initialized to n new modeling variable objects of type IloNumVarType.Float. This method creates n new modeling variables of the type IloNumVarType.Float, each with the same specified bounds, and returns them in an array. Each new variable is assigned a name, where variable i is assigned the name name[i].

Parameters:
lb - The lower bound of the new modeling variable.
ub - The upper bound of the new modeling variable.
name - The names of the new modeling variables. Variable i is assigned the name name[i].
Returns:
The array new modeling variables.
IloException

numVarArray

public ilog.concert.IloNumVar[] numVarArray(int n,
                                            double[] lb,
                                            double[] ub)
                                     throws IloException
Creates an array of length n initialized to n new modeling variable objects of type IloNumVarType.Float. This method creates n new modeling variables of the type IloNumVarType.Float, each with its own bounds, and returns them in an array. Variable i will be constructed with bounds lb[i] and ub[i].

Parameters:
lb - The lower bounds of the new modeling variable. Variable i will be constructed with a lower bound of lb[i].
ub - The upper bounds of the new modeling variable. Variable i will be constructed with an upper bound of lb[i].
Returns:
The array of new modeling variables.
IloException

intVar

public ilog.concert.IloIntVar intVar(int min,
                                     int max,
                                     java.lang.String name)
                              throws IloException
Creates and returns a new integer variable with the specified bounds and a name.

Parameters:
min - The minimum value of the variable.
max - The maximum value of the variable.
name - The name of the variable.
IloException

intVar

public ilog.concert.IloIntVar intVar(int min,
                                     int max)
                              throws IloException
Creates and returns a new integer variable with the specified bounds.

Parameters:
min - The minimum value of the variable.
max - The maximum value of the variable.
IloException

intVarArray

public ilog.concert.IloIntVar[] intVarArray(int n,
                                            int min,
                                            int max)
                                     throws IloException
Returns a new array of n integer variables with the specified bounds.

Parameters:
min - The lower bound of the new modeling variable.
max - The upper bound of the new modeling variable.
Returns:
The array of new modeling variables.
IloException

intVarArray

public ilog.concert.IloIntVar[] intVarArray(int n,
                                            int min,
                                            int max,
                                            java.lang.String[] name)
                                     throws IloException
Creates an array of length n initialized to n new modeling integer variables, each with the same specified bounds and returns them in an array. Each new variable is assigned a name, where variable i is assigned the name name[i].

Parameters:
min - The lower bound of the new modeling variable.
max - The upper bound of the new modeling variable.
name - The names of the new modeling variables. Variable i is assigned the name name[i].
Returns:
The new modeling variable object.
IloException

intVarArray

public ilog.concert.IloIntVar[] intVarArray(int n,
                                            int[] min,
                                            int[] max)
                                     throws IloException
Creates an array of length n initialized to n new integer variables, each variable with its own bounds. Variable i will be constructed with bounds min[i] and max[i].

Parameters:
min - The lower bounds of the new modeling variable. Variable i will be constructed with a lower bound of min[i].
max - The upper bounds of the new modeling variable. Variable i will be constructed with an upper bound of max[i].
Returns:
The array of new modeling variables.
IloException

intVarArray

public ilog.concert.IloIntVar[] intVarArray(int n,
                                            int[] min,
                                            int[] max,
                                            java.lang.String[] name)
                                     throws IloException
Creates an array of length n initialized to n new integer variables, each variable with its own bounds. Variable i will be constructed with bounds min[i] and max[i] and will be assigned the name name[i].

Parameters:
min - The lower bounds of the new modeling variable. Variable i will be constructed with a lower bound of min[i].
max - The upper bounds of the new modeling variable. Variable i will be constructed with an upper bound of max[i].
name - The names of the new modeling variables. Variable i will be assigned the name name[i].
Returns:
The array of new modeling variables.
IloException

boolVar

public ilog.concert.IloIntVar boolVar(java.lang.String name)
                               throws IloException
Creates and returns a new Boolean variable (domain 0,1) and a name.

Parameters:
name - The name of the variable.
IloException

boolVar

public ilog.concert.IloIntVar boolVar()
                               throws IloException
Creates and returns a new Boolean variable (domain 0,1)

IloException

boolVarArray

public ilog.concert.IloIntVar[] boolVarArray(int n)
                                      throws IloException
Creates and returns an array of n new Boolean variables (domain 0,1).

IloException

boolVarArray

public ilog.concert.IloIntVar[] boolVarArray(int n,
                                             java.lang.String[] name)
                                      throws IloException
Creates and returns an array of n new Boolean variables (domain 0,1). Variable i will be assigned the name name[i].

IloException

linearNumExpr

public ilog.concert.IloLinearNumExpr linearNumExpr()
                                            throws IloException
Creates and returns a zero linear expression.

Returns:
A zero linear expression.
IloException

linearNumExpr

public ilog.concert.IloLinearNumExpr linearNumExpr(double val)
                                            throws IloException
Creates and returns a linear expression initialized to a constant.

Parameters:
val - The constant term of the new linear expression.
Returns:
The linear expression initialized to the constant val.
IloException

scalProd

public ilog.concert.IloLinearNumExpr scalProd(ilog.concert.IloNumVar[] vars,
                                              double[] coefs)
                                       throws IloException
Creates and returns a linear expression representing the scalar product of the provided values with the provided variables.

Parameters:
coefs - The values involved in the new scalar product expression.
vars - The variables involved in the new scalar product expression.
Returns:
The new linear expression.
IloException

scalProd

public ilog.concert.IloLinearNumExpr scalProd(ilog.concert.IloNumVar[] vars,
                                              double[] coefs,
                                              int start,
                                              int num)
                                       throws IloException
Creates and returns a linear expression representing the scalar product of the values provided in coefs[start]...coefs[start+num-1] with the variables provided in vars[start]...vars[start+num-1].

Parameters:
coefs - An array containing the values to be used for the scalar product.
vars - An array containing the variables to be used for the scalar product.
start - The first element in coefs/vars to use for the scalar product.
num - The number of elements in coefs/vars to use for the scalar product.
Returns:
The new linear expression.
IloException

scalProd

public ilog.concert.IloLinearNumExpr scalProd(double[] coefs,
                                              ilog.concert.IloNumVar[] vars)
                                       throws IloException
Creates and returns a linear expression representing the scalar product of the provided values with the provided variables.

Parameters:
coefs - The values involved in the new scalar product expression.
vars - The variables involved in the new scalar product expression.
Returns:
The new linear expression.
IloException

scalProd

public ilog.concert.IloLinearNumExpr scalProd(double[] coefs,
                                              ilog.concert.IloNumVar[] vars,
                                              int start,
                                              int num)
                                       throws IloException
Creates and returns a linear expression representing the scalar product of the values provided in coefs[start]...coefs[start+num-1] with the variables provided in vars[start]...vars[start+num-1].

Parameters:
coefs - An array containing the values to be used for the scalar product.
vars - An array containing the variables to be used for the scalar product.
start - The first element in coefs/vars to use for the scalar product.
num - The number of elements in coefs/vars to use for the scalar product.
Returns:
The new linear expression.
IloException

scalProd

public ilog.concert.IloLinearNumExpr scalProd(ilog.concert.IloNumVar[] vars,
                                              int[] coefs)
                                       throws IloException
Creates and returns a linear expression representing the scalar product of the provided values with the provided variables.

Parameters:
coefs - The values involved in the new scalar product expression.
vars - The variables involved in the new scalar product expression.
Returns:
The new linear expression.
IloException

scalProd

public ilog.concert.IloLinearNumExpr scalProd(int[] coefs,
                                              ilog.concert.IloNumVar[] vars)
                                       throws IloException
Creates and returns a linear expression representing the scalar product of the provided values with the provided variables.

Parameters:
coefs - The values involved in the new scalar product expression.
vars - The variables involved in the new scalar product expression.
Returns:
The new linear expression.
IloException

negative

public ilog.concert.IloNumExpr negative(ilog.concert.IloNumExpr e)
                                 throws IloException
Creates and returns the new expression -e, the negative of the expression e.

Parameters:
e - An expression for which the negative value is given.
Returns:
An expression object representing the negative of e.
IloException

sum

public ilog.concert.IloNumExpr sum(ilog.concert.IloNumExpr e,
                                   double v)
                            throws IloException
Creates and returns an expression object representing the sum of a numeric expression and a value.

Parameters:
e - The numeric expression.
v - The value.
Returns:
An expression object representing the sum of e + v.
IloException

sum

public ilog.concert.IloNumExpr sum(double v,
                                   ilog.concert.IloNumExpr e)
                            throws IloException
Creates and returns an expression object representing the sum of a value and a numeric expression.

Parameters:
v - The value.
e - The numeric expression.
Returns:
An expression object representing the sum of v + e.
IloException

sum

public ilog.concert.IloNumExpr sum(ilog.concert.IloNumExpr e1,
                                   ilog.concert.IloNumExpr e2)
                            throws IloException
Adds two numeric expressions and returns the sum. The domain of the resulting expression is computed from the domains of the combined expressions.

Parameters:
e1 - The first numeric expression.
e2 - The second numeric expression.
Returns:
A numeric expression object representing the sum of e1 + e2.
IloException

sum

public ilog.concert.IloNumExpr sum(ilog.concert.IloNumExpr e1,
                                   ilog.concert.IloNumExpr e2,
                                   ilog.concert.IloNumExpr e3)
                            throws IloException
Adds three numeric expressions and returns the sum. The domain of the resulting expression is computed from the domains of the combined expressions.

Parameters:
e1 - The first numeric expression.
e2 - The second numeric expression.
e3 - The third numeric expression.
Returns:
A numeric expression object representing the sum of e1 + e2 + e3.
IloException

sum

public ilog.concert.IloNumExpr sum(ilog.concert.IloNumExpr e1,
                                   ilog.concert.IloNumExpr e2,
                                   ilog.concert.IloNumExpr e3,
                                   ilog.concert.IloNumExpr e4)
                            throws IloException
Adds four numeric expressions and returns the sum. The domain of the resulting expression is computed from the domains of the combined expressions.

Parameters:
e1 - The first numeric expression.
e2 - The second numeric expression.
e3 - The third numeric expression.
e4 - The fourth numeric expression.
Returns:
A numeric expression object representing the sum of e1 + e2 + e3 + e4.
IloException

sum

public ilog.concert.IloNumExpr sum(ilog.concert.IloNumExpr e1,
                                   ilog.concert.IloNumExpr e2,
                                   ilog.concert.IloNumExpr e3,
                                   ilog.concert.IloNumExpr e4,
                                   ilog.concert.IloNumExpr e5)
                            throws IloException
Adds five numeric expressions and returns the sum. The domain of the resulting expression is computed from the domains of the combined expressions.

Parameters:
e1 - The first numeric expression.
e2 - The second numeric expression.
e3 - The third numeric expression.
e4 - The fourth numeric expression.
e5 - The fifth numeric expression.
Returns:
A numeric expression object representing the sum of e1 + e2 + e3 + e4 + e5.
IloException

sum

public ilog.concert.IloNumExpr sum(ilog.concert.IloNumExpr e1,
                                   ilog.concert.IloNumExpr e2,
                                   ilog.concert.IloNumExpr e3,
                                   ilog.concert.IloNumExpr e4,
                                   ilog.concert.IloNumExpr e5,
                                   ilog.concert.IloNumExpr e6)
                            throws IloException
Adds six numeric expressions and returns the sum. The domain of the resulting expression is computed from the domains of the combined expressions.

Parameters:
e1 - The first numeric expression.
e2 - The second numeric expression.
e3 - The third numeric expression.
e4 - The fourth numeric expression.
e5 - The fifth numeric expression.
e6 - The sixth numeric expression.
Returns:
A numeric expression object representing the sum of e1 + e2 + e3 + e4 + e5 + e6.
IloException

sum

public ilog.concert.IloNumExpr sum(ilog.concert.IloNumExpr e1,
                                   ilog.concert.IloNumExpr e2,
                                   ilog.concert.IloNumExpr e3,
                                   ilog.concert.IloNumExpr e4,
                                   ilog.concert.IloNumExpr e5,
                                   ilog.concert.IloNumExpr e6,
                                   ilog.concert.IloNumExpr e7)
                            throws IloException
Adds seven numeric expressions and returns the sum. The domain of the resulting expression is computed from the domains of the combined expressions.

Parameters:
e1 - The first numeric expression.
e2 - The second numeric expression.
e3 - The third numeric expression.
e4 - The fourth numeric expression.
e5 - The fifth numeric expression.
e6 - The sixth numeric expression.
e7 - The seventh numeric expression.
Returns:
A numeric expression object representing the sum of e1 + e2 + e3 + e4 + e5 + e6 + e7.
IloException

sum

public ilog.concert.IloNumExpr sum(ilog.concert.IloNumExpr e1,
                                   ilog.concert.IloNumExpr e2,
                                   ilog.concert.IloNumExpr e3,
                                   ilog.concert.IloNumExpr e4,
                                   ilog.concert.IloNumExpr e5,
                                   ilog.concert.IloNumExpr e6,
                                   ilog.concert.IloNumExpr e7,
                                   ilog.concert.IloNumExpr e8)
                            throws IloException
Adds eight numeric expressions and returns the sum. The domain of the resulting expression is computed from the domains of the combined expressions.

Parameters:
e1 - The first numeric expression.
e2 - The second numeric expression.
e3 - The third numeric expression.
e4 - The fourth numeric expression.
e5 - The fifth numeric expression.
e6 - The sixth numeric expression.
e7 - The seventh numeric expression.
e8 - The eighth numeric expression.
Returns:
A numeric expression object representing the sum of e1 + e2 + e3 + e4 + e5 + e6 + e7 + e8.
IloException

sum

public ilog.concert.IloNumExpr sum(ilog.concert.IloNumExpr[] expr,
                                   int start,
                                   int num)
                            throws IloException
Creates and returns an expression representing the sum of the num expressions provided in the array expr starting with element start.

Parameters:
expr - An array containing the expressions to be summed.
start - The first expression in expr to be used.
num - The number of expressions in expr to be used.
Returns:
An expression representing the sum of the specified expressions.
IloException

sum

public ilog.concert.IloNumExpr sum(ilog.concert.IloNumExpr[] expr)
                            throws IloException
Creates and returns an expression representing the sum of the expressions provided in the array expr.

Parameters:
expr - An array containing the expressions to be summed.
Returns:
An expression representing the sum of the specified expressions.
IloException

diff

public ilog.concert.IloNumExpr diff(ilog.concert.IloNumExpr e,
                                    double v)
                             throws IloException
Creates and returns an expression object representing the difference of expression e and value v.

Parameters:
e - An expression to use in the difference.
v - A value to use in the difference.
Returns:
An expression object representing the difference of e - v.
IloException

diff

public ilog.concert.IloNumExpr diff(ilog.concert.IloNumExpr e1,
                                    ilog.concert.IloNumExpr e2)
                             throws IloException
Creates and returns an expression object representing the difference of expressions e1 and e2.

Parameters:
e1 - An expression to use in the difference.
e2 - An expression to use in the difference.
Returns:
An expression object representing the difference of e1 - e2.
IloException

diff

public ilog.concert.IloNumExpr diff(double v,
                                    ilog.concert.IloNumExpr e1)
                             throws IloException
Creates and returns an expression object representing the difference of value v and expression e1.

Parameters:
v - A value to use in the difference.
e1 - An expression to use in the difference.
Returns:
An expression object representing the difference of v - e1.
IloException

prod

public ilog.concert.IloNumExpr prod(ilog.concert.IloNumExpr e,
                                    double v)
                             throws IloException
Creates and returns an expression object representing the product of expression e and value v.

Parameters:
e - An expression to use in the product.
v - A value to use in the product.
Returns:
An expression object representing the product of e * v.
IloException

prod

public ilog.concert.IloNumExpr prod(ilog.concert.IloNumExpr expr1,
                                    ilog.concert.IloNumExpr expr2)
                             throws IloException
Creates and returns an expression object representing the product of expressions expr1 and expr2.

Parameters:
expr1 - An expression to use in the product.
expr2 - An expression to use in the product.
Returns:
An expression object representing the product of expr1 * expr2.
IloException

prod

public ilog.concert.IloNumExpr prod(double v,
                                    ilog.concert.IloNumExpr e1)
                             throws IloException
Creates and returns an expression object representing the product of the expression e1 and the value v.

Parameters:
e1 - An expression to use in the product.
v - A value to use in the product.
Returns:
An expression object representing the product of e1 * v.
IloException

square

public ilog.concert.IloNumExpr square(ilog.concert.IloNumExpr e)
                               throws IloException
Creates and returns an expression object representing the square of the expression e (that is, e * e).

Parameters:
e - An expression to use in the square.
Returns:
An expression object representing the product of e * e.
IloException

constant

public ilog.concert.IloNumExpr constant(double x)
                                 throws IloException
Creates and returns an expression object representing the constant term x. This method does not need to be called by the user, as overloaded versions of all expression methods are available to deal directly with constants.

Parameters:
x - A value for which to construct a constant expression term.
Returns:
An expression object representing the constant x.
IloException

linearIntExpr

public ilog.concert.IloLinearIntExpr linearIntExpr()
                                            throws IloException
Creates and returns a zero integer linear expression.

IloException

linearIntExpr

public ilog.concert.IloLinearIntExpr linearIntExpr(int val)
                                            throws IloException
Creates and returns an integer linear expression initialized to a constant.

Parameters:
val - Constant term of the new linear expression.
Returns:
Integer linear expression initialized to the constant val.
IloException

scalProd

public ilog.concert.IloLinearIntExpr scalProd(int[] vals,
                                              ilog.concert.IloIntVar[] vars)
                                       throws IloException
Creates and returns an integer linear expression representing the scalar product of the provided integer values with the provided integer variables.

Parameters:
vals - The integer values involved in the new scalar product expression.
vars - The integer variables involved in the new scalar product expression.
Returns:
The new integer linear expression.
IloException

scalProd

public ilog.concert.IloLinearIntExpr scalProd(int[] vals,
                                              ilog.concert.IloIntVar[] vars,
                                              int start,
                                              int num)
                                       throws IloException
Creates and returns an integer linear expression representing the scalar product of the integer values provided in vals[start]...vals[start+num-1] with the integer variables provided in vars[start]...vars[start+num-1].

Parameters:
vals - An array containing the values to be used for the scalar product.
vars - An array containing the variables to be used for the scalar product.
start - First element in vals/vars to be used for the scalar product.
num - Number of elements in vals/vars to be used for the scalar product.
Returns:
The new integer linear expression.
IloException

scalProd

public ilog.concert.IloLinearIntExpr scalProd(ilog.concert.IloIntVar[] vars,
                                              int[] vals)
                                       throws IloException
Creates and returns an integer linear expression representing the scalar product of the provided integer values with the provided integer variables.

Parameters:
vars - The integer variables involved in the new scalar product expression.
vals - The integer values involved in the new scalar product expression.
Returns:
The new integer linear expression.
IloException

scalProd

public ilog.concert.IloLinearIntExpr scalProd(ilog.concert.IloIntVar[] vars,
                                              int[] vals,
                                              int start,
                                              int num)
                                       throws IloException
Creates and returns an integer linear expression representing the scalar product of the integer values provided in vals[start]...vals[start+num-1] with the integer variables provided in vars[start]...vars[start+num-1].

Parameters:
vars - An array containing the variables to be used for the scalar product.
vals - An array containing the values to be used for the scalar product.
start - First element in vals/vars to be used for the scalar product.
num - Number of elements in vals/vars to be used for the scalar product.
Returns:
The new integer linear expression.
IloException

negative

public ilog.concert.IloIntExpr negative(ilog.concert.IloIntExpr e)
                                 throws IloException
Creates and returns the new expression -e, the negative of the expression e.

Parameters:
e - An integer expression for which the negative value is given.
Returns:
An integer expression object representing the negative of e.
IloException

sum

public ilog.concert.IloIntExpr sum(ilog.concert.IloIntExpr e,
                                   int v)
                            throws IloException
Creates and returns an integer expression representing the sum of an integer expression and a value.

Parameters:
e - The integer expression.
v - The value.
Returns:
An integer expression object representing the sum of e + v.
IloException

sum

public ilog.concert.IloIntExpr sum(int v,
                                   ilog.concert.IloIntExpr e)
                            throws IloException
Creates and returns an integer expression representing the sum of a value and an integer expression.

Parameters:
v - The value.
e - The integer expression.
Returns:
An integer expression object representing the sum of e + v.
IloException

sum

public ilog.concert.IloIntExpr sum(ilog.concert.IloIntExpr e1,
                                   ilog.concert.IloIntExpr e2)
                            throws IloException
Adds two integer expressions and returns the sum. The domain of the resulting expression is computed from the domains of the combined expressions.

Parameters:
e1 - The first integer expression.
e2 - The second integer expression.
Returns:
An integer expression object representing the sum of e1 + e2.
IloException

sum

public ilog.concert.IloIntExpr sum(ilog.concert.IloIntExpr e1,
                                   ilog.concert.IloIntExpr e2,
                                   ilog.concert.IloIntExpr e3)
                            throws IloException
Adds three integer expressions and returns the sum. The domain of the resulting expression is computed from the domains of the combined expressions.

Parameters:
e1 - The first integer expression.
e2 - The second integer expression.
e3 - The third integer expression.
Returns:
The expression exp, representing the sum of e1 +e2 +e3.
IloException

sum

public ilog.concert.IloIntExpr sum(ilog.concert.IloIntExpr e1,
                                   ilog.concert.IloIntExpr e2,
                                   ilog.concert.IloIntExpr e3,
                                   ilog.concert.IloIntExpr e4)
                            throws IloException
Adds four integer expressions and returns the sum. The domain of the resulting expression is computed from the domains of the combined expressions.

Parameters:
e1 - The first integer expression.
e2 - The second integer expression.
e3 - The third integer expression.
e4 - The fourth integer expression.
Returns:
The expression exp, representing the sum of e1 + e2 + e3 +e 4.
IloException

sum

public ilog.concert.IloIntExpr sum(ilog.concert.IloIntExpr e1,
                                   ilog.concert.IloIntExpr e2,
                                   ilog.concert.IloIntExpr e3,
                                   ilog.concert.IloIntExpr e4,
                                   ilog.concert.IloIntExpr e5)
                            throws IloException
Adds five integer expressions and returns the sum. The domain of the resulting expression is computed from the domains of the combined expressions.

Parameters:
e1 - The first integer expression.
e2 - The second integer expression.
e3 - The third integer expression.
e4 - The fourth integer expression.
e5 - The fifth integer expression.
Returns:
The expression exp, representing the sum of e1 + e2 + e3 + e4 + e5.
IloException

sum

public ilog.concert.IloIntExpr sum(ilog.concert.IloIntExpr e1,
                                   ilog.concert.IloIntExpr e2,
                                   ilog.concert.IloIntExpr e3,
                                   ilog.concert.IloIntExpr e4,
                                   ilog.concert.IloIntExpr e5,
                                   ilog.concert.IloIntExpr e6)
                            throws IloException
Adds six integer expressions and returns the sum. The domain of the resulting expression is computed from the domains of the combined expressions.

Parameters:
e1 - The first integer expression.
e2 - The second integer expression.
e3 - The third integer expression.
e4 - The fourth integer expression.
e5 - The fifth integer expression.
e6 - The sixth integer expression.
Returns:
The expression exp, representing the sum of e1 + e2 + e3 + e4 + e5 + e6.
IloException

sum

public ilog.concert.IloIntExpr sum(ilog.concert.IloIntExpr e1,
                                   ilog.concert.IloIntExpr e2,
                                   ilog.concert.IloIntExpr e3,
                                   ilog.concert.IloIntExpr e4,
                                   ilog.concert.IloIntExpr e5,
                                   ilog.concert.IloIntExpr e6,
                                   ilog.concert.IloIntExpr e7)
                            throws IloException
Adds seven integer expressions and returns the sum. The domain of the resulting expression is computed from the domains of the combined expressions.

Parameters:
e1 - The first integer expression.
e2 - The second integer expression.
e3 - The third integer expression.
e4 - The fourth integer expression.
e5 - The fifth integer expression.
e6 - The sixth integer expression.
e7 - The seventh integer expression.
Returns:
The expression exp, representing the sum of e1 + e2 + e3 + e4 + e5 + e6 + e7.
IloException

sum

public ilog.concert.IloIntExpr sum(ilog.concert.IloIntExpr e1,
                                   ilog.concert.IloIntExpr e2,
                                   ilog.concert.IloIntExpr e3,
                                   ilog.concert.IloIntExpr e4,
                                   ilog.concert.IloIntExpr e5,
                                   ilog.concert.IloIntExpr e6,
                                   ilog.concert.IloIntExpr e7,
                                   ilog.concert.IloIntExpr e8)
                            throws IloException
Adds eight integer expressions and returns the sum. The domain of the resulting expression is computed from the domains of the combined expressions.

Parameters:
e1 - The first integer expression.
e2 - The second integer expression.
e3 - The third integer expression.
e4 - The fourth integer expression.
e5 - The fifth integer expression.
e6 - The sixth integer expression.
e7 - The seventh integer expression.
e8 - The eighth integer expression.
Returns:
The expression exp, representing the sum of e1 + e2 + e3 + e4 + e5 + e6 + e7 + e8.
IloException

sum

public ilog.concert.IloIntExpr sum(ilog.concert.IloIntExpr[] expr,
                                   int start,
                                   int num)
                            throws IloException
Creates and returns an integer expression representing the sum of the num expressions provided in the array expr starting with element start.

Parameters:
expr - An array containing the expressions to be summed.
start - The first expression in expr to be used.
num - The number of expressions in expr to be used.
Returns:
An integer expression representing the sum of the specified expressions.
IloException

sum

public ilog.concert.IloIntExpr sum(ilog.concert.IloIntExpr[] expr)
                            throws IloException
Creates and returns an integer expression representing the sum of the expressions provided in the array expr.

Parameters:
expr - An array containing the expressions to be summed.
Returns:
An integer expression representing the sum of the specified expressions.
IloException

diff

public ilog.concert.IloIntExpr diff(ilog.concert.IloIntExpr e,
                                    int v)
                             throws IloException
Creates and returns an integer expression object representing the difference of integer expression e and value v.

Parameters:
e - An integer expression to use in the difference.
v - A value to use in the difference.
Returns:
An integer expression object representing the difference of e - v.
IloException

diff

public ilog.concert.IloIntExpr diff(ilog.concert.IloIntExpr expr1,
                                    ilog.concert.IloIntExpr expr2)
                             throws IloException
Creates and returns an integer expression object representing the difference of integer expressions expr1 and expr2.

Parameters:
expr1 - An integer expression to use in the difference.
expr2 - An integer expression to use in the difference.
Returns:
An integer expression object representing the difference of expr1 - expr2.
IloException

diff

public ilog.concert.IloIntExpr diff(int v,
                                    ilog.concert.IloIntExpr e1)
                             throws IloException
Creates and returns an integer expression object representing the difference of value v and integer expression e1.

Parameters:
v - A value to use in the difference.
e1 - An integer expression to use in the difference.
Returns:
An integer expression object representing the difference of v - e1.
IloException

prod

public ilog.concert.IloIntExpr prod(ilog.concert.IloIntExpr e,
                                    int v)
                             throws IloException
Creates and returns the new expression e * v.

IloException

prod

public ilog.concert.IloIntExpr prod(ilog.concert.IloIntExpr e1,
                                    ilog.concert.IloIntExpr e2)
                             throws IloException
Creates and returns the new expression e1 * e2.

IloException

prod

public ilog.concert.IloIntExpr prod(int v,
                                    ilog.concert.IloIntExpr e)
                             throws IloException
Creates and returns the new expression v * e.

IloException

square

public ilog.concert.IloIntExpr square(ilog.concert.IloIntExpr e)
                               throws IloException
Creates and returns the new expression e^2.

IloException

constant

public ilog.concert.IloIntExpr constant(int x)
                                 throws IloException
Creates and returns a new constant expression equal to x.

Parameters:
x - The value of the constant expression.
Returns:
The constant expression.
IloException

eq

public ilog.concert.IloConstraint eq(ilog.concert.IloNumExpr e1,
                                     ilog.concert.IloNumExpr e2)
                              throws IloException
Creates and returns an IloRange object. The new IloRange object is initialized to represent the constraint e1 == e2.

Parameters:
e1 - Left-hand side expression of the new equality constraint.
e2 - Right-hand side expression of the new equality constraint.
Returns:
A new IloRange object initialized to represent the constraint e1 == e2.
IloException

eq

public ilog.concert.IloConstraint eq(ilog.concert.IloNumExpr e1,
                                     ilog.concert.IloNumExpr e2,
                                     java.lang.String name)
                              throws IloException
Creates and returns an IloRange object. The new IloRange object is initialized to represent the constraint e1 == e2 and is assigned the name name.

Parameters:
e1 - Left-hand side expression of the new equality constraint.
e2 - Right-hand side expression of the new equality constraint.
name - Name assigned to the new IloRange constraint.
Returns:
A new IloRange object initialized to represent the constraint e1 == e2.
IloException

eq

public ilog.concert.IloRange eq(ilog.concert.IloNumExpr expr,
                                double rhs)
                         throws IloException
Creates and returns an IloRange object. The new IloRange object is initialized to represent the constraint expr == rhs.

Parameters:
expr - Expression of the new equality constraint.
rhs - Upper bound of the new equality constraint.
Returns:
A new IloRange object initialized to represent the constraint expr == rhs.
IloException

eq

public ilog.concert.IloRange eq(ilog.concert.IloNumExpr expr,
                                double rhs,
                                java.lang.String name)
                         throws IloException
Creates and returns an IloRange object. The new IloRange object is initialized to represent the constraint expr == rhs and is assigned the name name.

Parameters:
expr - Expression of the new equality constraint.
rhs - Upper bound of the new equality constraint.
name - Name assigned to the new equality constraint.
Returns:
A new IloRange object initialized to represent the constraint expr == rhs.
IloException

eq

public ilog.concert.IloRange eq(double val,
                                ilog.concert.IloNumExpr expr)
                         throws IloException
Creates and returns an IloRange object. The new IloRange object is initialized to represent the constraint val == expr.

Parameters:
val - Value of the new equality constraint.
expr - Expression of the new equality constraint.
Returns:
A new IloRange object initialized to represent the constraint val == expr.
IloException

eq

public ilog.concert.IloRange eq(double val,
                                ilog.concert.IloNumExpr expr,
                                java.lang.String name)
                         throws IloException
Creates and returns an IloRange object. The new IloRange object is initialized to represent the constraint val == expr and is assigned the name name.

Parameters:
val - Value of the new equality constraint.
expr - Expression of the new equality constraint.
name - Name assigned to the new equality constraint.
Returns:
A new IloRange object initialized to represent the constraint val == expr.
IloException

le

public ilog.concert.IloRange le(ilog.concert.IloNumExpr expr,
                                double rhs)
                         throws IloException
Creates and returns an IloRange object. The new IloRange object is initialized to represent the constraint expr <= rhs.

Parameters:
expr - Expression of the new less-equal constraint.
rhs - Upper bound of the new less-equal constraint.
Returns:
A new IloRange object initialized to represent the constraint expr <= rhs.
IloException

le

public ilog.concert.IloRange le(ilog.concert.IloNumExpr expr,
                                double rhs,
                                java.lang.String name)
                         throws IloException
Creates and returns an IloRange object. The new IloRange object is initialized to represent the constraint expr <= rhs and is assigned the name name.

Parameters:
expr - Expression of the new less-equal constraint.
rhs - Upper bound of the new less-equal constraint.
name - Name assigned to the new less-equal constraint.
Returns:
A new IloRange object initialized to represent the constraint expr <= rhs.
IloException

le

public ilog.concert.IloConstraint le(ilog.concert.IloNumExpr e1,
                                     ilog.concert.IloNumExpr e2)
                              throws IloException
Creates and returns an IloRange object. The new IloRange object is initialized to represent the constraint e1 <= e2.

Parameters:
e1 - Left-hand side expression of the new less-equal constraint.
e2 - Right-hand side expression of the new less-equal constraint.
Returns:
A new IloRange object initialized to represent the constraint e1 <= e2.
IloException

le

public ilog.concert.IloConstraint le(ilog.concert.IloNumExpr e1,
                                     ilog.concert.IloNumExpr e2,
                                     java.lang.String name)
                              throws IloException
Creates and returns an IloRange object. The new IloRange object is initialized to represent the constraint e1 <= e2 and is assigned the name name.

Parameters:
e1 - Left-hand side expression of the new less-equal constraint.
e2 - Right-hand side expression of the new less-equal constraint.
name - Name assigned to the new IloRange constraint.
Returns:
A new IloRange object initialized to represent the constraint e1 <= e2.
IloException

le

public ilog.concert.IloRange le(double val,
                                ilog.concert.IloNumExpr expr)
                         throws IloException
Creates and returns an IloRange object. The new IloRange object is initialized to represent the constraint val <= expr.

Parameters:
val - Value of the new less-equal constraint.
expr - Expression of the new less-equal constraint.
Returns:
A new IloRange object initialized to represent the constraint val <= expr.
IloException

le

public ilog.concert.IloRange le(double val,
                                ilog.concert.IloNumExpr expr,
                                java.lang.String name)
                         throws IloException
Creates and returns an IloRange object. The new IloRange object is initialized to represent the constraint val <= expr and is assigned the name name.

Parameters:
val - Value of the new less-equal constraint.
expr - Expression of the new less-equal constraint.
name - Name assigned to the new less-equal constraint.
Returns:
A new IloRange object initialized to represent the constraint val <= expr.
IloException

ge

public ilog.concert.IloRange ge(ilog.concert.IloNumExpr expr,
                                double rhs)
                         throws IloException
Creates and returns an IloRange object. The new IloRange object is initialized to represent the constraint expr >= rhs.

Parameters:
expr - Expression of the new greater-equal constraint.
rhs - Upper bound of the new greater-equal constraint.
Returns:
A new IloRange object initialized to represent the constraint expr >= rhs.
IloException

ge

public ilog.concert.IloRange ge(ilog.concert.IloNumExpr expr,
                                double rhs,
                                java.lang.String name)
                         throws IloException
Creates and returns an IloRange object. The new IloRange object is initialized to represent the constraint expr >= rhs and is assigned the name name.

Parameters:
expr - Expression of the new greater-equal constraint.
rhs - Upper bound of the new greater-equal constraint.
name - Name assigned to the new greater-equal constraint.
Returns:
A new IloRange object initialized to represent the constraint expr >= rhs.
IloException

ge

public ilog.concert.IloConstraint ge(ilog.concert.IloNumExpr e1,
                                     ilog.concert.IloNumExpr e2)
                              throws IloException
Creates and returns an IloRange object. The new IloRange object is initialized to represent the constraint e1 >= e2.

Parameters:
e1 - Left-hand side expression of the new greater-equal constraint.
e2 - Right-hand side expression of the new greater-equal constraint.
Returns:
A new IloRange object initialized to represent the constraint e1 >= e2.
IloException

ge

public ilog.concert.IloConstraint ge(ilog.concert.IloNumExpr e1,
                                     ilog.concert.IloNumExpr e2,
                                     java.lang.String name)
                              throws IloException
Creates and returns an IloRange object. The new IloRange object is initialized to represent the constraint e1 >= e2 and is assigned the name name.

Parameters:
e1 - Left-hand side expression of the new greater-equal constraint.
e2 - Right-hand side expression of the new greater-equal constraint.
name - Name assigned to the new greater-equal constraint.
Returns:
A new IloRange object initialized to represent the constraint e1 >= e2.
IloException

ge

public ilog.concert.IloRange ge(double val,
                                ilog.concert.IloNumExpr expr)
                         throws IloException
Creates and returns an IloRange object. The new IloRange object is initialized to represent the constraint val >= expr.

Parameters:
val - Value of the new greater-equal constraint.
expr - Expression of the new greater-equal constraint.
Returns:
A new IloRange object initialized to represent the constraint val >= expr.
IloException

ge

public ilog.concert.IloRange ge(double val,
                                ilog.concert.IloNumExpr expr,
                                java.lang.String name)
                         throws IloException
Creates and returns an IloRange object. The new IloRange object is initialized to represent the constraint val >= expr and is assigned the name name.

Parameters:
val - Value of the new greater-equal constraint.
expr - Expression of the new greater-equal constraint.
name - Name assigned to the new greater-equal constraint.
Returns:
A new IloRange object initialized to represent the constraint val >= expr.
IloException

range

public ilog.concert.IloRange range(double lb,
                                   ilog.concert.IloNumExpr expr,
                                   double ub)
                            throws IloException
Creates and returns an IloRange object. The new IloRange object is initialized to represent the constraint lb <= expr <= ub.

Parameters:
lb - Lower bound of the new IloRange constraint.
expr - Expression of the new IloRange constraint.
ub - Upper bound of the new IloRange constraint.
Returns:
A new IloRange object initialized to represent the constraint lb <= expr <= ub.
IloException

range

public ilog.concert.IloRange range(double lb,
                                   ilog.concert.IloNumExpr expr,
                                   double ub,
                                   java.lang.String name)
                            throws IloException
Creates and returns an IloRange object. The new IloRange object is initialized to represent the constraint lb <= expr <= ub and is assigned the name name.

Parameters:
lb - Lower bound of the new IloRange constraint.
expr - Expression of the new IloRange constraint.
ub - Upper bound of the new IloRange constraint.
name - Name assigned to the new IloRange constraint.
Returns:
A new IloRange object initialized to represent the constraint lb <= expr <= ub.
IloException

addEq

public ilog.concert.IloRange addEq(ilog.concert.IloNumExpr expr,
                                   double rhs)
                            throws IloException
Creates and returns an IloRange object. The new IloRange object is initialized to represent the constraint expr == rhs, and is added to the invoking IloModel.

Parameters:
expr - Expression of the new equality constraint.
rhs - Upper bound of the new equality constraint.
Returns:
A new IloRange object initialized to represent the constraint expr == rhs.
IloException

addEq

public ilog.concert.IloRange addEq(ilog.concert.IloNumExpr expr,
                                   double rhs,
                                   java.lang.String name)
                            throws IloException
Creates and returns an IloRange object. The new IloRange object is initialized to represent the constraint expr == rhs, and is added to the invoking IloModel. The new IloRange object is assigned the name name.

Parameters:
expr - Expression of the new equality constraint.
rhs - Upper bound of the new equality constraint.
name - Name assigned to the new equality constraint.
Returns:
A new IloRange object initialized to represent the constraint expr == rhs.
IloException

addEq

public ilog.concert.IloConstraint addEq(ilog.concert.IloNumExpr e1,
                                        ilog.concert.IloNumExpr e2)
                                 throws IloException
Creates and returns an IloRange object. The new IloRange object is initialized to represent the constraint e1 == e2, and is added to the invoking IloModel.

Parameters:
e1 - Left-hand side expression of the new equality constraint.
e2 - Right-hand side expression of the new equality constraint.
Returns:
A new IloRange object initialized to represent the constraint e1 == e2.
IloException

addEq

public ilog.concert.IloConstraint addEq(ilog.concert.IloNumExpr e1,
                                        ilog.concert.IloNumExpr e2,
                                        java.lang.String name)
                                 throws IloException
Creates and returns an IloRange object. The new IloRange object is initialized to represent the constraint e1 == e2, and is added to the invoking IloModel. The new IloRange object is assigned the name name.

Parameters:
e1 - Left-hand side expression of the new equality constraint.
e2 - Right-hand side expression of the new equality constraint.
name - Name assigned to the new IloRange constraint.
Returns:
A new IloRange object initialized to represent the constraint e1 == e2.
IloException

addEq

public ilog.concert.IloRange addEq(double val,
                                   ilog.concert.IloNumExpr expr)
                            throws IloException
Creates and returns an IloRange object. The new IloRange object is initialized to represent the constraint val == expr, and is added to the invoking IloModel.

Parameters:
val - Value of the new equality constraint.
expr - Expression of the new equality constraint.
Returns:
A new IloRange object initialized to represent the constraint val == expr.
IloException

addEq

public ilog.concert.IloRange addEq(double val,
                                   ilog.concert.IloNumExpr expr,
                                   java.lang.String name)
                            throws IloException
Creates and returns an IloRange object. The new IloRange object is initialized to represent the constraint val == expr, and is added to the invoking IloModel. The new IloRange object is assigned the name name.

Parameters:
val - Value of the new equality constraint.
expr - Expression of the new equality constraint.
name - Name assigned to the new equality constraint.
Returns:
A new IloRange object initialized to represent the constraint val == expr.
IloException

addLe

public ilog.concert.IloRange addLe(ilog.concert.IloNumExpr expr,
                                   double rhs)
                            throws IloException
Creates and returns an IloRange object. The new IloRange object is initialized to represent the constraint expr <= rhs, and is added to the invoking IloModel.

Parameters:
expr - Expression of the new less-equal constraint.
rhs - Upper bound of the new less-equal constraint.
Returns:
A new IloRange object initialized to represent the constraint expr <= rhs.
IloException

addLe

public ilog.concert.IloRange addLe(ilog.concert.IloNumExpr expr,
                                   double rhs,
                                   java.lang.String name)
                            throws IloException
Creates and returns an IloRange object. The new IloRange object is initialized to represent the constraint expr <= rhs, and is added to the invoking IloModel. The new IloRange object is assigned the name name.

Parameters:
expr - Expression of the new less-equal constraint.
rhs - Upper bound of the new less-equal constraint.
name - Name assigned to the new less-equal constraint.
Returns:
A new IloRange object initialized to represent the constraint expr <= rhs.
IloException

addLe

public ilog.concert.IloConstraint addLe(ilog.concert.IloNumExpr e1,
                                        ilog.concert.IloNumExpr e2)
                                 throws IloException
Creates and returns an IloRange object. The new IloRange object is initialized to represent the constraint e1 <= e2, and is added to the invoking IloModel.

Parameters:
e1 - Left-hand side expression of the new less-equal constraint.
e2 - Right-hand side expression of the new less-equal constraint.
Returns:
A new IloRange object initialized to represent the constraint e1 <= e2.
IloException

addLe

public ilog.concert.IloConstraint addLe(ilog.concert.IloNumExpr e1,
                                        ilog.concert.IloNumExpr e2,
                                        java.lang.String name)
                                 throws IloException
Creates and returns an IloRange object. The new IloRange object is initialized to represent the constraint e1 <= e2, and is added to the invoking IloModel. The new IloRange object is assigned the name name.

Parameters:
e1 - Left-hand side expression of the new less-equal constraint.
e2 - Right-hand side expression of the new less-equal constraint.
name - Name assigned to the new IloRange constraint.
Returns:
A new IloRange object initialized to represent the constraint e1 <= e2.
IloException

addLe

public ilog.concert.IloRange addLe(double val,
                                   ilog.concert.IloNumExpr expr)
                            throws IloException
Creates and returns an IloRange object. The new IloRange object is initialized to represent the constraint val <= expr, and is added to the invoking IloModel.

Parameters:
val - Value of the new less-equal constraint.
expr - Expression of the new less-equal constraint.
Returns:
A new IloRange object initialized to represent the constraint val <= exp.
IloException

addLe

public ilog.concert.IloRange addLe(double val,
                                   ilog.concert.IloNumExpr expr,
                                   java.lang.String name)
                            throws IloException
Creates and returns an IloRange object. The new IloRange object is initialized to represent the constraint val <= expr, and is added to the invoking IloModel. The new IloRange object is assigned the name name.

Parameters:
val - Value of the new less-equal constraint.
expr - Expression of the new less-equal constraint.
name - Name assigned to the new less-equal constraint.
Returns:
A new IloRange object initialized to represent the constraint val <= expr.
IloException

addGe

public ilog.concert.IloRange addGe(ilog.concert.IloNumExpr expr,
                                   double rhs)
                            throws IloException
Creates and returns an IloRange object. The new IloRange object is initialized to represent the constraint expr >= rhs, and is added to the invoking IloModel.

Parameters:
expr - Expression of the new greater-equal constraint.
rhs - Upper bound of the new greater-equal constraint.
Returns:
A new IloRange object initialized to represent the constraint expr >= rhs.
IloException

addGe

public ilog.concert.IloRange addGe(ilog.concert.IloNumExpr expr,
                                   double rhs,
                                   java.lang.String name)
                            throws IloException
Creates and returns an IloRange object. The new IloRange object is initialized to represent the constraint expr >= rhs, and is added to the invoking IloModel. The new IloRange object is assigned the name name.

Parameters:
expr - Expression of the new greater-equal constraint.
rhs - Upper bound of the new greater-equal constraint.
name - Name assigned to the new greater-equal constraint.
Returns:
A new IloRange object initialized to represent the constraint expr >= rhs.
IloException

addGe

public ilog.concert.IloConstraint addGe(ilog.concert.IloNumExpr e1,
                                        ilog.concert.IloNumExpr e2)
                                 throws IloException
Creates and returns an IloRange object. The new IloRange object is initialized to represent the constraint e1 >= e2, and is added to the invoking IloModel.

Parameters:
e1 - Left-hand side expression of the new greater-equal constraint.
e2 - Right-hand side expression of the new greater-equal constraint.
Returns:
A new IloRange object initialized to represent the constraint e1 >= e2.
IloException

addGe

public ilog.concert.IloConstraint addGe(ilog.concert.IloNumExpr e1,
                                        ilog.concert.IloNumExpr e2,
                                        java.lang.String name)
                                 throws IloException
Creates and returns an IloRange object. The new IloRange object is initialized to represent the constraint e1 >= e2, and is added to the invoking IloModel. The new IloRange object is assigned the name name.

Parameters:
e1 - Left-hand side expression of the new greater-equal constraint.
e2 - Right-hand side expression of the new greater-equal constraint.
name - Name assigned to the new IloRange constraint.
Returns:
A new IloRange object initialized to represent the constraint e1 >= e2.
IloException

addGe

public ilog.concert.IloRange addGe(double val,
                                   ilog.concert.IloNumExpr expr)
                            throws IloException
Creates and returns an IloRange object. The new IloRange object is initialized to represent the constraint val >= expr, and is added to the invoking IloModel.

Parameters:
val - Value of the new greater-equal constraint.
expr - Expression of the new greater-equal constraint.
Returns:
A new IloRange object initialized to represent the constraint val >= expr.
IloException

addGe

public ilog.concert.IloRange addGe(double val,
                                   ilog.concert.IloNumExpr expr,
                                   java.lang.String name)
                            throws IloException
Creates and returns an IloRange object. The new IloRange object is initialized to represent the constraint val >= expr, and is added to the invoking IloModel. The new IloRange object is assigned the name name.

Parameters:
val - Value of the new greater-equal constraint.
expr - Expression of the new greater-equal constraint.
name - Name assigned to the new greater-equal constraint.
Returns:
A new IloRange object initialized to represent the constraint val >= expr.
IloException

addRange

public ilog.concert.IloRange addRange(double lb,
                                      ilog.concert.IloNumExpr expr,
                                      double ub)
                               throws IloException
Creates and returns an IloRange object. The new IloRange object is initialized to represent the constraint lb <= expr <= ub, and is added to the invoking lb <= expr <= ub.

Parameters:
lb - Lower bound of the new IloRange constraint.
expr - Expression of the new IloRange constraint.
ub - Upper bound of the new IloRange constraint.
Returns:
A new IloRange object initialized to represent the constraint lb <= expr <= ub.
IloException

addRange

public ilog.concert.IloRange addRange(double lb,
                                      ilog.concert.IloNumExpr expr,
                                      double ub,
                                      java.lang.String name)
                               throws IloException
Creates and returns an IloRange object. The new IloRange object is initialized to represent the constraint lb <= expr <= ub, and is added to the invoking IloModel. The new IloRange object is assigned the name name.

Parameters:
lb - Lower bound of the new IloRange constraint.
expr - Expression of the new IloRange constraint.
ub - Upper bound of the new IloRange constraint.
name - Name assigned to the new IloRange constraint.
Returns:
A new IloRange object initialized to represent the constraint lb <= expr <= ub.
IloException

maximize

public ilog.concert.IloObjective maximize(ilog.concert.IloNumExpr expr)
                                   throws IloException
Creates and returns an IloObjective object. The IloObjective object represents an objective to maximize the expression expr.

Parameters:
expr - Expression to maximize.
Returns:
An IloObjective object representing the objective to maximize expr.
IloException

maximize

public ilog.concert.IloObjective maximize(ilog.concert.IloNumExpr expr,
                                          java.lang.String name)
                                   throws IloException
Creates and returns an IloObjective object. The IloObjective object represents an objective to maximize the expression expr and is assigned the name name.

Parameters:
expr - Expression to maximize.
name - Name assigned to the new IloObjective object.
Returns:
An IloObjective object representing the objective to maximize expr.
IloException

minimize

public ilog.concert.IloObjective minimize(ilog.concert.IloNumExpr expr)
                                   throws IloException
Creates and returns an IloObjective object. The IloObjective object represents an objective to minimize the expression expr.

Parameters:
expr - Expression to minimize.
Returns:
An IloObjective object representing the objective to minimize expr.
IloException

minimize

public ilog.concert.IloObjective minimize(ilog.concert.IloNumExpr expr,
                                          java.lang.String name)
                                   throws IloException
Creates and returns an IloObjective object. The IloObjective object represents an objective to minimize the expression expr and is assigned the name name.

Parameters:
expr - Expression to minimize.
name - Name assigned to the new IloObjective object.
Returns:
An IloObjective object representing the objective to minimize expr.
IloException

objective

public ilog.concert.IloObjective objective(ilog.concert.IloObjectiveSense sense,
                                           ilog.concert.IloNumExpr expr)
                                    throws IloException
Creates and returns an IloObjective object. The IloObjective object represents an objective to optimize the expression expr with respect to the optimization sense sense.

Parameters:
sense - Optimization sense.
expr - Expression to maximize.
Returns:
An IloObjective object representing the objective to maximize expr.
IloException

objective

public ilog.concert.IloObjective objective(ilog.concert.IloObjectiveSense sense,
                                           ilog.concert.IloNumExpr expr,
                                           java.lang.String name)
                                    throws IloException
Creates and returns an IloObjective object. The IloObjective object represents an objective to optimize the expression expr with respect to the optimization sense sense and is assigned the name name.

Parameters:
sense - Optimization sense.
expr - Expression to maximize.
name - Name assigned to the new IloObjective object.
Returns:
An IloObjective object representing the objective to maximize expr.
IloException

addMaximize

public ilog.concert.IloObjective addMaximize(ilog.concert.IloNumExpr expr)
                                      throws IloException
Creates and returns an IloObjective object. The IloObjective object represents an objective to maximize the expression expr. The new objective is added to the invoking model.

Parameters:
expr - Expression to maximize.
Returns:
An IloObjective object representing the objective to maximize expr.
IloException

addMaximize

public ilog.concert.IloObjective addMaximize(ilog.concert.IloNumExpr expr,
                                             java.lang.String name)
                                      throws IloException
Creates and returns an IloObjective object. The IloObjective object represents an objective to maximize the expression expr and is assigned the name name. The new objective is added to the invoking model.

Parameters:
expr - Expression to maximize.
name - Name assigned to the new IloObjective object.
Returns:
An IloObjective object representing the objective to maximize expr.
IloException

addMinimize

public ilog.concert.IloObjective addMinimize(ilog.concert.IloNumExpr expr)
                                      throws IloException
Creates and returns an IloObjective object. The IloObjective object represents an objective to minimize the expression expr. The new objective is added to the invoking model.

Parameters:
expr - Expression to minimize.
Returns:
An IloObjective object representing the objective to minimize expr.
IloException

addMinimize

public ilog.concert.IloObjective addMinimize(ilog.concert.IloNumExpr expr,
                                             java.lang.String name)
                                      throws IloException
Creates and returns an IloObjective object. The IloObjective object represents an objective to minimize the expression expr and is assigned the name name. The new objective is added to the invoking model.

Parameters:
expr - Expression to minimize.
name - Name assigned to the new IloObjective object.
Returns:
An IloObjective object representing the objective to minimize expr.
IloException

addObjective

public ilog.concert.IloObjective addObjective(ilog.concert.IloObjectiveSense sense,
                                              ilog.concert.IloNumExpr expr)
                                       throws IloException
Creates and returns an IloObjective object. The IloObjective object represents an objective to optimize the expression expr with respect to the optimization sense sense. The new objective is added to the invoking model.

Parameters:
sense - Optimization sense.
expr - Expression to maximize.
Returns:
An IloObjective object representing the objective to maximize expr.
IloException

addObjective

public ilog.concert.IloObjective addObjective(ilog.concert.IloObjectiveSense sense,
                                              ilog.concert.IloNumExpr expr,
                                              java.lang.String name)
                                       throws IloException
Creates and returns an IloObjective object. The IloObjective object represents an objective to optimize the expression expr with respect to the optimization sense sense and is assigned the name name. The new objective is added to the invoking model.

Parameters:
sense - Optimization sense.
expr - Expression to maximize.
name - Name assigned to the new IloObjective object.
Returns:
An IloObjective object representing the objective to maximize expr.
IloException