Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Iterate over map with unknown index type

    Posted 06/17/15 01:21 PM

    Originally posted by: TheLoneStranger


    Hello,

     

    I have an IloIntMap which I know will be 2-dimensional.

    I do not know what the type of the indexes are (could be IloInt / IloNum / IloString)

     

    How do I iterate over the map without using the operator[ IloInt ] version (or similar for Num/String) ?

     

    Regards,

     

    Mark

     

    PS I have tried using the  IloMap<IloInt>::iterator() call, but this leaks the iterator.


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: Iterate over map with unknown index type

    Posted 06/17/15 03:31 PM

    Hi,

    have you had a look at the iterator example in

    CPLEX_Studio1261\opl\examples\opl_interfaces\java\iterators\src\iterators ?

    have you tried to log a PMR ?

    http://www-01.ibm.com/support/docview.wss?uid=swg21507639

    regards


    #DecisionOptimization
    #OPLusingCPLEXOptimizer