Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Output optimal solutions to external file

    Posted 06/06/14 04:08 PM

    Originally posted by: viva0521


    Hi, there,

    Just curious that how can I output the optimal solutions to an external data file on linux platform. 

    What I include in my mod file is execute command like:

    execute DISPLAY {
       writeln("\n<from node, to node, , o, d, flow[i][j][o][d]>\n");
       for(i in Node)for(j in Node)for(o in Ori)for( d in Dest)
          if(flow[i][j][o][d] > 0)
             writeln("<",i,",",j,",",o,",",d,",",flow[i][j][o][d],">");
    }
    From this I can only copy and paste the solutions from the screen. I am wondering is there any way I can output these solutions to a dat file automatically? Thanks in advance!

     


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: Output optimal solutions to external file

    Posted 06/09/14 02:11 PM

    Hi,

    IloOplOutputFile could help

    have you had a look at the tech note

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

    ?

    regards


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 3.  Re: Output optimal solutions to external file

    Posted 06/10/14 05:36 PM

    Originally posted by: viva0521


    Yes, that works for my problem, thanks a lot!


    #DecisionOptimization
    #OPLusingCPLEXOptimizer