The ILinearIntExpr type exposes the following members.
Methods
| Name | Description | |
|---|---|---|
|
|
Add |
Adds all the terms found in the scalar product passed as argument to the
invoking object.
|
|
|
AddTerm(Int32, IIntVar) |
Adds the new term coef * var to a scalar product.
|
|
|
AddTerm(IIntVar, Int32) |
Adds the new term coef * var to a scalar product.
|
|
|
AddTerms(array<Int32>[]()[][], array<IIntVar>[]()[][]) |
Adds the new terms sum_i(coef[i] * var[i]) to a scalar product.
|
|
|
AddTerms(array<IIntVar>[]()[][], array<Int32>[]()[][]) |
Adds the new terms sum_i(coef[i] * var[i]) to a scalar product.
|
|
|
AddTerms(array<Int32>[]()[][], array<IIntVar>[]()[][], Int32, Int32) |
Adds the new terms sum_i(coef[i] * var[i]) to a scalar product.
|
|
|
AddTerms(array<IIntVar>[]()[][], array<Int32>[]()[][], Int32, Int32) |
Adds the new terms sum_i(coef[i] * var[i]) to a scalar product.
|
|
|
Clear |
Removes all terms from the invoking linear expression leaving a
0 expression behind.
|
|
|
GetLinearEnumerator |
Returns an enumerator for the variables in the invoking
ILinearIntExpr expression.
|
|
|
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.) |
|
|
Remove(IIntVar) |
Removes a variable from the invoking ILinearIntExpr expression.
|
|
|
Remove(array<IIntVar>[]()[][]) |
Removes a set of variables from the invoking ILinearIntExpr
expression.
|
|
|
Remove(array<IIntVar>[]()[][], Int32, Int32) |
Removes a set of variables from the invoking ILinearIntExpr
expression.
|
|
|
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.) |
Properties
| Name | Description | |
|---|---|---|
|
|
Constant |
Queries the constant term from the invoking ILinearIntExpr.
|