ilog.cplex
Class IloCplexModeler

java.lang.Object
  extended byilog.cplex.IloCplexModeler
All Implemented Interfaces:
IloAddable, IloModel, IloModeler, IloMPModeler, java.io.Serializable
Direct Known Subclasses:
IloCplex

public class IloCplexModeler
extends java.lang.Object
implements IloModel, IloMPModeler, java.io.Serializable

Implements the interface of the math programming modeler and its base interfaces.

Algorithmic methods are implemented in IloCplex.

By implementing the modeling methods of IloMPModeler, this class makes it possible for you to build models in your Java application with pure Java objects.

See Also:
Serialized Form

Nested Class Summary
static class IloCplexModeler.Exception
          This class extends the class IloException by also capturing the CPLEX error code.
 
Constructor Summary
IloCplexModeler()
           
 
Method Summary
 IloIntExpr abs(IloIntExpr expr)
           Returns an expression representing the absolute value of its argument, the expression specified by expr.
 IloNumExpr abs(IloNumExpr expr)
           Returns an expression representing the absolute value of its argument, the expression specified by expr.
 IloAddable add(IloAddable object)
          Adds object to the invoking model.
 IloAddable[] add(IloAddable[] objects)
          Adds the array of objects to the invoking model.
 IloAddable[] add(IloAddable[] objects, int start, int num)
          Adds part of the array of objects to the invoking model, starting with the index start and continuing to the number of objects indicated by num.
 IloRange addEq(double v, IloNumExpr e)
           Creates and returns a range initialized to represent the equality of the specified value and expression.
 IloRange addEq(double v, IloNumExpr e, java.lang.String name)
           Creates and returns a named range initialized to represent the equality of the specified value and expression.
 IloRange addEq(IloNumExpr e, double v)
           Creates and returns a range initialized to represent the equality of the specified expression and value.
 IloRange addEq(IloNumExpr e, double v, java.lang.String name)
           Creates and returns a named range initialized to represent the equality of the specified expression and value.
 IloConstraint addEq(IloNumExpr e1, IloNumExpr e2)
           Creates and returns a constraint initialized to represent the equality of the two specified expressions.
 IloConstraint addEq(IloNumExpr e1, IloNumExpr e2, java.lang.String name)
           Creates and returns a named constraint initialized to represent the equality of the two specified expressions.
 IloRange addGe(double v, IloNumExpr e)
           Creates and returns a constraint that the specified value must be greater than or equal to the specified numeric expression.
 IloRange addGe(double v, IloNumExpr e, java.lang.String name)
           Creates and returns a named constraint that the specified value must be greater than or equal to the specified numeric expression.
 IloRange addGe(IloNumExpr e, double v)
           Creates and returns a range representing the constraint that the specified numeric expression must be greater than or equal to the specified value.
 IloRange addGe(IloNumExpr e, double v, java.lang.String name)
           Creates and returns a range representing the constraint that the specified numeric expression must be greater than or equal to the specified value.
 IloConstraint addGe(IloNumExpr e1, IloNumExpr e2)
           Creates and returns a constraint that the first specified numeric expression must be greater than or equal to the second specified numeric expression.
 IloConstraint addGe(IloNumExpr e1, IloNumExpr e2, java.lang.String name)
           Creates and returns a named constraint that the first specified numeric expression must be greater than or equal to the second specified numeric expression.
 IloRange addLe(double v, IloNumExpr e)
           Creates and returns a range forcing the specified value to be less than than or equal to the specified numeric expression.
 IloRange addLe(double v, IloNumExpr e, java.lang.String name)
           Creates and returns a named range forcing the specified value to be less than than or equal to the specified numeric expression.
 IloRange addLe(IloNumExpr e, double v)
           Creates and returns a range forcing the specified numeric expression to be less than than or equal to the specified value.
 IloRange addLe(IloNumExpr e, double v, java.lang.String name)
           Creates and returns a named range forcing the specified numeric expression to be less than than or equal to the specified value.
 IloConstraint addLe(IloNumExpr e1, IloNumExpr e2)
           Creates and returns a constraint forcing the first specified numeric expression to be less than than or equal to the second specified numeric expression.
 IloConstraint addLe(IloNumExpr e1, IloNumExpr e2, java.lang.String name)
           Creates and returns a named constraint forcing the first specified numeric expression to be less than than or equal to the second specified numeric expression.
 IloLPMatrix addLPMatrix()
           Creates, returns, and adds an empty LP matrix object to the invoking model.
 IloLPMatrix addLPMatrix(java.lang.String name)
           Creates, returns, and adds an empty LP matrix object, with the specified name, to the invoking model.
 IloObjective addMaximize()
           Creates and returns an empty objective function and adds it to the invoking model.
 IloObjective addMaximize(IloNumExpr expr)
           Creates and returns an objective to maximize the expression and adds it to the invoking model.
 IloObjective addMaximize(IloNumExpr expr, java.lang.String name)
           Creates and returns a named objective function and adds it to the invoking model.
 IloObjective addMaximize(java.lang.String name)
           Creates and returns a named objective function and adds it to the invoking model.
 IloObjective addMinimize()
           Creates and returns an empty objective function and adds it to the invoking model.
 IloObjective addMinimize(IloNumExpr expr)
           Creates and returns an objective to minimize the expression and adds it to the invoking model.
 IloObjective addMinimize(IloNumExpr expr, java.lang.String name)
           Creates and returns a named objective function and adds it to the invoking model.
 IloObjective addMinimize(java.lang.String name)
           Creates and returns a named objective function and adds it to the invoking model.
 IloObjective addObjective(IloObjectiveSense sense)
           Creates and returns an empty objective function with the specified sense and adds it to the invoking model.
 IloObjective addObjective(IloObjectiveSense sense, IloNumExpr expr)
           Creates and returns an objective to optimize the expression in the specified sense and adds the objective to the invoking model.
 IloObjective addObjective(IloObjectiveSense sense, IloNumExpr expr, java.lang.String name)
           Creates and returns an objective to optimize the expression with respect to the sense and adds it to the invoking model.
 IloObjective addObjective(IloObjectiveSense sense, java.lang.String name)
           Creates and returns a named objective function with the specified sense and adds it to the invoking model.
 IloRange addRange(double lb, double ub)
           Creates and returns an empty range object with the specified lower and upper bounds.
 IloRange addRange(double lb, double ub, java.lang.String name)
           Creates and returns an empty range object with the specified name and specified lower and upper bounds.
 IloRange addRange(double lb, IloNumExpr expr, double ub)
           Creates, returns, and adds to the invoking model a range object with the specified expression as well as upper and lower bounds.
 IloRange addRange(double lb, IloNumExpr expr, double ub, java.lang.String name)
           Creates, returns, and adds to the invoking model a range object with the specified name, upper and lower bounds, and expression.
 IloSOS1 addSOS1(IloNumVar[] var, double[] val)
           Creates a special ordered set (SOS) of type 1 with the specified variables and weights and adds it to the invoking model.
 IloSOS1 addSOS1(IloNumVar[] var, double[] val, int start, int num)
           Creates a special ordered set (SOS) of type 1 with the specified variables and weights and adds it to the invoking model.
 IloSOS1 addSOS1(IloNumVar[] var, double[] val, int start, int num, java.lang.String name)
           Creates and returns a named special ordered set (SOS) of type 1, starting from the specified index and continuing through a number of elements in the array of specified variables and weights, and adds that named SOS1 to the invoking model.
 IloSOS1 addSOS1(IloNumVar[] var, double[] val, java.lang.String name)
           Creates and returns a named special ordered set (SOS) of type 1 with the specified variables and weights, and adds that SOS1 to the invoking model.
 IloSOS2 addSOS2(IloNumVar[] var, double[] val)
           Creates and returns a special ordered set (SOS) of type 2 from the specified array of variables and weights, and adds that SOS2 to the invoking model.
 IloSOS2 addSOS2(IloNumVar[] var, double[] val, int start, int num)
           Creates and returns a special ordered set (SOS) of type 2 from a number of elements, starting at the specified index, of the specified array of variables and weights, and adds that SOS2 to the invoking model.
 IloSOS2 addSOS2(IloNumVar[] var, double[] val, int start, int num, java.lang.String name)
           Creates and returns a named special ordered set (SOS) of type 2 from a number of elements, starting at the specified index, of the specified array of variables and weights, and adds that SOS2 to the invoking model.
 IloSOS2 addSOS2(IloNumVar[] var, double[] val, java.lang.String name)
           Creates and returns a named special ordered set (SOS) of type 2 from the specified array of variables and weights, and adds that SOS2 to the invoking model.
 void addToExpr(IloObjective obj, IloNumExpr expr)
           Adds a numeric experssion to an objective.
 void addToExpr(IloRange rng, IloNumExpr expr)
           Adds the specified numeric expression to the specified range.
 IloAnd and()
           Groups constraints together.
 IloAnd and(IloConstraint[] cons)
           Groups constraints together.
 IloAnd and(IloConstraint[] cons, int start, int num)
           Groups together part of the constraints in the array cons starting with the index indicated by start and continuing to the number of constraints indicated by num.
 IloAnd and(IloConstraint[] cons, int start, int num, java.lang.String name)
           Groups together part of the constraints from the array cons starting with the index indicated by start and continuing to the number of constraints indicated by num.
 IloAnd and(IloConstraint[] cons, java.lang.String name)
           Groups constraints together.
 IloAnd and(IloConstraint con1, IloConstraint con2)
           Groups together the constraints indicated by its arguments.
 IloAnd and(IloConstraint con1, IloConstraint con2, java.lang.String name)
           Groups together the constraints indicated by its arguments and assigns the string name to the group.
 IloIntVar boolVar()
           Creates and returns a new Boolean variable (domain 0,1).
 IloIntVar boolVar(IloColumn column)
           Creates and returns a Boolean variable (domain 0, 1) representing a column.
 IloIntVar boolVar(IloColumn column, java.lang.String name)
           Creates and returns a Boolean variable (domain 0, 1) representing a column with a name.
 IloIntVar boolVar(java.lang.String name)
           Creates and returns a new Boolean variable (domain 0,1) with the specified name.
 IloIntVar[] boolVarArray(IloColumnArray cols)
           Creates and returns an array of Boolean variables (domain 0, 1) representing an array of columns.
 IloIntVar[] boolVarArray(IloColumnArray cols, java.lang.String[] name)
           Creates and returns an array of Boolean variables (domain 0, 1) representing an array of named columns.
 IloIntVar[] boolVarArray(int n)
           Creates and returns an array of n new Boolean variables (domain 0,1).
 IloIntVar[] boolVarArray(int n, java.lang.String[] name)
           Creates and returns an array of n new Boolean variables (domain 0,1) each with an individually specified name.
 IloColumn column(IloLPMatrix lp)
           Creates and returns a column from an LP matrix.
 IloColumn column(IloLPMatrix lp, int[] ind, double[] val)
           Creates and returns a column from part of an LP matrix, using the specified indices and values.
 IloColumn column(IloLPMatrix lp, int[] ind, double[] val, int start, int num)
           Creates and returns a column suitable for adding a number of variables to an LP matrix, using a number of the specified indices and values, starting from the specified index.
 IloColumn column(IloObjective obj, double val)
           Creates and returns a column from the specified objective and value.
 IloColumn column(IloRange rng, double val)
           Creates and returns a column from the specified range and value.
 IloColumnArray columnArray(IloLPMatrix lp, int num)
           Creates and returns an array of a number of columns from an LP matrix.
 IloColumnArray columnArray(IloLPMatrix lp, int num, int[][] ind, double[][] val)
           Creates and returns an array of columns suitable for adding new variables as columns in an LP matrix.
 IloColumnArray columnArray(IloObjective obj, double[] val)
           Creates and returns an array of columns from the specified objective and array of values.
 IloColumnArray columnArray(IloObjective obj, double[] val, int start, int num)
           Creates and returns an array of a number of columns, starting from the specified index, of the specified objective and the corresponding array of values.
 IloColumnArray columnArray(IloRange rng, double[] val)
           Creates and returns an array of columns from the specified range and array of values.
 IloColumnArray columnArray(IloRange rng, double[] val, int start, int num)
           Creates and returns an array of a number of columns, starting from the specified index of the range and corresponding array of values.
 IloNumExpr constant(double x)
           Creates and returns an expression representing a constant term.
 IloIntExpr constant(int x)
           Creates and returns an integer expression representing a constant integer value.
 IloConversion conversion(IloNumVar[] ilovar, IloNumVarType type)
           Converts an array of numeric variables to the specified type.
 IloConversion conversion(IloNumVar[] ilovar, IloNumVarType[] type)
           Converts an array of numeric variables to the corresponding specified types.
 IloConversion conversion(IloNumVar[] ilovar, IloNumVarType[] type, java.lang.String name)
           Converts an array of numeric variables, each one converted to the type corresponding to the types in an array of types, and names the conversion object.
 IloConversion conversion(IloNumVar[] ilovar, IloNumVarType type, java.lang.String name)
           Converts an array of numeric variables to the specified type and names the conversion object.
 IloConversion conversion(IloNumVar var, IloNumVarType type)
           Converts a numeric variable to a specified type.
 IloConversion conversion(IloNumVar var, IloNumVarType type, java.lang.String name)
           Converts a numeric variable to the specified type and names the converted variable.
 java.util.Iterator conversionIterator()
           Returns an iterator over all conversion objects in the active model.
 void delete(IloCopyable obj)
           Deletes a copyable object.
 void delete(IloCopyable[] obj)
           Deletes an array of copyable objects.
 void delete(IloCopyable[] obj, int beg, int num)
           Deletes a number of copyable objects, starting from the specified index, from an array of copyable objects.
 IloNumExpr diff(double v, IloNumExpr e1)
           Creates and returns a numeric expression representing the difference between a value and a numeric expression.
 IloIntExpr diff(IloIntExpr e1, IloIntExpr e2)
           Creates and returns an expression representing the difference between two integer expressions.
 IloIntExpr diff(IloIntExpr e, int v)
           Creates and returns an integer expression representing the difference between an integer expression and an integer value.
 IloNumExpr diff(IloNumExpr e, double v)
           Creates and returns a numeric expression representing the difference between a numeric expression and a value.
 IloNumExpr diff(IloNumExpr e1, IloNumExpr e2)
           Creates and returns a numeric expression representing the difference between two numeric expressions.
 IloIntExpr diff(int v, IloIntExpr e1)
           Creates and returns an expression representing the difference between a value and an integer expression.
 IloRange eq(double v, IloNumExpr e)
           Creates and returns a range forcing the specified value to be equal to the specified numeric expression.
 IloRange eq(double v, IloNumExpr e, java.lang.String name)
           Creates and returns a named range forcing the specified value to be equal to the specified numeric expression.
 IloRange eq(IloNumExpr e, double v)
           Creates and returns a range forcing the specified numeric expression to be equal to the specified value.
 IloRange eq(IloNumExpr e, double v, java.lang.String name)
           Creates and returns a named range forcing the specified numeric expression to be equal to the specified value.
 IloConstraint eq(IloNumExpr e1, IloNumExpr e2)
           Creates and returns a constraint forcing the specified numeric expressions to be equal.
 IloConstraint eq(IloNumExpr e1, IloNumExpr e2, java.lang.String name)
           Creates and returns a named constraint forcing the specified numeric expressions to be equal.
 IloRange ge(double v, IloNumExpr e)
           Creates and returns a range that forces the specified value to be greater than or equal to the specified expression.
 IloRange ge(double v, IloNumExpr e, java.lang.String name)
           Creates and returns a named range that forces the specified value to be greater than or equal to the specified expression.
 IloRange ge(IloNumExpr e, double v)
           Creates and returns a range forcing the specified numeric expression to be greater than or equal to the specified value.
 IloRange ge(IloNumExpr e, double v, java.lang.String name)
           Creates and returns a named range forcing the specified numeric expression to be greater than or equal to the specified value.
 IloConstraint ge(IloNumExpr e1, IloNumExpr e2)
           Creates and returns a constraint forcing the first specified numeric expression to be greater than or equal to the second specified numeric expression.
 IloConstraint ge(IloNumExpr e1, IloNumExpr e2, java.lang.String name)
           Creates and returns a named constraint forcing the first specified numeric expression to be greater than or equal to the second specified numeric expression.
 IloModel getModel()
          Returns the active model.
 java.lang.String getName()
           Returns the name of the invoking model, if there is one.
 IloObjective getObjective()
           Returns the IloObjective object of the active model, or null if no IloObjective object is currently in the active model.
 IloConstraint ifThen(IloConstraint con1, IloConstraint con2)
           Returns a constraint that if con1 is true, then con2 must also be true.
 IloConstraint ifThen(IloConstraint con1, IloConstraint con2, java.lang.String name)
           Returns a constraint that if con1 is true, then con2 must also be true.
 IloIntExpr intExpr()
           Creates and returns an empty integer expression.
 IloIntSet intSet(int[] values)
           Creates and returns a set of integers populated by values, an array of integers.
 IloIntSet intSet(int min, int max)
           Creates and returns a set of integers in which the minimum element is min, the maximum element is max, and all integers between min and max are included in the possible set.
 IloIntSetVar[] intSetVarArray(int size)
           
 IloIntVar intVar(IloColumn column, int lb, int ub)
           Creates and returns an integer variable representing a column with an integer lower and upper bound.
 IloIntVar intVar(IloColumn column, int lb, int ub, java.lang.String name)
           Creates and returns an integer variable representing a column with an integer lower and upper bound as well as a name.
 IloIntVar intVar(int lb, int ub)
           Creates and returns an integer variable with specified upper and lower bound.
 IloIntVar intVar(int lb, int ub, java.lang.String name)
           Creates and returns an integer variable with specified upper bound, lower bound, and name.
 IloIntVar[] intVarArray(IloColumnArray cols, int[] lb, int[] ub)
           Creates and returns an array of integer variables representing an array of columns with individually specified integer lower and upper bounds.
 IloIntVar[] intVarArray(IloColumnArray cols, int[] lb, int[] ub, java.lang.String[] name)
           Creates and returns an array of integer variables representing an array of columns with individually specified integer lower and upper bounds as well as individually specified names.
 IloIntVar[] intVarArray(IloColumnArray cols, int lb, int ub)
           Creates and returns an array of integer variables representing an array of columns with an integer lower and upper bound.
 IloIntVar[] intVarArray(IloColumnArray cols, int lb, int ub, java.lang.String[] name)
           Creates and returns an array of integer variables representing an array of columns with an integer lower and upper bound as well as individually specified names.
 IloIntVar[] intVarArray(int n, int[] lb, int[] ub)
           Creates and returns an array of integer variables with individually specified upper and lower bounds.
 IloIntVar[] intVarArray(int n, int[] lb, int[] ub, java.lang.String[] name)
           Creates and returns an array of integer variables each with individually specified upper bound, lower bound, and name.
 IloIntVar[] intVarArray(int n, int lb, int ub)
           Creates and returns an array of integer variables with the same specified upper and lower bound.
 IloIntVar[] intVarArray(int n, int lb, int ub, java.lang.String[] name)
           Creates and returns an array of integer variables all with the same upper and lower bound, but individually specified names.
 java.util.Iterator iterator()
           Returns an iterator suitable for the invoking model.
 IloRange le(double v, IloNumExpr e)
           Creates and returns a range that forces the specified value to be less than or equal to the specified numeric expression.
 IloRange le(double v, IloNumExpr e, java.lang.String name)
           Creates and returns a named range that forces the specified value to be less than or equal to the specified numeric expression.
 IloRange le(IloNumExpr e, double v)
           Creates and returns a range that forces the specified numeric expression to be less than or equal to the specified value.
 IloRange le(IloNumExpr e, double v, java.lang.String name)
           Creates and returns a named range that forces the specified numeric expression to be less than or equal to the specified value.
 IloConstraint le(IloNumExpr e1, IloNumExpr e2)
           Creates and returns a constraint that forces the first specified numeric expression to be less than or equal to the second specified numeric expression.
 IloConstraint le(IloNumExpr e1, IloNumExpr e2, java.lang.String name)
           Creates and returns a named constraint that forces the first specified numeric expression to be less than or equal to the second specified numeric expression.
 IloLinearIntExpr linearIntExpr()
           Creates and returns an integer linear expression initialized as 0 (zero).
 IloLinearIntExpr linearIntExpr(int val)
           Creates and returns an integer linear expression initialized as a constant.
 IloLinearNumExpr linearNumExpr()
           Creates and returns a zero linear expression.
 IloLinearNumExpr linearNumExpr(double val)
           Creates and returns a linear expression initialized as the constant.
 IloLPMatrix LPMatrix()
           Creates and returns an empty LP matrix object.
 IloLPMatrix LPMatrix(java.lang.String name)
           Creates and returns an empty, named LP matrix object.
 java.util.Iterator LPMatrixIterator()
           Returns an iterator over all LP matrix objects in the active model.
 IloCopyable makeCopy(IloCopyManager copy)
           
 IloNumExpr max(double expr2, IloNumExpr expr1)
           Returns an expression representing the maximum of its two arguments.
 IloIntExpr max(IloIntExpr[] exprs)
           Returns an expression representing the maximum of its argument, the elements of an array.
 IloIntExpr max(IloIntExpr expr1, IloIntExpr expr2)
           Returns an expression representing the maximum of its two arguments.
 IloIntExpr max(IloIntExpr expr1, int expr2)
           Returns an expression representing the maximum of its two arguments.
 IloNumExpr max(IloNumExpr[] exprs)
           Returns an expression representing the maximum of its argument, the elements of an array.
 IloNumExpr max(IloNumExpr expr1, double expr2)
           Returns an expression representing the maximum of its two arguments.
 IloNumExpr max(IloNumExpr expr1, IloNumExpr expr2)
           Returns an expression representing the maximum of its two arguments.
 IloIntExpr max(int expr1, IloIntExpr expr2)
           Returns an expression representing the maximum of its two arguments.
 IloObjective maximize()
           Creates and returns an empty maximization objective function.
 IloObjective maximize(IloNumExpr expr)
           Creates and returns an objective from an expression.
 IloObjective maximize(IloNumExpr expr, java.lang.String name)
           Creates and returns a named objective to minimize the expression.
 IloObjective maximize(java.lang.String name)
           Creates and returns a named empty maximization objective function.
 IloNumExpr min(double expr2, IloNumExpr expr1)
           Returns an expression representing the minimum of its two arguments.
 IloIntExpr min(IloIntExpr[] exprs)
           Returns an expression representing the minimum of its argument, the elements of an array.
 IloIntExpr min(IloIntExpr expr1, IloIntExpr expr2)
           Returns an expression representing the minimum of its two arguments.
 IloIntExpr min(IloIntExpr expr1, int expr2)
           Returns an expression representing the minimum of its two arguments.
 IloNumExpr min(IloNumExpr[] exprs)
           Returns an expression representing the minimum of its argument, the elements of an array.
 IloNumExpr min(IloNumExpr expr1, double expr2)
           Returns an expression representing the minimum of its two arguments.
 IloNumExpr min(IloNumExpr expr1, IloNumExpr expr2)
           Returns an expression representing the minimum of its two arguments.
 IloIntExpr min(int expr1, IloIntExpr expr2)
           Returns an expression representing the minimum of its two arguments.
 IloObjective minimize()
           Creates and returns an empty minimization objective function.
 IloObjective minimize(IloNumExpr expr)
           Creates and returns an objective from an expression.
 IloObjective minimize(IloNumExpr expr, java.lang.String name)
           Creates and returns an objective to minimize the expression.
 IloObjective minimize(java.lang.String name)
           Creates and returns a named empty minimization objective function.
 void needCopy(IloCopyManager.Check check)
           
 IloIntExpr negative(IloIntExpr e)
           Creates and returns a new integer expression representing the negation of its argument.
 IloNumExpr negative(IloNumExpr e)
           Creates and returns a new numeric expression which is the negation of the original expression.
 IloConstraint not(IloConstraint con1)
           Returns a constraint that is the logical negation of its argument.
 IloConstraint not(IloConstraint con1, java.lang.String name)
           Returns a constraint that is the logical negation of its argument and assigns the string name as the name of the returned constraint.
 IloNumExpr numExpr()
           Creates and returns an empty expression.
 IloNumVar numVar(double lb, double ub)
           Creates and returns a numeric variable with specified bounds.
 IloNumVar numVar(double lb, double ub, IloNumVarType type)
           Creates and returns a numeric variable with bounds and specified type.
 IloNumVar numVar(double lb, double ub, IloNumVarType type, java.lang.String name)
           Creates and returns a named numeric variable with bounds and specified type.
 IloNumVar numVar(double lb, double ub, java.lang.String name)
           Creates and returns a numeric variable with specified bounds and name.
 IloNumVar numVar(IloColumn column, double lb, double ub)
           Creates and returns a numeric variable representing a column with a specified lower and upper bound.
 IloNumVar numVar(IloColumn column, double lb, double ub, IloNumVarType type)
           Creates and returns a numeric variable representing a column with specified lower and upper bounds as well as type.
 IloNumVar numVar(IloColumn column, double lb, double ub, IloNumVarType type, java.lang.String name)
           Creates and returns a named numeric variable representing a column with specified lower and upper bounds as well as type.
 IloNumVar numVar(IloColumn column, double lb, double ub, java.lang.String name)
           Creates and returns a named numeric variable representing representing a column with a specified lower and upper bound.
 IloNumVar[] numVarArray(IloColumnArray cols, double[] lb, double[] ub)
           Creates and returns an array of numeric variables representing an array of columns with individually specified lower and upper bounds.
 IloNumVar[] numVarArray(IloColumnArray cols, double[] lb, double[] ub, IloNumVarType[] type)
           Creates and returns an array of numeric variables representing an array of columns with individually specified lower and upper bounds as well as individual types.
 IloNumVar[] numVarArray(IloColumnArray cols, double[] lb, double[] ub, IloNumVarType[] type, java.lang.String[] name)
           Creates and returns an array of numeric variables representing an array of columns with individually specified lower and upper bounds as well as individual types and individual names.
 IloNumVar[] numVarArray(IloColumnArray cols, double[] lb, double[] ub, java.lang.String[] name)
           Creates and returns an array of numeric variables representing an array of columns with individually specified lower and upper bounds as well as names.
 IloNumVar[] numVarArray(IloColumnArray cols, double lb, double ub)
           Creates and returns an array of numeric variables representing an array of columns with a specified lower and upper bound.
 IloNumVar[] numVarArray(IloColumnArray cols, double lb, double ub, IloNumVarType type)
           Creates and returns an array of numeric variables representing an array of columns with specified lower and upper bounds as well as type.
 IloNumVar[] numVarArray(IloColumnArray cols, double lb, double ub, IloNumVarType type, java.lang.String[] name)
           Creates and returns an array of numeric variables representing an array of columns with specified lower and upper bounds as well as a type and individual names.
 IloNumVar[] numVarArray(IloColumnArray cols, double lb, double ub, java.lang.String[] name)
           Creates and returns an array of numeric variables representing an array of columns with a lower and upper bound as well as individually specified names.
 IloNumVar[] numVarArray(int n, double[] lb, double[] ub)
           Creates an array of numeric variables with individually specified upper and lower bounds.
 IloNumVar[] numVarArray(int n, double[] lb, double[] ub, IloNumVarType[] type)
           Creates and returns an array of numeric variables with individual bounds and types.
 IloNumVar[] numVarArray(int n, double[] lb, double[] ub, IloNumVarType[] type, java.lang.String[] name)
           Creates and returns an array of numeric variables, all with individual specified bounds, types, and names.
 IloNumVar[] numVarArray(int n, double[] lb, double[] ub, java.lang.String[] name)
           Creates an array of numeric variables, each with individually specified upper bound, lower bound, and name.
 IloNumVar[] numVarArray(int n, double lb, double ub)
           Creates an array of numeric variables, all with the same upper and lower bound.
 IloNumVar[] numVarArray(int n, double lb, double ub, IloNumVarType type)
           Creates and returns an array of numeric variables, all with same specified bounds, all of the same type.
 IloNumVar[] numVarArray(int n, double lb, double ub, IloNumVarType type, java.lang.String[] name)
           Creates and returns an array of numeric variables, all with same specified bounds, all with same type, and individual names.
 IloNumVar[] numVarArray(int n, double lb, double ub, java.lang.String[] name)
           Creates an array of numeric variables, all with the same upper and lower bound, but with individually specified names.
 IloObjective objective(IloObjectiveSense sense)
           Creates and returns an empty objective function with the specified sense.
 IloObjective objective(IloObjectiveSense sense, IloNumExpr expr)
           Creates and returns an objective from an expression to optimize in the specified sense.
 IloObjective objective(IloObjectiveSense sense, IloNumExpr expr, java.lang.String name)
           Creates and returns a named objective with a sense (maximize or minimize).
 IloObjective objective(IloObjectiveSense sense, java.lang.String name)
           Creates and returns a named, empty objective function with the specified sense.
 IloOr or()
           Returns a constraint that at least one and possibly more than one of the elements is true in its argument cons, an array of constraints.
 IloOr or(IloConstraint[] cons)
           Returns a constraint that at least one and possibly more than one of the elements is true in its argument cons, an array of constraints.
 IloOr or(IloConstraint[] cons, int start, int num)
           Returns a constraint that at least one and possibly more than one of the elements is true in the range of indices starting at the index indicated by start and continuing through the number of elements indicated by the number num among the elements of its argument cons, an array of constraints.
 IloOr or(IloConstraint[] cons, int start, int num, java.lang.String name)
           Returns a constraint that at least one and possibly more than one of the elements is true in the range of indices starting at the index indicated by start and continuing through the number of elements indicated by the number num among the elements of its argument cons, an array of constraints; also assigns the string name as the name of the returned constraint.
 IloOr or(IloConstraint[] cons, java.lang.String name)
           Returns a constraint that at least one and possibly more than one of the elements is true in its argument cons, an array of constraints and also assigns the string name as the name of that returned constraint.
 IloOr or(IloConstraint con1, IloConstraint con2)
           Returns a constraint that at least one and possibly both of its arguments are true.
 IloOr or(IloConstraint con1, IloConstraint con2, java.lang.String name)
           Returns a constraint that at least one and possibly both of its arguments are true.
 IloNumExpr piecewiseLinear(IloNumExpr expr, double[] points, double[] slopes, double a, double fa)
           Creates and returns a numeric expression representing a piecewise linear function.
 IloNumExpr piecewiseLinear(IloNumExpr expr, double[] points, int startPoints, int num, double[] slopes, int startSlopes, double a, double fa)
           Creates and returns a numeric expression representing a piecewise linear function.
 IloNumExpr prod(double v, IloNumExpr e1)
           Creates and returns an expression representing the product of a value and a numeric expression.
 IloNumExpr prod(double v, IloNumVar var1, IloNumVar var2)
           Creates and returns an expression representing the product of a value and two numeric variables.
 IloIntExpr prod(IloIntExpr e1, IloIntExpr e2)
           Creates and returns an expression representing the product of two integer expressions.
 IloIntExpr prod(IloIntExpr e, int v)
           Creates and returns an expression representing the product of an integer expression and a value.
 IloNumExpr prod(IloNumExpr e, double v)
           Creates and returns an expression representing the product of a numeric expression and a value.
 IloNumExpr prod(IloNumExpr e1, IloNumExpr e2)
           Creates and returns an expression representing the product of two numeric expressions.
 IloNumExpr prod(IloNumVar var1, double v, IloNumVar var2)
           Creates and returns an expression representing the product of a numeric variable, a value, and another numeric variable.
 IloNumExpr prod(IloNumVar var1, IloNumVar var2, double v)
           Creates and returns an expression representing the product of two numeric variables and a value.
 IloIntExpr prod(int v, IloIntExpr e1)
           Creates and returns an integer expression representing the product of a value and an integer expression.
 IloRange range(double lb, double ub)
           Creates and returns a range with the specified lower and upper bound.
 IloRange range(double lb, double ub, java.lang.String name)
           Creates and returns a named range with the specified lower and upper bound.
 IloRange range(double lb, IloNumExpr expr, double ub)
           Creates and returns a range with the specified lower bound, numeric expression, and upper bound.
 IloRange range(double lb, IloNumExpr expr, double ub, java.lang.String name)
           Creates and returns a named range with the specified lower bound, numeric expression, and upper bound.
 java.util.Iterator rangeIterator()
           Returns an iterator over all ranges in the active model.
 IloAddable remove(IloAddable object)
           Removes object from the invoking model.
 IloAddable[] remove(IloAddable[] objects)
           Removes the array of objects from the invoking model.
 IloAddable[] remove(IloAddable[] objects, int start, int num)
           Removes part of the array of objects from the invoking model, starting with the index start and continuing to the number of objects indicated by num.
 IloLinearNumExpr scalProd(double[] vals, IloNumVar[] vars)
           Creates and returns a linear expression representing the scalar product of the provided values with the provided variables.
 IloLinearNumExpr scalProd(double[] vals, IloNumVar[] vars, int start, int num)
           Creates and returns a linear expression representing the scalar product of the values and variables provided in the specified range of indices.
 IloIntExpr scalProd(IloIntVar[] vars1, IloIntVar[] vars2)
           Creates and returns a linear expression representing the scalar product of the given variables.
 IloIntExpr scalProd(IloIntVar[] vars1, IloIntVar[] vars2, int start, int num)
           Creates and returns a linear expression representing the scalar product of the given variables.
 IloLinearIntExpr scalProd(IloIntVar[] vars, int[] vals)
           Creates and returns a linear integer expression representing the scalar product of the provided integer variables and integer values.
 IloLinearIntExpr scalProd(IloIntVar[] vars, int[] vals, int start, int num)
           Creates and returns a linear integer expression representing the scalar product of the provided integer variables and integer values from the specified range of indices.
 IloLinearNumExpr scalProd(IloNumVar[] vars, double[] vals)
           Creates and returns a linear expression representing the scalar product of the provided variables with the provided values.
 IloLinearNumExpr scalProd(IloNumVar[] vars, double[] vals, int start, int num)
           Creates and returns a linear expression representing the scalar product of the variables and values provided in the specified range of indices.
 IloNumExpr scalProd(IloNumVar[] vars1, IloNumVar[] vars2)
           Creates and returns a linear expression representing the scalar product of the given variables.
 IloNumExpr scalProd(IloNumVar[] vars1, IloNumVar[] vars2, int start, int num)
           Creates and returns a linear expression representing the scalar product of the given variables.
 IloLinearNumExpr scalProd(IloNumVar[] vars, int[] vals)
           Creates and returns a linear expression representing the scalar product of the numeric variables and integer values provided.
 IloLinearNumExpr scalProd(IloNumVar[] vars, int[] vals, int start, int num)
           Creates and returns a new linear expression representing the scalar product of the num variables in vars starting at element start with the corresponding values in vals.
 IloLinearIntExpr scalProd(int[] vals, IloIntVar[] vars)
           Creates and returns a linear integer expression representing the scalar product of the provided integer values and integer variables.
 IloLinearIntExpr scalProd(int[] vals, IloIntVar[] vars, int start, int num)
           Creates and returns a linear integer expression representing the scalar product of the provided integer values and integer variables from the specified range of indices.
 IloLinearNumExpr scalProd(int[] vals, IloNumVar[] vars)
           Creates and returns a linear expression representing the scalar product of the integer values and numeric variables provided.
 IloLinearNumExpr scalProd(int[] vals, IloNumVar[] vars, int start, int num)
           Creates and returns a new linear expression representing the scalar product of the num values in vals starting at element start with the corresponding variables in vars.
 IloSemiContVar semiContVar(double lb, double ub, IloNumVarType type)
           Creates and returns a semi-continuous variable with a specified lower and upper bound and of a specified type.
 IloSemiContVar semiContVar(double lb, double ub, IloNumVarType type, java.lang.String name)
           Creates and returns a named semi-continuous variable with a specified lower and upper bound and of a specified type.
 IloSemiContVar semiContVar(IloColumn column, double lb, double ub, IloNumVarType type)
           Creates and returns a semicontinuous variable with a specified lower and upper bound and of a specified type, representing a column.
 IloSemiContVar semiContVar(IloColumn column, double lb, double ub, IloNumVarType type, java.lang.String name)
           Creates and returns a named semi-continuous variable with a specified lower and upper bound and of a specified type, representing a column.
 IloSemiContVar[] semiContVarArray(IloColumnArray cols, double[] lb, double[] ub, IloNumVarType[] type)
           Creates and returns an array of semi-continuous variables with individually specified lower and upper bounds and individually specified types, representing an array of columns.
 IloSemiContVar[] semiContVarArray(IloColumnArray cols, double[] lb, double[] ub, IloNumVarType[] type, java.lang.String[] name)
           Creates and returns an array of named semi-continuous variables with individually specified lower and upper bounds, and individually specified type, representing an array of columns.
 IloSemiContVar[] semiContVarArray(IloColumnArray cols, double lb, double ub, IloNumVarType type)
           Creates and returns an array of semi-continuous variables with a specified lower and upper bound and of a specified type, representing an array of columns.
 IloSemiContVar[] semiContVarArray(IloColumnArray cols, double lb, double ub, IloNumVarType type, java.lang.String[] name)
           Creates and returns an array of named semi-continuous variables with a specified lower and upper bound as well as type, representing an array of columns.
 IloSemiContVar[] semiContVarArray(int n, double[] lb, double[] ub, IloNumVarType[] type)
           Creates and returns an array of semi-continuous variables with individually specified lower and upper bounds and individually specified types.
 IloSemiContVar[] semiContVarArray(int n, double[] lb, double[] ub, IloNumVarType[] type, java.lang.String[] name)
           Creates and returns an array of individually named semi-continuous variables with individually specified lower and upper bounds and individually specified types.
 IloSemiContVar[] semiContVarArray(int n, double lb, double ub, IloNumVarType type)
           Creates and returns an array of semi-continuous variables with a specified lower and upper bound and of a specified type.
 IloSemiContVar[] semiContVarArray(int n, double lb, double ub, IloNumVarType type, java.lang.String[] name)
           Creates and returns an array of individually named semi-continuous variables with a specified lower and upper bound and of a specified type.
 void setLinearCoef(IloObjective obj, double val, IloNumVar var)
           Sets a value as the linear coefficient of the variable in the objective.
 void setLinearCoef(IloObjective obj, IloNumVar var, double val)
           Sets a value as the linear coefficient of the variable in the objective.
 void setLinearCoef(IloRange rng, double val, IloNumVar var)
           Sets the specified value as the linear coefficient of the specified variable in the specified range.
 void setLinearCoef(IloRange rng, IloNumVar var, double val)
           Sets the specified value as the linear coefficient of the specified variable in the specified range.
 void setLinearCoefs(IloObjective obj, double[] val, IloNumVar[] var)
           Sets an array of values as the corresponding linear coefficients of an array of variables in the objective.
 void setLinearCoefs(IloObjective obj, double[] val, IloNumVar[] var, int start, int num)
           Sets an array of values as the corresponding linear coefficients of an array of variables in the objective from a starting index for a range of those values and variables.
 void setLinearCoefs(IloObjective obj, IloNumVar[] var, double[] val)
           Sets an array of values as the corresponding linear coefficients of an array of variables in the objective.
 void setLinearCoefs(IloObjective obj, IloNumVar[] var, double[] val, int start, int num)
           Sets an array of values as the corresponding linear coefficients of an array of variables in the objective from a starting index for a range of those values and variables.
 void setLinearCoefs(IloRange rng, double[] val, IloNumVar[] var)
           Sets the array of specified values as the linear coefficients of the specified array of variables in the specified range.
 void setLinearCoefs(IloRange rng, double[] val, IloNumVar[] var, int start, int num)
           Sets a number of the array of specified values, from a starting index, as the linear coefficients of the corresponding part of the array of variables in the specified range.
 void setLinearCoefs(IloRange rng, IloNumVar[] var, double[] val)
           Sets the array of specified values as the linear coefficients of the specified array of variables in the specified range.
 void setLinearCoefs(IloRange rng, IloNumVar[] var, double[] val, int start, int num)
           Sets a number of the array of specified values, from a starting index, as the linear coefficients of the corresponding part of the array of variables in the specified range.
 void setModel(IloModel model)
          Sets model as the active model.
 void setName(java.lang.String str)
           Sets str as the name of the invoking model.
 IloSOS1 SOS1(IloNumVar[] var, double[] val)
           Creates and returns a special ordered set (SOS) of type 1 from the specified array of variables and weights.
 IloSOS1 SOS1(IloNumVar[] var, double[] val, int start, int num)
           Creates and returns a special ordered set (SOS) of type 1 consisting of a number of elements from the specified starting index of the specified array of variables and weights.
 IloSOS1 SOS1(IloNumVar[] var, double[] val, int start, int num, java.lang.String name)
           Creates and returns a named special ordered set (SOS) of type 1 consisting of a number of elements from the specified starting index of the specified array of variables and weights.
 IloSOS1 SOS1(IloNumVar[] var, double[] val, java.lang.String name)
           Creates and returns a named special ordered set (SOS) of type 1 from the specified array of variables and weights.
 java.util.Iterator SOS1iterator()
           Returns an iterator over all SOS1 objects in the active model.
 IloSOS2 SOS2(IloNumVar[] var, double[] val)
           Creates and returns a special ordered set (SOS) of type 2 from the specified array of variables and weights.
 IloSOS2 SOS2(IloNumVar[] var, double[] val, int start, int num)
           Creates and returns a special ordered set (SOS) of type 2 consisting of a number of elements, starting at the specified index, from the specified array of variables and weights.
 IloSOS2 SOS2(IloNumVar[] var, double[] val, int start, int num, java.lang.String name)
           Creates and returns a named special ordered set (SOS) of type 2 from a number of elements, starting at the specified index, of the array of variables and weights.
 IloSOS2 SOS2(IloNumVar[] var, double[] val, java.lang.String name)
           Creates and returns a named special ordered set (SOS) of type 2 from the specified array of variables and weights.
 java.util.Iterator SOS2iterator()
           Returns an iterator over all SOS2 objects in the active model.
 IloIntExpr square(IloIntExpr e)
           Creates and returns an integer expression representing the square of an integer expression.
 IloNumExpr square(IloNumExpr e)
           Creates and returns an expression representing the square of a numeric expression.
 IloNumExpr sum(double v, IloNumExpr e1)
           Creates and returns a numeric expression representing the sum of a value and a numeric expression.
 IloIntExpr sum(IloIntExpr[] expr)
           Creates and returns an integer expression that is the sum of the elements in an array of integer expressions.
 IloIntExpr sum(IloIntExpr[] expr, int start, int num)
           Creates and returns an integer expression that is the sum of a number of expressions, starting from the specified index, of an array of integer expressions.
 IloIntExpr sum(IloIntExpr expr1, IloIntExpr expr2)
           Creates and returns an integer expression representing the sum of two integer expressions.
 IloIntExpr sum(IloIntExpr expr1, IloIntExpr expr2, IloIntExpr expr3)
           Creates and returns an integer expression representing the sum of three integer expressions.
 IloIntExpr sum(IloIntExpr expr1, IloIntExpr expr2, IloIntExpr expr3, IloIntExpr expr4)
           Creates and returns an integer expression representing the sum of four integer expressions.
 IloIntExpr sum(IloIntExpr expr1, IloIntExpr expr2, IloIntExpr expr3, IloIntExpr expr4, IloIntExpr expr5)
           Creates and returns an integer expression representing the sum of five integer expressions.
 IloIntExpr sum(IloIntExpr expr1, IloIntExpr expr2, IloIntExpr expr3, IloIntExpr expr4, IloIntExpr expr5, IloIntExpr expr6)
           Creates and returns an integer expression representing the sum of six integer expressions.
 IloIntExpr sum(IloIntExpr expr1, IloIntExpr expr2, IloIntExpr expr3, IloIntExpr expr4, IloIntExpr expr5, IloIntExpr expr6, IloIntExpr expr7)
           Creates and returns an integer expression representing the sum of seven integer expressions.
 IloIntExpr sum(IloIntExpr expr1, IloIntExpr expr2, IloIntExpr expr3, IloIntExpr expr4, IloIntExpr expr5, IloIntExpr expr6, IloIntExpr expr7, IloIntExpr expr8)
           Creates and returns an integer expression representing the sum of eight integer expressions.
 IloIntExpr sum(IloIntExpr e, int v)
           Creates and returns an integer expression representing the sum of an integer expression and a value.
 IloNumExpr sum(IloNumExpr[] expr)
           Creates and returns a numeric expression that is the sum of the elements in an array of numeric expressions.
 IloNumExpr sum(IloNumExpr[] expr, int start, int num)
           Creates and returns a numeric expression that is the sum of a number of expressions, starting from the specified index, of an array of numeric expressions.
 IloNumExpr sum(IloNumExpr e, double v)
           Creates and returns an expression representing the sum of a numeric expression and a value.
 IloNumExpr sum(IloNumExpr e1, IloNumExpr e2)
           Creates and returns an expression representing the sum of two numeric expressions.
 IloNumExpr sum(IloNumExpr expr1, IloNumExpr expr2, IloNumExpr expr3)
           Creates and returns a numeric expression representing the sum of three numeric expressions.
 IloNumExpr sum(IloNumExpr expr1, IloNumExpr expr2, IloNumExpr expr3, IloNumExpr expr4)
           Creates and returns a numeric expression representing the sum of four numeric expressions.
 IloNumExpr sum(IloNumExpr expr1, IloNumExpr expr2, IloNumExpr expr3, IloNumExpr expr4, IloNumExpr expr5)
           Creates and returns a numeric expression representing the sum of five numeric expressions.
 IloNumExpr sum(IloNumExpr expr1, IloNumExpr expr2, IloNumExpr expr3, IloNumExpr expr4, IloNumExpr expr5, IloNumExpr expr6)
           Creates and returns a numeric expression representing the sum of six numeric expressions.
 IloNumExpr sum(IloNumExpr expr1, IloNumExpr expr2, IloNumExpr expr3, IloNumExpr expr4, IloNumExpr expr5, IloNumExpr expr6, IloNumExpr expr7)
           Creates and returns a numeric expression representing the sum of seven numeric expressions.
 IloNumExpr sum(IloNumExpr expr1, IloNumExpr expr2, IloNumExpr expr3, IloNumExpr expr4, IloNumExpr expr5, IloNumExpr expr6, IloNumExpr expr7, IloNumExpr expr8)
           Creates and returns a numeric expression representing the sum of eight numeric expressions.
 IloIntExpr sum(int v, IloIntExpr e1)
           Creates and returns an integer expression representing the sum of a value and an integer expression.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IloCplexModeler

