Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  script to display results

    Posted 02/11/09 06:46 PM

    Originally posted by: SystemAdmin


    [daniel said:]

    hello,

    in a model I defined a dvar as:

    dvar Harvest[Areas][Periods];

    I get a solution:

    Harvest= [ [0 1] [1 0] [1 0] [0 1] ]

    How can I get the results like this:

    Harvest [1][1] = 0
    Harvest [1][2] = 1
    Harvest [2][1] = 1
    Harvest [2][2] = 0
    Harvest [3][1] = 1
    Harvest [3][2] = 0
    Harvest [4][1] = 0
    Harvest [4][2] = 1

    I know we can with the script, but after several attemps I'm still not getting it.

    Daniel
    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: script to display results

    Posted 02/11/09 08:33 PM

    Originally posted by: SystemAdmin


    [jfk said:]

    probably the


    execute {
      for(var a in Areas)
          for(var p in Periods)
            writeln("Harvest[",a,"][",p,"] = ",Harvest[a][p]);
    }


    should work as a postprocessing script (after "subject to")

    I hope it helps

    cheers

    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 3.  Re: script to display results

    Posted 02/11/09 08:58 PM

    Originally posted by: SystemAdmin


    [daniel said:]

    thank you very much.

    Daniel
    #DecisionOptimization
    #OPLusingCPLEXOptimizer