Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Error in Implicit Slicing

    Posted 06/11/10 02:24 PM

    Originally posted by: UDOPS


    This line returns an empty set:

    {turn} Layover = {<r,r2,tj,33> | <r,r2> in TrainPair, <r,i,-1,ti,tj,d> in Paths, <r2, ii, jj, tii, tjj, d> in Paths};

    But this line returns many members:

    {turn} Layover = {<r,r2,tj,33> | <r,r2> in TrainPair, <r,i,-1,ti,tj,d> in Paths};

    There are many valid matches in the third indexing set above. What am I missing?
    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: Error in Implicit Slicing

    Posted 06/11/10 03:58 PM

    Originally posted by: UDOPS


    Well, it took me most of the last two hours to get this to work, but here is the solution I am using. I had to break the statement into two: an intermediate set and then the final set. Still can not understand why I can not build this set in one step.

    {turntime} PotentialLayoverStarts = {<r,tj> | r in Trains, <r,i,-1,ti,tj,d> in Paths: TrainData[r].successor>0};
    {turn} Layover = {<r,TrainData[r].successor,tj,tii> | <r,tj> in PotentialLayoverStarts,
    <TrainData[r].successor,TrainData[TrainDatahttp://r].successor.origin,jj,tii,tjj,d> in Paths:
    tii>=tj+TrainData[r].layover_min && (TrainData[r].layover_max==0||tii<=tj+TrainData[r].layover_max)};
    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 3.  Re: Error in Implicit Slicing

    Posted 06/14/10 02:48 AM

    Originally posted by: SystemAdmin


    In your very first formulation, you implicitly slice over the 6th component in Paths, named 'd' in both iterations.
    That could explain the difference.

    Tschau, Frank
    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 4.  Re: Error in Implicit Slicing

    Posted 06/14/10 01:28 PM

    Originally posted by: UDOPS


    You are correct. I did not notice that, since I ignore "d" otherwise.
    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 5.  Re: Error in Implicit Slicing

    Posted 06/14/10 01:59 PM

    Originally posted by: UDOPS


    I eliminated the duplicate "d", and it worked fine. Mark it up to bleary eyes and mental focus.
    #DecisionOptimization
    #OPLusingCPLEXOptimizer