public IloCplexModeler()
Method Detail

toString

public java.lang.String toString()

getModel

public IloModel getModel()
                  throws IloException

Returns the active model.

Specified by:
getModel in interface IloMPModeler
Returns:
The active model.
Throws:
IloException

setModel

public void setModel(IloModel model)
              throws IloException

Sets model as the active model.

Specified by:
setModel in interface IloMPModeler
Throws:
IloException

getName

public java.lang.String getName()

Returns the name of the invoking model, if there is one.

See IloAddable.getName()

Specified by:
getName in interface IloAddable
Returns:
The name assigned to the invoking modeling object.

setName

public void setName(java.lang.String str)

Sets str as the name of the invoking model.

See IloAddable.setName(String)

Specified by:
setName in interface IloAddable
Parameters:
str - The name assigned to the invoking modeling object. null can be passed as argument to remove an assigned name from the invoking modeling object.

add

public IloAddable add(IloAddable object)
               throws IloException

Adds object to the invoking model.

See IloModel.add(IloAddable)

Specified by:
add in interface IloModel
Parameters:
object - The modeling object to be added to the invoking IloModel.
Returns:
The modeling object that has been added.
Throws:
IloException

add

public IloAddable[] add(IloAddable[] objects)
                 throws IloException

Adds the array of objects to the invoking model.

