The IQuadIntExpr type exposes the following members.
Methods
| Name | Description | |
|---|---|---|
| Add |
Adds all terms found in the specified quadratic expression
to the invoking object.
| |
| AddTerm |
Adds the new term coef * var1 * var2
to the invoking quadratic expression.
| |
| AddTerms(array<Int32>[]()[][], array<IIntVar>[]()[][], array<IIntVar>[]()[][]) |
Adds the terms specified by
sum_i (coef[i] * var1[i] * var2[i])
to the invoking quadratic expression.
| |
| AddTerms(array<Int32>[]()[][], array<IIntVar>[]()[][], array<IIntVar>[]()[][], Int32, Int32) |
Adds the terms specified by
sum_i (coef[i] * var1[i] * var2[i])
to the invoking quadratic expression, for the indices
i from start to start + num-1.
| |
| Clear |
Removes all quadratic terms from the invoking object.
| |
| GetQuadEnumerator |
Returns an enumerator over the quadratic terms in the invoking quadratic
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 all terms that use var from
the invoking quadratic expression.
| |
| Remove(array<IIntVar>[]()[][]) |
Removes all terms that use a variable of the specified array
from the invoking quadratic expression.
| |
| Remove(array<IIntVar>[]()[][], Int32, Int32) |
Removes all terms that use a variable var[i]
from the invoking quadratic expression, for the indices i
from start to start + num-1.
| |
| 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.) |