The IModeler type exposes the following members.

Methods

  Name Description
Public method Abs
Creates and returns the new expression abs(e).
Public method Add(IAddable)
This method adds the extractable object to the invoking model.
(Inherited from IModel.)
Public method Add(array<IAddable>[]()[][])
This method adds the array of extractable objects to the invoking model.
(Inherited from IModel.)
Public method Add(array<IAddable>[]()[][], Int32, Int32)
This method adds modeling objects to the invoking IModel.
(Inherited from IModel.)
Public method AddEq(Double, INumExpr)
Creates and returns an instance of IRange initialized to represent the constraint val == expr and added to the invoking instance of IModel.
Public method AddEq(INumExpr, INumExpr)
Creates and returns an instance of IConstraint initialized to represent the constraint e1 == e2, and added to the invoking instance of IModel.
Public method AddEq(INumExpr, Double)
Creates and returns an instance of IRange initialized to represent the constraint expr == rhs, and added to the invoking IModel.
Public method AddEq(Double, INumExpr, String)
Creates and returns an instance of IRange initialized to represent the constraint val == expr and added to the invoking instance of IModel.
Public method AddEq(INumExpr, INumExpr, String)
Creates and returns an instance of IConstraint initialized to represent the constraint e1 == e2, and added to the invoking instance of IModel.
Public method AddEq(INumExpr, Double, String)
Creates and returns an instance of IRange initialized to represent the constraint expr == rhs, and added to the invoking instance of IModel.
Public method AddGe(Double, INumExpr)
Creates and returns an instance of IRange initialized to represent the constraint val >= expr and added to the invoking instance of IModel.
Public method AddGe(INumExpr, INumExpr)
Creates and returns an instance of IConstraint initialized to represent the constraint e1 >= e2 and added to the invoking instance of IModel.
Public method AddGe(INumExpr, Double)
Creates and returns an instance of IRange initialized to represent the constraint expr >= rhs and added to the invoking instance of IModel.
Public method AddGe(Double, INumExpr, String)
Creates and returns an instance of IRange initialized to represent the constraint val >= expr and added to the invoking instance of IModel.
Public method AddGe(INumExpr, INumExpr, String)
Creates and returns an instance of IConstraint initialized to represent the constraint e1 >= e2 and added to the invoking instance of IModel.
Public method AddGe(INumExpr, Double, String)
Creates and returns an instance of IRange initialized to represent the constraint expr >= rhs and added to the invoking instance of IModel.
Public method AddLe(Double, INumExpr)
Creates and returns an instance of IRange initialized to represent the constraint val <= expr and added to the invoking instance of IModel.
Public method AddLe(INumExpr, INumExpr)
Creates and returns an instance of IConstraint initialized to represent the constraint e1 <= e2, and added to the invoking instance of IModel.
Public method AddLe(INumExpr, Double)
Creates and returns an instance of IRange initialized to represent the constraint expr <= rhs and added to the invoking instance of IModel.
Public method AddLe(Double, INumExpr, String)
Creates and returns an instance of IRange initialized to represent the constraint val <= expr and added to the invoking instance of IModel.
Public method AddLe(INumExpr, INumExpr, String)
Creates and returns an instance of IConstraint initialized to represent the constraint e1 <= e2 and added to the invoking instance of IModel.
Public method AddLe(INumExpr, Double, String)
Creates and returns an instance of IRange initialized to represent the constraint expr <= rhs and added to the invoking instance of IModel.
Public method AddMaximize(INumExpr)
Creates and returns an instance of IObjective representing an objective to maximize the expression expr and added to the invoking model.
Public method AddMaximize(INumExpr, String)
Creates and returns an instance of IObjective, representing an objective to maximize the expression expr, assigned the name name, and added to the invoking model.
Public method AddMinimize(INumExpr)
Creates and returns an instance of IObjective representing an objective to minimize the expression expr and added to the invoking model.
Public method AddMinimize(INumExpr, String)
Creates and returns an instance of IObjective representing an objective to minimize the expression expr, assigned the name name, and added to the invoking model.
Public method AddObjective(ObjectiveSense, INumExpr)
Creates and returns an instance of IObjective representing an objective to optimize the expression expr with respect to the optimization sense indicated by sense and added to the invoking model.
Public method AddObjective(ObjectiveSense, INumExpr, String)
Creates and returns an instance of IObjective representing an objective to optimize the expression expr with respect to the optimization sense indicated by sense, assigned the name name, and added to the invoking model.
Public method AddRange(Double, INumExpr, Double)
Creates and returns an instance of IRange initialized to represent the constraint lb <= expr <= ub and added to the invoking instance of lb <= expr <= ub.
Public method AddRange(Double, INumExpr, Double, String)
Creates and returns an instance of IRange initialized to represent the constraint lb <= expr <= ub and added to the invoking instance of IModel.
Public method And()()()()
Creates an IAnd constraint suitable for grouping other constraints or building logical constraints. Constraints can be added and removed to the IAnd constraint by using its methods Add and Remove.
Public method And(array<IConstraint>[]()[][])
Groups several constraints together.
Public method And(IConstraint, IConstraint)
Group several constraints together.
Public method And(array<IConstraint>[]()[][], String)
Groups several constraints together.
Public method And(IConstraint, IConstraint, String)
Group several constraints together.
Public method And(array<IConstraint>[]()[][], Int32, Int32)
Groups several constraints together.
Public method And(array<IConstraint>[]()[][], Int32, Int32, String)
Groups several constraints together.
Public method BoolVar()()()()
Creates and returns a new Boolean variable (domain 0,1).
Public method BoolVar(String)
Creates and returns a new Boolean variable (domain 0,1) with its name.
Public method BoolVarArray(Int32)
Creates and returns an array of n new Boolean variables (domain 0,1).
Public method BoolVarArray(Int32, array<String>[]()[][])
Creates and returns an array of n new Boolean variables (domain 0,1).
Public method Constant(Double)
Creates and returns an expression representing the constant term x.
Public method Constant(Int32)
Creates and returns a new constant expression equal to x.
Public method Diff(Double, INumExpr)
Creates and returns an expression representing the difference between the value v and the expression e1.
Public method Diff(Int32, IIntExpr)
Creates and returns an integer expression representing the difference between the value v and the integer expression e1.
Public method Diff(IIntExpr, IIntExpr)
Creates and returns an integer expression representing the difference between the integer expressions expr1 and expr2.
Public method Diff(IIntExpr, Int32)
Creates and returns an integer expression representing the difference between integer expression e and value v.
Public method Diff(INumExpr, INumExpr)
Creates and returns an expression representing the difference between the expressions e1 and e2.
Public method Diff(INumExpr, Double)
Creates and returns an expression representing the difference between expression e and value v.
Public method Eq(Double, INumExpr)
Creates and returns an instance of IRange initialized to represent the constraint val == expr.
Public method Eq(INumExpr, INumExpr)
Creates and returns an instance of IConstraint initialized to represent the constraint e1 == e2.
Public method Eq(INumExpr, Double)
Creates and returns an instance of IRange initialized to represent the constraint expr == rhs.
Public method Eq(Double, INumExpr, String)
Creates and returns an instance of IRange initialized to represent the constraint val == expr and assigned the name name.
Public method Eq(INumExpr, INumExpr, String)
Creates and returns an instance of IConstraint initialized to represent the constraint e1 == e2 and assigned the name name.
Public method Eq(INumExpr, Double, String)
Creates and returns an instance of IRange initialized to represent the constraint expr == rhs and assigned the name name.
Public method Ge(Double, INumExpr)
Creates and returns an instance of IRange initialized to represent the constraint val >= expr.
Public method Ge(INumExpr, INumExpr)
Creates and returns an IRange initialized to represent the constraint e1 >= e2.
Public method Ge(INumExpr, Double)
Creates and returns an instance of IRange initialized to represent the constraint expr >= rhs.
Public method Ge(Double, INumExpr, String)
Creates and returns an instance of IRange initialized to represent the constraint val >= expr and assigned the name name.
Public method Ge(INumExpr, INumExpr, String)
Creates and returns an instance of IConstraint initialized to represent the constraint e1 >= e2 and assigned the name name.
Public method Ge(INumExpr, Double, String)
Creates and returns an instance of IRange initialized to represent the constraint expr >= rhs and assigned the name name.
Public method GetEnumerator
This method returns an enumerator that traverses the objects in the model.
(Inherited from IModel.)
Public method IfThen(IConstraint, IConstraint)
Returns a constraint that if con1 is true, then con2 must also be true.
Public method IfThen(IConstraint, IConstraint, String)
Returns a constraint that if con1 is true, then con2 must also be true.
Public method IntExpr
Creates and returns an empty expression as an object.
Public method IntVar(Int32, Int32)
Creates and returns a new integer variable with the specified bounds.
Public method IntVar(Int32, Int32, String)
Creates and returns a new integer variable with the specified bounds and a name.
Public method IntVarArray(Int32, Int32, Int32)
Returns a new array of n integer variables with the specified bounds.
Public method IntVarArray(Int32, array<Int32>[]()[][], array<Int32>[]()[][])
Creates an array of length n initialized to n new integer variables, each variable with its own bounds.
Public method IntVarArray(Int32, Int32, Int32, array<String>[]()[][])
Creates an array of length n initialized to n new modeling integer variables, each with the same specified bounds and returns them in an array.
Public method IntVarArray(Int32, array<Int32>[]()[][], array<Int32>[]()[][], array<String>[]()[][])
Creates an array of length n initialized to n new integer variables, each variable with its own bounds.
Public method Le(Double, INumExpr)
Creates and returns an instance of IRange initialized to represent the constraint val <= expr.
Public method Le(INumExpr, INumExpr)
Creates and returns an instance of IConstraint initialized to represent the constraint e1 <= e2.
Public method Le(INumExpr, Double)
Creates and returns an instance of IRange initialized to represent the constraint expr <= rhs.
Public method Le(Double, INumExpr, String)
Creates and returns an instance of IRange initialized to represent the constraint val <= expr and assigned the name name.
Public method Le(INumExpr, INumExpr, String)
Creates and returns an instance of IConstraint initialized to represent the constraint e1 <= e2 and assigned the name name.
Public method Le(INumExpr, Double, String)
Creates and returns an instance of IRange initialized to represent the constraint expr <= rhs and assigned the name name.
Public method LinearIntExpr()()()()
Creates and returns a zero integer linear expression.
Public method LinearIntExpr(Int32)
Creates and returns an integer linear expression initialized as a constant.
Public method LinearNumExpr()()()()
Creates and returns a zero linear expression.
Public method LinearNumExpr(Double)
Creates and returns a linear expression initialized as the constant.
Public method MakeClone
This method must be implemented so that it copies the invoking object to the engine of the given copy manager using the copy manager.
(Inherited from ICopyable.)
Public method Max(array<IIntExpr>[]()[][])
Creates and returns the new expression max(e).
Public method Max(array<INumExpr>[]()[][])
Creates and returns the new expression max(e).
Public method Max(Double, INumExpr)
Creates and returns the new expression max(val, e2).
Public method Max(Int32, IIntExpr)
Creates and returns the new expression max(val, e2).
Public method Max(IIntExpr, IIntExpr)
Creates and returns the new expression max(e1, e2).
Public method Max(IIntExpr, Int32)
Creates and returns the new expression max(e1, val).
Public method Max(INumExpr, INumExpr)
Creates and returns the new expression max(e1, e2).
Public method Max(INumExpr, Double)
Creates and returns the new expression max(e1, val).
Public method Maximize(INumExpr)
Creates and returns an instance of IObjective representing an objective to maximize the expression expr.
Public method Maximize(INumExpr, String)
Creates and returns an instance of IObjective representing an objective to maximize the expression expr and assigned the name name.
Public method Min(array<IIntExpr>[]()[][])
Creates and returns the new expression min(e).
Public method Min(array<INumExpr>[]()[][])
Creates and returns the new expression min(e).
Public method Min(Double, INumExpr)
Creates and returns the new expression min(val, e2).
Public method Min(Int32, IIntExpr)
Creates and returns the new expression min(val, e2).
Public method Min(IIntExpr, IIntExpr)
Creates and returns the new expression min(e1, e2).
Public method Min(IIntExpr, Int32)
Creates and returns the new expression min(e1, val).
Public method Min(INumExpr, INumExpr)
Creates and returns the new expression min(e1, e2).
Public method Min(INumExpr, Double)
Creates and returns the new expression min(e1, val).
Public method Minimize(INumExpr)
Creates and returns an instance of IObjective representing an objective to minimize the expression expr.
Public method Minimize(INumExpr, String)
Creates and returns an instance of IObjective representing an objective to minimize the expression expr and assigned the name name.
Public method Negative(IIntExpr)
Creates and returns the new expression -e, the negation of the expression e.
Public method Negative(INumExpr)
Creates and returns the new expression -e, the negation of the expression e.
Public method Not(IConstraint)
Returns a constraint that is the logical negation of its argument.
Public method Not(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 method NumExpr
Creates and returns an empty expression.
Public method NumVar(Double, Double)
Creates a new modeling variable object of the type NumVarType.Float.
Public method NumVar(Double, Double, NumVarType)
Creates a new numeric variable object.
Public method NumVar(Double, Double, String)
Creates a new modeling variable of the type NumVarType.Float.
Public method NumVar(Double, Double, NumVarType, String)
Creates a new modeling variable object.
Public method NumVarArray(Int32, Double, Double)
Creates an array of length n initialized to n new modeling variables of the type NumVarType.Float.
Public method NumVarArray(Int32, array<Double>[]()[][], array<Double>[]()[][])
Creates an array of length n initialized to n new modeling variables of type NumVarType.Float.
Public method NumVarArray(Int32, Double, Double, NumVarType)
Creates n new numeric variable objects and returns them in an array.
Public method NumVarArray(Int32, Double, Double, array<String>[]()[][])
Creates an array of length n initialized to n new modeling variables of type NumVarType.Float.
Public method NumVarArray(Int32, array<Double>[]()[][], array<Double>[]()[][], array<NumVarType>[]()[][])
Creates n new numeric variables and returns them in an array.
Public method NumVarArray(Int32, array<Double>[]()[][], array<Double>[]()[][], array<String>[]()[][])
Creates an array of length n initialized to n new modeling variables of type NumVarType.Float.
Public method NumVarArray(Int32, Double, Double, NumVarType, array<String>[]()[][])
Creates n new numeric variable objects and returns them in an array.
Public method NumVarArray(Int32, array<Double>[]()[][], array<Double>[]()[][], array<NumVarType>[]()[][], array<String>[]()[][])
Creates n new numeric variable objects and returns them in an array.
Public method Objective(ObjectiveSense, INumExpr)
Creates and returns an instance of IObjective representing an objective to optimize the expression expr with respect to the optimization sense indicated by sense.
Public method Objective(ObjectiveSense, INumExpr, String)
Creates and returns an instance of IObjective representing an objective to optimize the expression expr with respect to the optimization sense indicated by sense and assigned the name name.
Public method Or()()()()
Creates an IOr constraint for expressing disjunctions.
Public method Or(array<IConstraint>[]()[][])
Returns an IOr constraint indicating that at least one and possibly more than one of the elements is true in its argument cons, an array of constraints.
Public method Or(IConstraint, IConstraint)
Returns an or-constraint indicating that at least one and possibly more than one argument is true.
Public method Or(array<IConstraint>[]()[][], String)
Returns an IOr constraint indicating that at least one and possibly more than one of the elements is true in its argument cons, an array of constraints.
Public method Or(IConstraint, IConstraint, String)
Returns an or-constraint indicating that at least one and possibly both of its arguments are true.
Public method Or(array<IConstraint>[]()[][], Int32, Int32)
Returns an or-constraint indicating 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.
Public method Or(array<IConstraint>[]()[][], Int32, Int32, String)
Returns an or-constraint indicating 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.
Public method Prod(Double, INumExpr)
Creates and returns an expression representing the product of the expression e1 and the value v.
Public method Prod(Int32, IIntExpr)
Creates and returns the new expression v * e.
Public method Prod(IIntExpr, IIntExpr)
Creates and returns the new expression e1 * e2.
Public method Prod(IIntExpr, Int32)
Creates and returns the new expression e * v.
Public method Prod(INumExpr, INumExpr)
Creates and returns an expression representing the product of the expressions expr1 and expr2.
Public method Prod(INumExpr, Double)
Creates and returns an expression representing the product of the expression e and the value v.
Public method Prod(Double, INumVar, INumVar)
Creates and returns an expression representing the product of the value val, the variablevar1, and the variable var2.
Public method Prod(INumVar, INumVar, Double)
Creates and returns an expression representing the product of the variablevar1, the variable var2, and the value val,
Public method Prod(INumVar, Double, INumVar)
Creates and returns an expression representing the product of the variablevar1, the value val, and the variable var2.
Public method Range(Double, INumExpr, Double)
Creates and returns an instance of IRange initialized to represent the constraint lb <= expr <= ub.
Public method Range(Double, INumExpr, Double, String)
Creates and returns an instance of IRange initialized to represent the constraint lb <= expr <= ub and assigned the name name.
Public method Remove(IAddable)
This method removes the extractable object from the invoking model.
(Inherited from IModel.)
Public method Remove(array<IAddable>[]()[][])
This method removes the array of extractable objects from the invoking model.
(Inherited from IModel.)
Public method Remove(array<IAddable>[]()[][], Int32, Int32)
This method removes modeling objects from the invoking IModel.
(Inherited from IModel.)
Public method ScalProd(array<Double>[]()[][], array<INumVar>[]()[][])
Creates and returns a linear expression representing the scalar product of the provided values with the provided variables.
Public method ScalProd(array<Int32>[]()[][], array<IIntVar>[]()[][])
Creates and returns an integer linear expression representing the scalar product of the provided integer values with the provided integer variables.
Public method ScalProd(array<Int32>[]()[][], array<INumVar>[]()[][])
Creates and returns a linear expression representing the scalar product of the provided values with the provided variables.
Public method ScalProd(array<IIntVar>[]()[][], array<IIntVar>[]()[][])
Creates and returns a linear expression representing the scalar product of the provided variables.
Public method ScalProd(array<IIntVar>[]()[][], array<Int32>[]()[][])
Creates and returns an integer linear expression representing the scalar product of the provided integer values with the provided integer variables.
Public method ScalProd(array<INumVar>[]()[][], array<INumVar>[]()[][])
Creates and returns a linear expression representing the scalar product of the variables provided as arguments.
Public method ScalProd(array<INumVar>[]()[][], array<Double>[]()[][])
Creates and returns a linear expression representing the scalar product of the provided values with the provided variables.
Public method ScalProd(array<INumVar>[]()[][], array<Int32>[]()[][])
Creates and returns a linear expression representing the scalar product of the provided values with the provided variables.
Public method ScalProd(array<Double>[]()[][], array<INumVar>[]()[][], Int32, Int32)
Creates and returns a linear expression representing the scalar product of the values provided in coefs[start]...coefs[start+num-1] with the variables provided in vars[start]...vars[start+num-1].
Public method ScalProd(array<Int32>[]()[][], array<IIntVar>[]()[][], Int32, Int32)
Creates and returns an integer linear expression representing the scalar product of the integer values provided in vals[start]...vals[start+num-1] with the integer variables provided in vars[start]...vars[start+num-1].
Public method ScalProd(array<IIntVar>[]()[][], array<IIntVar>[]()[][], Int32, Int32)
Creates and returns a linear expression representing the scalar product of the variables provided as arguments.
Public method ScalProd(array<IIntVar>[]()[][], array<Int32>[]()[][], Int32, Int32)
Creates and returns an integer linear expression representing the scalar product of the integer values provided in vals[start]...vals[start+num-1] with the integer variables provided in vars[start]...vars[start+num-1].
Public method ScalProd(array<INumVar>[]()[][], array<INumVar>[]()[][], Int32, Int32)
Creates and returns a linear expression representing the scalar product of the variables provided as arguments.
Public method ScalProd(array<INumVar>[]()[][], array<Double>[]()[][], Int32, Int32)
Creates and returns a linear expression representing the scalar product of the values provided in coefs[start]...coefs[start+num-1] with the variables provided in vars[start]...vars[start+num-1].
Public method Square(IIntExpr)
Creates and returns the new expression e^2.
Public method Square(INumExpr)
Creates and returns an expression representing the square of the expression e (that is, e * e).
Public method Sum(array<IIntExpr>[]()[][])
Creates and returns an integer expression representing the sum of the expressions provided in the array expr.
Public method Sum(array<INumExpr>[]()[][])
Creates and returns an expression representing the sum of the expressions provided as terms in the array expr.
Public method Sum(Double, INumExpr)
Creates and returns an expression representing the sum of a value and a numeric expression.
Public method Sum(Int32, IIntExpr)
Creates and returns an integer expression representing the sum of a value and an integer expression.
Public method Sum(IIntExpr, IIntExpr)
Adds two integer expressions and returns the sum.
Public method Sum(IIntExpr, Int32)
Creates and returns an integer expression representing the sum of an integer expression and a value.
Public method Sum(INumExpr, INumExpr)
Adds two numeric expressions and returns the sum.
Public method Sum(INumExpr, Double)
Creates and returns an expression representing the sum of a numeric expression and a value.
Public method Sum(IIntExpr, IIntExpr, IIntExpr)
Adds three integer expressions and returns the sum.
Public method Sum(array<IIntExpr>[]()[][], Int32, Int32)
Creates and returns an integer expression representing the sum of the num expressions provided in the array expr starting with element start.
Public method Sum(INumExpr, INumExpr, INumExpr)
Adds three numeric expressions and returns their sum.
Public method Sum(array<INumExpr>[]()[][], Int32, Int32)
Creates and returns an expression representing the sum of the num expressions provided as terms in the array expr starting with element start.
Public method Sum(IIntExpr, IIntExpr, IIntExpr, IIntExpr)
Adds four integer expressions and returns the sum.
Public method Sum(INumExpr, INumExpr, INumExpr, INumExpr)
Adds four numeric expressions and returns the sum.
Public method Sum(IIntExpr, IIntExpr, IIntExpr, IIntExpr, IIntExpr)
Adds five integer expressions and returns the sum.
Public method Sum(INumExpr, INumExpr, INumExpr, INumExpr, INumExpr)
Adds five numeric expressions and returns the sum.
Public method Sum(IIntExpr, IIntExpr, IIntExpr, IIntExpr, IIntExpr, IIntExpr)
Adds six integer expressions and returns the sum.
Public method Sum(INumExpr, INumExpr, INumExpr, INumExpr, INumExpr, INumExpr)
Adds six numeric expressions and returns the sum.
Public method Sum(IIntExpr, IIntExpr, IIntExpr, IIntExpr, IIntExpr, IIntExpr, IIntExpr)
Adds seven integer expressions and returns the sum.
Public method Sum(INumExpr, INumExpr, INumExpr, INumExpr, INumExpr, INumExpr, INumExpr)
Adds seven numeric expressions and returns the sum.
Public method Sum(IIntExpr, IIntExpr, IIntExpr, IIntExpr, IIntExpr, IIntExpr, IIntExpr, IIntExpr)
Adds eight integer expressions and returns the sum.
Public method Sum(INumExpr, INumExpr, INumExpr, INumExpr, INumExpr, INumExpr, INumExpr, INumExpr)
Adds eight numeric expressions and returns the sum.
Public method VisitChildren
This method is called when the object and all its sub-objects must be visited. To implement this method, you should first call the method ICopyableVisitor.BeginVisit() with yourself as parameter, then call ICopyableVisitor.VisitChild() for each sub-copyables, the call ICopyableVisitor.EndVisit() once again with yourself as parameter.
(Inherited from ICopyable.)

See Also