See IloModel.add(IloAddable[])

Specified by:
add in interface IloModel
Parameters:
objects - The array of modeling objects to be added to the invoking IloModel.
Returns:
The array of modeling objects that have been added.
Throws:
IloException

add

public IloAddable[] add(IloAddable[] objects,
                        int start,
                        int num)
                 throws IloException

Adds part of the array of objects to the invoking model, starting with the index start and continuing to the number of objects indicated by num.

See IloModel.add(IloAddable[], int, int)

Specified by:
add in interface IloModel
Parameters:
objects - The array of modeling objects to be added to the invoking IloModel.
start - The first modeling object to be added to the invoking IloModel.
num - The number of modeling objects to be added to the invoking IloModel.
Returns:
The array of modeling objects that have been added.
Throws:
IloException

remove

public IloAddable remove(IloAddable object)
                  throws IloException

Removes object from the invoking model.

See IloModel.remove(IloAddable)

Specified by:
remove in interface IloModel
Parameters:
object - The modeling object to be removed from the invoking IloModel.
Returns:
The modeling object that has been reduced by removal of an object.
Throws:
IloException

remove

public IloAddable[] remove(IloAddable[] objects)
                    throws IloException

Removes the array of objects from the invoking model.

See IloModel.remove(IloAddable[])

Throws:
IloException

remove

public IloAddable[] remove(IloAddable[] objects,
                           int start,
                           int num)
                    throws IloException

Removes part of the array of objects from the invoking model, starting with the index start and continuing to the number of objects indicated by num.

See IloModel.remove(IloAddable[], int, int)

Throws:
IloException

iterator

public java.util.Iterator iterator()

Returns an iterator suitable for the invoking model.

See IloModel.iterator()

Specified by:
iterator in interface IloModel

numVar

public IloNumVar numVar(double lb,
                        double ub,
                        IloNumVarType type)
                 throws IloException

Creates and returns a numeric variable with bounds and specified type.

See IloModeler.numVar(double, double, IloNumVarType)

Specified by:
numVar in interface IloModeler
Parameters:
lb - The lower bound of the new numeric variable.
ub - The upper bound of the new numeric variable.
type - The type of the new numeric variable.
Returns:
The new numeric variable object.
Throws:
IloException

numVar

public IloNumVar numVar(double lb,
                        double ub,
                        IloNumVarType type,
                        java.lang.String name)
                 throws IloException

Creates and returns a named numeric variable with bounds and specified type.

See IloModeler.numVar(double, double, IloNumVarType, String)

Specified by:
numVar in interface IloModeler
Parameters:
lb - The lower bound of the new numeric variable.
ub - The upper bound of the new numeric variable.
type - The type of the new numeric variable.
name - The name of the new numeric variable.
Returns:
The new numeric variable object.
Throws:
IloException

numVarArray

public IloNumVar[] numVarArray(int n,
                               double lb,
                               double ub,
                               IloNumVarType type)
                        throws IloException

Creates and returns an array of numeric variables, all with same specified bounds, all of the same type.

See IloModeler.numVarArray(int, double, double, IloNumVarType)

Specified by:
numVarArray in interface IloModeler
Parameters:
n - The number of new numeric variables.
lb - The lower bound of the new numeric variables.
ub - The upper bound of the new numeric variables.
type - The type of the new numeric variables.
Returns:
An array containing the n new numeric variables.
Throws:
IloException

numVarArray

public IloNumVar[] numVarArray(int n,
                               double lb,
                               double ub,
                               IloNumVarType type,
                               java.lang.String[] name)
                        throws IloException

Creates and returns an array of numeric variables, all with same specified bounds, all with same type, and individual names.

See IloModeler.numVarArray(int, double, double, IloNumVarType, String[])

Specified by:
numVarArray in interface IloModeler
Parameters:
lb - The lower bound of the new numeric variables.
ub - The upper bound of the new numeric variables.
type - The type of the new numeric variables.
name - The names of the new numeric variables. Variable i is assigned the name name[i].
Returns:
An array containing the n new numeric variables.
Throws:
IloException

numVarArray

public IloNumVar[] numVarArray(int n,
                               double[] lb,
                               double[] ub,
                               IloNumVarType[] type)
                        throws IloException

Creates and returns an array of numeric variables with individual bounds and types.

See IloModeler.numVarArray(int, double[], double[], IloNumVarType[]).

Specified by:
numVarArray in interface IloModeler
Parameters:
lb - The lower bounds of the new numeric variables. Variable i is constructed with the lower bound lb[i].
ub - The upper bounds of the new numeric variables. Variable i is constructed with the upper bound ub[i].
type - The types of the new numeric variables. Variable i is constructed with the type type[i].
Returns:
An array containing the n new numeric variables.
Throws:
IloException

numVarArray

public IloNumVar[] numVarArray(int n,
                               double[] lb,
                               double[] ub,
                               IloNumVarType[] type,
                               java.lang.String[] name)
                        throws IloException

Creates and returns an array of numeric variables, all with individual specified bounds, types, and names.

See IloModeler.numVarArray(int, double[], double[], IloNumVarType[], String[])

Specified by:
numVarArray in interface IloModeler
Parameters:
lb - The lower bounds of the new numeric variables. Variable i is constructed with the lower bound lb[i].
ub - The upper bounds of the new numeric variables. Variable i is constructed with the upper bound ub[i].
type - The types of the new numeric variables. Variable i is constructed with the type type[i].
name - The names of the new numeric variables. Variable i is assigned the name name[i].
Returns:
An array containing the n new numeric variables.
Throws:
IloException

numVar

public IloNumVar numVar(double lb,
                        double ub,
                        java.lang.String name)
                 throws IloException

Creates and returns a numeric variable with specified bounds and name.

See IloModeler.numVar(double, double, String)

Specified by:
numVar in interface IloModeler
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.
Throws:
IloException

numVar

public IloNumVar numVar(double lb,
                        double ub)
                 throws IloException

Creates and returns a numeric variable with specified bounds.

See IloModeler.numVar(double, double)

Specified by:
numVar in interface IloModeler
Parameters:
lb - The lower bound of the new modeling variable.
ub - The upper bound of the new modeling variable.
Returns:
The new modeling variable.
Throws:
IloException

numVarArray

public IloNumVar[] numVarArray(int n,
                               double lb,
                               double ub)
                        throws IloException

Creates an array of numeric variables, all with the same upper and lower bound.

See IloModeler.numVarArray(int, double, double)

Specified by:
numVarArray in interface IloModeler
Parameters:
n - Length of the new array; that is, number of new numeric variables.
lb - The lower bound of each new variable.
ub - The upper bound of each new variable.
Returns:
The array new modeling variables.
Throws:
IloException

numVarArray

public IloNumVar[] numVarArray(int n,
                               double[] lb,
                               double[] ub)
                        throws IloException

Creates an array of numeric variables with individually specified upper and lower bounds.

See IloModeler.numVarArray(int, double[], double[])

Specified by:
numVarArray in interface IloModeler
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.
Throws:
IloException

numVarArray

public IloNumVar[] numVarArray(int n,
                               double lb,
                               double ub,
                               java.lang.String[] name)
                        throws IloException

Creates an array of numeric variables, all with the same upper and lower bound, but with individually specified names.

See IloModeler.numVarArray(int, double, double, String[])

Specified by:
numVarArray in interface IloModeler
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.
Returns:
The array of new modeling variables.
Throws:
IloException

numVarArray

public IloNumVar[] numVarArray(int n,
                               double[] lb,
                               double[] ub,
                               java.lang.String[] name)
                        throws IloException

Creates an array of numeric variables, each with individually specified upper bound, lower bound, and name.

See IloModeler.numVarArray(int, double[], double[], String[])

Specified by:
numVarArray in interface IloModeler
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.
Throws:
IloException

intVar

public IloIntVar intVar(int lb,
                        int ub,
                        java.lang.String name)
                 throws IloException

Creates and returns an integer variable with specified upper bound, lower bound, and name.

See IloModeler.intVar(int, int, String)

Specified by:
intVar in interface IloModeler
Parameters:
lb - The minimum value of the variable.
ub - The maximum value of the variable.
name - The name of the variable.
Throws:
IloException

intVar

public IloIntVar intVar(int lb,
                        int ub)
                 throws IloException

Creates and returns an integer variable with specified upper and lower bound.

See IloModeler.intVar(int, int)

Specified by:
intVar in interface IloModeler
Parameters:
lb - The minimum value of the variable.
ub - The maximum value of the variable.
Throws:
IloException

intVarArray

public IloIntVar[] intVarArray(int n,
                               int lb,
                               int ub)
                        throws IloException

Creates and returns an array of integer variables with the same specified upper and lower bound.

See IloModeler.intVarArray(int, int, int)

Specified by:
intVarArray in interface IloModeler
Parameters:
lb - The lower bound of the new modeling variable.
ub - The upper bound of the new modeling variable.
Returns:
The array of new modeling variables.
Throws:
IloException

intVarArray

public IloIntVar[] intVarArray(int n,
                               int[] lb,
                               int[] ub)
                        throws IloException

Creates and returns an array of integer variables with individually specified upper and lower bounds.

See IloModeler.intVarArray(int, int[], int[])

Specified by:
intVarArray in interface IloModeler
Parameters:
lb - The lower bounds of the new modeling variable. Variable i will be constructed with a lower bound of min[i].
ub - The upper bounds of the new modeling variable. Variable i will be constructed with an upper bound of max[i].
Returns:
The array of new modeling variables.
Throws:
IloException

intVarArray

public IloIntVar[] intVarArray(int n,
                               int lb,
                               int ub,
                               java.lang.String[] name)
                        throws IloException

Creates and returns an array of integer variables all with the same upper and lower bound, but individually specified names.

See IloModeler.intVarArray(int, int, int, String[])

Specified by:
intVarArray in interface IloModeler
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 new modeling variable object.
Throws:
IloException

intVarArray

public IloIntVar[] intVarArray(int n,
                               int[] lb,
                               int[] ub,
                               java.lang.String[] name)
                        throws IloException

Creates and returns an array of integer variables each with individually specified upper bound, lower bound, and name.

See IloModeler.intVarArray(int, int[], int[], String[])

Specified by:
intVarArray in interface IloModeler
Parameters:
lb - The lower bounds of the new modeling variable. Variable i will be constructed with a lower bound of min[i].
ub - The upper bounds of the new modeling variable. Variable i will be constructed with an upper bound of max[i].
name - The names of the new modeling variables. Variable i will be assigned the name name[i].
Returns:
The array of new modeling variables.
Throws:
IloException

boolVar

public IloIntVar boolVar(java.lang.String name)
                  throws IloException

Creates and returns a new Boolean variable (domain 0,1) with the specified name.

See IloModeler.boolVar(String)

Specified by:
boolVar in interface IloModeler
Parameters:
name - The name of the variable.
Throws:
IloException

boolVar

public IloIntVar boolVar()
                  throws IloException

Creates and returns a new Boolean variable (domain 0,1).

See IloModeler.boolVar()

Specified by:
boolVar in interface IloModeler
Throws:
IloException

boolVarArray

public IloIntVar[] boolVarArray(int n)
                         throws IloException

Creates and returns an array of n new Boolean variables (domain 0,1).

See IloModeler.boolVarArray(int)

Specified by:
boolVarArray in interface IloModeler
Throws:
IloException

boolVarArray

public IloIntVar[] boolVarArray(int n,
                                java.lang.String[] name)
                         throws IloException

Creates and returns an array of n new Boolean variables (domain 0,1) each with an individually specified name.

See IloModeler.boolVarArray(int, String[])

Specified by:
boolVarArray in interface IloModeler
Throws:
IloException

minimize

public IloObjective minimize(IloNumExpr expr,
                             java.lang.String name)
                      throws IloException

Creates and returns an objective to minimize the expression.

See IloModeler.minimize(IloNumExpr, String)

Specified by:
minimize in interface IloModeler
Parameters:
expr - Expression to minimize.
name - Name assigned to the new IloObjective object.
Returns:
An IloObjective object representing the objective to minimize expr.
Throws:
IloException

maximize

public IloObjective maximize(IloNumExpr expr,
                             java.lang.String name)
                      throws IloException

Creates and returns a named objective to minimize the expression.

See IloModeler.maximize(IloNumExpr, String)

Specified by:
maximize in interface IloModeler
Parameters:
expr - Expression to maximize.
name - Name assigned to the new IloObjective object.
Returns:
An IloObjective object representing the objective to maximize expr.
Throws:
IloException

objective

public IloObjective objective(IloObjectiveSense sense,
                              IloNumExpr expr,
                              java.lang.String name)
                       throws IloException

Creates and returns a named objective with a sense (maximize or minimize).

See IloModeler.objective(IloObjectiveSense, IloNumExpr, String)

Specified by:
objective in interface IloModeler
Parameters:
sense - Optimization sense.
expr - Expression to optimize.
name - Name assigned to the new IloObjective object.
Returns:
An IloObjective object representing the objective to optimize expr.
Throws:
IloException

minimize

public IloObjective minimize(IloNumExpr expr)
                      throws IloException

Creates and returns an objective from an expression.

See IloModeler.minimize(IloNumExpr)

Specified by:
minimize in interface IloModeler
Parameters:
expr - Expression to minimize.
Returns:
An IloObjective object representing the objective to minimize expr.
Throws:
IloException

maximize

public IloObjective maximize(IloNumExpr expr)
                      throws IloException

Creates and returns an objective from an expression.

See IloModeler.maximize(IloNumExpr)

Specified by:
maximize in interface IloModeler
Parameters:
expr - Expression to maximize.
Returns:
An IloObjective object representing the objective to maximize expr.
Throws:
IloException

objective

public IloObjective objective(IloObjectiveSense sense,
                              IloNumExpr expr)
                       throws IloException

Creates and returns an objective from an expression to optimize in the specified sense.

See IloModeler.objective(IloObjectiveSense, IloNumExpr)

Specified by:
objective in interface IloModeler
Parameters:
sense - Optimization sense.
expr - Expression to optimize.
Returns:
An IloObjective object representing the objective to optimize expr.
Throws:
IloException

addObjective

public IloObjective addObjective(IloObjectiveSense sense,
                                 IloNumExpr expr,
                                 java.lang.String name)
                          throws IloException

Creates and returns an objective to optimize the expression with respect to the sense and adds it to the invoking model.

See IloModeler.addObjective(IloObjectiveSense, IloNumExpr, String)

Specified by:
addObjective in interface IloModeler
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.
Throws:
IloException

addMinimize

public IloObjective addMinimize(IloNumExpr expr)
                         throws IloException

Creates and returns an objective to minimize the expression and adds it to the invoking model.

See IloModeler.addMinimize(IloNumExpr)

Specified by:
addMinimize in interface IloModeler
Parameters:
expr - Expression to minimize.
Returns:
An IloObjective object representing the objective to minimize expr.
Throws:
IloException

addMaximize

public IloObjective addMaximize(IloNumExpr expr)
                         throws IloException

Creates and returns an objective to maximize the expression and adds it to the invoking model.

See IloModeler.addMaximize(IloNumExpr)

Specified by:
addMaximize in interface IloModeler
Parameters:
expr - Expression to maximize.
Returns:
An IloObjective object representing the objective to maximize expr.
Throws:
IloException

addObjective

public IloObjective addObjective(IloObjectiveSense sense,
                                 IloNumExpr expr)
                          throws IloException

Creates and returns an objective to optimize the expression in the specified sense and adds the objective to the invoking model.

See IloModeler.addObjective(IloObjectiveSense, IloNumExpr)

Specified by:
addObjective in interface IloModeler
Parameters:
sense - Optimization sense.
expr - Expression to maximize.
Returns:
An IloObjective object representing the objective to maximize expr.
Throws:
IloException

linearNumExpr

public IloLinearNumExpr linearNumExpr()
                               throws IloException

Creates and returns a zero linear expression.

See IloModeler.linearNumExpr()

Specified by:
linearNumExpr in interface IloModeler
Returns:
A zero linear expression.
Throws:
IloException

linearNumExpr

public IloLinearNumExpr linearNumExpr(double val)
                               throws IloException

Creates and returns a linear expression initialized as the constant.

See IloModeler.linearNumExpr(double)

Specified by:
linearNumExpr in interface IloModeler
Parameters:
val - The constant term of the new linear expression.
Returns:
The linear expression initialized as the constant val.
Throws:
IloException

scalProd

public IloLinearNumExpr scalProd(double[] vals,
                                 IloNumVar[] vars)
                          throws IloException

Creates and returns a linear expression representing the scalar product of the provided values with the provided variables.

See IloModeler.scalProd(double[], IloNumVar[])

Specified by:
scalProd in interface IloModeler
Parameters:
vals - The values involved in the new scalar product expression.
vars - The variables involved in the new scalar product expression.
Returns:
The new linear expression.
Throws:
IloException

scalProd

public IloLinearNumExpr scalProd(IloNumVar[] vars,
                                 double[] vals)
                          throws IloException

Creates and returns a linear expression representing the scalar product of the provided variables with the provided values.

See IloModeler.scalProd(IloNumVar[], double[])

Specified by:
scalProd in interface IloModeler
Parameters:
vars - The variables involved in the new scalar product expression.
vals - The values involved in the new scalar product expression.
Returns:
The new linear expression.
Throws:
IloException

scalProd

public IloLinearNumExpr scalProd(double[] vals,
                                 IloNumVar[] vars,
                                 int start,
                                 int num)
                          throws IloException

Creates and returns a linear expression representing the scalar product of the values and variables provided in the specified range of indices.

See IloModeler.scalProd(double[], IloNumVar[], int, int)

Specified by:
scalProd in interface IloModeler
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 - 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.
Throws:
IloException

scalProd

public IloLinearNumExpr scalProd(IloNumVar[] vars,
                                 double[] vals,
                                 int start,
                                 int num)
                          throws IloException

Creates and returns a linear expression representing the scalar product of the variables and values provided in the specified range of indices.

See IloModeler.scalProd(IloNumVar[], double[], int, int)

Specified by:
scalProd in interface IloModeler
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 - The first element in coefs and in vars to use for the scalar product.
num - The number of elements in coefs and in vars to use for the scalar product.
Returns:
The new linear expression.
Throws:
IloException

scalProd

public IloLinearNumExpr scalProd(int[] vals,
                                 IloNumVar[] vars)
                          throws IloException

Creates and returns a linear expression representing the scalar product of the integer values and numeric variables provided.

See IloModeler.scalProd(int[], IloNumVar[])

Specified by:
scalProd in interface IloModeler
Parameters:
vals - The values involved in the new scalar product expression.
vars - The variables involved in the new scalar product expression.
Returns:
The new linear expression.
Throws:
IloException

scalProd

public IloLinearNumExpr scalProd(IloNumVar[] vars,
                                 int[] vals)
                          throws IloException

Creates and returns a linear expression representing the scalar product of the numeric variables and integer values provided.

See IloModeler.scalProd(IloNumVar[], int[])

Specified by:
scalProd in interface IloModeler
Parameters:
vals - The values involved in the new scalar product expression.
vars - The variables involved in the new scalar product expression.
Returns:
The new linear expression.
Throws:
IloException

linearIntExpr

public IloLinearIntExpr linearIntExpr(int val)
                               throws IloException

Creates and returns an integer linear expression initialized as a constant.

See IloModeler.linearIntExpr(int)

Specified by:
linearIntExpr in interface IloModeler
Parameters:
val - Constant term of the new linear expression.
Returns:
Integer linear expression initialized as the constant val.
Throws:
IloException

scalProd

public IloLinearIntExpr scalProd(int[] vals,
                                 IloIntVar[] vars)
                          throws IloException

Creates and returns a linear integer expression representing the scalar product of the provided integer values and integer variables.

See IloModeler.scalProd(int[], IloIntVar[])

Specified by:
scalProd in interface IloModeler
Parameters:
vals - The integer values involved in the new scalar product.
vars - The integer variables involved in the new scalar product
Returns:
The new integer linear expression.
Throws:
IloException

scalProd

public IloLinearIntExpr scalProd(IloIntVar[] vars,
                                 int[] vals)
                          throws IloException

Creates and returns a linear integer expression representing the scalar product of the provided integer variables and integer values.

See IloModeler.scalProd(IloIntVar[], int[])

Specified by:
scalProd in interface IloModeler
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.
Throws:
IloException

scalProd

public IloLinearIntExpr scalProd(int[] vals,
                                 IloIntVar[] vars,
                                 int start,
                                 int num)
                          throws IloException

Creates and returns a linear integer expression representing the scalar product of the provided integer values and integer variables from the specified range of indices.

See IloModeler.scalProd(int[], IloIntVar[], int, int)

Specified by:
scalProd in interface IloModeler
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 and vars to be used for the scalar product.
num - Number of elements in vals and vars to be used for the scalar product.
Returns:
The new integer linear expression.
Throws:
IloException

scalProd

public IloLinearIntExpr scalProd(IloIntVar[] vars,
                                 int[] vals,
                                 int start,
                                 int num)
                          throws IloException

Creates and returns a linear integer expression representing the scalar product of the provided integer variables and integer values from the specified range of indices.

See IloModeler.scalProd(IloIntVar[], int[], int, int)

Specified by:
scalProd in interface IloModeler
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 and vars to be used for the scalar product.
num - Number of elements in vals and vars to be used for the scalar product.
Returns:
The new integer linear expression.
Throws:
IloException

scalProd

public IloIntExpr scalProd(IloIntVar[] vars1,
                           IloIntVar[] vars2)
                    throws IloException

Creates and returns a linear expression representing the scalar product of the given variables.

Specified by:
scalProd in interface IloModeler
Parameters:
vars1 - The first array of variables involved in the new scalar product expression.
vars2 - The second array of variables involved in the new scalar product expression.
Returns:
Returns a linear expression representing a scalar product.
Throws:
IloException

scalProd

public IloIntExpr scalProd(IloIntVar[] vars1,
                           IloIntVar[] vars2,
                           int start,
                           int num)
                    throws IloException

Creates and returns a linear expression representing the scalar product of the given variables.

Specified by:
scalProd in interface IloModeler
Parameters:
vars1 - The first array of variables involved in the new scalar product expression.
vars2 - The second array of variables involved in the new scalar product expression.
start - Index of the term to start the multiplication.
num - Number of consecutive terms to multiply, starting from the index indicated by start.
Returns:
The new linear expression.
Throws:
IloException

negative

public IloNumExpr negative(IloNumExpr e)
                    throws IloException

Creates and returns a new numeric expression which is the negation of the original expression.

See IloModeler.negative(IloNumExpr)

Specified by:
negative in interface IloModeler
Parameters:
e - An expression for which the negative value is given.
Returns:
An expression representing the negation of e.
Throws:
IloException

sum

public IloNumExpr sum(IloNumExpr e,
                      double v)
               throws IloException

Creates and returns an expression representing the sum of a numeric expression and a value.

See IloModeler.sum(IloNumExpr, double)

Specified by:
sum in interface IloModeler
Parameters:
e - The numeric expression.
v - The value.
Returns:
An expression representing the sum of e + v.
Throws:
IloException

sum

