Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Solving different data sets sequentially

    Posted 05/12/16 05:15 AM

    Originally posted by: Ghostwriter_muc


    Hello everyone,

     

    is it possible to solve different data sets sequentially in one mod-file?

    For example in a post processing execute block:

    Data1.dat

    Data2.dat

    Data3.dat

     

    Thank you ver much in advance.

     

    Kind regards


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: Solving different data sets sequentially



  • 3.  Re: Solving different data sets sequentially

    Posted 05/12/16 11:47 AM

    Originally posted by: Ghostwriter_muc


    I created a file with only the main block to generate all 3 data files, but it is not working.

     

    If I run the model separately for each data file it works fine, but with the main block it doesn't.

    I attached the .mod, main.mod and 3 data files.

     

    Can you tell what is wrong in my main.mod?


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 4.  Re: Solving different data sets sequentially

    Posted 05/12/16 12:46 PM

    Hi,

    in the link I provided, have a look at

    you should have a look at the example

    examples_suite.mod in opl\examples\opl\examples_suite

    regards


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 5.  Re: Solving different data sets sequentially

    Posted 05/12/16 02:07 PM

    Originally posted by: Ghostwriter_muc


    Sorry, but i don't get this example.

    This example is for multiple models and projects.

     

    I have one model and three data files.

     


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 6.  Re: Solving different data sets sequentially

    Posted 05/12/16 03:13 PM

    Hi

    have a look at examples_suite.mod

    and replace

    AddModel(models, "../blending", "blending.mod", "blending.dat", 653.61);
      AddModel(models, "../cutstock", "cutstock_main.mod", "cutstock.dat", 0);
      AddModel(models, "../timetabling", "timetabling.mod", "timetabling-base.dat,timetabling-small.dat", 20);
      AddModel(models, "../sched_bridge", "sched_bridge.mod", "sched_bridge.dat",null);

    by your model with several .dat

    regards


    #DecisionOptimization
    #OPLusingCPLEXOptimizer