Originally posted by: UDOPS
The following statement is a huge resource consumer, easily the highest memory consumer in my profiler diagnostic. Any thoughts on making it less resource hungry? If I break it up into pieces will the net resource consumption go down?
occheadway NBOcc
BlockNet = [<i,t> :
<card({r | <r,a,b,c,d,1> in BlockTransit
<i,t> } union {r | <r,a,b,c,d,1> in SolutionTransit
<i,t> }), //count of trains occcupying this block instance
card({r | <r,e,f,g,h,1> in BlockPending1
<i,t>} union {r | <r,e,f,g,h,1> in BlockSolutionPending1
<i,t>})+
card({r | <r,i,j,k,l,1> in BlockPending2
<i,t>} union {r | <r,i,j,k,l,1> in BlockSolutionPending2
<i,t>})> //count of trains in headway shadow
| <i,t> in BlockNet: Pb
http://1].headwayoff!=1;
#DecisionOptimization#OPLusingCPLEXOptimizer