public IloNumExpr sum(IloNumExpr e1,
                      IloNumExpr e2)
               throws IloException

Creates and returns an expression representing the sum of two numeric expressions.

See IloModeler.sum(IloNumExpr, IloNumExpr)

Specified by:
sum in interface IloModeler
Parameters:
e1 - The first numeric expression.
e2 - The second numeric expression.
Returns:
A numeric expression representing the sum of e1 + e2.
Throws:
IloException

sum

public IloNumExpr sum(double v,
                      IloNumExpr e1)
               throws IloException

Creates and returns a numeric expression representing the sum of a value and a numeric expression.

See IloModeler.sum(double, IloNumExpr)

Specified by:
sum in interface IloModeler
Parameters:
v - The value.
e1 - The numeric expression.
Returns:
An expression representing the sum of v + e.
Throws:
IloException

sum

public IloNumExpr sum(IloNumExpr expr1,
                      IloNumExpr expr2,
                      IloNumExpr expr3)
               throws IloException

Creates and returns a numeric expression representing the sum of three numeric expressions.

See IloModeler.sum(IloNumExpr, IloNumExpr, IloNumExpr)

Specified by:
sum in interface IloModeler
Parameters:
expr1 - The first numeric expression.
expr2 - The second numeric expression.
expr3 - The third numeric expression.
Returns:
A numeric expression representing the sum of e1 + e2 + e3.
Throws:
IloException

sum

public IloNumExpr sum(IloNumExpr expr1,
                      IloNumExpr expr2,
                      IloNumExpr expr3,
                      IloNumExpr expr4)
               throws IloException

Creates and returns a numeric expression representing the sum of four numeric expressions.

See IloModeler.sum(IloNumExpr, IloNumExpr, IloNumExpr, IloNumExpr)

Specified by:
sum in interface IloModeler
Parameters:
expr1 - The first numeric expression.
expr2 - The second numeric expression.
expr3 - The third numeric expression.
expr4 - The fourth numeric expression.
Returns:
A numeric expression representing the sum of e1 + e2 + e3 + e4.
Throws:
IloException

sum

public IloNumExpr sum(IloNumExpr expr1,
                      IloNumExpr expr2,
                      IloNumExpr expr3,
                      IloNumExpr expr4,
                      IloNumExpr expr5)
               throws IloException

Creates and returns a numeric expression representing the sum of five numeric expressions.

See IloModeler.sum(IloNumExpr, IloNumExpr, IloNumExpr, IloNumExpr, IloNumExpr)

Specified by:
sum in interface IloModeler
Parameters:
expr1 - The first numeric expression.
expr2 - The second numeric expression.
expr3 - The third numeric expression.
expr4 - The fourth numeric expression.
expr5 - The fifth numeric expression.
Returns:
A numeric expression representing the sum of e1 + e2 + e3 + e4 + e5.
Throws:
IloException

sum

public IloNumExpr sum(IloNumExpr expr1,
                      IloNumExpr expr2,
                      IloNumExpr expr3,
                      IloNumExpr expr4,
                      IloNumExpr expr5,
                      IloNumExpr expr6)
               throws IloException

Creates and returns a numeric expression representing the sum of six numeric expressions.

See IloModeler.sum(IloNumExpr, IloNumExpr, IloNumExpr, IloNumExpr, IloNumExpr, IloNumExpr)

Specified by:
sum in interface IloModeler
Parameters:
expr1 - The first numeric expression.
expr2 - The second numeric expression.
expr3 - The third numeric expression.
expr4 - The fourth numeric expression.
expr5 - The fifth numeric expression.
expr6 - The sixth numeric expression.
Returns:
A numeric expression representing the sum of e1 + e2 + e3 + e4 + e5 + e6.
Throws:
IloException

sum

public IloNumExpr sum(IloNumExpr expr1,
                      IloNumExpr expr2,
                      IloNumExpr expr3,
                      IloNumExpr expr4,
                      IloNumExpr expr5,
                      IloNumExpr expr6,
                      IloNumExpr expr7)
               throws IloException

Creates and returns a numeric expression representing the sum of seven numeric expressions.

See IloModeler.sum(IloNumExpr, IloNumExpr, IloNumExpr, IloNumExpr, IloNumExpr, IloNumExpr, IloNumExpr)

Specified by:
sum in interface IloModeler
Parameters:
expr1 - The first numeric expression.
expr2 - The second numeric expression.
expr3 - The third numeric expression.
expr4 - The fourth numeric expression.
expr5 - The fifth numeric expression.
expr6 - The sixth numeric expression.
expr7 - The seventh numeric expression.
Returns:
A numeric expression representing the sum of e1 + e2 + e3 + e4 + e5 + e6 + e7.
Throws:
IloException

sum

public IloNumExpr sum(IloNumExpr expr1,
                      IloNumExpr expr2,
                      IloNumExpr expr3,
                      IloNumExpr expr4,
                      IloNumExpr expr5,
                      IloNumExpr expr6,
                      IloNumExpr expr7,
                      IloNumExpr expr8)
               throws IloException

Creates and returns a numeric expression representing the sum of eight numeric expressions.

See IloModeler.sum(IloNumExpr, IloNumExpr, IloNumExpr, IloNumExpr, IloNumExpr, IloNumExpr, IloNumExpr, IloNumExpr)

Specified by:
sum in interface IloModeler
Parameters:
expr1 - The first numeric expression.
expr2 - The second numeric expression.
expr3 - The third numeric expression.
expr4 - The fourth numeric expression.
expr5 - The fifth numeric expression.
expr6 - The sixth numeric expression.
expr7 - The seventh numeric expression.
expr8 - The eighth numeric expression.
Returns:
A numeric expression representing the sum of e1 + e2 + e3 + e4 + e5 + e6 + e7 + e8.
Throws:
IloException

diff

public IloIntExpr diff(IloIntExpr e,
                       int v)
                throws IloException

Creates and returns an integer expression representing the difference between an integer expression and an integer value.

See IloModeler.diff(IloIntExpr, int)

Specified by:
diff in interface IloModeler
Parameters:
e - An integer expression to use in the difference.
v - A value to subtract
Returns:
An integer expression representing the difference e - v.
Throws:
IloException

diff

public IloNumExpr diff(IloNumExpr e,
                       double v)
                throws IloException

Creates and returns a numeric expression representing the difference between a numeric expression and a value.

See IloModeler.diff(IloNumExpr, double)

Specified by:
diff in interface IloModeler
Parameters:
e - An expression to use in the difference.
v - A value to subtract.
Returns:
An expression representing the difference e - v.
Throws:
IloException

diff

public IloNumExpr diff(IloNumExpr e1,
                       IloNumExpr e2)
                throws IloException

Creates and returns a numeric expression representing the difference between two numeric expressions.

See IloModeler.diff(IloNumExpr, IloNumExpr)

Specified by:
diff in interface IloModeler
Parameters:
e1 - An expression to use in the difference.
e2 - An expression to subtract.
Returns:
An expression representing the difference e1 - e2.
Throws:
IloException

diff

public IloNumExpr diff(double v,
                       IloNumExpr e1)
                throws IloException

Creates and returns a numeric expression representing the difference between a value and a numeric expression.

See IloModeler.diff(double, IloNumExpr)

Specified by:
diff in interface IloModeler
Parameters:
v - A value to use in the difference.
e1 - An expression to subtract.
Returns:
An expression representing the difference v - e1.
Throws:
IloException

and

public final IloAnd and()
                 throws IloException

Groups constraints together.

See IloModeler.and()

Specified by:
and in interface IloModeler
Throws:
IloException
See Also:
IloAnd

and

public final IloAnd and(IloConstraint[] cons)
                 throws IloException

Groups constraints together.

See IloModeler.and()

Specified by:
and in interface IloModeler
Parameters:
cons - The array of constraints to group.
Throws:
IloException
See Also:
IloAnd

and

public final IloAnd and(IloConstraint[] cons,
                        java.lang.String name)
                 throws IloException

Groups constraints together.

See IloModeler.and()

Specified by:
and in interface IloModeler
Parameters:
cons - The array of constraints to group.
name - The name of the resulting and-constraint.
Throws:
IloException
See Also:
IloAnd

and

public final IloAnd and(IloConstraint[] cons,
                        int start,
                        int num)
                 throws IloException

Groups together part of the constraints in the array cons starting with the index indicated by start and continuing to the number of constraints indicated by num.

See IloModeler.and()

Specified by:
and in interface IloModeler
Parameters:
cons - The array of constraints to group.
start - Index of the first constraint in the resulting and-constraint.
num - Number of constraints in the resulting and-constraint.
Throws:
IloException
See Also:
IloAnd

and

public final IloAnd and(IloConstraint[] cons,
                        int start,
                        int num,
                        java.lang.String name)
                 throws IloException

Groups together part of the constraints from the array cons starting with the index indicated by start and continuing to the number of constraints indicated by num.

This method assigns the string name to the group.

See IloModeler.and()

Specified by:
and in interface IloModeler
Parameters:
cons - The array of constraints to group.
start - Index of the first constraint in the resulting and-constraint.
num - Number of constraints in the resulting and-constraint.
name - The name of the and-constraint.
Throws:
IloException
See Also:
IloAnd

and

public final IloAnd and(IloConstraint con1,
                        IloConstraint con2)
                 throws IloException

Groups together the constraints indicated by its arguments.

See IloModeler.and()

Specified by:
and in interface IloModeler
Parameters:
con1 - The first constraint to group.
con2 - The second constraint to group.
Throws:
IloException
See Also:
IloAnd

and

public final IloAnd and(IloConstraint con1,
                        IloConstraint con2,
                        java.lang.String name)
                 throws IloException

Groups together the constraints indicated by its arguments and assigns the string name to the group.

See IloModeler.and()

Specified by:
and in interface IloModeler
Parameters:
con1 - The first constraint to group.
con2 - The second constraint to group.
name - The name of the resulting and-constraint.
Throws:
IloException
See Also:
IloAnd

or

public final IloOr or()
               throws IloException

Returns a constraint that at least one and possibly more than one of the elements is true in its argument cons, an array of constraints.

See IloModeler.or()

Specified by:
or in interface IloModeler
Throws:
IloException
See Also:
IloOr

or

public final IloOr or(IloConstraint[] cons)
               throws IloException

Returns a constraint that at least one and possibly more than one of the elements is true in its argument cons, an array of constraints.

See IloModeler.or()

Specified by:
or in interface IloModeler
Throws:
IloException

or

public final IloOr or(IloConstraint[] cons,
                      java.lang.String name)
               throws IloException

Returns a constraint that at least one and possibly more than one of the elements is true in its argument cons, an array of constraints and also assigns the string name as the name of that returned constraint.

See IloModeler.or()

Specified by:
or in interface IloModeler
Throws:
IloException

or

public final IloOr or(IloConstraint[] cons,
                      int start,
                      int num)
               throws IloException

Returns a constraint that at least one and possibly more than one of the elements is true in the range of indices starting at the index indicated by start and continuing through the number of elements indicated by the number num among the elements of its argument cons, an array of constraints.

See IloModeler.or()

Specified by:
or in interface IloModeler
Throws:
IloException

or

public final IloOr or(IloConstraint[] cons,
                      int start,
                      int num,
                      java.lang.String name)
               throws IloException

Returns a constraint that at least one and possibly more than one of the elements is true in the range of indices starting at the index indicated by start and continuing through the number of elements indicated by the number num among the elements of its argument cons, an array of constraints; also assigns the string name as the name of the returned constraint.

See IloModeler.or()

Specified by:
or in interface IloModeler
Throws:
IloException

or

public final IloOr or(IloConstraint con1,
                      IloConstraint con2)
               throws IloException

Returns a constraint that at least one and possibly both of its arguments are true.

In other words, it returns the logical-or of two constraints.

See IloModeler.or()

Specified by:
or in interface IloModeler
Throws:
IloException

or

public final IloOr or(IloConstraint con1,
                      IloConstraint con2,
                      java.lang.String name)
               throws IloException

Returns a constraint that at least one and possibly both of its arguments are true.

In other words, it returns the logical-or of two constraints. It also assigns the string name as the name of that returned constraint.

See IloModeler.or()

Specified by:
or in interface IloModeler
Throws:
IloException

ifThen

public final IloConstraint ifThen(IloConstraint con1,
                                  IloConstraint con2)
                           throws IloException

Returns a constraint that if con1 is true, then con2 must also be true.

In other words, it returns a conditional constraint based on its arguments.

See IloModeler.ifThen(ilog.concert.IloConstraint, ilog.concert.IloConstraint)

Specified by:
ifThen in interface IloModeler
Throws:
IloException

ifThen

public final IloConstraint ifThen(IloConstraint con1,
                                  IloConstraint con2,
                                  java.lang.String name)
                           throws IloException

Returns a constraint that if con1 is true, then con2 must also be true.

In other words, it returns a conditional constraint based on its arguments. Also assigns the string name as the name of the returned constraint.

See IloModeler.ifThen(ilog.concert.IloConstraint, ilog.concert.IloConstraint)

Specified by:
ifThen in interface IloModeler
Throws:
IloException

not

public final IloConstraint not(IloConstraint con1)
                        throws IloException

Returns a constraint that is the logical negation of its argument.

See IloModeler.not(ilog.concert.IloConstraint)

Specified by:
not in interface IloModeler
Throws:
IloException

not

public final IloConstraint not(IloConstraint con1,
                               java.lang.String name)
                        throws IloException

Returns a constraint that is the logical negation of its argument and assigns the string name as the name of the returned constraint.

See IloModeler.not(ilog.concert.IloConstraint)

Specified by:
not in interface IloModeler
Throws:
IloException

intSet

public IloIntSet intSet(int min,
                        int max)
                 throws IloException

Creates and returns a set of integers in which the minimum element is min, the maximum element is max, and all integers between min and max are included in the possible set.

In other words, this method turns an interval of integers into a set of integers. Such a set of integers is useful, for example, in creating variables for which the values are sets of integers (that is, integer set variables).

Parameters:
min - The minimum possible value in the set.
max - The maximum possible value in the set.
Returns:
The newly created set.
Throws:
IloException

intSet

public IloIntSet intSet(int[] values)
                 throws IloException

Creates and returns a set of integers populated by values, an array of integers.

In other words, this method turns an array of integers into a set of integers. Such a set of integers is useful, for example, in creating variables for which the values are sets of integers (that is, integer set variables).

Parameters:
values - The array of integers to put into the set.
Returns:
The newly created set.
Throws:
IloException

intSetVarArray

public IloIntSetVar[] intSetVarArray(int size)
                              throws IloException
Throws:
IloException

prod

public IloNumExpr prod(double v,
                       IloNumVar var1,
                       IloNumVar var2)
                throws IloException

Creates and returns an expression representing the product of a value and two numeric variables.

See IloModeler.prod(double, IloNumVar, IloNumVar)

Specified by:
prod in interface IloModeler
Parameters:
v - The value to be used in the product.
var1 - The first variable to be used in the product.
var2 - The second variable to be used in the product.
Returns:
An expression representing the product val * var1 * var2.
Throws:
IloException

prod

public IloNumExpr prod(IloNumVar var1,
                       double v,
                       IloNumVar var2)
                throws IloException

Creates and returns an expression representing the product of a numeric variable, a value, and another numeric variable.

See IloModeler.prod(IloNumVar, double, IloNumVar)

Specified by:
prod in interface IloModeler
Parameters:
var1 - The first variable to be used in the product.
v - The value to be used in the product.
var2 - The second variable to be used in the product.
Returns:
An expression representing the product val * var1 * var2.
Throws:
IloException

prod

public IloNumExpr prod(IloNumVar var1,
                       IloNumVar var2,
                       double v)
                throws IloException

Creates and returns an expression representing the product of two numeric variables and a value.

See IloModeler.prod(IloNumVar, IloNumVar, double)

Specified by:
prod in interface IloModeler
Parameters:
var1 - The first variable to be used in the product.
var2 - The second variable to be used in the product.
v - The value to be used in the product.
Returns:
An expression representing the product var1 * var2 * val.
Throws:
IloException

prod

public IloNumExpr prod(IloNumExpr e,
                       double v)
                throws IloException

Creates and returns an expression representing the product of a numeric expression and a value.

See IloModeler.prod(IloNumExpr, double)

Specified by:
prod in interface IloModeler
Parameters:
e - An expression to use in the product.
v - A value to add.
Returns:
An expression representing the product e * v.
Throws:
IloException

prod

public IloNumExpr prod(IloNumExpr e1,
                       IloNumExpr e2)
                throws IloException

Creates and returns an expression representing the product of two numeric expressions.

See IloModeler.prod(IloNumExpr, IloNumExpr)

Specified by:
prod in interface IloModeler
Parameters:
e1 - An expression to use in the product.
e2 - An expression to use in the product.
Returns:
An expression representing the product expr1 * expr2.
Throws:
IloException

prod

public IloNumExpr prod(double v,
                       IloNumExpr e1)
                throws IloException

Creates and returns an expression representing the product of a value and a numeric expression.

See IloModeler.prod(double, IloNumExpr)

Specified by:
prod in interface IloModeler
Parameters:
e1 - An expression to use in the product.
v - A value to use in the product.
Returns:
An expression representing the product e1 * v.
Throws:
IloException

square

public IloNumExpr square(IloNumExpr e)
                  throws IloException

Creates and returns an expression representing the square of a numeric expression.

See IloModeler.square(IloNumExpr)

Specified by:
square in interface IloModeler
Parameters:
e - An expression to use in the square.
Returns:
An expression representing the product e * e.
Throws:
IloException

constant

public IloNumExpr constant(double x)
                    throws IloException

Creates and returns an expression representing a constant term.

See IloModeler.constant(double)

Specified by:
constant in interface IloModeler
Parameters:
x - A value for which to construct a constant expression term.
Returns:
An expression representing the constant c.
Throws:
IloException

numExpr

public IloNumExpr numExpr()
                   throws IloException

Creates and returns an empty expression.

See IloModeler.numExpr()

Specified by:
numExpr in interface IloModeler
Returns:
An expression.
Throws:
IloException

negative

public IloIntExpr negative(IloIntExpr e)
                    throws IloException

Creates and returns a new integer expression representing the negation of its argument.

See IloModeler.negative(IloIntExpr)

Specified by:
negative in interface IloModeler
Parameters:
e - An integer expression for which the negative value is given.
Returns:
An integer expression representing the negation of e.
Throws:
IloException

sum

public IloIntExpr sum(IloIntExpr e,
                      int v)
               throws IloException

Creates and returns an integer expression representing the sum of an integer expression and a value.

See IloModeler.sum(IloIntExpr, int)

Specified by:
sum in interface IloModeler
Parameters:
e - The integer expression.
v - The value.
Returns:
An integer expression representing the sum e + v.
Throws:
IloException

sum

public IloIntExpr sum(int v,
                      IloIntExpr e1)
               throws IloException

Creates and returns an integer expression representing the sum of a value and an integer expression.

See IloModeler.sum(int, IloIntExpr)

Specified by:
sum in interface IloModeler
Parameters:
v - The value.
e1 - The integer expression.
Returns:
An integer expression representing the sum e + v.
Throws:
IloException

sum

public IloIntExpr sum(IloIntExpr expr1,
                      IloIntExpr expr2)
               throws IloException

Creates and returns an integer expression representing the sum of two integer expressions.

See IloModeler.sum(IloIntExpr, IloIntExpr)

Specified by:
sum in interface IloModeler
Parameters:
expr1 - The first integer expression.
expr2 - The second integer expression.
Returns:
An integer expression representing the sum e1 + e2.
Throws:
IloException

sum

public IloIntExpr sum(IloIntExpr expr1,
                      IloIntExpr expr2,
                      IloIntExpr expr3)
               throws IloException

Creates and returns an integer expression representing the sum of three integer expressions.

See IloModeler.sum(IloIntExpr, IloIntExpr, IloIntExpr)

Specified by:
sum in interface IloModeler
Parameters:
expr1 - The first integer expression.
expr2 - The second integer expression.
expr3 - The third integer expression.
Returns:
The expression exp, representing the sum e1 +e2 +e3.
Throws:
IloException

sum

public IloIntExpr sum(IloIntExpr expr1,
                      IloIntExpr expr2,
                      IloIntExpr expr3,
                      IloIntExpr expr4)
               throws IloException

Creates and returns an integer expression representing the sum of four integer expressions.

See IloModeler.sum(IloIntExpr, IloIntExpr, IloIntExpr, IloIntExpr)

Specified by:
sum in interface IloModeler
Parameters:
expr1 - The first integer expression.
expr2 - The second integer expression.
expr3 - The third integer expression.
expr4 - The fourth integer expression.
Returns:
The expression exp, representing the sum e1 + e2 + e3 +e 4.
Throws:
IloException

sum

public IloIntExpr sum(IloIntExpr expr1,
                      IloIntExpr expr2,
                      IloIntExpr expr3,
                      IloIntExpr expr4,
                      IloIntExpr expr5)
               throws IloException

Creates and returns an integer expression representing the sum of five integer expressions.

See IloModeler.sum(IloIntExpr, IloIntExpr, IloIntExpr, IloIntExpr, IloIntExpr)

Specified by:
sum in interface IloModeler
Parameters:
expr1 - The first integer expression.
expr2 - The second integer expression.
expr3 - The third integer expression.
expr4 - The fourth integer expression.
expr5 - The fifth integer expression.
Returns:
The expression exp, representing the sum e1 + e2 + e3 + e4 + e5.
Throws:
IloException

sum

public IloIntExpr sum(IloIntExpr expr1,
                      IloIntExpr expr2,
                      IloIntExpr expr3,
                      IloIntExpr expr4,
                      IloIntExpr expr5,
                      IloIntExpr expr6)
               throws IloException

Creates and returns an integer expression representing the sum of six integer expressions.

See IloModeler.sum(IloIntExpr, IloIntExpr, IloIntExpr, IloIntExpr, IloIntExpr, IloIntExpr)

Specified by:
sum in interface IloModeler
Parameters:
expr1 - The first integer expression.
expr2 - The second integer expression.
expr3 - The third integer expression.
expr4 - The fourth integer expression.
expr5 - The fifth integer expression.
expr6 - The sixth integer expression.
Returns:
The expression exp, representing the sum e1 + e2 + e3 + e4 + e5 + e6.
Throws:
IloException

sum

public IloIntExpr sum(IloIntExpr expr1,
                      IloIntExpr expr2,
                      IloIntExpr expr3,
                      IloIntExpr expr4,
                      IloIntExpr expr5,
                      IloIntExpr expr6,
                      IloIntExpr expr7)
               throws IloException

Creates and returns an integer expression representing the sum of seven integer expressions.

See IloModeler.sum(IloIntExpr, IloIntExpr, IloIntExpr, IloIntExpr, IloIntExpr, IloIntExpr, IloIntExpr)

Specified by:
sum in interface IloModeler
Parameters:
expr1 - The first integer expression.
expr2 - The second integer expression.
expr3 - The third integer expression.
expr4 - The fourth integer expression.
expr5 - The fifth integer expression.
expr6 - The sixth integer expression.
expr7 - The seventh integer expression.
Returns:
The expression exp, representing the sum e1 + e2 + e3 + e4 + e5 + e6 + e7.
Throws:
IloException

sum

public IloIntExpr sum(IloIntExpr expr1,
                      IloIntExpr expr2,
                      IloIntExpr expr3,
                      IloIntExpr expr4,
                      IloIntExpr expr5,
                      IloIntExpr expr6,
                      IloIntExpr expr7,
                      IloIntExpr expr8)
               throws IloException

Creates and returns an integer expression representing the sum of eight integer expressions.

See IloModeler.sum(IloIntExpr, IloIntExpr, IloIntExpr, IloIntExpr, IloIntExpr, IloIntExpr, IloIntExpr, IloIntExpr)

