Decision Optimization

Decision Optimization

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


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

Check For Process Completion in OPL Script

  • 1.  Check For Process Completion in OPL Script

    Posted 03/30/15 03:59 PM

    Originally posted by: mathygirl


    Is there something in OPL Script that would provide the functionality of a Linux touch command? I'm trying to invoke an OPL model run that generates files for another OPL model to run. I don't want the second model to run until all the necessary files have been generated by the first model. I'm running both models via a main OPL Script. I was wondering if there are some commands provided in the scripting language to check that the process of writing files for the next model run is finished.


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: Check For Process Completion in OPL Script

    Posted 03/31/15 02:53 AM

    Hi,

    with

    IloOplInputFile and  IloOplOutputFile you may use a file to have some status and check this status.

    You may use

    flow control
    Returns true if the file exists.
    flow control
    Returns true if the file is currently open.

    regards


    #DecisionOptimization
    #OPLusingCPLEXOptimizer