The IQuadNumExpr type exposes the following members.

Methods

  NameDescription
Public methodAdd

Adds all terms found in qexpr to the invoking object.

Public methodAddTerm

Adds the new term coef * var1 * var2 to the invoking quadratic expression.

Public methodAddTerms(array<Double>[]()[][], array<INumVar>[]()[][], array<INumVar>[]()[][])
Adds the terms sum_i (coef[i] * var1[i] * var2[i]) to the invoking quadratic expression.
Public methodAddTerms(array<Double>[]()[][], array<INumVar>[]()[][], array<INumVar>[]()[][], 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.
Public methodClear
Removes all quadratic terms from the invoking object.
Public methodGetQuadEnumerator
Returns an enumerator over the quadratic terms in the invoking quadratic expression.
Public methodMakeClone
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 methodRemove(INumVar)
Removes all terms that use var from the invoking quadratic expression.
Public methodRemove(array<INumVar>[]()[][])
Removes all terms that use a variable in the specified array from the invoking quadratic expression.
Public methodRemove(array<INumVar>[]()[][], 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.
Public methodVisitChildren
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