Specified by:
sum in interface IloModeler
Parameters:
expr1 - The first integer expression.
expr2 - The second integer expression.
expr3 - The third integer expression.
expr4 - The fourth integer expression.
expr5 - The fifth integer expression.
expr6 - The sixth integer expression.
expr7 - The seventh integer expression.
expr8 - The eighth integer expression.
Returns:
The expression exp, representing the sum e1 + e2 + e3 + e4 + e5 + e6 + e7 + e8.
Throws:
IloException

diff

public IloIntExpr diff(IloIntExpr e1,
                       IloIntExpr e2)
                throws IloException

Creates and returns an expression representing the difference between two integer expressions.

See IloModeler.diff(IloIntExpr, IloIntExpr)

Specified by:
diff in interface IloModeler
Parameters:
e1 - An integer expression to use in the difference.
e2 - An integer expression to subtract.
Returns:
An integer expression representing the difference expr1 - expr2.
Throws:
IloException

diff

public IloIntExpr diff(int v,
                       IloIntExpr e1)
                throws IloException

Creates and returns an expression representing the difference between a value and an integer expression.

See IloModeler.diff(int, IloIntExpr)

Specified by:
diff in interface IloModeler
Parameters:
v - A value to use in the difference.
e1 - An integer expression to subtract.
Returns:
An integer expression representing the difference v - e1.
Throws:
IloException

prod

public IloIntExpr prod(IloIntExpr e,
                       int v)
                throws IloException

Creates and returns an expression representing the product of an integer expression and a value.

See IloModeler.prod(IloIntExpr, int)

Specified by:
prod in interface IloModeler
Throws:
IloException

prod

public IloIntExpr prod(IloIntExpr e1,
                       IloIntExpr e2)
                throws IloException

Creates and returns an expression representing the product of two integer expressions.

See IloModeler.prod(IloIntExpr, IloIntExpr)

Specified by:
prod in interface IloModeler
Throws:
IloException

prod

public IloIntExpr prod(int v,
                       IloIntExpr e1)
                throws IloException

Creates and returns an integer expression representing the product of a value and an integer expression.

See IloModeler.prod(int, IloIntExpr)

Specified by:
prod in interface IloModeler
Throws:
IloException

square

public IloIntExpr square(IloIntExpr e)
                  throws IloException

Creates and returns an integer expression representing the square of an integer expression.

See IloModeler.square(IloIntExpr)

Specified by:
square in interface IloModeler
Throws:
IloException

constant

public IloIntExpr constant(int x)
                    throws IloException

Creates and returns an integer expression representing a constant integer value.

See IloModeler.constant(int)

Specified by:
constant in interface IloModeler
Parameters:
x - The value of the constant expression.
Returns:
The constant expression.
Throws:
IloException

intExpr

public IloIntExpr intExpr()
                   throws IloException

Creates and returns an empty integer expression.

See IloModeler.intExpr()

Specified by:
intExpr in interface IloModeler
Returns:
An empty expression as an object.
Throws:
IloException

numVar

public IloNumVar numVar(IloColumn column,
                        double lb,
                        double ub,
                        IloNumVarType type)
                 throws IloException

Creates and returns a numeric variable representing a column with specified lower and upper bounds as well as type.

See IloMPModeler.numVar(IloColumn column, double lb, double ub, IloNumVarType type)

Specified by:
numVar in interface IloMPModeler
Parameters:
column - The column object defining where to install the new variable.
lb - The lower bound of the new modeling variable.
ub - The upper bound of the new modeling variable.
type - The type of the new modeling variable.
Returns:
The new modeling variable.
Throws:
IloException

numVar

public IloNumVar numVar(IloColumn column,
                        double lb,
                        double ub,
                        IloNumVarType type,
                        java.lang.String name)
                 throws IloException

Creates and returns a named numeric variable representing a column with specified lower and upper bounds as well as type.

See IloMPModeler.numVar(IloColumn column, double lb, double ub, IloNumVarType type, String name)

Specified by:
numVar in interface IloMPModeler
Parameters:
column - The column object defining where to install the new variable.
lb - The lower bound of the new modeling variable.
ub - The upper bound of the new modeling variable.
type - The type of the new modeling variable.
name - The name of the new modeling variable.
Returns:
The new modeling variable.
Throws:
IloException

numVarArray

public IloNumVar[] numVarArray(IloColumnArray cols,
                               double lb,
                               double ub,
                               IloNumVarType type)
                        throws IloException

Creates and returns an array of numeric variables representing an array of columns with specified lower and upper bounds as well as type.

See IloMPModeler.numVarArray(IloColumnArray cols, double lb, double ub, IloNumVarType type)

Specified by:
numVarArray in interface IloMPModeler
Parameters:
cols - An IloColumnArray object defining where to install the new variables.
lb - The lower bound of the new modeling variables.
ub - The upper bound of the new modeling variables.
type - The type of the new modeling variables.
Returns:
The array of new modeling variables.
Throws:
IloException

numVarArray

public IloNumVar[] numVarArray(IloColumnArray cols,
                               double lb,
                               double ub,
                               IloNumVarType type,
                               java.lang.String[] name)
                        throws IloException

Creates and returns an array of numeric variables representing an array of columns with specified lower and upper bounds as well as a type and individual names.

See IloMPModeler.numVarArray(IloColumnArray cols, double lb, double ub, IloNumVarType type, String[] name)

Specified by:
numVarArray in interface IloMPModeler
Parameters:
cols - An IloColumnArray object defining where to install the new variables.
lb - The lower bound of the new modeling variables.
ub - The upper bound of the new modeling variables.
type - The type of the new modeling variables.
name - The names of the new modeling variables. Variable i is assigned name[i].
Returns:
The array of new modeling variables.
Throws:
IloException

numVarArray

public IloNumVar[] numVarArray(IloColumnArray cols,
                               double[] lb,
                               double[] ub,
                               IloNumVarType[] type)
                        throws IloException

Creates and returns an array of numeric variables representing an array of columns with individually specified lower and upper bounds as well as individual types.

See IloMPModeler.numVarArray(IloColumnArray cols, double[] lb, double[] ub, IloNumVarType[] type)

Specified by:
numVarArray in interface IloMPModeler
Parameters:
cols - An IloColumnArray object defining where to install the new variables.
lb - The lower bounds of the new modeling variables. Variable i is constructed with a lower bound of lb[i].
ub - The upper bounds of the new modeling variables. Variable i is constructed with a upper bound of ub[i].
type - The types of the new modeling variables. Variable i is constructed with a type of type[i].
Returns:
The array of new modeling variables.
Throws:
IloException

numVarArray

public IloNumVar[] numVarArray(IloColumnArray cols,
                               double[] lb,
                               double[] ub,
                               IloNumVarType[] type,
                               java.lang.String[] name)
                        throws IloException

Creates and returns an array of numeric variables representing an array of columns with individually specified lower and upper bounds as well as individual types and individual names.

See IloMPModeler.numVarArray(IloColumnArray cols, double[] lb, double[] ub, IloNumVarType[] type, String[] name)

Specified by:
numVarArray in interface IloMPModeler
Parameters:
cols - An IloColumnArray object defining where to install the new variables.
lb - The lower bounds of the new modeling variables. Variable i is constructed with a lower bound of lb[i].
ub - The upper bounds of the new modeling variables. Variable i is constructed with a upper bound of lb[i].
type - The types of the new modeling variables. Variable i is constructed with a type of type[i].
name - The names of the new modeling variables. Variable i is assigned name[i].
Returns:
The array of new modeling variables.
Throws:
IloException

numVar

public IloNumVar numVar(IloColumn column,
                        double lb,
                        double ub,
                        java.lang.String name)
                 throws IloException

Creates and returns a named numeric variable representing representing a column with a specified lower and upper bound.

See IloMPModeler.numVar(IloColumn column, double lb, double ub, String name)

Specified by:
numVar in interface IloMPModeler
Parameters:
column - The column object defining where to install the new variable.
lb - The lower bound of the new modeling variable.
ub - The upper bound of the new modeling variable.
name - The name of the new modeling variable.
Returns:
The new continuous modeling variable.
Throws:
IloException

numVar

public IloNumVar numVar(IloColumn column,
                        double lb,
                        double ub)
                 throws IloException

Creates and returns a numeric variable representing a column with a specified lower and upper bound.

See IloMPModeler.numVar(IloColumn column, double lb, double ub)

Specified by:
numVar in interface IloMPModeler
Parameters:
column - The column object defining where to install the new variable.
lb - The lower bound of the new modeling variable.
ub - The upper bound of the new modeling variable.
Returns:
The new continuous modeling variable.
Throws:
IloException

numVarArray

public IloNumVar[] numVarArray(IloColumnArray cols,
                               double lb,
                               double ub)
                        throws IloException

Creates and returns an array of numeric variables representing an array of columns with a specified lower and upper bound.

See IloMPModeler.numVarArray(IloColumnArray cols, double lb, double ub)

Specified by:
numVarArray in interface IloMPModeler
Parameters:
cols - An IloColumnArray object defining where to install the new variables.
lb - The lower bound of the new modeling variables.
ub - The upper bound of the new modeling variables.
Returns:
The array of new continuous modeling variables.
Throws:
IloException

numVarArray

public IloNumVar[] numVarArray(IloColumnArray cols,
                               double[] lb,
                               double[] ub)
                        throws IloException

Creates and returns an array of numeric variables representing an array of columns with individually specified lower and upper bounds.

See IloMPModeler.numVarArray(IloColumnArray cols, double[] lb, double[] ub)

Specified by:
numVarArray in interface IloMPModeler
Parameters:
cols - IloColumnArray object defining where to install the new variables.
lb - The lower bounds of the new modeling variables. Variable i is constructed with a lower bound of lb[i].
ub - The upper bounds of the new modeling variables. Variable i is constructed with an upper bound of ub[i].
Returns:
The array of new continuous modeling variables
Throws:
IloException

numVarArray

public IloNumVar[] numVarArray(IloColumnArray cols,
                               double lb,
                               double ub,
                               java.lang.String[] name)
                        throws IloException

Creates and returns an array of numeric variables representing an array of columns with a lower and upper bound as well as individually specified names.

See IloMPModeler.numVarArray(IloColumnArray cols, double lb, double ub, String[] name)

Specified by:
numVarArray in interface IloMPModeler
Parameters:
cols - An IloColumnArray object defining where to install the new variables.
lb - The lower bounds of the new modeling variables. Variable i is assigned lower bound lb[i].
ub - The upper bounds of the new modeling variables. Variable i is assigned upper bound ub[i].
name - The names of the new modeling variables. Variable i is assigned name[i].
Returns:
The array of new continuous modeling variables.
Throws:
IloException

numVarArray

public IloNumVar[] numVarArray(IloColumnArray cols,
                               double[] lb,
                               double[] ub,
                               java.lang.String[] name)
                        throws IloException

Creates and returns an array of numeric variables representing an array of columns with individually specified lower and upper bounds as well as names.

See IloMPModeler.numVarArray(IloColumnArray cols, double[] lb, double[] ub, String[] name)

Specified by:
numVarArray in interface IloMPModeler
Parameters:
cols - An IloColumnArray object defining where to install the new variables.
lb - The lower bounds of the new modeling variables. Variable i is constructed with a lower bound of lb[i].
ub - The upper bounds of the new modeling variables. Variable i is constructed with an upper bound of ub[i].
name - The names of the new modeling variables. Variable i is assigned name[i].
Returns:
The array of new continuous modeling variables.
Throws:
IloException

intVar

public IloIntVar intVar(IloColumn column,
                        int lb,
                        int ub)
                 throws IloException

Creates and returns an integer variable representing a column with an integer lower and upper bound.

See IloMPModeler.intVar(IloColumn column, int lb, int ub)

Specified by:
intVar in interface IloMPModeler
Parameters:
column - The column object defining where to install the new variable.
lb - The lower bound of the new modeling variable.
ub - The upper bound of the new modeling variable.
Returns:
The new integer modeling variable.
Throws:
IloException

intVar

public IloIntVar intVar(IloColumn column,
                        int lb,
                        int ub,
                        java.lang.String name)
                 throws IloException

Creates and returns an integer variable representing a column with an integer lower and upper bound as well as a name.

See IloMPModeler.intVar(IloColumn column, int lb, int ub, String name)

Specified by:
intVar in interface IloMPModeler
Parameters:
column - The column object defining where to install the new variable.
lb - The lower bound of the new modeling variable.
ub - The upper bound of the new modeling variable.
name - The name of the new modeling variable.
Returns:
The new integer modeling variable.
Throws:
IloException

intVarArray

public IloIntVar[] intVarArray(IloColumnArray cols,
                               int lb,
                               int ub,
                               java.lang.String[] name)
                        throws IloException

Creates and returns an array of integer variables representing an array of columns with an integer lower and upper bound as well as individually specified names.

See IloMPModeler.intVarArray(IloColumnArray cols, int lb, int ub, String[] name)

Specified by:
intVarArray in interface IloMPModeler
Parameters:
cols - An IloColumnArray object defining where to install the new variables.
lb - The lower bound of the new modeling variables.
ub - The upper bound of the new modeling variables.
name - The names of the new modeling variables. Variable i is assigned name[i].
Returns:
The array of new integer modeling variables.
Throws:
IloException

intVarArray

public IloIntVar[] intVarArray(IloColumnArray cols,
                               int[] lb,
                               int[] ub,
                               java.lang.String[] name)
                        throws IloException

Creates and returns an array of integer variables representing an array of columns with individually specified integer lower and upper bounds as well as individually specified names.

See IloMPModeler.intVarArray(IloColumnArray cols, int[] lb, int[] ub, String[] name)

Specified by:
intVarArray in interface IloMPModeler
Parameters:
cols - An IloColumnArray object defining where to install the new variables.
lb - The lower bounds of the new modeling variables. Variable i is constructed with a lower bound of lb[i].
ub - The upper bounds of the new modeling variable. Variable i is constructed with an upper bound of ub[i].
name - The names of the new modeling variables. Variable i is assigned name[i].
Returns:
The array of new integer modeling variables.
Throws:
IloException

intVarArray

public IloIntVar[] intVarArray(IloColumnArray cols,
                               int lb,
                               int ub)
                        throws IloException

Creates and returns an array of integer variables representing an array of columns with an integer lower and upper bound.

See IloMPModeler.intVarArray(IloColumnArray cols, int lb, int ub)

Specified by:
intVarArray in interface IloMPModeler
Parameters:
cols - An IloColumnArray object defining where to install the new variables.
lb - The lower bound of the new modeling variables.
ub - The upper bound of the new modeling variables.
Returns:
The array of new integer modeling variables.
Throws:
IloException

intVarArray

public IloIntVar[] intVarArray(IloColumnArray cols,
                               int[] lb,
                               int[] ub)
                        throws IloException

Creates and returns an array of integer variables representing an array of columns with individually specified integer lower and upper bounds.

See IloMPModeler.intVarArray(IloColumnArray cols, int[] lb, int[] ub)

Specified by:
intVarArray in interface IloMPModeler
Parameters:
cols - An IloColumnArray object defining where to install the new variables.
lb - The lower bounds of the new modeling variables. Variable i is constructed with a lower bound of lb[i].
ub - The upper bounds of the new modeling variables. Variable i is constructed with a upper bound of ub[i].
Returns:
The array of new integer modeling variables.
Throws:
IloException

boolVar

public IloIntVar boolVar(IloColumn column,
                         java.lang.String name)
                  throws IloException

Creates and returns a Boolean variable (domain 0, 1) representing a column with a name.

See IloMPModeler.boolVar(IloColumn column, String name)

Specified by:
boolVar in interface IloMPModeler
Parameters:
column - The column object defining where to install the new variable.
name - The name of the new modeling variable.
Returns:
The new Boolean modeling variable.
Throws:
IloException

boolVar

public IloIntVar boolVar(IloColumn column)
                  throws IloException

Creates and returns a Boolean variable (domain 0, 1) representing a column.

See IloMPModeler.boolVar(IloColumn column)

Specified by:
boolVar in interface IloMPModeler
Parameters:
column - The column object defining where to install the new variable.
Returns:
The new Boolean modeling variable.
Throws:
IloException

boolVarArray

public IloIntVar[] boolVarArray(IloColumnArray cols)
                         throws IloException

Creates and returns an array of Boolean variables (domain 0, 1) representing an array of columns.

See IloMPModeler.boolVarArray(IloColumnArray cols)

Specified by:
boolVarArray in interface IloMPModeler
Parameters:
cols - The IloColumnArray object defining where to install the new variables.
Returns:
The array of new Boolean modeling variables
Throws:
IloException

boolVarArray

public IloIntVar[] boolVarArray(IloColumnArray cols,
                                java.lang.String[] name)
                         throws IloException

Creates and returns an array of Boolean variables (domain 0, 1) representing an array of named columns.

See IloMPModeler.boolVarArray(IloColumnArray cols, String[] name)

Specified by:
boolVarArray in interface IloMPModeler
Parameters:
cols - The IloColumnArray object defining where to install the new variables.
name - The names of the new modeling variables. Variable i is assigned name[i].
Returns:
The array of new Boolean modeling variables.
Throws:
IloException

piecewiseLinear

public IloNumExpr piecewiseLinear(IloNumExpr expr,
                                  double[] points,
                                  double[] slopes,
                                  double a,
                                  double fa)
                           throws IloException

Creates and returns a numeric expression representing a piecewise linear function.

See IloMPModeler.piecewiseLinear(IloNumExpr, double[], double[], double, double)

Specified by:
piecewiseLinear in interface IloMPModeler
Parameters:
expr - An expression indicating where to evaluate the piecewise linear function.
points - An array of breakpoints for the piecewise linear function.
slopes - An array of slopes for the piecewise linear function.
a - First coordinate of the anchor point of the piecewise linear function.
fa - Second coordinate of the anchor point of the piecewise linear function.
Returns:
A piecewise linear function of expr.
Throws:
IloException

piecewiseLinear

public IloNumExpr piecewiseLinear(IloNumExpr expr,
                                  double[] points,
                                  int startPoints,
                                  int num,
                                  double[] slopes,
                                  int startSlopes,
                                  double a,
                                  double fa)
                           throws IloException

Creates and returns a numeric expression representing a piecewise linear function.

See IloMPModeler.piecewiseLinear(IloNumExpr, double[], int, int, double[], int, double, double)

Specified by:
piecewiseLinear in interface IloMPModeler
Parameters:
expr - An expression indicating where to evaluate the piecewise linear function.
points - An array containing breakpoints that define the piecewise linear function.
startPoints - An integer indicating the first element in array points to use for the definition of the breakpoints of the piecewise linear function.
num - The number of breakpoints to use from the array points. Thus num+1 elements of array slopes are used.
slopes - An array containing the slopes that define the piecewise linear function.
startSlopes - The first element in array slopes to use for the definition of the slopes of the piecewise linear function.
a - The first coordinate of the anchor point of the piecewise linear function.
fa - The second coordinate of the anchor point of the piecewise linear function.
Returns:
A piecewise linear function of expr.
Throws:
IloException

abs

public IloNumExpr abs(IloNumExpr expr)
               throws IloException

Returns an expression representing the absolute value of its argument, the expression specified by expr.

Specified by:
abs in interface IloMPModeler
Throws:
IloException

abs

public IloIntExpr abs(IloIntExpr expr)
               throws IloException

Returns an expression representing the absolute value of its argument, the expression specified by expr.

Specified by:
abs in interface IloModeler
Throws:
IloException

max

public IloNumExpr max(IloNumExpr expr1,
                      IloNumExpr expr2)
               throws IloException

Returns an expression representing the maximum of its two arguments.

Specified by:
max in interface IloModeler
Throws:
IloException

max

public IloNumExpr max(IloNumExpr expr1,
                      double expr2)
               throws IloException

Returns an expression representing the maximum of its two arguments.

Specified by:
max in interface IloModeler
Throws:
IloException

max

public IloNumExpr max(double expr2,
                      IloNumExpr expr1)
               throws IloException

Returns an expression representing the maximum of its two arguments.

Specified by:
max in interface IloModeler
Throws:
IloException

max

public IloNumExpr max(IloNumExpr[] exprs)
               throws IloException

Returns an expression representing the maximum of its argument, the elements of an array.

Specified by:
max in interface IloModeler
Parameters:
exprs - The array of expressions.
Throws:
IloException

max

public IloIntExpr max(IloIntExpr expr1,
                      IloIntExpr expr2)
               throws IloException

Returns an expression representing the maximum of its two arguments.

Specified by:
max in interface IloModeler
Throws:
IloException

max

public IloIntExpr max(IloIntExpr expr1,
                      int expr2)
               throws IloException

Returns an expression representing the maximum of its two arguments.

Specified by:
max in interface IloModeler
Throws:
IloException

max

public IloIntExpr max(int expr1,
                      IloIntExpr expr2)
               throws IloException

Returns an expression representing the maximum of its two arguments.

Specified by:
max in interface IloModeler
Throws:
IloException

max

public IloIntExpr max(IloIntExpr[] exprs)
               throws IloException

Returns an expression representing the maximum of its argument, the elements of an array.

Specified by:
max in interface IloModeler
Parameters:
exprs - the array of expressions
Throws:
IloException

min

public IloNumExpr min(IloNumExpr expr1,
                      IloNumExpr expr2)
               throws IloException

Returns an expression representing the minimum of its two arguments.

Specified by:
min in interface IloModeler
Throws:
IloException

min

public IloNumExpr min(IloNumExpr expr1,
                      double expr2)
               throws IloException

Returns an expression representing the minimum of its two arguments.

Specified by:
min in interface IloModeler
Throws:
IloException

min

public IloNumExpr min(double expr2,
                      IloNumExpr expr1)
               throws IloException

Returns an expression representing the minimum of its two arguments.

Specified by:
min in interface IloModeler
Throws:
IloException

min

public IloNumExpr min(IloNumExpr[] exprs)
               throws IloException

Returns an expression representing the minimum of its argument, the elements of an array.

Specified by:
min in interface IloModeler
Throws:
IloException

min

public IloIntExpr min(IloIntExpr expr1,
                      IloIntExpr expr2)
               throws IloException

Returns an expression representing the minimum of its two arguments.

Specified by:
min in interface IloModeler
Throws:
IloException

min

public IloIntExpr min(IloIntExpr expr1,
                      int expr2)
               throws IloException

Returns an expression representing the minimum of its two arguments.

Specified by:
min in interface IloModeler
Throws:
IloException

min

public IloIntExpr min(int expr1,
                      IloIntExpr expr2)
               throws IloException

Returns an expression representing the minimum of its two arguments.

Specified by:
min in interface IloModeler
Throws:
IloException

min

public IloIntExpr min(IloIntExpr[] exprs)
               throws IloException

Returns an expression representing the minimum of its argument, the elements of an array.

Specified by:
min in interface IloModeler
Throws:
IloException

addToExpr

public void addToExpr(IloObjective obj,
                      IloNumExpr expr)
               throws IloException

Adds a numeric experssion to an objective.

See IloMPModeler.addToExpr(IloObjective, IloNumExpr)

Specified by:
addToExpr in interface IloMPModeler
Parameters:
obj - The objective to modify.
expr - The new expression to add.
Throws:
IloException

setLinearCoef

public void setLinearCoef(IloObjective obj,
                          double val,
                          IloNumVar var)
                   throws IloException

Sets a value as the linear coefficient of the variable in the objective.

See IloMPModeler.setLinearCoef(IloObjective, double, IloNumVar)

Specified by:
setLinearCoef in interface IloMPModeler
Parameters:
obj - The objective to modify.
val - The coefficient to set.
var - The variable for which to set the coefficient.
Throws:
IloException

setLinearCoef

