The ILinearNumExpr type exposes the following members.

Methods

  Name Description
Public method Add
Adds all the terms found in the scalar product passed as argument to the invoking object.
Public method AddTerm(Double, INumVar)
Adds the new term coef * var to a scalar product.
Public method AddTerm(INumVar, Double)
Adds the new term coef * var to a scalar product.
Public method AddTerms(array<Double>[]()[][], array<INumVar>[]()[][])
Adds the new terms sum_i(coef[i] * var[i]) to a scalar product.
Public method AddTerms(array<INumVar>[]()[][], array<Double>[]()[][])
Adds the new terms sum_i(coef[i] * var[i]) to a scalar product.
Public method AddTerms(array<Double>[]()[][], array<INumVar>[]()[][], Int32, Int32)
Adds the new terms sum_i(coef[i] * var[i]) to a scalar product.
Public method AddTerms(array<INumVar>[]()[][], array<Double>[]()[][], Int32, Int32)
Adds the new terms sum_i(coef[i] * var[i]) to a scalar product.
Public method Clear
Removes all terms from the invoking linear expression leaving a 0 expression behind.
Public method GetLinearEnumerator
Returns an enumerator for the variables in the invoking ILinearNumExpr expression.
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 Remove(INumVar)
Removes a variable from the invoking ILinearNumExpr expression.
Public method Remove(array<INumVar>[]()[][])
Removes variables from the invoking ILinearNumExpr expression.
Public method Remove(array<INumVar>[]()[][], Int32, Int32)
Removes variables from the invoking ILinearNumExpr expression.
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.)

Properties

  Name Description
Public property Constant
Queries the constant term from the invoking ILinearIntExpr.

See Also