Decision Optimization

Decision Optimization

Delivers prescriptive analytics capabilities and decision intelligence to improve decision-making.


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  How to use IloSum

    Posted 12/01/10 08:41 AM

    Originally posted by: BDoppelganger


    hi, did anybody use the function IloSum. if I want to do such an operation:
    for(j=0;j<T;j++)
    {c[i][k]+=a[i][j][k]*b[j][k];}
    where:
    a is IloNumVarArray;
    b is constant Array in C++;
    can I use IloSum to do this operator???
    If it's possible, how to use it??? and what's type should c][ be ????
    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: How to use IloSum

    Posted 12/01/10 09:09 AM

    Originally posted by: SystemAdmin


    No, you cannot. IloSum is designed to sum up the elements of a single array. It is shorthand for something like this:
    type_t result = 0;
    for (i = 0; i < array.size(); ++i)
       result += array[i];
    

    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: How to use IloSum

    Posted 12/01/10 09:33 AM

    Originally posted by: BDoppelganger


    Thanks.
    #CPLEXOptimizers
    #DecisionOptimization


  • 4.  Re: How to use IloSum

    Posted 12/01/10 09:34 AM

    Originally posted by: BDoppelganger


    Thank you very much
    #CPLEXOptimizers
    #DecisionOptimization