public void setLinearCoef(IloObjective obj,
                          IloNumVar var,
                          double val)
                   throws IloException

Sets a value as the linear coefficient of the variable in the objective.

See IloMPModeler.setLinearCoef(IloObjective, IloNumVar, double)

Specified by:
setLinearCoef in interface IloMPModeler
Parameters:
obj - The objective to modify.
var - The variable for which to set the coefficient.
val - The coefficient to set.
Throws:
IloException

setLinearCoefs

public void setLinearCoefs(IloObjective obj,
                           double[] val,
                           IloNumVar[] var)
                    throws IloException

Sets an array of values as the corresponding linear coefficients of an array of variables in the objective.

See IloMPModeler.setLinearCoefs(IloObjective, double[], IloNumVar[])

Specified by:
setLinearCoefs in interface IloMPModeler
Parameters:
obj - The objective to modify.
val - The array of linear coefficient values. The linear coefficient of variable var[i] is set to val[i].
var - The array of variables for which to set linear coefficients. A variable may only appear once in this array.
Throws:
IloException

setLinearCoefs

public void setLinearCoefs(IloObjective obj,
                           IloNumVar[] var,
                           double[] val)
                    throws IloException

Sets an array of values as the corresponding linear coefficients of an array of variables in the objective.

See IloMPModeler.setLinearCoefs(IloObjective, IloNumVar[], double[])

Specified by:
setLinearCoefs in interface IloMPModeler
Parameters:
obj - The objective to modify.
val - The array of linear coefficient values. The linear coefficient of variable var[i] is set to val[i].
var - The array of variables for which to set linear coefficients. A variable may only appear once in this array.
Throws:
IloException

setLinearCoefs

public void setLinearCoefs(IloObjective obj,
                           double[] val,
                           IloNumVar[] var,
                           int start,
                           int num)
                    throws IloException

Sets an array of values as the corresponding linear coefficients of an array of variables in the objective from a starting index for a range of those values and variables.

See IloMPModeler.setLinearCoefs(IloObjective, double[], IloNumVar[], int, int)

Specified by:
setLinearCoefs in interface IloMPModeler
Parameters:
obj - The objective to modify.
val - The array containing linear coefficient values. The linear coefficient of variable var[i] is set to val[i].
var - The array containing the variables for which to set linear coefficients. A variable may only appear once in this array.
start - The first element in val and var to use for setting coefficients.
num - The number of consecutive elements in val and var to use for setting coefficients.
Throws:
IloException

setLinearCoefs

public void setLinearCoefs(IloObjective obj,
                           IloNumVar[] var,
                           double[] val,
                           int start,
                           int num)
                    throws IloException

Sets an array of values as the corresponding linear coefficients of an array of variables in the objective from a starting index for a range of those values and variables.

See IloMPModeler.setLinearCoefs(IloObjective, IloNumVar[], double[], int, int)

Specified by:
setLinearCoefs in interface IloMPModeler
Parameters:
obj - The objective to modify.
var - An array containing the variables for which to set linear coefficients. A variable may only appear once in this array.
val - An array containing linear coefficient values. The linear coefficient of variable var[i] is set to val[i].
start - The first element in val and var to use for setting coefficients.
num - The number of consecutive elements in val and var to use for setting coefficients.
Throws:
IloException

semiContVar

public IloSemiContVar semiContVar(double lb,
                                  double ub,
                                  IloNumVarType type,
                                  java.lang.String name)
                           throws IloException

Creates and returns a named semi-continuous variable with a specified lower and upper bound and of a specified type.

See IloMPModeler.semiContVar(double, double, IloNumVarType, String)

Specified by:
semiContVar in interface IloMPModeler
Parameters:
lb - The semi-continuous lower bound of the new modeling variable
ub - The upper bound of the new modeling variable.
type - The type of the new modeling variable.
name - The name of the new modeling variable.
Returns:
The new modeling variable.
Throws:
IloException

semiContVar

public IloSemiContVar semiContVar(double lb,
                                  double ub,
                                  IloNumVarType type)
                           throws IloException

Creates and returns a semi-continuous variable with a specified lower and upper bound and of a specified type.

See IloMPModeler.semiContVar(double, double, IloNumVarType)

Specified by:
semiContVar in interface IloMPModeler
Parameters:
lb - The semi-continuous lower bound of the new modeling variable
ub - The upper bound of the new modeling variable.
type - The type of the new modeling variable.
Returns:
The new modeling variable.
Throws:
IloException

semiContVar

public IloSemiContVar semiContVar(IloColumn column,
                                  double lb,
                                  double ub,
                                  IloNumVarType type,
                                  java.lang.String name)
                           throws IloException

Creates and returns a named semi-continuous variable with a specified lower and upper bound and of a specified type, representing a column.

See IloMPModeler.semiContVar(IloColumn, double, double, IloNumVarType, String)

Specified by:
semiContVar in interface IloMPModeler
Parameters:
column - The column object defining where to install the new variable.
lb - The semi-continuous lower bound of the new modeling variable.
ub - The upper bound of the new modeling variable.
type - The type of the new modeling variable.
name - The name of the new modeling variable.
Returns:
The new modeling variable.
Throws:
IloException

semiContVar

public IloSemiContVar semiContVar(IloColumn column,
                                  double lb,
                                  double ub,
                                  IloNumVarType type)
                           throws IloException

Creates and returns a semicontinuous variable with a specified lower and upper bound and of a specified type, representing a column.

See IloMPModeler.semiContVar(IloColumn, double, double, IloNumVarType)

Specified by:
semiContVar in interface IloMPModeler
Parameters:
column - The column object defining where to install the new variable.
lb - The semi-continuous lower bound of the new modeling variable.
ub - The upper bound of the new modeling variable.
type - The type of the new modeling variable.
Returns:
The new modeling variable.
Throws:
IloException

semiContVarArray

public IloSemiContVar[] semiContVarArray(int n,
                                         double lb,
                                         double ub,
                                         IloNumVarType type)
                                  throws IloException

Creates and returns an array of semi-continuous variables with a specified lower and upper bound and of a specified type.

See IloMPModeler.semiContVarArray(int, double, double, IloNumVarType)

Specified by:
semiContVarArray in interface IloMPModeler
Parameters:
n - The number of new semi-continuous variables to create.
lb - The semi-continuous lower bound of the new modeling variables.
ub - The upper bound of the new modeling variables.
type - The type of the new modeling variables.
Returns:
The array of new modeling variables.
Throws:
IloException

semiContVarArray

public IloSemiContVar[] semiContVarArray(int n,
                                         double[] lb,
                                         double[] ub,
                                         IloNumVarType[] type)
                                  throws IloException

Creates and returns an array of semi-continuous variables with individually specified lower and upper bounds and individually specified types.

See IloMPModeler.semiContVarArray(int, double[], double[], IloNumVarType[])

Specified by:
semiContVarArray in interface IloMPModeler
Parameters:
n - The number of new semi-continuous variables to create.
lb - The semi-continuous lower bounds of the new modeling variables. Variable i is constructed with a semi-continuous lower bound of sclb[i].
ub - The upper bounds of the new modeling variables. Variable i is constructed with an upper bound of ub[i].
type - The types of the new modeling variables. Variable i is constructed with a type of type[i].
Returns:
The array of new modeling variables.
Throws:
IloException

semiContVarArray

public IloSemiContVar[] semiContVarArray(int n,
                                         double lb,
                                         double ub,
                                         IloNumVarType type,
                                         java.lang.String[] name)
                                  throws IloException

Creates and returns an array of individually named semi-continuous variables with a specified lower and upper bound and of a specified type.

See IloMPModeler.semiContVarArray(int, double, double, IloNumVarType, String[])

Specified by:
semiContVarArray in interface IloMPModeler
Parameters:
n - The number of new semi-continuous variables to create.
lb - The semi-continuous lower bound of the new modeling variables.
ub - The upper bound of the new modeling variables.
type - The type of the new modeling variables.
name - The names of the new modeling variables. Variable i is assigned name[i].
Returns:
The array of new modeling variables.
Throws:
IloException

semiContVarArray

public IloSemiContVar[] semiContVarArray(int n,
                                         double[] lb,
                                         double[] ub,
                                         IloNumVarType[] type,
                                         java.lang.String[] name)
                                  throws IloException

Creates and returns an array of individually named semi-continuous variables with individually specified lower and upper bounds and individually specified types.

See IloMPModeler.semiContVarArray(int, double[], double[], IloNumVarType[], String[])

Specified by:
semiContVarArray in interface IloMPModeler
Parameters:
n - The number of new semi-continuous variables to create.
lb - The semi-continuous lower bounds of the new modeling variables. Variable i is constructed with a semi-continuous lower bound of sclb[i].
ub - The upper bounds of the new modeling variables. Variable i is constructed with an upper bound of ub[i].
type - The types of the new modeling variables. Variable i is constructed with a type of type[i].
name - The names of the new modeling variables. Variable i is assigned name[i].
Returns:
The array of new modeling variables.
Throws:
IloException

semiContVarArray

public IloSemiContVar[] semiContVarArray(IloColumnArray cols,
                                         double lb,
                                         double ub,
                                         IloNumVarType type)
                                  throws IloException

Creates and returns an array of semi-continuous variables with a specified lower and upper bound and of a specified type, representing an array of columns.

See IloMPModeler.semiContVarArray(IloColumnArray, double, double, IloNumVarType)

Specified by:
semiContVarArray in interface IloMPModeler
Parameters:
cols - An IloColumnArray object defining where to install the new variables.
lb - The semi-continuous lower bound of the new modeling variables.
ub - The upper bound of the new modeling variables.
type - The type of the new modeling variables.
Returns:
The array of new modeling variables.
Throws:
IloException

semiContVarArray

public IloSemiContVar[] semiContVarArray(IloColumnArray cols,
                                         double[] lb,
                                         double[] ub,
                                         IloNumVarType[] type)
                                  throws IloException

Creates and returns an array of semi-continuous variables with individually specified lower and upper bounds and individually specified types, representing an array of columns.

See IloMPModeler.semiContVarArray(IloColumnArray, double[], double[], IloNumVarType[])

Specified by:
semiContVarArray in interface IloMPModeler
Parameters:
cols - An IloColumnArray object defining where to install the new variables.
lb - The semi-continuous lower bounds of the new modeling variables. Variable i is constructed with a semi-continuous lower bound of sclb[i].
ub - The upper bounds of the new modeling variables. Variable i is constructed with an upper bound of ub[i].
type - The types of the new modeling variables. Variable i is constructed with a type of type[i].
Returns:
The array of new modeling variables.
Throws:
IloException

semiContVarArray

public IloSemiContVar[] semiContVarArray(IloColumnArray cols,
                                         double lb,
                                         double ub,
                                         IloNumVarType type,
                                         java.lang.String[] name)
                                  throws IloException

Creates and returns an array of named semi-continuous variables with a specified lower and upper bound as well as type, representing an array of columns.

See IloMPModeler.semiContVarArray(IloColumnArray, double, double, IloNumVarType, String[])

Specified by:
semiContVarArray in interface IloMPModeler
Parameters:
cols - An IloColumnArray object defining where to install the new variables.
lb - The semi-continuous lower bound of the new modeling variables.
ub - The upper bound of the new modeling variables.
type - The type of the new modeling variables.
name - The names of the new modeling variables. Variable i is assigned name[i].
Returns:
The array of new modeling variables.
Throws:
IloException

semiContVarArray

public IloSemiContVar[] semiContVarArray(IloColumnArray cols,
                                         double[] lb,
                                         double[] ub,
                                         IloNumVarType[] type,
                                         java.lang.String[] name)
                                  throws IloException

Creates and returns an array of named semi-continuous variables with individually specified lower and upper bounds, and individually specified type, representing an array of columns.

See IloMPModeler.semiContVarArray(IloColumnArray cols, double[] lb, double[] ub, IloNumVarType[] type, String[] name)

Specified by:
semiContVarArray in interface IloMPModeler
Parameters:
cols - An IloColumnArray object defining where to install the new variables.
lb - The semi-continuous lower bounds of the new modeling variables. Variable i is constructed with a semi-continuous lower bound of sclb[i].
ub - The upper bounds of the new modeling variables. Variable i is constructed with an upper bound of ub[i].
type - The types of the new modeling variables. Variable i is constructed with a type of type[i].
name - The names of the new modeling variables. Variable i is assigned name[i].
Returns:
The array of new modeling variables.
Throws:
IloException

minimize

public IloObjective minimize()
                      throws IloException

Creates and returns an empty minimization objective function.

See IloMPModeler.minimize()

Specified by:
minimize in interface IloMPModeler
Returns:
The new zero minimization objective.
Throws:
IloException

maximize

public IloObjective maximize()
                      throws IloException

Creates and returns an empty maximization objective function.

See IloMPModeler.maximize()

Specified by:
maximize in interface IloMPModeler
Returns:
The new zero maximization objective.
Throws:
IloException

minimize

public IloObjective minimize(java.lang.String name)
                      throws IloException

Creates and returns a named empty minimization objective function.

See IloMPModeler.minimize(String)

Specified by:
minimize in interface IloMPModeler
Parameters:
name - The name assigned to the new objective.
Returns:
The new zero minimization objective.
Throws:
IloException

maximize

public IloObjective maximize(java.lang.String name)
                      throws IloException

Creates and returns a named empty maximization objective function.

See IloMPModeler.maximize(String)

Specified by:
maximize in interface IloMPModeler
Parameters:
name - The name assigned to the new objective.
Returns:
The new zero maximization objective.
Throws:
IloException

objective

public IloObjective objective(IloObjectiveSense sense)
                       throws IloException

Creates and returns an empty objective function with the specified sense.

See IloMPModeler.objective(IloObjectiveSense)

Specified by:
objective in interface IloMPModeler
Parameters:
sense - The optimization sense of the new objective.
Returns:
The new zero objective.
Throws:
IloException

objective

public IloObjective objective(IloObjectiveSense sense,
                              java.lang.String name)
                       throws IloException

Creates and returns a named, empty objective function with the specified sense.

See IloMPModeler.objective(IloObjectiveSense, String)

Specified by:
objective in interface IloMPModeler
Parameters:
sense - The optimization sense of the new objective.
name - The name assigned to the new objective.
Returns:
The new zero objective.
Throws:
IloException

addMinimize

public IloObjective addMinimize(IloNumExpr expr,
                                java.lang.String name)
                         throws IloException

Creates and returns a named objective function and adds it to the invoking model.

See IloModeler.addMinimize(IloNumExpr, String)

Specified by:
addMinimize in interface IloModeler
Parameters:
expr - Expression to minimize.
name - Name assigned to the new IloObjective object.
Returns:
An IloObjective object representing the objective to minimize expr.
Throws:
IloException

addMaximize

public IloObjective addMaximize(IloNumExpr expr,
                                java.lang.String name)
                         throws IloException

Creates and returns a named objective function and adds it to the invoking model.

See IloModeler.addMaximize(IloNumExpr, String)

Specified by:
addMaximize in interface IloModeler
Parameters:
expr - Expression to maximize.
name - Name assigned to the new IloObjective object.
Returns:
An IloObjective object representing the objective to maximize expr.
Throws:
IloException

addMinimize

public IloObjective addMinimize()
                         throws IloException

Creates and returns an empty objective function and adds it to the invoking model.

See IloMPModeler.addMinimize()

Specified by:
addMinimize in interface IloMPModeler
Returns:
The new zero minimization objective.
Throws:
IloException

addMaximize

public IloObjective addMaximize()
                         throws IloException

Creates and returns an empty objective function and adds it to the invoking model.

See IloMPModeler.addMaximize()

Specified by:
addMaximize in interface IloMPModeler
Returns:
The new zero maximization objective.
Throws:
IloException

addObjective

public IloObjective addObjective(IloObjectiveSense sense)
                          throws IloException

Creates and returns an empty objective function with the specified sense and adds it to the invoking model.

See IloMPModeler.addObjective(IloObjectiveSense)

Specified by:
addObjective in interface IloMPModeler
Parameters:
sense - The optimization sense of the new objective.
Returns:
The new zero objective.
Throws:
IloException

addMinimize

public IloObjective addMinimize(java.lang.String name)
                         throws IloException

Creates and returns a named objective function and adds it to the invoking model.

See IloMPModeler.addMinimize(String)

Specified by:
addMinimize in interface IloMPModeler
Parameters:
name - The name assigned to the new objective.
Returns:
The new zero minimization objective.
Throws:
IloException

addMaximize

public IloObjective addMaximize(java.lang.String name)
                         throws IloException

Creates and returns a named objective function and adds it to the invoking model.

See IloMPModeler.addMaximize(String)

Specified by:
addMaximize in interface IloMPModeler
Parameters:
name - The name assigned to the new objective.
Returns:
The new zero maximization objective.
Throws:
IloException

addObjective

public IloObjective addObjective(IloObjectiveSense sense,
                                 java.lang.String name)
                          throws IloException

Creates and returns a named objective function with the specified sense and adds it to the invoking model.

See IloMPModeler.addObjective(IloObjectiveSense, String)

Specified by:
addObjective in interface IloMPModeler
Parameters:
sense - The optimization sense of the new objective.
name - The name assigned to the new objective.
Returns:
The new zero objective.
Throws:
IloException

conversion

public IloConversion conversion(IloNumVar var,
                                IloNumVarType type,
                                java.lang.String name)
                         throws IloException

Converts a numeric variable to the specified type and names the converted variable.

See IloMPModeler.conversion(IloNumVar var, IloNumVarType type, String name)

Specified by:
conversion in interface IloMPModeler
Parameters:
var - The variable the type of which is to be converted.
type - The converted type for variable var.
name - The name of the new IloConversion object.
Returns:
The new IloConversion object.
Throws:
IloException

conversion

public IloConversion conversion(IloNumVar var,
                                IloNumVarType type)
                         throws IloException

Converts a numeric variable to a specified type.

See IloMPModeler.conversion(IloNumVar var, IloNumVarType type)

Specified by:
conversion in interface IloMPModeler
Parameters:
var - The variable the type of which is to be converted.
type - The converted type for variable var.
Returns:
The new IloConversion object.
Throws:
IloException

conversion

public IloConversion conversion(IloNumVar[] ilovar,
                                IloNumVarType type,
                                java.lang.String name)
                         throws IloException

Converts an array of numeric variables to the specified type and names the conversion object.

See IloMPModeler.conversion(IloNumVar[] ilovar, IloNumVarType type, String name)

Specified by:
conversion in interface IloMPModeler
Parameters:
ilovar - The array of variables the types of which are to be converted.
type - The converted type for all variables in var.
name - The name of the new IloConversion object.
Returns:
The new IloConversion object.
Throws:
IloException

conversion

public IloConversion conversion(IloNumVar[] ilovar,
                                IloNumVarType type)
                         throws IloException

Converts an array of numeric variables to the specified type.

See IloMPModeler.conversion(IloNumVar[] ilovar, IloNumVarType type)

Specified by:
conversion in interface IloMPModeler
Parameters:
ilovar - The array of variables the types of which are to be converted.
type - The converted type for all variables in var.
Returns:
The new IloConversion object.
Throws:
IloException

conversion

public IloConversion conversion(IloNumVar[] ilovar,
                                IloNumVarType[] type,
                                java.lang.String name)
                         throws IloException

Converts an array of numeric variables, each one converted to the type corresponding to the types in an array of types, and names the conversion object.

See IloMPModeler.conversion(IloNumVar[] ilovar, IloNumVarType[] type, String name)

Specified by:
conversion in interface IloMPModeler
Parameters:
ilovar - The array of variables the types of which are to be converted.
type - An array of variable types containing the types to which the variables are converted. The type of variable var[i] is converted to type[i].
name - The name of the new IloConversion object.
Returns:
The new IloConversion object.
Throws:
IloException

conversion

public IloConversion conversion(IloNumVar[] ilovar,
                                IloNumVarType[] type)
                         throws IloException

Converts an array of numeric variables to the corresponding specified types.

See IloMPModeler.conversion(IloNumVar[] ilovar, IloNumVarType[] type)

Specified by:
conversion in interface IloMPModeler
Parameters:
ilovar - The array of variables the types of which are to be converted.
type - An array of variable types containing the types to which the variables are converted. The type of variable var[i] is converted to type[i].
Returns:
The new IloConversion object.
Throws:
IloException

addLPMatrix

public IloLPMatrix addLPMatrix(java.lang.String name)
                        throws IloException

Creates, returns, and adds an empty LP matrix object, with the specified name, to the invoking model.

See IloMPModeler.addLPMatrix(String name)

Specified by:
addLPMatrix in interface IloMPModeler
Parameters:
name - The name for the new IloLPMatrix object.
Returns:
The new IloLPMatrix object.
Throws:
IloException

addLPMatrix

public IloLPMatrix addLPMatrix()
                        throws IloException

Creates, returns, and adds an empty LP matrix object to the invoking model.

See IloMPModeler.addLPMatrix()

Specified by:
addLPMatrix in interface IloMPModeler
Returns:
The new IloLPMatrix object.
Throws:
IloException

LPMatrix

public IloLPMatrix LPMatrix(java.lang.String name)
                     throws IloException

Creates and returns an empty, named LP matrix object.

See IloMPModeler.LPMatrix(String name)

Specified by:
LPMatrix in interface IloMPModeler
Parameters:
name - The name for the new IloLPMatrix object.
Returns:
The new IloLPMatrix object.
Throws:
IloException

LPMatrix

public IloLPMatrix LPMatrix()
                     throws IloException

Creates and returns an empty LP matrix object.

See IloMPModeler.LPMatrix()

Specified by:
LPMatrix in interface IloMPModeler
Returns:
The new IloLPMatrix object.
Throws:
IloException

addRange

public IloRange addRange(double lb,
                         IloNumExpr expr,
                         double ub,
                         java.lang.String name)
                  throws IloException

Creates, returns, and adds to the invoking model a range object with the specified name, upper and lower bounds, and expression.

See IloModeler.addRange(double lb, IloNumExpr expr, double ub, String name)

Specified by:
addRange in interface IloModeler
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.
Throws:
IloException

addRange

public IloRange addRange(double lb,
                         IloNumExpr expr,
                         double ub)
                  throws IloException

Creates, returns, and adds to the invoking model a range object with the specified expression as well as upper and lower bounds.

See IloModeler.addRange(double lb, IloNumExpr expr, double ub)

Specified by:
addRange in interface IloModeler
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.
Throws:
IloException

addRange

public IloRange addRange(double lb,
                         double ub,
                         java.lang.String name)
                  throws IloException

Creates and returns an empty range object with the specified name and specified lower and upper bounds.

See IloMPModeler.addRange(double lb, double ub, String name)

Specified by:
addRange in interface IloMPModeler
Parameters:
lb - The lower bound of the new IloRange constraint.
ub - The upper bound of the new IloRange constraint.
name - The name assigned to the new IloRange constraint.
Returns:
A new IloRange object initialized to represent the constraint lb <= 0 <= ub.
Throws:
IloException

addRange

public IloRange addRange(double lb,
                         double ub)
                  throws IloException

Creates and returns an empty range object with the specified lower and upper bounds.

See IloMPModeler.addRange(double lb, double ub)

Specified by:
addRange in interface IloMPModeler
Parameters:
lb - The lower bound of the new IloRange constraint.
ub - The upper bound of the new IloRange constraint.
Returns:
A new IloRange object initialized to represent the constraint lb <= 0 <= ub.
Throws:
IloException

addEq

public IloRange addEq(IloNumExpr e,
                      double v)
               throws IloException

Creates and returns a range initialized to represent the equality of the specified expression and value.

See IloModeler.addEq(IloNumExpr e, double v)

