Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Create filesystem folder with opl script

    Posted 07/03/18 09:02 AM

    Originally posted by: Marko_Obert


    Hi,

    is it possible to create a new filesystem folder within an OPL script? I run several scenarios and want to store the results in seperate folders.

    Kind regards,

    Marko


    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: Create filesystem folder with opl script

    Posted 07/03/18 09:08 AM

    AFAIK it is not directly possible. But with IloOplCallJava you can call virtually any Java function. So you can use Java to create the folder.

    Note however that external Java calls do not work when running your model under oplrun.


    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: Create filesystem folder with opl script

    Posted 07/03/18 09:31 AM

    Originally posted by: Marko_Obert


    Ok, so I guess its better to store all result files into a single folder and integrate the scenario name into the filename.

     

    Kind regards,

    Marko


    #CPLEXOptimizers
    #DecisionOptimization


  • 4.  Re: Create filesystem folder with opl script

    Posted 07/03/18 09:49 AM

    Hi,

    why not using IloOplExec ?

    regards


    #CPLEXOptimizers
    #DecisionOptimization


  • 5.  Re: Create filesystem folder with opl script

    Posted 07/03/18 10:04 AM

    Originally posted by: Marko_Obert


    Does IloOplExec works with oplrun, too?


    #CPLEXOptimizers
    #DecisionOptimization


  • 6.  Re: Create filesystem folder with opl script

    Posted 07/03/18 10:08 AM