The CplexModeler type exposes the following members.

Methods

  NameDescription
Public methodAbs(IIntExpr)
Returns an expression representing the absolute value of its argument, the expression specified by expr.
Public methodAbs(INumExpr)
Returns an expression representing the absolute value of its argument, the expression specified by expr.
Public methodAdd(IAddable)
Adds object to the invoking model.
Public methodAdd(array<IAddable>[]()[][])
Adds the array of objects to the invoking model.
Public methodAdd(array<IAddable>[]()[][], Int32, Int32)
Adds part of the array of objects to the invoking model, starting with the index start and continuing to the number of objects specified by num.
Public methodAddEq(Double, INumExpr)
Creates and returns a range initialized to represent the equality of the specified value and expression.
Public methodAddEq(INumExpr, INumExpr)
Creates and returns a constraint initialized to represent the equality of the two specified expressions.
Public methodAddEq(INumExpr, Double)
Creates and returns a range initialized to represent the equality of the specified expression and value.
Public methodAddEq(Double, INumExpr, String)
Creates and returns a named range initialized to represent the equality of the specified value and expression.
Public methodAddEq(INumExpr, INumExpr, String)
Creates and returns a named constraint initialized to represent the equality of the two specified expressions.
Public methodAddEq(INumExpr, Double, String)
Creates and returns a named range initialized to represent the equality of the specified expression and value.
Public methodAddGe(Double, INumExpr)
Creates and returns a constraint that the specified value must be greater than or equal to the specified numeric expression.
Public methodAddGe(INumExpr, INumExpr)
Creates and returns a constraint that the first specified numeric expression must be greater than or equal to the second specified numeric expression.
Public methodAddGe(INumExpr, Double)
Creates and returns a range representing the constraint that the specified numeric expression must be greater than or equal to the specified value.
Public methodAddGe(Double, INumExpr, String)
Creates and returns a named constraint that the specified value must be greater than or equal to the specified numeric expression.
Public methodAddGe(INumExpr, INumExpr, String)
Creates and returns a named constraint that the first specified numeric expression must be greater than or equal to the second specified numeric expression.
Public methodAddGe(INumExpr, Double, String)
Creates and returns a range representing the constraint that the specified numeric expression must be greater than or equal to the specified value.
Public methodAddLe(Double, INumExpr)
Creates and returns a range forcing the specified value to be less than than or equal to the specified numeric expression.
Public methodAddLe(INumExpr, INumExpr)
Creates and returns a constraint forcing the first specified numeric expression to be less than than or equal to the second specified numeric expression.
Public methodAddLe(INumExpr, Double)
Creates and returns a range forcing the specified numeric expression to be less than than or equal to the specified value.
Public methodAddLe(Double, INumExpr, String)
Creates and returns a named range forcing the specified value to be less than than or equal to the specified numeric expression.
Public methodAddLe(INumExpr, INumExpr, String)
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.
Public methodAddLe(INumExpr, Double, String)
Creates and returns a named range forcing the specified numeric expression to be less than than or equal to the specified value.
Public methodAddLPMatrix()()()()
Creates, returns, and adds an empty LP matrix object to the invoking model.
Public methodAddLPMatrix(String)
Creates, returns, and adds an empty LP matrix object, with the specified name, to the invoking model.
Public methodAddMaximize()()()()
Creates and returns an empty objective function and adds it to the invoking model.
Public methodAddMaximize(String)
Creates and returns a named objective function and adds it to the invoking model.
Public methodAddMaximize(INumExpr)
Creates and returns an objective to maximize the expression and adds it to the invoking model.
Public methodAddMaximize(INumExpr, String)
Creates and returns a named objective function and adds it to the invoking model.
Public methodAddMinimize()()()()
Creates and returns an empty objective function and adds it to the invoking model.
Public methodAddMinimize(String)
Creates and returns a named objective function and adds it to the invoking model.
Public methodAddMinimize(INumExpr)
Creates and returns an objective to minimize the expression and adds it to the invoking model.
Public methodAddMinimize(INumExpr, String)
Creates and returns a named objective function and adds it to the invoking model.
Public methodAddObjective(ObjectiveSense)
Creates and returns an empty objective function with the specified sense and adds it to the invoking model.
Public methodAddObjective(ObjectiveSense, INumExpr)
Creates and returns an objective to optimize the expression in the specified sense and adds the objective to the invoking model.
Public methodAddObjective(ObjectiveSense, String)
Creates and returns a named objective function with the specified sense and adds it to the invoking model.
Public methodAddObjective(ObjectiveSense, INumExpr, String)
Creates and returns an objective to optimize the expression with respect to the sense and adds it to the invoking model.
Public methodAddRange(Double, Double)
Creates and returns an empty range object with the specified lower and upper bounds.
Public methodAddRange(Double, INumExpr, Double)
Creates, returns, and adds to the invoking model a range object with the specified expression as well as upper and lower bounds.
Public methodAddRange(Double, Double, String)
Creates and returns an empty range object with the specified name and specified lower and upper bounds.
Public methodAddRange(Double, INumExpr, Double, String)
Creates, returns, and adds to the invoking model a range object with the specified name, upper and lower bounds, and expression.
Public methodAddSOS1(array<INumVar>[]()[][], array<Double>[]()[][])
Creates a special ordered set (SOS) of type 1 with the specified variables and weights and adds it to the invoking model.
Public methodAddSOS1(array<INumVar>[]()[][], array<Double>[]()[][], String)
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.
Public methodAddSOS1(array<INumVar>[]()[][], array<Double>[]()[][], Int32, Int32)
Creates a special ordered set (SOS) of type 1 with the specified variables and weights and adds it to the invoking model.
Public methodAddSOS1(array<INumVar>[]()[][], array<Double>[]()[][], Int32, Int32, String)
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.
Public methodAddSOS2(array<INumVar>[]()[][], array<Double>[]()[][])
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.
Public methodAddSOS2(array<INumVar>[]()[][], array<Double>[]()[][], String)
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.
Public methodAddSOS2(array<INumVar>[]()[][], array<Double>[]()[][], Int32, Int32)
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.
Public methodAddSOS2(array<INumVar>[]()[][], array<Double>[]()[][], Int32, Int32, String)
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.
Public methodAddToExpr(IObjective, INumExpr)
Adds a numeric expression to an objective.
Public methodAddToExpr(IRange, INumExpr)
Adds the specified numeric expression to the specified range.
Public methodAnd()()()()
Groups constraints together.
Public methodAnd(array<IConstraint>[]()[][])
Groups constraints together.
Public methodAnd(IConstraint, IConstraint)
Groups together the constraints specified by its arguments.
Public methodAnd(array<IConstraint>[]()[][], String)
Groups constraints together.
Public methodAnd(IConstraint, IConstraint, String)
Groups together the constraints specified by its arguments and assigns the string name to the group.
Public methodAnd(array<IConstraint>[]()[][], Int32, Int32)
Groups together part of the constraints in the array cons starting with the index specified by start and continuing to the number of constraints specified by num.
Public methodAnd(array<IConstraint>[]()[][], Int32, Int32, String)
Groups together part of the constraints from the array cons starting with the index specified by start and continuing to the number of constraints specified by num.
Public methodBoolVar()()()()
Creates and returns a new Boolean variable (domain 0,1).
Public methodBoolVar(String)
Creates and returns a new Boolean variable (domain 0,1) with the specified name.
Public methodBoolVar(Column)
Creates and returns a Boolean variable (domain 0, 1) representing a column.
Public methodBoolVar(Column, String)
Creates and returns a Boolean variable (domain 0, 1) representing a column with a name.
Public methodBoolVarArray(Int32)
Creates and returns an array of n new Boolean variables (domain 0,1).
Public methodBoolVarArray(ColumnArray)
Creates and returns an array of Boolean variables (domain 0, 1) representing an array of columns.
Public methodBoolVarArray(Int32, array<String>[]()[][])
Creates and returns an array of n new Boolean variables (domain 0,1) each with an individually specified name.
Public methodBoolVarArray(ColumnArray, array<String>[]()[][])
Creates and returns an array of Boolean variables (domain 0, 1) representing an array of named columns.
Public methodColumn(ILPMatrix)
Creates and returns a column from an LP matrix.
Public methodColumn(IObjective, Double)
Creates and returns a column from the specified objective and value.
Public methodColumn(IRange, Double)
Creates and returns a column from the specified range and value.
Public methodColumn(ILPMatrix, array<Int32>[]()[][], array<Double>[]()[][])
Creates and returns a column from part of an LP matrix, using the specified indices and values.
Public methodColumn(ILPMatrix, array<Int32>[]()[][], array<Double>[]()[][], Int32, Int32)
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.
Public methodColumnArray(ILPMatrix, Int32)
Creates and returns an array of a number of columns from an LP matrix.
Public methodColumnArray(IObjective, array<Double>[]()[][])
Creates and returns an array of columns from the specified objective and array of values.
Public methodColumnArray(IRange, array<Double>[]()[][])
Creates and returns an array of columns from the specified range and array of values.
Public methodColumnArray(ILPMatrix, Int32, array<array<Int32>[]()[][]>[]()[][], array<array<Double>[]()[][]>[]()[][])
Creates and returns an array of columns suitable for adding new variables as columns in an LP matrix.
Public methodColumnArray(IObjective, array<Double>[]()[][], Int32, Int32)
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.
Public methodColumnArray(IRange, array<Double>[]()[][], Int32, Int32)
Creates and returns an array of a number of columns, starting from the specified index of the range and corresponding array of values.
Public methodConstant(Double)
Creates and returns an expression representing a constant term.
Public methodConstant(Int32)
Creates and returns an integer expression representing a constant integer value.
Public methodConversion(INumVar, NumVarType)
Converts a numeric variable to a specified type.
Public methodConversion(array<INumVar>[]()[][], NumVarType)
Converts an array of numeric variables to the specified type.
Public methodConversion(array<INumVar>[]()[][], array<NumVarType>[]()[][])
Converts an array of numeric variables to the corresponding specified types.
Public methodConversion(INumVar, NumVarType, String)
Converts a numeric variable to the specified type and names the converted variable.
Public methodConversion(array<INumVar>[]()[][], NumVarType, String)
Converts an array of numeric variables to the specified type and names the conversion object.
Public methodConversion(array<INumVar>[]()[][], array<NumVarType>[]()[][], String)
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.
Public methodDelete(ICopyable)
Deletes a copyable object.
Public methodDelete(array<ICopyable>[]()[][])
Deletes an array of copyable objects.
Public methodDelete(array<ICopyable>[]()[][], Int32, Int32)
Deletes a number of copyable objects, starting from the specified index, from an array of copyable objects.
Public methodDiff(Double, INumExpr)
Creates and returns a numeric expression representing the difference between a value and a numeric expression.
Public methodDiff(Int32, IIntExpr)
Creates and returns an expression representing the difference between a value and an integer expression.
Public methodDiff(IIntExpr, IIntExpr)
Creates and returns an expression representing the difference between two integer expressions.
Public methodDiff(IIntExpr, Int32)
Creates and returns an integer expression representing the difference between an integer expression and an integer value.
Public methodDiff(INumExpr, INumExpr)
Creates and returns a numeric expression representing the difference between two numeric expressions.
Public methodDiff(INumExpr, Double)
Creates and returns a numeric expression representing the difference between a numeric expression and a value.
Public methodEq(Double, INumExpr)
Creates and returns a range forcing the specified value to be equal to the specified numeric expression.
Public methodEq(INumExpr, INumExpr)
Creates and returns a constraint forcing the specified numeric expressions to be equal.
Public methodEq(INumExpr, Double)
Creates and returns a range forcing the specified numeric expression to be equal to the specified value.
Public methodEq(Double, INumExpr, String)
Creates and returns a named range forcing the specified value to be equal to the specified numeric expression.
Public methodEq(INumExpr, INumExpr, String)
Creates and returns a named constraint forcing the specified numeric expressions to be equal.
Public methodEq(INumExpr, Double, String)
Creates and returns a named range forcing the specified numeric expression to be equal to the specified value.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGe(Double, INumExpr)
Creates and returns a range that forces the specified value to be greater than or equal to the specified expression.
Public methodGe(INumExpr, INumExpr)
Creates and returns a constraint forcing the first specified numeric expression to be greater than or equal to the second specified numeric expression.
Public methodGe(INumExpr, Double)
Creates and returns a range forcing the specified numeric expression to be greater than or equal to the specified value.
Public methodGe(Double, INumExpr, String)
Creates and returns a named range that forces the specified value to be greater than or equal to the specified expression.
Public methodGe(INumExpr, INumExpr, String)
Creates and returns a named constraint forcing the first specified numeric expression to be greater than or equal to the second specified numeric expression.
Public methodGe(INumExpr, Double, String)
Creates and returns a named range forcing the specified numeric expression to be greater than or equal to the specified value.
Public methodGetConversionEnumerator
Returns an enumerator over all conversion objects in the active model.
Public methodGetEnumerator
Returns an enumerator suitable for the invoking model.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetLPMatrixEnumerator
Returns an enumerator over all LP matrix objects in the active model.
Public methodGetModel