Specified by:
addEq in interface IloModeler
Parameters:
e - Expression of the new equality constraint.
v - Upper bound of the new equality constraint.
Returns:
A new IloRange object initialized to represent the constraint expr == rhs.
Throws:
IloException

addEq

public IloRange addEq(IloNumExpr e,
                      double v,
                      java.lang.String name)
               throws IloException

Creates and returns a named range initialized to represent the equality of the specified expression and value.

See IloModeler.addEq(IloNumExpr e, double v, String name)

Specified by:
addEq in interface IloModeler
Parameters:
e - Expression of the new equality constraint.
v - Upper bound of the new equality constraint.
name - Name assigned to the new equality constraint.
Returns:
A new IloRange object initialized to represent theconstraint expr == rhs.
Throws:
IloException

addEq

public IloConstraint addEq(IloNumExpr e1,
                           IloNumExpr e2)
                    throws IloException

Creates and returns a constraint initialized to represent the equality of the two specified expressions.

See IloModeler.addEq(IloNumExpr e1, IloNumExpr e2)

Specified by:
addEq in interface IloModeler
Parameters:
e1 - Lefthand side expression of the new equality constraint.
e2 - Righthand side expression of the new equality constraint.
Returns:
A new IloConstraint object initialized to represent the constraint e1 == e2.
Throws:
IloException

addEq

public IloConstraint addEq(IloNumExpr e1,
                           IloNumExpr e2,
                           java.lang.String name)
                    throws IloException

Creates and returns a named constraint initialized to represent the equality of the two specified expressions.

See IloModeler.addEq(IloNumExpr e1, IloNumExpr e2, String name)

Specified by:
addEq in interface IloModeler
Parameters:
e1 - Lefthand side expression of the new equality constraint.
e2 - Righthand side expression of the new equality constraint.
name - Name assigned to the new IloRange constraint.
Returns:
A new IloConstraint object initialized to represent the constraint e1 == e2.
Throws:
IloException

addEq

public IloRange addEq(double v,
                      IloNumExpr e)
               throws IloException

Creates and returns a range initialized to represent the equality of the specified value and expression.

See IloModeler.addEq(double v, IloNumExpr e)

Specified by:
addEq in interface IloModeler
Parameters:
v - Value of the new equality constraint.
e - Expression of the new equality constraint.
Returns:
A new IloRange object initialized to represent the constraint val == expr.
Throws:
IloException

addEq

public IloRange addEq(double v,
                      IloNumExpr e,
                      java.lang.String name)
               throws IloException

Creates and returns a named range initialized to represent the equality of the specified value and expression.

See IloModeler.addEq(double v, IloNumExpr e, String name)

Specified by:
addEq in interface IloModeler
Parameters:
v - Value of the new equality constraint.
e - 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.
Throws:
IloException

addGe

public IloRange addGe(IloNumExpr e,
                      double v)
               throws IloException

Creates and returns a range representing the constraint that the specified numeric expression must be greater than or equal to the specified value.

See IloModeler.addGe(IloNumExpr e, double v)

Specified by:
addGe in interface IloModeler
Parameters:
e - Expression of the new greater-than-or-equal-to constraint.
v - Upper bound of the new greater-than-or-equal-to constraint.
Returns:
A new IloRange object initialized to represent the constraint expr >= rhs.
Throws:
IloException

addGe

public IloRange addGe(IloNumExpr e,
                      double v,
                      java.lang.String name)
               throws IloException

Creates and returns a range representing the constraint that the specified numeric expression must be greater than or equal to the specified value.

See IloModeler.addGe(IloNumExpr e, double v, String name)

Specified by:
addGe in interface IloModeler
Parameters:
e - Expression of the new greater-than-or-equal-to constraint.
v - Upper bound of the new greater-than-or-equal-to constraint.
name - Name of the new greater-than-or-equal-to constraint.
Returns:
A new IloRange object initialized to represent the constraint expr >= rhs.
Throws:
IloException

addGe

public IloConstraint addGe(IloNumExpr e1,
                           IloNumExpr e2)
                    throws IloException

Creates and returns a constraint that the first specified numeric expression must be greater than or equal to the second specified numeric expression.

See IloModeler.addGe(IloNumExpr e1, IloNumExpr e2)

Specified by:
addGe in interface IloModeler
Parameters:
e1 - Lefthand side expression of the new greater-than-or-equal-to constraint.
e2 - Righthand side expression of the new greater-than-or-equal-to constraint.
Returns:
A new IloConstraint object initialized to represent the constraint e1 >= e2.
Throws:
IloException

addGe

public IloConstraint addGe(IloNumExpr e1,
                           IloNumExpr e2,
                           java.lang.String name)
                    throws IloException

Creates and returns a named constraint that the first specified numeric expression must be greater than or equal to the second specified numeric expression.

See IloModeler.addGe(IloNumExpr e1, IloNumExpr e2, String name)

Specified by:
addGe in interface IloModeler
Parameters:
e1 - Lefthand side expression of the new greater-than-or-equal-to constraint.
e2 - Righthand side expression of the new greater-than-or-equal-to constraint.
name - Name assigned to the new constraint.
Returns:
A new IloConstraint object initialized to represent the constraint e1 >= e2.
Throws:
IloException

addGe

public IloRange addGe(double v,
                      IloNumExpr e)
               throws IloException

Creates and returns a constraint that the specified value must be greater than or equal to the specified numeric expression.

See IloModeler.addGe(double v, IloNumExpr e)

Specified by:
addGe in interface IloModeler
Parameters:
v - Value of the new greater-than-or-equal-to constraint.
e - Expression of the new greater-than-or-equal-to constraint.
Returns:
A new IloRange object initialized to represent the constraint val >= expr.
Throws:
IloException

addGe

public IloRange addGe(double v,
                      IloNumExpr e,
                      java.lang.String name)
               throws IloException

Creates and returns a named constraint that the specified value must be greater than or equal to the specified numeric expression.

See IloModeler.addGe(double v, IloNumExpr e, String name)

Specified by:
addGe in interface IloModeler
Parameters:
v - Value of the new greater-than-or-equal-to constraint.
e - Expression of the new greater-than-or-equal-to constraint.
name - Name of the new greater-than-or-equal-to constraint.
Returns:
A new IloRange object initialized to represent the constraint val >= expr.
Throws:
IloException

addLe

public IloRange addLe(IloNumExpr e,
                      double v)
               throws IloException

Creates and returns a range forcing the specified numeric expression to be less than than or equal to the specified value.

See IloModeler.addLe(IloNumExpr e, double v)

Specified by:
addLe in interface IloModeler
Parameters:
e - Expression of the new less-than-or-equal-to constraint.
v - Upper bound of the new less-than-or-equal-to constraint.
Returns:
A new IloRange object initialized to represent the constraint expr <= rhs.
Throws:
IloException

addLe

public IloRange addLe(IloNumExpr e,
                      double v,
                      java.lang.String name)
               throws IloException

Creates and returns a named range forcing the specified numeric expression to be less than than or equal to the specified value.

See IloModeler.addLe(IloNumExpr e, double v, String name)

Specified by:
addLe in interface IloModeler
Parameters:
e - Expression of the new less-than-or-equal-to constraint.
v - Upper bound of the new less-than-or-equal-to constraint.
name - Name assigned to the new less-than-or-equal-to constraint.
Returns:
A new IloRange object initialized to represent the constraint expr <= rhs.
Throws:
IloException

addLe

public IloConstraint addLe(IloNumExpr e1,
                           IloNumExpr e2)
                    throws IloException

Creates and returns a constraint forcing the first specified numeric expression to be less than than or equal to the second specified numeric expression.

See IloModeler.addLe(IloNumExpr e1, IloNumExpr e2)

Specified by:
addLe in interface IloModeler
Parameters:
e1 - Lefthand side expression of the new less-than-or-equal-to constraint.
e2 - Righthand side expression of the new less-than-or-equal-to constraint.
Returns:
A new IloConstraint object initialized to represent the constraint e1 <= e2.
Throws:
IloException

addLe

public IloConstraint addLe(IloNumExpr e1,
                           IloNumExpr e2,
                           java.lang.String name)
                    throws IloException

Creates and returns a named constraint forcing the first specified numeric expression to be less than than or equal to the second specified numeric expression.

See IloModeler.addLe(IloNumExpr e1, IloNumExpr e2, String name)

Specified by:
addLe in interface IloModeler
Parameters:
e1 - Lefthand side expression of the new less-than-or-equal-to constraint.
e2 - Righthand side expression of the new less-than-or-equal-to constraint.
name - Name assigned to the new constraint.
Returns:
A new IloConstraint object initialized to represent the constraint e1 <= e2.
Throws:
IloException

addLe

public IloRange addLe(double v,
                      IloNumExpr e)
               throws IloException

Creates and returns a range forcing the specified value to be less than than or equal to the specified numeric expression.

See IloModeler.addLe(double v, IloNumExpr e)

Specified by:
addLe in interface IloModeler
Parameters:
v - Value of the new less-than-or-equal-to constraint.
e - Expression of the new less-than-or-equal-to constraint.
Returns:
A new IloRange object initialized to represent the constraint val <= exp.
Throws:
IloException

addLe

public IloRange addLe(double v,
                      IloNumExpr e,
                      java.lang.String name)
               throws IloException

Creates and returns a named range forcing the specified value to be less than than or equal to the specified numeric expression.

See IloModeler.addLe(double v, IloNumExpr e, String name)

Specified by:
addLe in interface IloModeler
Parameters:
v - Value of the new less-than-or-equal-to constraint.
e - Expression of the new less-than-or-equal-to constraint.
name - Name assigned to the new less-than-or-equal-to constraint.
Returns:
A new IloRange object initialized to represent the constraint val <= expr.
Throws:
IloException

range

public IloRange range(double lb,
                      IloNumExpr expr,
                      double ub,
                      java.lang.String name)
               throws IloException

Creates and returns a named range with the specified lower bound, numeric expression, and upper bound.

See IloModeler.range(double lb, IloNumExpr expr, double ub, String name)

Specified by:
range in interface IloModeler
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.
Throws:
IloException

range

public IloRange range(double lb,
                      IloNumExpr expr,
                      double ub)
               throws IloException

Creates and returns a range with the specified lower bound, numeric expression, and upper bound.

See IloModeler.range(double lb, IloNumExpr expr, double ub)

Specified by:
range in interface IloModeler
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.
Throws:
IloException

range

public IloRange range(double lb,
                      double ub,
                      java.lang.String name)
               throws IloException

Creates and returns a named range with the specified lower and upper bound.

See IloMPModeler.range(double lb, double ub, String name)

Specified by:
range in interface IloMPModeler
Parameters:
lb - The lower bound of the new IloRange constraint.
ub - The upper bound of the new IloRange constraint.
name - The name assigned to the new IloRange constraint.
Returns:
A new IloRange object initialized to represent the constraint lb <= 0 <= ub.
Throws:
IloException

range

public IloRange range(double lb,
                      double ub)
               throws IloException

Creates and returns a range with the specified lower and upper bound.

See IloMPModeler.range(double lb, double ub)

Specified by:
range in interface IloMPModeler
Parameters:
lb - The lower bound of the new IloRange constraint.
ub - The upper bound of the new IloRange constraint.
Returns:
A new IloRange object initialized to represent the constraint lb <= 0 <= ub.
Throws:
IloException

eq

public IloRange eq(IloNumExpr e,
                   double v)
            throws IloException

Creates and returns a range forcing the specified numeric expression to be equal to the specified value.

See IloModeler.eq(IloNumExpr e, double v)

Specified by:
eq in interface IloModeler
Parameters:
e - Expression of the new equality constraint.
v - Upper bound of the new equality constraint.
Returns:
A new IloRange object initialized to represent the constraint expr == rhs.
Throws:
IloException

eq

public IloRange eq(IloNumExpr e,
                   double v,
                   java.lang.String name)
            throws IloException

Creates and returns a named range forcing the specified numeric expression to be equal to the specified value.

See IloModeler.eq(IloNumExpr e, double v, String name)

Specified by:
eq in interface IloModeler
Parameters:
e - Expression of the new equality constraint.
v - 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.
Throws:
IloException

eq

public IloConstraint eq(IloNumExpr e1,
                        IloNumExpr e2)
                 throws IloException

Creates and returns a constraint forcing the specified numeric expressions to be equal.

See IloModeler.eq(IloNumExpr e1, IloNumExpr e2)

Specified by:
eq in interface IloModeler
Parameters:
e1 - Lefthand side expression of the new equality constraint.
e2 - Righthand side expression of the new equality constraint.
Returns:
A new instance of IloRange initialized to represent the constraint e1 == e2.
Throws:
IloException

eq

public IloConstraint eq(IloNumExpr e1,
                        IloNumExpr e2,
                        java.lang.String name)
                 throws IloException

Creates and returns a named constraint forcing the specified numeric expressions to be equal.

See IloModeler.eq(IloNumExpr e1, IloNumExpr e2, String name)

Specified by:
eq in interface IloModeler
Parameters:
e1 - Lefthand side expression of the new equality constraint.
e2 - Righthand side expression of the new equality constraint.
name - Name assigned to the new IloRange constraint.
Returns:
A new IloRange object initialized to represent the constraint e1 == e2.
Throws:
IloException

eq

public IloRange eq(double v,
                   IloNumExpr e)
            throws IloException

Creates and returns a range forcing the specified value to be equal to the specified numeric expression.

See IloModeler.eq(double v, IloNumExpr e)

Specified by:
eq in interface IloModeler
Parameters:
v - Value of the new equality constraint.
e - Expression of the new equality constraint.
Returns:
A new IloRange object initialized to represent the constraint val == expr.
Throws:
IloException

eq

public IloRange eq(double v,
                   IloNumExpr e,
                   java.lang.String name)
            throws IloException

Creates and returns a named range forcing the specified value to be equal to the specified numeric expression.

See IloModeler.eq(double v, IloNumExpr e, String name)

Specified by:
eq in interface IloModeler
Parameters:
v - Value of the new equality constraint.
e - 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.
Throws:
IloException

ge

public IloRange ge(IloNumExpr e,
                   double v)
            throws IloException

Creates and returns a range forcing the specified numeric expression to be greater than or equal to the specified value.

See IloModeler.ge(IloNumExpr e, double v)

Specified by:
ge in interface IloModeler
Parameters:
e - Expression of the new greater-than-or-equal-to constraint.
v - Upper bound of the new greater-than-or-equal-to constraint.
Returns:
A new IloRange object initialized to represent the constraint expr >= rhs.
Throws:
IloException

ge

public IloRange ge(IloNumExpr e,
                   double v,
                   java.lang.String name)
            throws IloException

Creates and returns a named range forcing the specified numeric expression to be greater than or equal to the specified value.

See IloModeler.ge(IloNumExpr e, double v, String name)

Specified by:
ge in interface IloModeler
Parameters:
e - Expression of the new greater-than-or-equal-to constraint.
v - Upper bound of the new greater-than-or-equal-to constraint.
name - Name assigned to the new greater-than-or-equal-to constraint.
Returns:
A new IloRange object initialized to represent the constraint expr >= rhs.
Throws:
IloException

ge

public IloConstraint ge(IloNumExpr e1,
                        IloNumExpr e2)
                 throws IloException

Creates and returns a constraint forcing the first specified numeric expression to be greater than or equal to the second specified numeric expression.

See IloModeler.ge(IloNumExpr e1, IloNumExpr e2)

Specified by:
ge in interface IloModeler
Parameters:
e1 - Lefthand side expression of the new greater-than-or-equal-to constraint.
e2 - Righthand side expression of the new greater-than-or-equal-to constraint.
Returns:
A new IloConstraint object initialized to represent the constraint e1 >= e2.
Throws:
IloException

ge

public IloConstraint ge(IloNumExpr e1,
                        IloNumExpr e2,
                        java.lang.String name)
                 throws IloException

Creates and returns a named constraint forcing the first specified numeric expression to be greater than or equal to the second specified numeric expression.

See IloModeler.ge(IloNumExpr e1, IloNumExpr e2, String name)

Specified by:
ge in interface IloModeler
Parameters:
e1 - Lefthand side expression of the new greater-than-or-equal-to constraint.
e2 - Righthand side expression of the new greater-than-or-equal-to constraint.
name - Name of the new greater-than-or-equal-to constraint.
Returns:
A new IloConstraint object initialized to represent the constraint e1 >= e2.
Throws:
IloException

ge

public IloRange ge(double v,
                   IloNumExpr e)
            throws IloException

Creates and returns a range that forces the specified value to be greater than or equal to the specified expression.

See IloModeler.ge(double v, IloNumExpr e)

Specified by:
ge in interface IloModeler
Parameters:
v - Value of the new greater-than-or-equal-to constraint.
e - Expression of the new greater-than-or-equal-to constraint.
Returns:
A new IloRange object initialized to represent the constraint val >= expr.
Throws:
IloException

ge

public IloRange ge(double v,
                   IloNumExpr e,
                   java.lang.String name)
            throws IloException

Creates and returns a named range that forces the specified value to be greater than or equal to the specified expression.

See IloModeler.ge(double v, IloNumExpr e, String name)

Specified by:
ge in interface IloModeler
Parameters:
v - Value of the new greater-than-or-equal-to constraint.
e - Expression of the new greater-than-or-equal-to constraint.
name - Name of the new greater-than-or-equal-to constraint.
Returns:
A new IloRange object initialized to represent the constraint val >= expr.
Throws:
IloException

le

public IloRange le(IloNumExpr e,
                   double v)
            throws IloException

Creates and returns a range that forces the specified numeric expression to be less than or equal to the specified value.

See IloModeler.le(IloNumExpr e, double v)

Specified by:
le in interface IloModeler
Parameters:
e - Expression of the new less-than-or-equal-to constraint.
v - Upper bound of the new less-than-or-equal-to constraint.
Returns:
A new range initialized to represent the constraint expr <= rhs.
Throws:
IloException

le

public IloRange le(IloNumExpr e,
                   double v,
                   java.lang.String name)
            throws IloException

Creates and returns a named range that forces the specified numeric expression to be less than or equal to the specified value.

See IloModeler.le(IloNumExpr e, double v, String name)

Specified by:
le in interface IloModeler
Parameters:
e - Expression of the new less-than-or-equal-to constraint.
v - Upper bound of the new less-than-or-equal-to constraint.
name - Name assigned to the new less-than-or-equal-to constraint.
Returns:
A new range initialized to represent the constraint expr <= rhs.
Throws:
IloException

le

public IloConstraint le(IloNumExpr e1,
                        IloNumExpr e2)
                 throws IloException

Creates and returns a constraint that forces the first specified numeric expression to be less than or equal to the second specified numeric expression.

See IloModeler.le(IloNumExpr e1, IloNumExpr e2)

Specified by:
le in interface IloModeler
Parameters:
e1 - Lefthand side expression of the new less-than-or-equal-to constraint.
e2 - Righthand side expression of the new less-than-or-equal-to constraint.
Returns:
A new IloConstraint object initialized to represent the constraint e1 <= e2.
Throws:
IloException

le

public IloConstraint le(IloNumExpr e1,
                        IloNumExpr e2,
                        java.lang.String name)
                 throws IloException

Creates and returns a named constraint that forces the first specified numeric expression to be less than or equal to the second specified numeric expression.

See IloModeler.le(IloNumExpr e1, IloNumExpr e2, String name)

Specified by:
le in interface IloModeler
Parameters:
e1 - Lefthand side expression of the new less-than-or-equal-to constraint.
e2 - Righthand side expression of the new less-than-or-equal-to constraint.
name - Name assigned to the new IloRange constraint.
Returns:
A new IloConstraint object initialized to represent the constraint e1 <= e2.
Throws:
IloException

le

public IloRange le(double v,
                   IloNumExpr e)
            throws IloException

Creates and returns a range that forces the specified value to be less than or equal to the specified numeric expression.

See IloModeler.le(double v, IloNumExpr e)

Specified by:
le in interface IloModeler
Parameters:
v - Value of the new less-than-or-equal-to constraint.
e - Expression of the new less-than-or-equal-to constraint.
Returns:
A new IloRange object initialized to represent the constraint val <= expr.
Throws:
IloException

le

public IloRange le(double v,
                   IloNumExpr e,
                   java.lang.String name)
            throws IloException

Creates and returns a named range that forces the specified value to be less than or equal to the specified numeric expression.

See IloModeler.le(double v, IloNumExpr e, String name)

Specified by:
le in interface IloModeler
Parameters:
v - Value of the new less-than-or-equal-to constraint.
e - Expression of the new less-than-or-equal-to constraint.
name - Name assigned to the new less-than-or-equal-to constraint.
Returns:
A new IloRange object initialized to represent the constraint val <= expr.
Throws:
IloException

addToExpr

public void addToExpr(IloRange rng,
                      IloNumExpr expr)
               throws IloException

Adds the specified numeric expression to the specified range.

See IloMPModeler.addToExpr(IloRange rng, IloNumExpr expr)

Specified by:
addToExpr in interface IloMPModeler
Parameters:
rng - The range constraint to modify.
expr - The expression to add.
Throws:
IloException

setLinearCoef

public void setLinearCoef(IloRange rng,
                          double val,
                          IloNumVar var)
                   throws IloException

Sets the specified value as the linear coefficient of the specified variable in the specified range.

See IloMPModeler.setLinearCoef(IloRange rng, double val, IloNumVar var)

Specified by:
setLinearCoef in interface IloMPModeler
Parameters:
rng - The range constraint to modify.
val - The coefficient to set.
var - The variable for which to set the coefficient.
Throws:
IloException

setLinearCoef

public void setLinearCoef(IloRange rng,
                          IloNumVar var,
                          double val)
                   throws IloException

Sets the specified value as the linear coefficient of the specified variable in the specified range.

See IloMPModeler.setLinearCoef(IloRange rng, IloNumVar var, double val)

Specified by:
setLinearCoef in interface IloMPModeler
Parameters:
rng - The range constraint to modify.
val - The coefficient to set.
var - The variable for which to set the coefficient.
Throws:
IloException

setLinearCoefs

public void setLinearCoefs(IloRange rng,
                           double[] val,
                           IloNumVar[] var)
                    throws IloException

Sets the array of specified values as the linear coefficients of the specified array of variables in the specified range.

See IloMPModeler.setLinearCoefs(IloRange rng, double[] val, IloNumVar[] var)

Specified by:
setLinearCoefs in interface IloMPModeler
Parameters:
rng - The range constraint to modify.
val - The array of linear coefficient values. The linear coefficient of variable var[i] is set to val[i].
var - The array of variables for which to set linear coefficients. A variable may only appear once in this array.
Throws:
IloException

setLinearCoefs

public void setLinearCoefs(IloRange rng,
                           IloNumVar[] var,
                           double[] val)
                    throws IloException

Sets the array of specified values as the linear coefficients of the specified array of variables in the specified range.

See IloMPModeler.setLinearCoefs(IloRange rng, IloNumVar[] var, double[] val)

Specified by:
setLinearCoefs in interface IloMPModeler
Parameters:
rng - The range constraint to modify.
var - The array of variables for which to set linear coefficients. A variable may only appear once in this array.
val - The array of linear coefficient values. The linear coefficient of variable var[i] is set to val[i].
Throws:
IloException

setLinearCoefs

public void setLinearCoefs(IloRange rng,
                           double[] val,
                           IloNumVar[] var,
                           int start,
                           int num)
                    throws IloException

Sets a number of the array of specified values, from a starting index, as the linear coefficients of the corresponding part of the array of variables in the specified range.

See IloMPModeler.setLinearCoefs(IloRange rng, double[] val, IloNumVar[] var, int start, int num)

