Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
Expand all | Collapse all

The sorting method of IloAnyArray

  • 1.  The sorting method of IloAnyArray

    Posted 03/31/16 04:44 AM

    Originally posted by: Jacky W


    Hello, 

               In my c++ code where using the IloAnyArray. In the array, we restore the instance of class defined by myself. The problem i meet is we need to sort this array according the value atrribute of the class. So is there a sort algorithm about the IloAnyArray built in the ILOG CPLEX, if there is a example ,where can i find this code?  if there isn't? How can i do for my purpose? 

    Thanks in advance


    #CPOptimizer
    #DecisionOptimization


  • 2.  Re: The sorting method of IloAnyArray

    Posted 04/05/16 10:31 AM

    Originally posted by: GGR


    Hi

    IloArray templates along which the class IloAnyArray derives is only intended to feed the model in a clean manner. In other word there is no data treatment such as sorting an array in the Concert model language. You must prepare the data for the math model by using your own data treatment. You could have a look to the stl libraries of your C++ compiler.

     

    Hope that helps

     

     

     

     


    #CPOptimizer
    #DecisionOptimization