Returns the active model.

Public methodGetName
Returns the name of the invoking model, if there is one.
Public methodGetObjective
Returns the IObjective object of the active model, or null if no IObjective object is currently in the active model.
Public methodGetRangeEnumerator
Returns an enumerator over all ranges in the active model.
Public methodGetSOS1Enumerator
Returns an enumerator over all SOS1 objects in the active model.
Public methodGetSOS2Enumerator
Returns an enumerator over all SOS2 objects in the active model.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIfThen(IConstraint, IConstraint)
Returns a constraint that if con1 is true, then con2 must also be true.
Public methodIfThen(IConstraint, IConstraint, String)
Returns a constraint that if con1 is true, then con2 must also be true.
Public methodIntExpr
Creates and returns an empty integer expression.
Public methodIntVar(Int32, Int32)
Creates and returns an integer variable with specified upper and lower bound.
Public methodIntVar(Int32, Int32, String)
Creates and returns an integer variable with specified upper bound, lower bound, and name.
Public methodIntVar(Column, Int32, Int32)
Creates and returns an integer variable representing a column with an integer lower and upper bound.
Public methodIntVar(Column, Int32, Int32, String)
Creates and returns an integer variable representing a column with an integer lower and upper bound as well as a name.
Public methodIntVarArray(Int32, Int32, Int32)
Creates and returns an array of integer variables with the same specified upper and lower bound.
Public methodIntVarArray(Int32, array<Int32>[]()[][], array<Int32>[]()[][])
Creates and returns an array of integer variables with individually specified upper and lower bounds.
Public methodIntVarArray(ColumnArray, Int32, Int32)
Creates and returns an array of integer variables representing an array of columns with an integer lower and upper bound.
Public methodIntVarArray(ColumnArray, array<Int32>[]()[][], array<Int32>[]()[][])
Creates and returns an array of integer variables representing an array of columns with individually specified integer lower and upper bounds.
Public methodIntVarArray(Int32, Int32, Int32, array<String>[]()[][])
Creates and returns an array of integer variables all with the same upper and lower bound, but individually specified names.
Public methodIntVarArray(Int32, array<Int32>[]()[][], array<Int32>[]()[][], array<String>[]()[][])
Creates and returns an array of integer variables each with individually specified upper bound, lower bound, and name.
Public methodIntVarArray(ColumnArray, Int32, Int32, array<String>[]()[][])
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.
Public methodIntVarArray(ColumnArray, array<Int32>[]()[][], array<Int32>[]()[][], array<String>[]()[][])
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.
Public methodLe(Double, INumExpr)
Creates and returns a range that forces the specified value to be less than or equal to the specified numeric expression.
Public methodLe(INumExpr, INumExpr)
Creates and returns a constraint that forces the first specified numeric expression to be less than or equal to the second specified numeric expression.
Public methodLe(INumExpr, Double)
Creates and returns a range that forces the specified numeric expression to be less than or equal to the specified value.
Public methodLe(Double, INumExpr, String)
Creates and returns a named range that forces the specified value to be less than or equal to the specified numeric expression.
Public methodLe(INumExpr, INumExpr, String)
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.
Public methodLe(INumExpr, Double, String)
Creates and returns a named range that forces the specified numeric expression to be less than or equal to the specified value.
Public methodLinearIntExpr()()()()
Creates and returns an integer linear expression initialized as 0 (zero).
Public methodLinearIntExpr(Int32)
Creates and returns an integer linear expression initialized as a constant.
Public methodLinearNumExpr()()()()
Creates and returns a zero-valued linear expression.
Public methodLinearNumExpr(Double)
Creates and returns a linear expression initialized as the constant.
Public methodLPMatrix()()()()
Creates and returns an empty LP matrix object.
Public methodLPMatrix(String)
Creates and returns an empty, named LP matrix object.
Public methodLqIntExpr
Creates and returns a zero-valued linear and quadratic expression.
Public methodLqNumExpr
Creates and returns a zero-valued linear and quadratic expression.
Public methodMax(array<IIntExpr>[]()[][])
Returns an expression representing the maximum of its argument, the elements of an array.
Public methodMax(array<INumExpr>[]()[][])
Returns an expression representing the maximum of its argument, the elements of an array.
Public methodMax(Double, INumExpr)
Returns an expression representing the maximum of its two arguments.
Public methodMax(Int32, IIntExpr)
Returns an expression representing the maximum of its two arguments.
Public methodMax(IIntExpr, IIntExpr)
Returns an expression representing the maximum of its two arguments.
Public methodMax(IIntExpr, Int32)
Returns an expression representing the maximum of its two arguments.
Public methodMax(INumExpr, INumExpr)
Returns an expression representing the maximum of its two arguments.
Public methodMax(INumExpr, Double)
Returns an expression representing the maximum of its two arguments.
Public methodMaximize()()()()
Creates and returns an empty maximization objective function.
Public methodMaximize(String)
Creates and returns a named empty maximization objective function.
Public methodMaximize(CplexMultiCriterionExpr)
Creates and returns an objective to maximize the multi-criterion expression.
Public methodMaximize(INumExpr)
Creates and returns an objective from an expression.
Public methodMaximize(CplexMultiCriterionExpr, String)
Creates and returns an objective to maximize the multi-criterion expression.
Public methodMaximize(INumExpr, String)
Creates and returns a named objective to minimize the expression.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodMin(array<IIntExpr>[]()[][])
Returns an expression representing the minimum of its argument, the elements of an array.
Public methodMin(array<INumExpr>[]()[][])
Returns an expression representing the minimum of its argument, the elements of an array.
Public methodMin(Double, INumExpr)
Returns an expression representing the minimum of its two arguments.
Public methodMin(Int32, IIntExpr)
Returns an expression representing the minimum of its two arguments.
Public methodMin(IIntExpr, IIntExpr)
Returns an expression representing the minimum of its two arguments.
Public methodMin(IIntExpr, Int32)
Returns an expression representing the minimum of its two arguments.
Public methodMin(INumExpr, INumExpr)
Returns an expression representing the minimum of its two arguments.
Public methodMin(INumExpr, Double)
Returns an expression representing the minimum of its two arguments.
Public methodMinimize()()()()
Creates and returns an empty minimization objective function.
Public methodMinimize(String)
Creates and returns a named empty minimization objective function.
Public methodMinimize(CplexMultiCriterionExpr)
Creates and returns an objective to minimize the multi-criterion expression.
Public methodMinimize(INumExpr)
Creates and returns an objective from an expression.
Public methodMinimize(CplexMultiCriterionExpr, String)
Creates and returns an objective to minimize the multi-criterion expression.
Public methodMinimize(INumExpr, String)
Creates and returns an objective to minimize the expression.
Public methodNegative(IIntExpr)
Creates and returns a new integer expression representing the negation of its argument.
Public methodNegative(INumExpr)
Creates and returns a new numeric expression which is the negation of the original expression.
Public methodNot(IConstraint)
Returns a constraint that is the logical negation of its argument.
Public methodNot(IConstraint, String)
Returns a constraint that is the logical negation of its argument and assigns the string name as the name of the returned constraint.
Public methodNumExpr
Creates and returns an empty expression.
Public methodNumVar(Double, Double)
Creates and returns a numeric variable with specified bounds.
Public methodNumVar(Double, Double, NumVarType)
Creates and returns a numeric variable with bounds and specified type.
Public methodNumVar(Double, Double, String)
Creates and returns a numeric variable with specified bounds and name.
Public methodNumVar(Column, Double, Double)
Creates and returns a numeric variable representing a column with a specified lower and upper bound.
Public methodNumVar(Double, Double, NumVarType, String)
Creates and returns a named numeric variable with bounds and specified type.
Public methodNumVar(Column, Double, Double, NumVarType)
Creates and returns a numeric variable representing a column with specified lower and upper bounds as well as type.
Public methodNumVar(Column, Double, Double, String)
Creates and returns a named numeric variable representing representing a column with a specified lower and upper bound.
Public methodNumVar(Column, Double, Double, NumVarType, String)
Creates and returns a named numeric variable representing a column with specified lower and upper bounds as well as type.
Public methodNumVarArray(Int32, Double, Double)
Creates an array of numeric variables, all with the same upper and lower bound.
Public methodNumVarArray(Int32, array<Double>[]()[][], array<Double>[]()[][])
Creates an array of numeric variables with individually specified upper and lower bounds.
Public methodNumVarArray(ColumnArray, Double, Double)
Creates and returns an array of numeric variables representing an array of columns with a specified lower and upper bound.
Public methodNumVarArray(ColumnArray, array<Double>[]()[][], array<Double>[]()[][])
Creates and returns an array of numeric variables representing an array of columns with individually specified lower and upper bounds.
Public methodNumVarArray(Int32, Double, Double, NumVarType)
Creates and returns an array of numeric variables, all with same specified bounds, all of the same type.
Public methodNumVarArray(Int32, Double, Double, array<String>[]()[][])
Creates an array of numeric variables, all with the same upper and lower bound, but with individually specified names.
Public methodNumVarArray(Int32, array<Double>[]()[][], array<Double>[]()[][], array<NumVarType>[]()[][])
Creates and returns an array of numeric variables with individual bounds and types.
Public methodNumVarArray(Int32, array<Double>[]()[][], array<Double>[]()[][], array<String>[]()[][])
Creates an array of numeric variables, each with individually specified upper bound, lower bound, and name.
Public methodNumVarArray(ColumnArray, Double, Double, NumVarType)
Creates and returns an array of numeric variables representing an array of columns with specified lower and upper bounds as well as type.
Public methodNumVarArray(ColumnArray, Double, Double, array<String>[]()[][])
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.
Public methodNumVarArray(ColumnArray, array<Double>[]()[][], array<Double>[]()[][], array<NumVarType>[]()[][])
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.
Public methodNumVarArray(ColumnArray, array<Double>[]()[][], array<Double>[]()[][], array<String>[]()[][])
Creates and returns an array of numeric variables representing an array of columns with individually specified lower and upper bounds as well as names.
Public methodNumVarArray(Int32, Double, Double, NumVarType, array<String>[]()[][])
Creates and returns an array of numeric variables, all with same specified bounds, all with same type, and individual names.
Public methodNumVarArray(Int32, array<Double>[]()[][], array<Double>[]()[][], array<NumVarType>[]()[][], array<String>[]()[][])
Creates and returns an array of numeric variables, all with individual specified bounds, types, and names.
Public methodNumVarArray(ColumnArray, Double, Double, NumVarType, array<String>[]()[][])
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.
Public methodNumVarArray(ColumnArray, array<Double>[]()[][], array<Double>[]()[][], array<NumVarType>[]()[][], array<String>[]()[][])
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.
Public methodObjective(ObjectiveSense)
Creates and returns an empty objective function with the specified sense.
Public methodObjective(ObjectiveSense, INumExpr)
Creates and returns an objective from an expression to optimize in the specified sense.
Public methodObjective(ObjectiveSense, String)
Creates and returns a named, empty objective function with the specified sense.
Public methodObjective(ObjectiveSense, INumExpr, String)
Creates and returns a named objective with a sense (maximize or minimize).
Public methodOr()()()()
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.
Public methodOr(array<IConstraint>[]()[][])
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.
Public methodOr(IConstraint, IConstraint)
Returns a constraint that at least one and possibly both of its arguments are true.
Public methodOr(array<IConstraint>[]()[][], String)
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.
Public methodOr(IConstraint, IConstraint, String)
Returns a constraint that at least one and possibly both of its arguments are true.
Public methodOr(array<IConstraint>[]()[][], Int32, Int32)
Returns a constraint that at least one and possibly more than one of the elements is true in the range of indices starting at the index specified by start and continuing through the number of elements specified by the number num among the elements of its argument cons, an array of constraints.
Public methodOr(array<IConstraint>[]()[][], Int32, Int32, String)
Returns a constraint that at least one and possibly more than one of the elements is true in the range of indices starting at the index specified by start and continuing through the number of elements specified by the number num among the elements of its argument cons, an array of constraints; also assigns the string name as the name of the returned constraint.
Public methodPiecewiseLinear(INumExpr, Double, array<Double>[]()[][], array<Double>[]()[][], Double)
Creates and returns a numeric expression representing a piecewise linear function.
Public methodPiecewiseLinear(INumExpr, array<Double>[]()[][], array<Double>[]()[][], Double, Double)
Creates and returns a numeric expression representing a piecewise linear function.
Public methodPiecewiseLinear(INumExpr, Double, array<Double>[]()[][], Int32, Int32, array<Double>[]()[][], Int32, Double)
Creates and returns a numeric expression representing a piecewise linear function.
Public methodPiecewiseLinear(INumExpr, array<Double>[]()[][], Int32, Int32, array<Double>[]()[][], Int32, Double, Double)
Creates and returns a numeric expression representing a piecewise linear function.
Public methodProd(Double, INumExpr)
Creates and returns an expression representing the product of a value and a numeric expression.
Public methodProd(Int32, IIntExpr)
Creates and returns an integer expression representing the product of a value and an integer expression.
Public methodProd(IIntExpr, IIntExpr)
Creates and returns an expression representing the product of two integer expressions.
Public methodProd(IIntExpr, Int32)
Creates and returns an expression representing the product of an integer expression and a value.
Public methodProd(INumExpr, INumExpr)
Creates and returns an expression representing the product of two numeric expressions.
Public methodProd(INumExpr, Double)
Creates and returns an expression representing the product of a numeric expression and a value.
Public methodProd(Double, INumVar, INumVar)
Creates and returns an expression representing the product of a value and two numeric variables.
Public methodProd(INumVar, INumVar, Double)
Creates and returns an expression representing the product of two numeric variables and a value.
Public methodProd(INumVar, Double, INumVar)
Creates and returns an expression representing the product of a numeric variable, a value, and another numeric variable.
Public methodQuadIntExpr
Creates and returns a zero-valued quadratic integer expression.
Public methodQuadNumExpr
Creates and returns a zero-valued quadratic expression.
Public methodRange(Double, Double)
Creates and returns a range with the specified lower and upper bound.
Public methodRange(Double, INumExpr, Double)
Creates and returns a range with the specified lower bound, numeric expression, and upper bound.
Public methodRange(Double, Double, String)
Creates and returns a named range with the specified lower and upper bound.
Public methodRange(Double, INumExpr, Double, String)
Creates and returns a named range with the specified lower bound, numeric expression, and upper bound.
Public methodRemove(IAddable)
Removes object from the invoking model.
Public methodRemove(array<IAddable>[]()[][])
Removes the array of objects from the invoking model.
Public methodRemove(array<IAddable>[]()[][], Int32, Int32)
Removes part of the array of objects from the invoking model, starting with the index start and continuing to the number of objects specified by num.
Public methodScalProd(array<Double>[]()[][], array<INumVar>[]()[][])
Creates and returns a linear expression representing the scalar product of the provided values with the provided variables.
Public methodScalProd(array<Int32>[]()[][], array<IIntVar>[]()[][])
Creates and returns a linear integer expression representing the scalar product of the provided integer values and integer variables.
Public methodScalProd(array<Int32>[]()[][], array<INumVar>[]()[][])
Creates and returns a linear expression representing the scalar product of the integer values and numeric variables provided.
Public methodScalProd(array<IIntVar>[]()[][], array<IIntVar>[]()[][])
Creates and returns a linear expression representing the scalar product of the given variables.
Public methodScalProd(array<IIntVar>[]()[][], array<Int32>[]()[][])
Creates and returns a linear integer expression representing the scalar product of the provided integer variables and integer values.
Public methodScalProd(array<INumVar>[]()[][], array<INumVar>[]()[][])
Creates and returns a linear expression representing the scalar product of the given variables.
Public methodScalProd(array<INumVar>[]()[][], array<Double>[]()[][])
Creates and returns a linear expression representing the scalar product of the provided variables with the provided values.
Public methodScalProd(array<INumVar>[]()[][], array<Int32>[]()[][])
Creates and returns a linear expression representing the scalar product of the numeric variables and integer values provided.
Public methodScalProd(array<Double>[]()[][], array<INumVar>[]()[][], Int32, Int32)
Creates and returns a linear expression representing the scalar product of the values and variables provided in the specified range of indices.
Public methodScalProd(array<Int32>[]()[][], array<IIntVar>[]()[][], Int32, Int32)
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.
Public methodScalProd(array<Int32>[]()[][], array<INumVar>[]()[][], Int32, Int32)
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.
Public methodScalProd(array<IIntVar>[]()[][], array<IIntVar>[]()[][], Int32, Int32)
Creates and returns a linear expression representing the scalar product of the given variables.
Public methodScalProd(array<IIntVar>[]()[][], array<Int32>[]()[][], Int32, Int32)
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.
Public methodScalProd(array<INumVar>[]()[][], array<INumVar>[]()[][], Int32, Int32)
Creates and returns a linear expression representing the scalar product of the given variables.
Public methodScalProd(array<INumVar>[]()[][], array<Double>[]()[][], Int32, Int32)
Creates and returns a linear expression representing the scalar product of the variables and values provided in the specified range of indices.
Public methodScalProd(array<INumVar>[]()[][], array<Int32>[]()[][], Int32, Int32)
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.
Public methodSemiContVar(Double, Double, NumVarType)
Creates and returns a semi-continuous variable with a specified lower and upper bound and of a specified type.
Public methodSemiContVar(Double, Double, NumVarType, String)
Creates and returns a named semi-continuous variable with a specified lower and upper bound and of a specified type.
Public methodSemiContVar(Column, Double, Double, NumVarType)
Creates and returns a semicontinuous variable with a specified lower and upper bound and of a specified type, representing a column.
Public methodSemiContVar(Column, Double, Double, NumVarType, String)
Creates and returns a named semi-continuous variable with a specified lower and upper bound and of a specified type, representing a column.
Public methodSemiContVarArray(Int32, Double, Double, NumVarType)
Creates and returns an array of semi-continuous variables with a specified lower and upper bound and of a specified type.
Public methodSemiContVarArray(Int32, array<Double>[]()[][], array<Double>[]()[][], array<NumVarType>[]()[][])
Creates and returns an array of semi-continuous variables with individually specified lower and upper bounds and individually specified types.
Public methodSemiContVarArray(ColumnArray, Double, Double, NumVarType)
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.
Public methodSemiContVarArray(ColumnArray, array<Double>[]()[][], array<Double>[]()[][], array<NumVarType>[]()[][])
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.
Public methodSemiContVarArray(Int32, Double, Double, NumVarType, array<String>[]()[][])
Creates and returns an array of individually named semi-continuous variables with a specified lower and upper bound and of a specified type.
Public methodSemiContVarArray(Int32, array<Double>[]()[][], array<Double>[]()[][], array<NumVarType>[]()[][], array<String>[]()[][])
Creates and returns an array of individually named semi-continuous variables with individually specified lower and upper bounds and individually specified types.
Public methodSemiContVarArray(ColumnArray, Double, Double, NumVarType, array<String>[]()[][])
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.
Public methodSemiContVarArray(ColumnArray, array<Double>[]()[][], array<Double>[]()[][], array<NumVarType>[]()[][], array<String>[]()[][])
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.
Public methodSetLinearCoef(IObjective, INumVar, Double)
Sets a value as the linear coefficient of the variable in the objective.
Public methodSetLinearCoef(IObjective, Double, INumVar)
Sets a value as the linear coefficient of the variable in the objective.
Public methodSetLinearCoef(IRange, INumVar, Double)
Sets the specified value as the linear coefficient of the specified variable in the specified range.
Public methodSetLinearCoef(IRange, Double, INumVar)
Sets the specified value as the linear coefficient of the specified variable in the specified range.
Public methodSetLinearCoefs(IObjective, array<INumVar>[]()[][], array<Double>[]()[][])
Sets an array of values as the corresponding linear coefficients of an array of variables in the objective.
Public methodSetLinearCoefs(IObjective, array<Double>[]()[][], array<INumVar>[]()[][])
Sets an array of values as the corresponding linear coefficients of an array of variables in the objective.
Public methodSetLinearCoefs(IRange, array<INumVar>[]()[][], array<Double>[]()[][])
Sets the array of specified values as the linear coefficients of the specified array of variables in the specified range.
Public methodSetLinearCoefs(IRange, array<Double>[]()[][], array<INumVar>[]()[][])
Sets the array of specified values as the linear coefficients of the specified array of variables in the specified range.
Public methodSetLinearCoefs(IObjective, array<INumVar>[]()[][], array<Double>[]()[][], Int32, Int32)
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.
Public methodSetLinearCoefs(IObjective, array<Double>[]()[][], array<INumVar>[]()[][], Int32, Int32)
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.
Public methodSetLinearCoefs(IRange, array<INumVar>[]()[][], array<Double>[]()[][], Int32, Int32)
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.
Public methodSetLinearCoefs(IRange, array<Double>[]()[][], array<INumVar>[]()[][], Int32, Int32)
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.
Public methodSetModel
Sets model as the active model.
Public methodSetName
Sets str as the name of the invoking model.
Public methodSetQuadCoef(IObjective, INumVar, INumVar, Double)
Sets quadratic coefficient for variable var1*var2 to val in the expression of the specified IObjective object.
Public methodSetQuadCoef(IObjective, Double, INumVar, INumVar)
Sets the quadratic coefficient for the variable var1*var2 to val in the expression of the specified IObjective object.
Public methodSOS1(array<INumVar>[]()[][], array<Double>[]()[][])
Creates and returns a special ordered set (SOS) of type 1 from the specified array of variables and weights.
Public methodSOS1(array<INumVar>[]()[][], array<Double>[]()[][], String)
Creates and returns a named special ordered set (SOS) of type 1 from the specified array of variables and weights.
Public methodSOS1(array<INumVar>[]()[][], array<Double>[]()[][], Int32, Int32)
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.
Public methodSOS1(array<INumVar>[]()[][], array<Double>[]()[][], Int32, Int32, String)
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.
Public methodSOS2(array<INumVar>[]()[][], array<Double>[]()[][])
Creates and returns a special ordered set (SOS) of type 2 from the specified array of variables and weights.
Public methodSOS2(array<INumVar>[]()[][], array<Double>[]()[][], String)
Creates and returns a named special ordered set (SOS) of type 2 from the specified array of variables and weights.
Public methodSOS2(array<INumVar>[]()[][], array<Double>[]()[][], Int32, Int32)
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.
Public methodSOS2(array<INumVar>[]()[][], array<Double>[]()[][], Int32, Int32, String)
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.
Public methodSquare(IIntExpr)
Creates and returns an integer expression representing the square of an integer expression.
Public methodSquare(INumExpr)
Creates and returns an expression representing the square of a numeric expression.
Public methodSum(array<IIntExpr>[]()[][])
Creates and returns an integer expression that is the sum of the elements in an array of integer expressions.
Public methodSum(array<INumExpr>[]()[][])
Creates and returns a numeric expression that is the sum of the elements in an array of numeric expressions.
Public methodSum(Double, INumExpr)
Creates and returns a numeric expression representing the sum of a value and a numeric expression.
Public methodSum(Int32, IIntExpr)
Creates and returns an integer expression representing the sum of a value and an integer expression.
Public methodSum(IIntExpr, IIntExpr)
Creates and returns an integer expression representing the sum of two integer expressions.
Public methodSum(IIntExpr, Int32)
Creates and returns an integer expression representing the sum of an integer expression and a value.
Public methodSum(INumExpr, INumExpr)
Creates and returns an expression representing the sum of two numeric expressions.
Public methodSum(INumExpr, Double)
Creates and returns an expression representing the sum of a numeric expression and a value.
Public methodSum(IIntExpr, IIntExpr, IIntExpr)
Creates and returns an integer expression representing the sum of three integer expressions.
Public methodSum(array<IIntExpr>[]()[][], Int32, Int32)
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.
Public methodSum(INumExpr, INumExpr, INumExpr)
Creates and returns a numeric expression representing the sum of three numeric expressions.
Public methodSum(array<INumExpr>[]()[][], Int32, Int32)
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.
Public methodSum(IIntExpr, IIntExpr, IIntExpr, IIntExpr)
Creates and returns an integer expression representing the sum of four integer expressions.
Public methodSum(INumExpr, INumExpr, INumExpr, INumExpr)
Creates and returns a numeric expression representing the sum of four numeric expressions.
Public methodSum(IIntExpr, IIntExpr, IIntExpr, IIntExpr, IIntExpr)
Creates and returns an integer expression representing the sum of five integer expressions.
Public methodSum(INumExpr, INumExpr, INumExpr, INumExpr, INumExpr)
Creates and returns a numeric expression representing the sum of five numeric expressions.
Public methodSum(IIntExpr, IIntExpr, IIntExpr, IIntExpr, IIntExpr, IIntExpr)
Creates and returns an integer expression representing the sum of six integer expressions.
Public methodSum(INumExpr, INumExpr, INumExpr, INumExpr, INumExpr, INumExpr)
Creates and returns a numeric expression representing the sum of six numeric expressions.
Public methodSum(IIntExpr, IIntExpr, IIntExpr, IIntExpr, IIntExpr, IIntExpr, IIntExpr)
Creates and returns an integer expression representing the sum of seven integer expressions.
Public methodSum(INumExpr, INumExpr, INumExpr, INumExpr, INumExpr, INumExpr, INumExpr)
Creates and returns a numeric expression representing the sum of seven numeric expressions.
Public methodSum(IIntExpr, IIntExpr, IIntExpr, IIntExpr, IIntExpr, IIntExpr, IIntExpr, IIntExpr)
Creates and returns an integer expression representing the sum of eight integer expressions.
Public methodSum(INumExpr, INumExpr, INumExpr, INumExpr, INumExpr, INumExpr, INumExpr, INumExpr)
Creates and returns a numeric expression representing the sum of eight numeric expressions.
Public methodToString (Overrides Object..::..ToString()()()().)

See Also