Specified by:
setLinearCoefs in interface IloMPModeler
Parameters:
rng - The range constraint to modify.
val - An array containing linear coefficient values. The linear coefficient of variable var[i] is set to val[i].
var - An array containing the variables for which to set linear coefficients. A variable may only appear once in this array.
start - The first element in val and var to use for setting coefficients.
num - The number of consecutive elements in val and var to use for setting coefficients.
Throws:
IloException

setLinearCoefs

public void setLinearCoefs(IloRange rng,
                           IloNumVar[] var,
                           double[] val,
                           int start,
                           int num)
                    throws IloException

Sets a number of the array of specified values, from a starting index, as the linear coefficients of the corresponding part of the array of variables in the specified range.

See IloMPModeler.setLinearCoefs(IloRange rng, IloNumVar[] var, double[] val, int start, int num)

Specified by:
setLinearCoefs in interface IloMPModeler
Parameters:
rng - The range constraint to modify.
var - An array containing the variables for which to set linear coefficients. A variable may only appear once in this array.
val - An array containing linear coefficient values. The linear coefficient of variable var[i] is set to val[i].
start - The first element in val and var to use for setting coefficients.
num - The number of consecutive elements in val and var to use for setting coefficients.
Throws:
IloException

addSOS1

public IloSOS1 addSOS1(IloNumVar[] var,
                       double[] val)
                throws IloException

Creates a special ordered set (SOS) of type 1 with the specified variables and weights and adds it to the invoking model.

See IloMPModeler.addSOS1(IloNumVar[] var, double[] val)

Specified by:
addSOS1 in interface IloMPModeler
Parameters:
var - The variables in the new SOS.
val - The weight values for the variables in the new SOS.
Returns:
The new IloSOS1 object.
Throws:
IloException

addSOS1

public IloSOS1 addSOS1(IloNumVar[] var,
                       double[] val,
                       int start,
                       int num)
                throws IloException

Creates a special ordered set (SOS) of type 1 with the specified variables and weights and adds it to the invoking model.

See IloMPModeler.addSOS1(IloNumVar[] var, double[] val, int start, int num)

Specified by:
addSOS1 in interface IloMPModeler
Parameters:
var - The array containing the variables in the new SOS.
val - The array containing the weight values for the variables in the new SOS.
start - The first element in var and val to use for the new SOS.
num - The number of consecutive elements in var and val to use for the new SOS.
Returns:
The new IloSOS1 object.
Throws:
IloException

addSOS1

public IloSOS1 addSOS1(IloNumVar[] var,
                       double[] val,
                       java.lang.String name)
                throws IloException

Creates and returns a named special ordered set (SOS) of type 1 with the specified variables and weights, and adds that SOS1 to the invoking model.

See IloMPModeler.addSOS1(IloNumVar[] var, double[] val, String name)

Specified by:
addSOS1 in interface IloMPModeler
Parameters:
var - The variables in the new SOS.
val - The weight values for the variables in the new SOS.
name - The name of the new SOS.
Returns:
The new IloSOS1 object.
Throws:
IloException

addSOS1

public IloSOS1 addSOS1(IloNumVar[] var,
                       double[] val,
                       int start,
                       int num,
                       java.lang.String name)
                throws IloException

Creates and returns a named special ordered set (SOS) of type 1, starting from the specified index and continuing through a number of elements in the array of specified variables and weights, and adds that named SOS1 to the invoking model.

See IloMPModeler.addSOS1(IloNumVar[] var, double[] val, int start, int num, String name)

Specified by:
addSOS1 in interface IloMPModeler
Parameters:
var - An array containing the variables in the new SOS.
val - An array containing the weight values for the variables in the new SOS.
start - The first element in var and val to use for the new SOS.
num - The number of consecutive elements in var and val to use for the new SOS.
name - The name of the new SOS.
Returns:
The new IloSOS1 object.
Throws:
IloException

SOS1

public IloSOS1 SOS1(IloNumVar[] var,
                    double[] val)
             throws IloException

Creates and returns a special ordered set (SOS) of type 1 from the specified array of variables and weights.

See IloMPModeler.SOS1(IloNumVar[] var, double[] val)

Specified by:
SOS1 in interface IloMPModeler
Parameters:
var - The variables in the new SOS.
val - The weight values for the variables in the new SOS.
Returns:
The new IloSOS1 object.
Throws:
IloException

SOS1

public IloSOS1 SOS1(IloNumVar[] var,
                    double[] val,
                    int start,
                    int num)
             throws IloException

Creates and returns a special ordered set (SOS) of type 1 consisting of a number of elements from the specified starting index of the specified array of variables and weights.

See IloMPModeler.SOS1(IloNumVar[] var, double[] val, int start, int num)

Specified by:
SOS1 in interface IloMPModeler
Parameters:
var - An array containing the variables in the new SOS.
val - An array containing the weight values for the variables in the new SOS.
start - The first element in var and val to use for the new SOS.
num - The number of consecutive elements in var and val to use for the new SOS.
Returns:
The new IloSOS1 object.
Throws:
IloException

SOS1

public IloSOS1 SOS1(IloNumVar[] var,
                    double[] val,
                    java.lang.String name)
             throws IloException

Creates and returns a named special ordered set (SOS) of type 1 from the specified array of variables and weights.

See IloMPModeler.SOS1(IloNumVar[] var, double[] val, String name)

Specified by:
SOS1 in interface IloMPModeler
Parameters:
var - The variables in the new SOS.
val - The weight values for the variables in the new SOS.
name - The name of the new SOS.
Returns:
The new IloSOS1 object.
Throws:
IloException

SOS1

public IloSOS1 SOS1(IloNumVar[] var,
                    double[] val,
                    int start,
                    int num,
                    java.lang.String name)
             throws IloException

Creates and returns a named special ordered set (SOS) of type 1 consisting of a number of elements from the specified starting index of the specified array of variables and weights.

See IloMPModeler.SOS1(IloNumVar[] var, double[] val, int start, int num, String name)

Specified by:
SOS1 in interface IloMPModeler
Parameters:
var - An array containing the variables in the new SOS.
val - An array containing the weight values for the variables in the new SOS.
start - The first element in var and val to use for the new SOS.
num - The number of consecutive elements in var and val to use for the new SOS.
name - The name of the new SOS.
Returns:
The new IloSOS1 object.
Throws:
IloException

addSOS2

public IloSOS2 addSOS2(IloNumVar[] var,
                       double[] val)
                throws IloException

Creates and returns a special ordered set (SOS) of type 2 from the specified array of variables and weights, and adds that SOS2 to the invoking model.

See IloMPModeler.addSOS2(IloNumVar[] var, double[] val)

Specified by:
addSOS2 in interface IloMPModeler
Parameters:
var - The variables in the new SOS.
val - The weight values for the variables in the new SOS.
Returns:
The new IloSOS2 object.
Throws:
IloException

addSOS2

public IloSOS2 addSOS2(IloNumVar[] var,
                       double[] val,
                       int start,
                       int num)
                throws IloException

Creates and returns a special ordered set (SOS) of type 2 from a number of elements, starting at the specified index, of the specified array of variables and weights, and adds that SOS2 to the invoking model.

See IloMPModeler.addSOS2(IloNumVar[] var, double[] val, int start, int num)

Specified by:
addSOS2 in interface IloMPModeler
Parameters:
var - An array containing the variables in the new SOS.
val - An array containing the weight values for the variables in the new SOS.
start - The first element in var and val to use for the new SOS.
num - The number of consecutive elements in var and val to use for the new SOS.
Returns:
The new IloSOS2 object.
Throws:
IloException

addSOS2

public IloSOS2 addSOS2(IloNumVar[] var,
                       double[] val,
                       java.lang.String name)
                throws IloException

Creates and returns a named special ordered set (SOS) of type 2 from the specified array of variables and weights, and adds that SOS2 to the invoking model.

See IloMPModeler.addSOS2(IloNumVar[] var, double[] val, String name)

Specified by:
addSOS2 in interface IloMPModeler
Parameters:
var - The variables in the new SOS.
val - The weight values for the variables in the new SOS.
name - The name of the new SOS.
Returns:
The new IloSOS2 object.
Throws:
IloException

addSOS2

public IloSOS2 addSOS2(IloNumVar[] var,
                       double[] val,
                       int start,
                       int num,
                       java.lang.String name)
                throws IloException

Creates and returns a named special ordered set (SOS) of type 2 from a number of elements, starting at the specified index, of the specified array of variables and weights, and adds that SOS2 to the invoking model.

See IloMPModeler.addSOS2(IloNumVar[] var, double[] val, int start, int num, String name)

Specified by:
addSOS2 in interface IloMPModeler
Parameters:
var - An array containing the variables in the new SOS.
val - An array containing the weight values for the variables in the new SOS.
start - The first element in var and val to use for the new SOS.
num - The number of consecutive elements in var and val to use for the new SOS.
name - The name of the new SOS.
Returns:
The new IloSOS2 object.
Throws:
IloException

SOS2

public IloSOS2 SOS2(IloNumVar[] var,
                    double[] val)
             throws IloException

Creates and returns a special ordered set (SOS) of type 2 from the specified array of variables and weights.

See IloMPModeler.SOS2(IloNumVar[] var, double[] val)

Specified by:
SOS2 in interface IloMPModeler
Parameters:
var - The variables in the new SOS.
val - The weight values for the variables in the new SOS.
Returns:
The new IloSOS2 object.
Throws:
IloException

SOS2

public IloSOS2 SOS2(IloNumVar[] var,
                    double[] val,
                    int start,
                    int num)
             throws IloException

Creates and returns a special ordered set (SOS) of type 2 consisting of a number of elements, starting at the specified index, from the specified array of variables and weights.

See IloMPModeler.SOS2(IloNumVar[] var, double[] val, int start, int num)

Specified by:
SOS2 in interface IloMPModeler
Parameters:
var - An array containing the variables in the new SOS.
val - An array containing the weight values for the variables in the new SOS.
start - The first element in var and val to use for the new SOS.
num - The number of consecutive elements in var and val to use for the new SOS.
Returns:
The new IloSOS2 object.
Throws:
IloException

SOS2

public IloSOS2 SOS2(IloNumVar[] var,
                    double[] val,
                    java.lang.String name)
             throws IloException

Creates and returns a named special ordered set (SOS) of type 2 from the specified array of variables and weights.

See IloMPModeler.SOS2(IloNumVar[] var, double[] val, String name)

Specified by:
SOS2 in interface IloMPModeler
Parameters:
var - The variables in the new SOS.
val - The weight values for the variables in the new SOS.
name - The name of the new SOS.
Returns:
The new IloSOS2 object.
Throws:
IloException

SOS2

public IloSOS2 SOS2(IloNumVar[] var,
                    double[] val,
                    int start,
                    int num,
                    java.lang.String name)
             throws IloException

Creates and returns a named special ordered set (SOS) of type 2 from a number of elements, starting at the specified index, of the array of variables and weights.

See IloMPModeler.SOS2(IloNumVar[] var, double[] val, int start, int num, String name)

Specified by:
SOS2 in interface IloMPModeler
Parameters:
var - An array containing the variables in the new SOS.
val - An array containing the weight values for the variables in the new SOS.
start - The first element in var and val to use for the new SOS.
num - The number of consecutive elements in var and val to use for the new SOS.
name - The name of the new SOS.
Returns:
The new IloSOS2 object.
Throws:
IloException

column

public IloColumn column(IloRange rng,
                        double val)
                 throws IloException

Creates and returns a column from the specified range and value.

See IloMPModeler.column(IloRange rng, double val)

Specified by:
column in interface IloMPModeler
Parameters:
rng - The range constraint for which to create the column term.
val - The linear coefficient the new IloColumn will use for adding a new variable to rng.
Returns:
The new IloColumn object.
Throws:
IloException

columnArray

public IloColumnArray columnArray(IloRange rng,
                                  double[] val)
                           throws IloException

Creates and returns an array of columns from the specified range and array of values.

See IloMPModeler.columnArray(IloRange rng, double[] val)

Specified by:
columnArray in interface IloMPModeler
Parameters:
rng - The range constraint for which to create the column array term.
val - The linear coefficient the IloColumnArray will use for adding new variables to rng.
Returns:
The new IloColumnArray object.
Throws:
IloException

columnArray

public IloColumnArray columnArray(IloRange rng,
                                  double[] val,
                                  int start,
                                  int num)
                           throws IloException

Creates and returns an array of a number of columns, starting from the specified index of the range and corresponding array of values.

See IloMPModeler.columnArray(IloRange rng, double[] val, int start, int num)

Specified by:
columnArray in interface IloMPModeler
Parameters:
rng - The range constraint for which to create the column array term.
val - An array containing the linear coefficients the IloColumnArray will use for adding new variables to rng.
start - The first element in val to use.
num - The number of consecutive elements in val to use.
Returns:
The new IloColumnArray object.
Throws:
IloException

column

public IloColumn column(IloObjective obj,
                        double val)
                 throws IloException

Creates and returns a column from the specified objective and value.

See IloMPModeler.column(IloObjective obj, double val)

Specified by:
column in interface IloMPModeler
Parameters:
obj - The objective for which to create the column term.
val - The linear coefficient the new IloColumn will use for adding a new variable to obj.
Returns:
The new IloColumn object.
Throws:
IloException

columnArray

public IloColumnArray columnArray(IloObjective obj,
                                  double[] val)
                           throws IloException

Creates and returns an array of columns from the specified objective and array of values.

See IloMPModeler.columnArray(IloObjective obj, double[] val)

Specified by:
columnArray in interface IloMPModeler
Parameters:
obj - The objective for which to create the column array term.
val - The linear coefficients the IloColumnArray will use for adding new variables to obj.
Returns:
The new IloColumnArray object.
Throws:
IloException

columnArray

public IloColumnArray columnArray(IloObjective obj,
                                  double[] val,
                                  int start,
                                  int num)
                           throws IloException

Creates and returns an array of a number of columns, starting from the specified index, of the specified objective and the corresponding array of values.

See IloMPModeler.columnArray(IloObjective obj, double[] val, int start, int num)

Specified by:
columnArray in interface IloMPModeler
Parameters:
obj - The objective for which to create the column array term.
val - An array containing the linear coefficients the IloColumnArray will use for adding new variables to obj.
start - The first element in val to use.
num - The number of consecutive elements in val to use.
Returns:
The new IloColumnArray object.
Throws:
IloException

column

public IloColumn column(IloLPMatrix lp)
                 throws IloException

Creates and returns a column from an LP matrix.

See IloMPModeler.column(IloLPMatrix lp)

Specified by:
column in interface IloMPModeler
Parameters:
lp - The IloLPMatrix object for which to create the new column.
Returns:
The new IloColumn object.
Throws:
IloException

column

public IloColumn column(IloLPMatrix lp,
                        int[] ind,
                        double[] val)
                 throws IloException

Creates and returns a column from part of an LP matrix, using the specified indices and values.

See IloMPModeler.column(IloLPMatrix lp, int[] ind, double[] val)

Specified by:
column in interface IloMPModeler
Parameters:
lp - The IloLPMatrix object for which to create the new column.
ind - An array of indices indicating the row indices of the nonzeros in the new column. Indices may not occur multiple times in this list and must be in the range 0 through lp.getNcols()-1.
val - An array of values indicating the value of the nonzero entries for the column.
Returns:
An IloColumn object suitable for creating a new column in lp with nonzeros as specified by the arguments ind and val.
Throws:
IloException

column

public IloColumn column(IloLPMatrix lp,
                        int[] ind,
                        double[] val,
                        int start,
                        int num)
                 throws IloException

Creates and returns a column suitable for adding a number of variables to an LP matrix, using a number of the specified indices and values, starting from the specified index.

See IloMPModeler.column(IloLPMatrix lp, int[] ind, double[] val, int start, int num)

Specified by:
column in interface IloMPModeler
Parameters:
lp - The IloLPMatrix object for which to create the new column.
ind - An array containing the indices indicating the row indices of the nonzeros in the new column. Indices may not occur multiple times in this list and must be in the range 0 through lp.getNcols()-1.
val - An array containing values indicating the value of the nonzero entries for the column.
start - The index of the first element in arrays ind and val to use.
num - The number of consecutive elements in arrays ind and val to use.
Returns:
An IloColumn object suitable for creating a new column in lp with nonzeros as specified in arguments ind and val.
Throws:
IloException

columnArray

public IloColumnArray columnArray(IloLPMatrix lp,
                                  int num,
                                  int[][] ind,
                                  double[][] val)
                           throws IloException

Creates and returns an array of columns suitable for adding new variables as columns in an LP matrix.

See IloMPModeler.columnArray(IloLPMatrix lp, int num, int[][] ind, double[][] val)

Specified by:
columnArray in interface IloMPModeler
Parameters:
lp - The IloLPMatrix object for which to create the new column array term.
num - The size of the column array term to create or, equivalently, the number of consecutive elements in ind and val to use.
ind - An array of arrays of row indices of the nonzeros for each of the new columns. Indices may not occur multiple times within one column, and they must be in the range 0 through lp.getNcols()-1.
val - An array of arrays of values of the nonzeros for each of the new columns.
Returns:
An IloColumnArray object suitable for creating new columns in the LP matrix lp as specified by arguments ind and val.
Throws:
IloException

columnArray

public IloColumnArray columnArray(IloLPMatrix lp,
                                  int num)
                           throws IloException

Creates and returns an array of a number of columns from an LP matrix.

See IloMPModeler.columnArray(IloLPMatrix lp, int num)

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

delete

public void delete(IloCopyable obj)
            throws IloException

Deletes a copyable object.

See IloMPModeler.delete(IloCopyable obj)

Specified by:
delete in interface IloMPModeler
Parameters:
obj - The modeling object to be deleted from the invoking model.
Throws:
IloException

delete

public void delete(IloCopyable[] obj)
            throws IloException

Deletes an array of copyable objects.

See IloMPModeler.delete(IloCopyable[] obj)

Specified by:
delete in interface IloMPModeler
Parameters:
obj - The array of modeling objects to be deleted from the invoking model.
Throws:
IloException

delete

public void delete(IloCopyable[] obj,
                   int beg,
                   int num)
            throws IloException

Deletes a number of copyable objects, starting from the specified index, from an array of copyable objects.

See IloMPModeler.delete(IloCopyable[] obj, int beg, int num)

Specified by:
delete in interface IloMPModeler
Parameters:
obj - An array containing the modeling objects to be deleted from the invoking model.
beg - The index of the first modeling object in obj to be deleted from the invoking model.
num - The number of modeling objects in obj to be deleted from the invoking model.
Throws:
IloException

scalProd

public IloLinearNumExpr scalProd(int[] vals,
                                 IloNumVar[] vars,
                                 int start,
                                 int num)
                          throws IloException

Creates and returns a new linear expression representing the scalar product of the num values in vals starting at element start with the corresponding variables in vars.

Parameters:
vals - An array containing the values to use for building the scalar product.
vars - An array containing the variables to use for building the scalar product.
start - The index of the first element to use in vals and vars.
num - The number of elements to use in vals and vars.
Returns:
An expression representing the scalar product of the specified values and variables.
Throws:
IloException

scalProd

public IloLinearNumExpr scalProd(IloNumVar[] vars,
                                 int[] vals,
                                 int start,
                                 int num)
                          throws IloException

Creates and returns a new linear expression representing the scalar product of the num variables in vars starting at element start with the corresponding values in vals.

Parameters:
vars - An array containing the variables to use for building the scalar product.
vals - An array containing the values to use for building the scalar product.
start - The index of the first element to use in vals and vars.
num - The number of elements to use in vals and vars.
Returns:
An expression representing the scalar product of the specified values and variables.
Throws:
IloException

scalProd

public IloNumExpr scalProd(IloNumVar[] vars1,
                           IloNumVar[] vars2)
                    throws IloException

Creates and returns a linear expression representing the scalar product of the given variables.

Specified by:
scalProd in interface IloModeler
Parameters:
vars1 - The first array of variables involved in the new scalar product.
vars2 - The second array of variables involved in the new scalar * product.
Returns:
The new linear expression.
Throws:
IloException

scalProd

public IloNumExpr scalProd(IloNumVar[] vars1,
                           IloNumVar[] vars2,
                           int start,
                           int num)
                    throws IloException

Creates and returns a linear expression representing the scalar product of the given variables.

Specified by:
scalProd in interface IloModeler
Parameters:
vars1 - The first array of variables involved in the new scalar product.
vars2 - The second array of variables involved in the new scalar * product.
start - The index of the first element to use in the multiplication.
num - The number of elements to use in the multiplication, starting from the element indicated by start.
Returns:
The new linear expression.
Throws:
IloException

linearIntExpr

public IloLinearIntExpr linearIntExpr()
                               throws IloException

Creates and returns an integer linear expression initialized as 0 (zero).

See IloModeler.linearIntExpr()

Specified by:
linearIntExpr in interface IloModeler
Throws:
IloException

sum

public IloNumExpr sum(IloNumExpr[] expr,
                      int start,
                      int num)
               throws IloException

Creates and returns a numeric expression that is the sum of a number of expressions, starting from the specified index, of an array of numeric expressions.

See IloModeler.sum(IloNumExpr[] expr, int start, int num)

Specified by:
sum in interface IloModeler
Parameters:
expr - An array containing the expressions to be summed.
start - The first term in expr to be used.
num - The number of terms in expr to be used.
Returns:
An expression representing the sum of the specified terms.
Throws:
IloException

sum

public IloNumExpr sum(IloNumExpr[] expr)
               throws IloException

Creates and returns a numeric expression that is the sum of the elements in an array of numeric expressions.

See IloModeler.sum(IloNumExpr[] expr)

Specified by:
sum in interface IloModeler
Parameters:
expr - An array containing the terms to be summed.
Returns:
An expression representing the sum of the specified terms.
Throws:
IloException

sum

public IloIntExpr sum(IloIntExpr[] expr,
                      int start,
                      int num)
               throws IloException

Creates and returns an integer expression that is the sum of a number of expressions, starting from the specified index, of an array of integer expressions.

See IloModeler.sum(IloIntExpr[] expr, int start, int num)

Specified by:
sum in interface IloModeler
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.
Throws:
IloException

sum

public IloIntExpr sum(IloIntExpr[] expr)
               throws IloException

Creates and returns an integer expression that is the sum of the elements in an array of integer expressions.

See IloModeler.sum(IloIntExpr[] expr)

Specified by:
sum in interface IloModeler
Parameters:
expr - An array containing the expressions to be summed.
Returns:
An integer expression representing the sum of the specified expressions.
Throws:
IloException

LPMatrixIterator

public java.util.Iterator LPMatrixIterator()

Returns an iterator over all LP matrix objects in the active model.

Returns:
An iterator over all IloLPMatrix objects in the active model.

rangeIterator

public java.util.Iterator rangeIterator()

Returns an iterator over all ranges in the active model.

This iterator accounts only for the IloRange objects directly added to the active model and not the objects that may be in an instance of IloLPMatrix and have been added indirectly.

Returns:
An iterator over all IloRange objects in the active model.

conversionIterator

public java.util.Iterator conversionIterator()

Returns an iterator over all conversion objects in the active model.

Returns:
An iterator over all IloConversion objects in the active model.

SOS1iterator

public java.util.Iterator SOS1iterator()

Returns an iterator over all SOS1 objects in the active model.

Returns:
An iterator over all IloSOS1 objects in the active model.

SOS2iterator

public java.util.Iterator SOS2iterator()

Returns an iterator over all SOS2 objects in the active model.

Returns:
An iterator over all IloSOS2 objects in the active model.

getObjective

public IloObjective getObjective()

Returns the IloObjective object of the active model, or null if no IloObjective object is currently in the active model.

Returns:
The IloObjective object in the active model, or null if there is no IloObjective.

needCopy

public void needCopy(IloCopyManager.Check check)

makeCopy

public IloCopyable makeCopy(IloCopyManager copy)
                     throws IloException
Throws:
IloException