ILOG CPLEX .NET Reference Manual

IModeler.Sum Method (IIntExpr[], Int32, Int32)

Creates and returns an integer expression representing the sum of the num expressions provided in the array expr starting with element start.

IIntExpr Sum(
   IIntExpr[] expr,
   int start,
   int num
);

Parameters

expr
An array containing the expressions to be summed.
start
The first expression in expr to be used.
num
The number of expressions in expr to be used.

Return Value

An integer expression representing the sum of the specified expressions.

See Also

IModeler Interface | ILOG.Concert Namespace | IModeler.Sum Overload List