Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Read two dimensional array from MS SQL 2012 Database Express

    Posted 07/20/16 05:52 AM

    Originally posted by: Nerav


    I am working on Site selection problem from Brake to DC. It has two dimensional array.


    tuple Distance //Defining tuple for distance
    {
    key string brake;
    key string dc;
    float distance;
    }

    {Distance}distance=...;
    float Dist[distance] = [d: d.distance| d in distance];

     

    When I run the model with data in .dat file it runs perfectly fine in 23 sec.But when I connect it to SQL database it takes forever. Any advise is appreciated

    PMedianModel_DemandbyDC.dat has the syntax for connecting it to database


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: Read two dimensional array from MS SQL 2012 Database Express

    Posted 07/20/16 06:23 AM

    Hi

    have you tried to change the batch size as explained at

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

     

    all
    Batch size for database read.
    all
    Batch size for database updates

     

    Database update batch size Specifies the batch size for database updates. Sends bulk updates with this number of rows. Otherwise, a warning is displayed. 256

    ?

    regards


    #DecisionOptimization
    #OPLusingCPLEXOptimizer