The ILinearNumExpr type exposes the following members.

Methods

  NameDescription
Public methodAdd
Adds all the terms found in the scalar product passed as argument to the invoking object.
Public methodAddTerm(Double, INumVar)
Adds the new term coef * var to a scalar product.
Public methodAddTerm(INumVar, Double)
Adds the new term coef * var to a scalar product.
Public methodAddTerms(array<Double>[]()[][], array<INumVar>[]()[][])
Adds the new terms sum_i(coef[i] * var[i]) to a scalar product.
Public methodAddTerms(array<INumVar>[]()[][], array<Double>[]()[][])
Adds the new terms sum_i(coef[i] * var[i]) to a scalar product.
Public methodAddTerms(array<Double>[]()[][], array<INumVar>[]()[][], Int32, Int32)
Adds the new terms sum_i(coef[i] * var[i]) to a scalar product.
Public methodAddTerms(array<INumVar>[]()[][], array<Double>[]()[][], Int32, Int32)
Adds the new terms sum_i(coef[i] * var[i]) to a scalar product.
Public methodClear
Removes all terms from the invoking linear expression leaving a 0 expression behind.
Public methodGetLinearEnumerator
Returns an enumerator for the variables in the invoking ILinearNumExpr 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 a variable from the invoking ILinearNumExpr expression.
Public methodRemove(array<INumVar>[]()[][])
Removes variables from the invoking ILinearNumExpr expression.
Public methodRemove(array<INumVar>[]()[][], Int32, Int32)
Removes variables from the invoking ILinearNumExpr expression.
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