Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Log generation for source model via flowControl

    Posted 02/20/17 05:58 AM

    Originally posted by: AndyHam


    Dear IBM,
    Suppose there is test.mod which is controlled by flowControl.mod. And, the test.mod has a post-process, generating scheduling output. When I run the flowControl, I found the scheduling output from the test.mod is not generated. How can I generate the output when I call the model from flowControl?
    Best Regards,
    Andy
     

    //flowControl.mod============================
    main {
    ...
    for(var iter=1;iter<=10;iter++)

    var source = new IloOplModelSource("test.mod");
    ...
    if (cp.solve()) writeln("iter " + iter + ", Cmax" + cmax);  
    ...
    }
    //===========================================


    //test.mod===================================
    minimize cmax;
    subject to { ...

    execute {
    writeln("m"+"\t"+ "j"+"\t" + "tk"+"\t"+ "s");
    for (var j in JobList)
        writeln( j.job + "\t" +  itvJob[j].Start); <=== I want to see this output when the model is called by flowControl.
    }
    //===========================================
     


    #DecisionOptimization
    #OPLusingCPOptimizer


  • 2.  Re: Log generation for source model via flowControl

    Posted 02/20/17 06:50 AM

    Hi

    you have forgotten to call postProcess , haven t you ?

    regards


    #DecisionOptimization
    #OPLusingCPOptimizer


  • 3.  Re: Log generation for source model via flowControl

    Posted 02/20/17 09:54 AM