int Dev = 20;// Deviation
extern const int CNN = 5;// Case Index
extern const int P = 9;// Number of phases
extern const int PT = 6;// Number of periods in a phase
extern const int T = 54;// Number of periods
extern const int I1 =1;// Number of suppliers
extern const int I2 = 8;// Number of customers
extern const int I = 9;// Number of sites
extern const int BN = 72;//Number of bids
extern const int LBN = 9;//Number of bids on each arc
extern const int SPN = 1144;//Number of shipments
extern const int SN = 10;//Number of scenarios at each stage
extern const int MBSN = 27;//Number of shipments in a bid
// tree parameters:
double PRO[P][SN]={{0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1},{0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1},{0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1},{0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1},{0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1},{0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1},{0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1},{0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1},{0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1}}; // the probability of each scenario at each phase 
// timing parameters: 
int PTN[P]={6,6,6,6,6,6,6,6,6}; // number of periods in each phase 
int PTset[P][PT]={{0,1,2,3,4,5},{6,7,8,9,10,11},{12,13,14,15,16,17},{18,19,20,21,22,23},{24,25,26,27,28,29},{30,31,32,33,34,35},{36,37,38,39,40,41},{42,43,44,45,46,47},{48,49,50,51,52,53}}; // set of periods in each phase 
// distribution parameters: 
int sup[I][P][SN][PT]={{{{11945,0,0,0,0,0},{12566,0,0,0,0,0},{12393,0,0,0,0,0},{12434,0,0,0,0,0},{12345,0,0,0,0,0},{12254,0,0,0,0,0},{12861,0,0,0,0,0},{12867,0,0,0,0,0},{12878,0,0,0,0,0},{12250,0,0,0,0,0}},{{12377,0,0,0,0,0},{11862,0,0,0,0,0},{12447,0,0,0,0,0},{12461,0,0,0,0,0},{12402,0,0,0,0,0},{12515,0,0,0,0,0},{12121,0,0,0,0,0},{12091,0,0,0,0,0},{11980,0,0,0,0,0},{12604,0,0,0,0,0}},{{11514,0,0,0,0,0},{11494,0,0,0,0,0},{11619,0,0,0,0,0},{11638,0,0,0,0,0},{11759,0,0,0,0,0},{11278,0,0,0,0,0},{12104,0,0,0,0,0},{11485,0,0,0,0,0},{11832,0,0,0,0,0},{11941,0,0,0,0,0}},{{10447,0,0,0,0,0},{10836,0,0,0,0,0},{10381,0,0,0,0,0},{10749,0,0,0,0,0},{10185,0,0,0,0,0},{10154,0,0,0,0,0},{10434,0,0,0,0,0},{10541,0,0,0,0,0},{10428,0,0,0,0,0},{10433,0,0,0,0,0}},{{9437,0,0,0,0,0},{9524,0,0,0,0,0},{9535,0,0,0,0,0},{9499,0,0,0,0,0},{9426,0,0,0,0,0},{9520,0,0,0,0,0},{9612,0,0,0,0,0},{9537,0,0,0,0,0},{9490,0,0,0,0,0},{9409,0,0,0,0,0}},{{9199,0,0,0,0,0},{9291,0,0,0,0,0},{9517,0,0,0,0,0},{9124,0,0,0,0,0},{9562,0,0,0,0,0},{9149,0,0,0,0,0},{9141,0,0,0,0,0},{9300,0,0,0,0,0},{9410,0,0,0,0,0},{9337,0,0,0,0,0}},{{9684,0,0,0,0,0},{10019,0,0,0,0,0},{10062,0,0,0,0,0},{9543,0,0,0,0,0},{9809,0,0,0,0,0},{9930,0,0,0,0,0},{9580,0,0,0,0,0},{9834,0,0,0,0,0},{9984,0,0,0,0,0},{9728,0,0,0,0,0}},{{11257,0,0,0,0,0},{10947,0,0,0,0,0},{11275,0,0,0,0,0},{10963,0,0,0,0,0},{11104,0,0,0,0,0},{10916,0,0,0,0,0},{11231,0,0,0,0,0},{10797,0,0,0,0,0},{10865,0,0,0,0,0},{11215,0,0,0,0,0}},{{11663,0,0,0,0,0},{12101,0,0,0,0,0},{12011,0,0,0,0,0},{11922,0,0,0,0,0},{11957,0,0,0,0,0},{12087,0,0,0,0,0},{11390,0,0,0,0,0},{12013,0,0,0,0,0},{12211,0,0,0,0,0},{12134,0,0,0,0,0}}},{{{-309,-241,-291,-273,-238,-303},{-341,-312,-323,-279,-297,-332},{-306,-332,-341,-253,-323,-268},{-320,-312,-265,-306,-279,-244},{-282,-303,-259,-253,-350,-335},{-247,-259,-326,-265,-338,-315},{-288,-268,-326,-265,-276,-244},{-315,-294,-326,-294,-318,-306},{-335,-323,-238,-235,-338,-353},{-338,-329,-335,-300,-253,-253}},{{-284,-303,-288,-258,-240,-241},{-290,-300,-263,-255,-216,-225},{-313,-260,-244,-279,-286,-212},{-302,-332,-274,-227,-312,-241},{-307,-283,-336,-222,-240,-269},{-334,-300,-227,-293,-304,-267},{-348,-277,-227,-249,-224,-207},{-264,-232,-280,-255,-224,-254},{-287,-237,-283,-244,-235,-233},{-284,-295,-241,-271,-256,-311}},{{-202,-198,-270,-228,-184,-181},{-298,-211,-231,-231,-235,-173},{-260,-225,-252,-208,-208,-229},{-218,-283,-212,-215,-193,-229},{-298,-273,-266,-226,-242,-181},{-248,-254,-245,-251,-246,-171},{-262,-201,-259,-269,-178,-169},{-245,-257,-231,-242,-231,-212},{-275,-257,-193,-206,-231,-218},{-275,-283,-266,-255,-257,-237}},{{-232,-193,-161,-182,-135,-152},{-201,-221,-152,-187,-157,-149},{-209,-213,-183,-186,-180,-165},{-223,-208,-177,-158,-167,-190},{-162,-204,-166,-169,-140,-192},{-181,-153,-190,-182,-144,-178},{-213,-185,-154,-138,-190,-147},{-195,-196,-206,-174,-158,-141},{-230,-213,-170,-198,-172,-155},{-197,-150,-177,-193,-173,-192}},{{-140,-167,-140,-163,-156,-157},{-145,-146,-132,-119,-137,-126},{-151,-128,-165,-160,-151,-173},{-163,-155,-122,-172,-121,-135},{-129,-148,-154,-135,-157,-148},{-131,-173,-168,-173,-126,-125},{-125,-140,-140,-176,-122,-126},{-179,-139,-175,-147,-153,-154},{-162,-173,-172,-125,-169,-150},{-137,-161,-169,-131,-140,-126}},{{-123,-144,-171,-139,-129,-189},{-156,-132,-154,-163,-190,-187},{-147,-141,-137,-157,-182,-159},{-128,-134,-121,-172,-182,-169},{-122,-138,-162,-132,-138,-177},{-129,-166,-124,-177,-164,-169},{-122,-163,-127,-168,-142,-199},{-176,-169,-178,-162,-174,-154},{-165,-132,-136,-157,-171,-172},{-171,-146,-172,-182,-138,-192}},{{-202,-165,-224,-217,-205,-221},{-200,-197,-186,-215,-195,-254},{-146,-203,-160,-159,-176,-221},{-162,-183,-190,-159,-219,-182},{-207,-194,-194,-189,-201,-206},{-162,-165,-194,-199,-213,-247},{-179,-210,-163,-237,-228,-180},{-157,-159,-203,-215,-248,-237},{-181,-195,-196,-181,-248,-226},{-157,-156,-160,-231,-236,-228}},{{-211,-216,-249,-288,-271,-215},{-209,-195,-222,-223,-230,-266},{-229,-270,-290,-278,-300,-245},{-213,-209,-249,-263,-245,-258},{-188,-244,-234,-276,-266,-323},{-216,-268,-261,-304,-274,-312},{-222,-244,-285,-271,-290,-256},{-252,-190,-239,-240,-211,-315},{-188,-247,-271,-202,-277,-291},{-207,-235,-290,-258,-282,-320}},{{-282,-239,-281,-239,-288,-291},{-262,-334,-238,-342,-262,-303},{-224,-228,-304,-310,-241,-332},{-240,-233,-232,-307,-347,-265},{-317,-309,-293,-257,-350,-318},{-273,-334,-235,-251,-350,-235},{-273,-228,-250,-321,-247,-262},{-312,-332,-253,-283,-256,-335},{-248,-273,-339,-280,-326,-235},{-315,-298,-244,-257,-253,-259}}},{{{-138,-171,-140,-202,-164,-216},{-178,-169,-142,-213,-175,-166},{-200,-145,-187,-209,-190,-204},{-160,-203,-200,-200,-202,-178},{-175,-179,-187,-161,-160,-191},{-136,-169,-166,-161,-197,-166},{-186,-177,-172,-152,-173,-225},{-192,-166,-156,-154,-213,-155},{-139,-181,-147,-158,-212,-193},{-151,-194,-189,-177,-162,-193}},{{-206,-172,-224,-221,-195,-198},{-172,-164,-183,-181,-224,-219},{-228,-172,-253,-192,-197,-226},{-236,-240,-222,-194,-224,-207},{-236,-168,-177,-234,-263,-267},{-212,-172,-217,-254,-263,-262},{-162,-187,-175,-230,-213,-245},{-180,-211,-226,-206,-195,-226},{-200,-232,-245,-241,-185,-221},{-212,-189,-209,-208,-247,-271}},{{-257,-227,-254,-254,-249,-325},{-240,-214,-217,-227,-285,-334},{-291,-275,-299,-221,-291,-286},{-262,-265,-312,-308,-244,-337},{-210,-247,-254,-292,-277,-297},{-254,-207,-231,-278,-288,-323},{-264,-296,-254,-297,-266,-340},{-259,-301,-223,-278,-274,-311},{-262,-252,-270,-284,-324,-275},{-296,-214,-265,-227,-288,-275}},{{-266,-253,-274,-331,-307,-328},{-344,-344,-310,-355,-361,-355},{-240,-253,-346,-340,-271,-265},{-298,-350,-316,-325,-280,-310},{-269,-291,-322,-289,-280,-298},{-237,-247,-331,-271,-346,-244},{-240,-270,-289,-286,-274,-259},{-277,-347,-247,-340,-271,-271},{-254,-312,-337,-346,-355,-256},{-289,-285,-325,-334,-322,-259}},{{-262,-334,-244,-285,-309,-249},{-289,-307,-349,-300,-332,-342},{-280,-304,-244,-354,-279,-348},{-319,-319,-268,-309,-300,-313},{-295,-343,-319,-336,-347,-264},{-304,-262,-319,-276,-341,-284},{-340,-241,-361,-345,-285,-310},{-349,-259,-283,-264,-279,-316},{-253,-319,-262,-327,-256,-267},{-355,-337,-262,-327,-282,-258}},{{-325,-246,-312,-216,-271,-231},{-265,-304,-285,-317,-233,-223},{-302,-257,-279,-261,-251,-290},{-239,-243,-260,-264,-292,-250},{-316,-326,-301,-296,-300,-285},{-259,-223,-309,-296,-271,-275},{-302,-335,-263,-293,-243,-231},{-319,-226,-260,-246,-305,-231},{-308,-246,-312,-285,-274,-285},{-331,-268,-225,-248,-282,-285}},{{-209,-262,-185,-258,-238,-235},{-259,-248,-194,-258,-236,-227},{-262,-230,-243,-245,-236,-165},{-221,-193,-190,-198,-193,-175},{-242,-216,-205,-209,-238,-227},{-223,-246,-232,-215,-166,-217},{-235,-239,-210,-189,-193,-205},{-240,-232,-216,-194,-207,-185},{-216,-241,-261,-243,-166,-195},{-230,-232,-190,-185,-234,-197}},{{-209,-188,-145,-170,-159,-138},{-180,-223,-150,-158,-171,-153},{-157,-179,-168,-184,-181,-155},{-223,-162,-181,-147,-152,-197},{-179,-182,-217,-178,-162,-200},{-167,-179,-165,-170,-139,-155},{-227,-173,-163,-191,-142,-150},{-159,-201,-165,-172,-178,-138},{-154,-208,-157,-163,-156,-138},{-171,-219,-199,-186,-190,-202}},{{-138,-138,-143,-180,-170,-134},{-188,-171,-197,-188,-175,-156},{-148,-163,-198,-192,-186,-173},{-136,-180,-171,-161,-178,-168},{-138,-134,-141,-139,-176,-180},{-193,-168,-143,-161,-180,-188},{-166,-170,-158,-168,-134,-153},{-163,-144,-163,-139,-153,-144},{-185,-193,-136,-190,-183,-175},{-192,-186,-195,-158,-153,-141}}},{{{-359,-392,-382,-368,-266,-368},{-299,-355,-303,-362,-280,-319},{-382,-280,-375,-352,-280,-319},{-316,-306,-388,-283,-392,-382},{-280,-276,-322,-322,-349,-378},{-299,-382,-352,-273,-266,-342},{-276,-362,-362,-329,-339,-375},{-329,-382,-309,-368,-322,-375},{-293,-372,-352,-375,-378,-339},{-316,-290,-280,-276,-273,-276}},{{-387,-299,-262,-355,-256,-283},{-331,-386,-354,-251,-286,-298},{-394,-316,-370,-371,-268,-304},{-318,-299,-335,-333,-271,-352},{-367,-325,-351,-276,-326,-325},{-358,-283,-322,-254,-370,-322},{-361,-258,-354,-345,-274,-349},{-266,-258,-313,-333,-268,-298},{-328,-264,-329,-352,-314,-244},{-331,-283,-338,-323,-320,-355}},{{-324,-340,-224,-272,-315,-290},{-254,-297,-314,-283,-217,-293},{-336,-285,-291,-280,-307,-257},{-274,-233,-308,-234,-292,-242},{-286,-274,-314,-324,-220,-224},{-268,-248,-263,-286,-228,-234},{-313,-323,-319,-296,-284,-301},{-236,-256,-249,-226,-273,-254},{-274,-291,-328,-242,-238,-280},{-348,-334,-280,-288,-284,-293}},{{-290,-255,-268,-275,-240,-239},{-285,-211,-277,-238,-228,-210},{-242,-243,-275,-252,-233,-195},{-288,-226,-273,-259,-213,-261},{-245,-219,-258,-277,-231,-180},{-222,-211,-201,-259,-267,-199},{-285,-224,-282,-187,-242,-221},{-240,-241,-237,-217,-267,-250},{-222,-243,-256,-266,-240,-184},{-255,-282,-211,-254,-262,-180}},{{-221,-220,-225,-244,-168,-244},{-224,-244,-218,-189,-235,-244},{-193,-189,-200,-168,-235,-216},{-204,-197,-172,-252,-244,-214},{-217,-187,-218,-176,-204,-189},{-245,-178,-187,-174,-185,-189},{-241,-235,-225,-218,-216,-223},{-178,-231,-231,-193,-214,-241},{-258,-231,-200,-200,-241,-212},{-204,-227,-178,-204,-176,-197}},{{-206,-208,-175,-217,-255,-238},{-178,-229,-211,-204,-235,-236},{-231,-233,-194,-219,-253,-225},{-237,-195,-203,-197,-227,-194},{-239,-237,-219,-226,-218,-256},{-220,-195,-249,-208,-183,-187},{-206,-244,-238,-189,-216,-184},{-183,-200,-196,-174,-253,-198},{-220,-237,-243,-180,-205,-196},{-174,-176,-226,-230,-213,-266}},{{-189,-249,-259,-248,-214,-218},{-219,-225,-244,-241,-263,-261},{-270,-216,-281,-294,-217,-293},{-240,-213,-237,-213,-297,-274},{-275,-209,-234,-299,-237,-295},{-194,-270,-281,-241,-286,-311},{-226,-273,-251,-206,-292,-261},{-213,-273,-232,-241,-255,-258},{-261,-225,-254,-223,-206,-277},{-222,-280,-239,-286,-276,-247}},{{-307,-242,-277,-323,-308,-345},{-255,-270,-301,-275,-326,-293},{-282,-298,-344,-326,-314,-299},{-222,-320,-272,-293,-275,-357},{-282,-256,-324,-326,-290,-320},{-279,-318,-251,-302,-335,-305},{-230,-332,-263,-352,-248,-305},{-230,-312,-292,-266,-257,-246},{-260,-298,-324,-314,-362,-317},{-238,-264,-246,-346,-287,-370}},{{-353,-358,-335,-345,-322,-319},{-337,-355,-306,-303,-299,-263},{-340,-266,-351,-322,-316,-266},{-346,-371,-309,-276,-313,-290},{-302,-278,-367,-368,-388,-273},{-334,-349,-351,-336,-375,-342},{-359,-304,-264,-286,-365,-309},{-280,-339,-322,-342,-395,-319},{-334,-285,-258,-299,-296,-339},{-375,-365,-348,-322,-378,-263}}},{{{-86,-86,-96,-131,-110,-113},{-119,-118,-133,-101,-139,-146},{-124,-95,-118,-125,-98,-110},{-98,-95,-122,-128,-120,-141},{-85,-93,-116,-124,-146,-109},{-111,-86,-130,-138,-137,-138},{-90,-112,-90,-139,-137,-125},{-121,-96,-112,-136,-137,-104},{-106,-95,-108,-140,-123,-152},{-88,-93,-108,-128,-116,-104}},{{-116,-152,-118,-164,-164,-178},{-120,-161,-152,-150,-155,-138},{-136,-135,-139,-178,-184,-138},{-120,-123,-176,-153,-140,-197},{-155,-168,-175,-184,-148,-155},{-131,-116,-147,-181,-184,-200},{-138,-121,-149,-161,-155,-193},{-155,-158,-123,-177,-192,-166},{-142,-144,-139,-129,-130,-155},{-124,-158,-120,-166,-179,-192}},{{-147,-191,-171,-218,-218,-222},{-159,-169,-180,-205,-214,-164},{-152,-200,-218,-175,-159,-172},{-196,-193,-219,-175,-186,-206},{-154,-212,-171,-194,-190,-196},{-194,-184,-223,-177,-204,-204},{-193,-202,-164,-226,-198,-234},{-150,-207,-223,-173,-184,-216},{-147,-214,-203,-192,-220,-238},{-149,-187,-193,-207,-184,-188}},{{-225,-173,-199,-235,-189,-177},{-185,-223,-181,-217,-235,-231},{-207,-231,-193,-238,-166,-238},{-166,-173,-191,-181,-195,-244},{-221,-173,-221,-177,-168,-225},{-173,-197,-231,-219,-187,-219},{-173,-219,-189,-242,-240,-244},{-213,-209,-211,-168,-181,-235},{-183,-181,-235,-221,-225,-193},{-211,-197,-244,-166,-205,-181}},{{-162,-205,-173,-209,-195,-210},{-199,-189,-217,-158,-204,-156},{-227,-233,-167,-234,-168,-186},{-231,-179,-209,-220,-168,-177},{-173,-199,-232,-164,-223,-195},{-201,-242,-213,-201,-200,-153},{-193,-215,-171,-232,-198,-180},{-173,-207,-219,-234,-225,-166},{-173,-242,-171,-226,-164,-160},{-215,-244,-193,-183,-151,-169}},{{-202,-204,-194,-176,-155,-137},{-150,-197,-174,-152,-138,-162},{-209,-156,-160,-149,-153,-176},{-199,-147,-170,-150,-162,-175},{-170,-166,-172,-182,-141,-147},{-150,-176,-152,-187,-167,-125},{-145,-208,-177,-130,-161,-166},{-177,-154,-199,-173,-153,-140},{-172,-183,-135,-192,-158,-146},{-188,-204,-160,-168,-155,-146}},{{-127,-109,-133,-100,-101,-109},{-161,-157,-130,-115,-136,-90},{-147,-146,-146,-105,-121,-115},{-122,-108,-131,-128,-94,-131},{-143,-116,-107,-139,-137,-113},{-139,-130,-122,-100,-129,-110},{-162,-157,-109,-121,-102,-119},{-119,-130,-141,-131,-128,-90},{-161,-150,-140,-144,-132,-120},{-130,-134,-140,-138,-114,-90}},{{-96,-95,-94,-106,-89,-118},{-89,-124,-89,-89,-113,-94},{-98,-116,-84,-108,-84,-85},{-94,-107,-79,-108,-87,-83},{-101,-117,-90,-102,-81,-108},{-89,-92,-102,-98,-104,-100},{-93,-92,-107,-113,-99,-85},{-107,-96,-106,-85,-90,-103},{-104,-84,-104,-92,-103,-105},{-113,-98,-117,-84,-104,-116}},{{-81,-80,-113,-103,-111,-113},{-86,-87,-93,-118,-106,-118},{-96,-99,-90,-107,-84,-107},{-96,-95,-85,-102,-90,-100},{-107,-106,-113,-118,-95,-117},{-115,-99,-113,-116,-94,-116},{-100,-118,-100,-78,-113,-111},{-79,-115,-80,-100,-113,-114},{-103,-114,-112,-103,-99,-82},{-82,-106,-113,-109,-81,-82}}},{{{-270,-190,-214,-190,-252,-255},{-275,-252,-240,-200,-262,-238},{-212,-193,-264,-240,-238,-255},{-205,-255,-259,-252,-236,-200},{-228,-262,-259,-259,-219,-198},{-186,-200,-252,-271,-212,-236},{-228,-281,-271,-286,-240,-252},{-259,-262,-269,-243,-255,-255},{-280,-214,-278,-248,-228,-271},{-256,-238,-219,-238,-212,-257}},{{-219,-255,-280,-249,-249,-256},{-221,-190,-216,-229,-206,-221},{-274,-281,-235,-210,-210,-248},{-207,-257,-230,-240,-188,-254},{-236,-262,-221,-263,-183,-219},{-219,-255,-202,-192,-185,-212},{-217,-259,-270,-240,-215,-219},{-257,-264,-263,-199,-260,-181},{-207,-193,-190,-203,-210,-232},{-286,-205,-228,-261,-235,-254}},{{-215,-167,-238,-218,-166,-144},{-241,-194,-194,-216,-213,-205},{-176,-201,-182,-183,-211,-146},{-198,-217,-178,-211,-161,-164},{-243,-201,-164,-170,-189,-180},{-211,-236,-176,-203,-191,-169},{-230,-226,-202,-228,-163,-185},{-252,-230,-222,-170,-189,-157},{-209,-205,-184,-164,-223,-202},{-176,-167,-164,-232,-165,-212}},{{-196,-144,-173,-134,-121,-123},{-182,-134,-154,-174,-120,-160},{-141,-139,-171,-152,-137,-131},{-175,-140,-182,-136,-137,-132},{-162,-180,-187,-152,-125,-131},{-177,-153,-152,-153,-144,-156},{-174,-168,-149,-156,-141,-128},{-172,-173,-149,-172,-140,-144},{-187,-140,-174,-158,-167,-146},{-143,-153,-173,-174,-130,-110}},{{-138,-145,-128,-95,-100,-117},{-153,-123,-128,-133,-109,-129},{-132,-144,-100,-123,-108,-104},{-142,-141,-122,-137,-137,-138},{-114,-145,-134,-111,-99,-113},{-150,-136,-109,-101,-131,-136},{-114,-125,-135,-111,-138,-115},{-154,-108,-140,-105,-138,-132},{-129,-121,-102,-109,-102,-109},{-109,-123,-131,-134,-100,-109}},{{-124,-127,-126,-108,-99,-136},{-129,-100,-136,-133,-113,-132},{-133,-142,-139,-120,-117,-134},{-133,-123,-96,-140,-113,-120},{-124,-126,-140,-123,-145,-115},{-137,-134,-98,-107,-105,-111},{-134,-130,-111,-129,-100,-126},{-106,-125,-106,-142,-143,-136},{-140,-109,-111,-105,-123,-149},{-121,-115,-126,-107,-98,-115}},{{-107,-113,-131,-138,-150,-185},{-126,-147,-155,-135,-177,-190},{-118,-116,-168,-169,-144,-138},{-117,-159,-165,-178,-164,-134},{-118,-125,-147,-169,-178,-156},{-157,-129,-149,-155,-143,-143},{-117,-118,-134,-130,-144,-156},{-144,-156,-162,-169,-138,-165},{-130,-139,-168,-147,-158,-173},{-135,-154,-120,-175,-126,-134}},{{-195,-161,-218,-228,-215,-190},{-141,-159,-168,-202,-207,-179},{-178,-200,-216,-221,-191,-231},{-151,-152,-192,-154,-231,-198},{-146,-173,-185,-202,-175,-237},{-177,-145,-216,-223,-235,-181},{-173,-158,-183,-198,-205,-183},{-146,-173,-165,-190,-167,-239},{-139,-161,-191,-156,-173,-177},{-162,-147,-157,-173,-235,-165}},{{-219,-219,-186,-233,-196,-238},{-209,-239,-204,-268,-233,-192},{-251,-215,-199,-210,-245,-263},{-241,-234,-224,-219,-222,-252},{-192,-199,-206,-261,-206,-194},{-196,-247,-197,-208,-226,-199},{-213,-243,-237,-263,-206,-194},{-232,-175,-193,-256,-254,-240},{-211,-186,-244,-199,-252,-252},{-181,-175,-269,-226,-192,-240}}},{{{-239,-298,-221,-215,-277,-271},{-306,-282,-263,-239,-306,-311},{-218,-239,-242,-255,-282,-250},{-306,-261,-261,-269,-231,-242},{-319,-285,-253,-277,-247,-253},{-306,-258,-253,-237,-306,-274},{-301,-285,-287,-314,-317,-271},{-245,-261,-279,-215,-229,-311},{-314,-282,-231,-309,-263,-295},{-317,-290,-285,-263,-282,-250}},{{-314,-285,-271,-247,-249,-254},{-282,-253,-213,-229,-220,-262},{-234,-223,-218,-277,-220,-228},{-215,-215,-274,-231,-293,-306},{-231,-213,-279,-263,-241,-228},{-221,-301,-229,-277,-296,-251},{-301,-255,-245,-226,-215,-298},{-247,-223,-215,-306,-291,-262},{-250,-229,-317,-237,-299,-210},{-253,-266,-213,-258,-262,-282}},{{-238,-210,-207,-218,-272,-270},{-295,-228,-249,-260,-225,-265},{-212,-233,-282,-260,-255,-248},{-256,-245,-292,-241,-287,-251},{-275,-233,-297,-295,-274,-239},{-259,-296,-262,-213,-208,-212},{-293,-286,-295,-298,-274,-224},{-306,-263,-212,-218,-262,-246},{-295,-281,-232,-231,-292,-222},{-259,-278,-302,-253,-223,-272}},{{-286,-235,-222,-258,-226,-269},{-248,-230,-268,-228,-253,-199},{-262,-244,-238,-216,-213,-244},{-228,-235,-249,-253,-208,-269},{-205,-228,-192,-225,-264,-190},{-207,-240,-210,-276,-240,-195},{-209,-226,-263,-264,-202,-240},{-278,-237,-210,-262,-215,-206},{-212,-247,-185,-196,-226,-242},{-205,-263,-275,-221,-246,-215}},{{-189,-221,-260,-260,-239,-250},{-207,-241,-182,-237,-243,-180},{-178,-228,-178,-245,-230,-206},{-242,-206,-174,-189,-232,-195},{-233,-258,-239,-228,-182,-176},{-260,-260,-213,-234,-256,-200},{-246,-224,-197,-224,-204,-180},{-176,-226,-184,-197,-234,-258},{-255,-228,-204,-243,-221,-210},{-251,-260,-224,-224,-215,-260}},{{-202,-252,-178,-243,-197,-252},{-260,-245,-258,-176,-208,-178},{-215,-176,-215,-206,-239,-217},{-252,-195,-217,-210,-254,-197},{-208,-184,-226,-200,-224,-197},{-174,-187,-191,-258,-241,-234},{-178,-202,-202,-197,-230,-206},{-243,-215,-184,-260,-184,-210},{-247,-221,-213,-260,-208,-206},{-189,-243,-217,-182,-221,-189}},{{-217,-204,-181,-251,-263,-242},{-223,-240,-206,-198,-243,-204},{-263,-188,-215,-186,-270,-209},{-228,-184,-199,-223,-226,-233},{-252,-199,-233,-196,-231,-223},{-210,-253,-220,-271,-213,-230},{-188,-193,-195,-271,-203,-249},{-236,-226,-253,-269,-243,-193},{-252,-262,-267,-264,-189,-233},{-219,-197,-213,-248,-236,-230}},{{-276,-213,-292,-218,-267,-296},{-202,-266,-282,-270,-239,-263},{-226,-283,-223,-283,-255,-273},{-281,-223,-279,-298,-267,-245},{-252,-196,-270,-206,-297,-202},{-259,-261,-218,-208,-219,-288},{-255,-203,-257,-246,-272,-266},{-276,-240,-252,-221,-209,-273},{-236,-232,-274,-231,-282,-281},{-278,-288,-284,-275,-257,-228}},{{-215,-251,-210,-239,-215,-239},{-207,-285,-272,-309,-234,-282},{-287,-287,-272,-298,-274,-255},{-267,-262,-272,-301,-285,-287},{-223,-269,-236,-309,-250,-226},{-243,-231,-275,-266,-261,-263},{-243,-264,-231,-237,-215,-229},{-246,-212,-231,-218,-277,-317},{-249,-256,-299,-295,-285,-261},{-308,-272,-259,-287,-269,-245}}},{{{-268,-268,-283,-241,-250,-275},{-271,-259,-316,-286,-301,-317},{-358,-256,-352,-271,-328,-332},{-295,-310,-250,-319,-271,-290},{-352,-358,-310,-247,-262,-317},{-262,-265,-250,-286,-355,-346},{-346,-244,-346,-334,-331,-349},{-361,-334,-277,-298,-334,-278},{-289,-334,-316,-286,-259,-352},{-322,-349,-289,-316,-268,-329}},{{-275,-333,-227,-257,-212,-229},{-243,-316,-333,-317,-233,-211},{-284,-307,-291,-246,-307,-285},{-352,-310,-336,-248,-299,-262},{-349,-301,-283,-273,-313,-224},{-311,-330,-238,-325,-262,-298},{-290,-238,-246,-246,-294,-216},{-319,-339,-277,-281,-223,-247},{-287,-342,-227,-254,-249,-290},{-328,-319,-224,-276,-299,-244}},{{-233,-257,-197,-217,-233,-196},{-226,-221,-250,-241,-214,-242},{-206,-259,-195,-219,-189,-226},{-258,-223,-213,-217,-172,-236},{-258,-266,-199,-236,-254,-190},{-211,-264,-183,-214,-184,-164},{-201,-204,-202,-265,-244,-180},{-280,-206,-224,-243,-178,-170},{-255,-269,-208,-248,-172,-200},{-213,-254,-211,-225,-244,-184}},{{-231,-218,-164,-157,-163,-188},{-210,-171,-212,-155,-156,-172},{-217,-186,-196,-182,-174,-140},{-223,-162,-196,-206,-191,-153},{-155,-180,-173,-144,-181,-155},{-167,-173,-187,-191,-164,-143},{-210,-154,-206,-175,-176,-153},{-225,-175,-142,-177,-199,-175},{-182,-199,-148,-181,-161,-161},{-190,-171,-212,-143,-179,-147}},{{-142,-154,-125,-123,-179,-134},{-176,-139,-177,-123,-152,-146},{-172,-160,-159,-177,-156,-154},{-137,-146,-146,-148,-171,-180},{-131,-129,-174,-123,-180,-168},{-134,-140,-169,-151,-172,-143},{-184,-162,-139,-169,-148,-148},{-161,-123,-154,-131,-151,-159},{-179,-174,-171,-132,-156,-149},{-137,-169,-168,-160,-132,-129}},{{-132,-181,-157,-136,-206,-181},{-128,-129,-185,-181,-140,-154},{-160,-156,-177,-192,-201,-215},{-126,-162,-151,-163,-158,-186},{-169,-164,-141,-202,-177,-157},{-180,-127,-186,-146,-149,-199},{-171,-181,-141,-163,-186,-172},{-145,-154,-177,-166,-191,-179},{-129,-186,-178,-190,-189,-174},{-166,-181,-159,-170,-166,-188}},{{-196,-176,-169,-254,-216,-225},{-158,-168,-229,-191,-245,-281},{-201,-220,-222,-237,-227,-239},{-156,-184,-216,-228,-207,-190},{-177,-184,-194,-254,-198,-192},{-156,-160,-243,-237,-184,-257},{-162,-178,-229,-194,-259,-192},{-209,-160,-175,-174,-263,-187},{-198,-164,-165,-181,-194,-194},{-165,-228,-216,-247,-234,-229}},{{-248,-297,-243,-317,-331,-314},{-245,-270,-290,-285,-251,-328},{-219,-219,-253,-285,-232,-291},{-284,-282,-245,-234,-282,-289},{-292,-265,-269,-237,-293,-337},{-250,-214,-224,-299,-251,-235},{-255,-242,-298,-239,-328,-317},{-262,-295,-311,-247,-246,-269},{-272,-202,-292,-250,-304,-246},{-236,-260,-245,-229,-268,-328}},{{-257,-335,-329,-280,-277,-277},{-347,-279,-290,-277,-328,-337},{-243,-315,-263,-280,-244,-343},{-266,-297,-245,-244,-322,-322},{-231,-303,-293,-277,-331,-346},{-329,-282,-272,-274,-289,-271},{-240,-294,-260,-274,-346,-277},{-324,-338,-260,-247,-337,-340},{-347,-347,-254,-307,-328,-268},{-321,-273,-257,-244,-277,-286}}},{{{-374,-304,-287,-395,-280,-385},{-336,-371,-315,-340,-364,-315},{-399,-336,-308,-315,-284,-350},{-374,-304,-420,-350,-312,-322},{-402,-322,-336,-350,-287,-308},{-322,-290,-284,-378,-416,-410},{-284,-298,-385,-350,-371,-402},{-420,-350,-332,-402,-308,-410},{-301,-304,-392,-402,-332,-413},{-357,-315,-284,-410,-378,-304}},{{-400,-357,-336,-347,-364,-348},{-310,-360,-363,-391,-276,-293},{-379,-357,-397,-281,-315,-345},{-317,-295,-346,-347,-321,-290},{-341,-305,-305,-331,-282,-299},{-372,-370,-302,-271,-282,-341},{-411,-292,-329,-351,-305,-341},{-372,-408,-312,-287,-279,-319},{-282,-408,-370,-331,-341,-309},{-411,-316,-370,-294,-331,-306}},{{-252,-305,-360,-346,-294,-300},{-261,-348,-279,-264,-268,-250},{-306,-293,-273,-340,-336,-311},{-306,-308,-348,-319,-242,-259},{-340,-293,-255,-316,-325,-245},{-302,-320,-306,-272,-288,-225},{-280,-317,-357,-325,-231,-286},{-280,-249,-291,-343,-294,-289},{-299,-311,-294,-305,-331,-286},{-318,-268,-276,-302,-342,-328}},{{-230,-218,-234,-221,-247,-210},{-308,-234,-288,-276,-213,-234},{-251,-229,-242,-286,-201,-225},{-248,-263,-298,-301,-294,-198},{-324,-260,-244,-289,-228,-234},{-321,-218,-231,-264,-247,-256},{-313,-268,-208,-299,-272,-287},{-297,-239,-290,-294,-198,-280},{-262,-297,-272,-211,-198,-229},{-273,-284,-211,-256,-243,-272}},{{-261,-187,-270,-192,-236,-210},{-206,-245,-208,-233,-247,-206},{-277,-226,-236,-236,-268,-185},{-242,-213,-189,-240,-226,-243},{-237,-222,-194,-217,-275,-192},{-218,-270,-185,-201,-240,-261},{-190,-268,-252,-222,-263,-196},{-275,-210,-224,-261,-240,-187},{-249,-245,-187,-245,-268,-189},{-246,-201,-208,-189,-266,-238}},{{-219,-219,-224,-207,-196,-234},{-240,-249,-221,-255,-230,-236},{-277,-273,-270,-224,-196,-202},{-254,-219,-224,-269,-218,-234},{-219,-243,-242,-259,-240,-271},{-263,-226,-210,-207,-235,-283},{-240,-194,-226,-226,-220,-224},{-210,-277,-198,-252,-244,-253},{-219,-256,-198,-262,-198,-229},{-224,-266,-198,-252,-235,-263}},{{-232,-241,-298,-257,-253,-308},{-202,-256,-282,-322,-228,-302},{-287,-228,-301,-265,-323,-331},{-244,-287,-245,-317,-301,-305},{-244,-233,-274,-259,-253,-288},{-297,-238,-317,-292,-225,-259},{-267,-303,-226,-238,-228,-259},{-292,-262,-237,-254,-289,-274},{-292,-282,-223,-319,-228,-320},{-262,-210,-242,-273,-244,-259}},{{-263,-258,-372,-333,-382,-271},{-346,-306,-326,-311,-327,-386},{-346,-279,-313,-346,-318,-320},{-246,-285,-332,-380,-353,-284},{-326,-255,-341,-333,-285,-284},{-269,-348,-251,-273,-327,-360},{-237,-336,-301,-368,-389,-389},{-343,-318,-285,-304,-363,-353},{-243,-300,-322,-292,-363,-327},{-266,-364,-267,-342,-282,-337}},{{-346,-372,-306,-312,-354,-402},{-346,-280,-396,-360,-304,-336},{-329,-409,-378,-389,-290,-329},{-386,-361,-279,-346,-329,-368},{-339,-280,-341,-385,-392,-284},{-373,-406,-296,-402,-304,-326},{-269,-338,-354,-304,-290,-332},{-319,-334,-282,-399,-322,-385},{-376,-379,-306,-346,-420,-357},{-380,-389,-385,-389,-371,-364}}}}; // supply (positive for supply and negative for demand) under different scenarios 
int iniv[I]={1052,192,238,253,176,234,280,264,252}; // initial inventory 
int ubiv[I]={2104,384,476,507,352,468,350,495,504}; // the upper bounds of inventory 
int len[I1][I2]={{5,3,2,2,1,1,2,3}}; // the traveling time between two sites 
// cost parameters: 
double c1[I]={0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0}; // inventory holding cost 
double c2[I]={0.05,13.35,8.59,5.57,4.52,2.83,1.94,4.81,7.57}; // cost of leftover and unmet 
double c3[BN]={0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0}; // transportation cost for capacity contracts 
double c4[I1][I2]={{12.14,7.81,5.06,4.11,2.57,1.76,4.37,6.88}}; // cost of spot market 
// bid parameters: 
int RLBN[I1][I2]={{9,9,9,9,9,9,9,9}}; // number of bids on each arc 
int LBset[I1][I2][LBN]={{{0,1,2,3,4,5,6,7,8},{9,10,11,12,13,14,15,16,17},{18,19,20,21,22,23,24,25,26},{27,28,29,30,31,32,33,34,35},{36,37,38,39,40,41,42,43,44},{45,46,47,48,49,50,51,52,53},{54,55,56,57,58,59,60,61,62},{63,64,65,66,67,68,69,70,71}}}; // set of bids on each arc 
double frt[BN]={9.71,9.71,9.71,8.5,8.5,8.5,7.28,7.28,7.28,6.25,6.25,6.25,5.47,5.47,5.47,4.69,4.69,4.69,4.05,4.05,4.05,3.54,3.54,3.54,3.04,3.04,3.04,3.29,3.29,3.29,2.88,2.88,2.88,2.47,2.47,2.47,2.06,2.06,2.06,1.8,1.8,1.8,1.54,1.54,1.54,1.41,1.41,1.41,1.23,1.23,1.23,1.06,1.06,1.06,3.5,3.5,3.5,3.06,3.06,3.06,2.62,2.62,2.62,5.5,5.5,5.5,4.82,4.82,4.82,4.13,4.13,4.13}; // freight rate of each bid 
int lbcap[BN]={75,75,75,1,151,151,151,226,226,75,75,75,301,151,151,151,226,226,75,75,75,301,151,151,151,226,226,75,75,75,301,151,151,151,226,226,75,75,75,301,151,151,151,226,226,75,75,75,301,151,151,151,226,226,75,75,75,301,151,151,151,226,226,75,75,75,301,151,151,151,226,226}; // capacity lower bound of each bid 
int ubcap[BN]={150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300}; // capacity upper bound of each bid 
// shipment parameters: 
int SHN[BN]={24,12,8,24,13,9,24,12,9,25,13,9,26,13,9,26,13,9,26,13,9,26,13,9,26,13,9,26,13,9,25,13,9,25,13,9,27,14,9,26,14,9,26,14,9,27,13,9,27,13,9,27,13,9,26,13,9,26,13,9,25,13,9,26,13,9,25,13,9,25,13,9}; // number of shipment for each bid 
int SHset[BN][MBSN]={{0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23},{24,25,26,27,28,29,30,31,32,33,34,35},{36,37,38,39,40,41,42,43},{44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67},{68,69,70,71,72,73,74,75,76,77,78,79,80},{81,82,83,84,85,86,87,88,89},{90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113},{114,115,116,117,118,119,120,121,122,123,124,125},{126,127,128,129,130,131,132,133,134},{135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159},{160,161,162,163,164,165,166,167,168,169,170,171,172},{173,174,175,176,177,178,179,180,181},{182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207},{208,209,210,211,212,213,214,215,216,217,218,219,220},{221,222,223,224,225,226,227,228,229},{230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255},{256,257,258,259,260,261,262,263,264,265,266,267,268},{269,270,271,272,273,274,275,276,277},{278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303},{304,305,306,307,308,309,310,311,312,313,314,315,316},{317,318,319,320,321,322,323,324,325},{326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351},{352,353,354,355,356,357,358,359,360,361,362,363,364},{365,366,367,368,369,370,371,372,373},{374,375,376,377,378,379,380,381,382,383,384,385,386,387,388,389,390,391,392,393,394,395,396,397,398,399},{400,401,402,403,404,405,406,407,408,409,410,411,412},{413,414,415,416,417,418,419,420,421},{422,423,424,425,426,427,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447},{448,449,450,451,452,453,454,455,456,457,458,459,460},{461,462,463,464,465,466,467,468,469},{470,471,472,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,489,490,491,492,493,494},{495,496,497,498,499,500,501,502,503,504,505,506,507},{508,509,510,511,512,513,514,515,516},{517,518,519,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,535,536,537,538,539,540,541},{542,543,544,545,546,547,548,549,550,551,552,553,554},{555,556,557,558,559,560,561,562,563},{564,565,566,567,568,569,570,571,572,573,574,575,576,577,578,579,580,581,582,583,584,585,586,587,588,589,590},{591,592,593,594,595,596,597,598,599,600,601,602,603,604},{605,606,607,608,609,610,611,612,613},{614,615,616,617,618,619,620,621,622,623,624,625,626,627,628,629,630,631,632,633,634,635,636,637,638,639},{640,641,642,643,644,645,646,647,648,649,650,651,652,653},{654,655,656,657,658,659,660,661,662},{663,664,665,666,667,668,669,670,671,672,673,674,675,676,677,678,679,680,681,682,683,684,685,686,687,688},{689,690,691,692,693,694,695,696,697,698,699,700,701,702},{703,704,705,706,707,708,709,710,711},{712,713,714,715,716,717,718,719,720,721,722,723,724,725,726,727,728,729,730,731,732,733,734,735,736,737,738},{739,740,741,742,743,744,745,746,747,748,749,750,751},{752,753,754,755,756,757,758,759,760},{761,762,763,764,765,766,767,768,769,770,771,772,773,774,775,776,777,778,779,780,781,782,783,784,785,786,787},{788,789,790,791,792,793,794,795,796,797,798,799,800},{801,802,803,804,805,806,807,808,809},{810,811,812,813,814,815,816,817,818,819,820,821,822,823,824,825,826,827,828,829,830,831,832,833,834,835,836},{837,838,839,840,841,842,843,844,845,846,847,848,849},{850,851,852,853,854,855,856,857,858},{859,860,861,862,863,864,865,866,867,868,869,870,871,872,873,874,875,876,877,878,879,880,881,882,883,884},{885,886,887,888,889,890,891,892,893,894,895,896,897},{898,899,900,901,902,903,904,905,906},{907,908,909,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,930,931,932},{933,934,935,936,937,938,939,940,941,942,943,944,945},{946,947,948,949,950,951,952,953,954},{955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,975,976,977,978,979},{980,981,982,983,984,985,986,987,988,989,990,991,992},{993,994,995,996,997,998,999,1000,1001},{1002,1003,1004,1005,1006,1007,1008,1009,1010,1011,1012,1013,1014,1015,1016,1017,1018,1019,1020,1021,1022,1023,1024,1025,1026,1027},{1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040},{1041,1042,1043,1044,1045,1046,1047,1048,1049},{1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074},{1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087},{1088,1089,1090,1091,1092,1093,1094,1095,1096},{1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1120,1121},{1122,1123,1124,1125,1126,1127,1128,1129,1130,1131,1132,1133,1134},{1135,1136,1137,1138,1139,1140,1141,1142,1143}}; // set of shipments in each bid 
int SHsts[SPN]={2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,2,6,10,14,18,22,26,30,34,38,42,46,1,7,13,19,25,31,37,43,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,0,4,8,12,16,20,24,28,32,36,40,44,48,0,6,12,18,24,30,36,42,48,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,1,5,9,13,17,21,25,29,33,37,41,45,0,6,12,18,24,30,36,42,48,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,1,5,9,13,17,21,25,29,33,37,41,45,49,0,6,12,18,24,30,36,42,48,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,2,6,10,14,18,22,26,30,34,38,42,46,50,2,8,14,20,26,32,38,44,50,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,0,4,8,12,16,20,24,28,32,36,40,44,48,0,6,12,18,24,30,36,42,48,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,1,5,9,13,17,21,25,29,33,37,41,45,49,2,8,14,20,26,32,38,44,50,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,1,5,9,13,17,21,25,29,33,37,41,45,49,0,6,12,18,24,30,36,42,48,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,1,5,9,13,17,21,25,29,33,37,41,45,49,2,8,14,20,26,32,38,44,50,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,2,6,10,14,18,22,26,30,34,38,42,46,50,2,8,14,20,26,32,38,44,50,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,0,4,8,12,16,20,24,28,32,36,40,44,48,2,8,14,20,26,32,38,44,50,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,1,5,9,13,17,21,25,29,33,37,41,45,49,1,7,13,19,25,31,37,43,49,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,0,4,8,12,16,20,24,28,32,36,40,44,48,52,0,6,12,18,24,30,36,42,48,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,0,4,8,12,16,20,24,28,32,36,40,44,48,52,2,8,14,20,26,32,38,44,50,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,0,4,8,12,16,20,24,28,32,36,40,44,48,52,1,7,13,19,25,31,37,43,49,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,1,5,9,13,17,21,25,29,33,37,41,45,49,2,8,14,20,26,32,38,44,50,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,1,5,9,13,17,21,25,29,33,37,41,45,49,0,6,12,18,24,30,36,42,48,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,1,5,9,13,17,21,25,29,33,37,41,45,49,2,8,14,20,26,32,38,44,50,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,1,5,9,13,17,21,25,29,33,37,41,45,49,2,8,14,20,26,32,38,44,50,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,0,4,8,12,16,20,24,28,32,36,40,44,48,2,8,14,20,26,32,38,44,50,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,1,5,9,13,17,21,25,29,33,37,41,45,49,2,8,14,20,26,32,38,44,50,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,2,6,10,14,18,22,26,30,34,38,42,46,50,2,8,14,20,26,32,38,44,50,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,0,4,8,12,16,20,24,28,32,36,40,44,48,0,6,12,18,24,30,36,42,48,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,0,4,8,12,16,20,24,28,32,36,40,44,48,2,8,14,20,26,32,38,44,50}; // set of start times of each shipment 
int SHets[SPN]={7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,7,11,15,19,23,27,31,35,39,43,47,51,6,12,18,24,30,36,42,48,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,5,9,13,17,21,25,29,33,37,41,45,49,53,5,11,17,23,29,35,41,47,53,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,6,10,14,18,22,26,30,34,38,42,46,50,5,11,17,23,29,35,41,47,53,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,4,8,12,16,20,24,28,32,36,40,44,48,52,3,9,15,21,27,33,39,45,51,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,5,9,13,17,21,25,29,33,37,41,45,49,53,5,11,17,23,29,35,41,47,53,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,3,7,11,15,19,23,27,31,35,39,43,47,51,3,9,15,21,27,33,39,45,51,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,3,7,11,15,19,23,27,31,35,39,43,47,51,4,10,16,22,28,34,40,46,52,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,3,7,11,15,19,23,27,31,35,39,43,47,51,2,8,14,20,26,32,38,44,50,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,3,7,11,15,19,23,27,31,35,39,43,47,51,4,10,16,22,28,34,40,46,52,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,4,8,12,16,20,24,28,32,36,40,44,48,52,4,10,16,22,28,34,40,46,52,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,2,6,10,14,18,22,26,30,34,38,42,46,50,4,10,16,22,28,34,40,46,52,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,3,7,11,15,19,23,27,31,35,39,43,47,51,3,9,15,21,27,33,39,45,51,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,1,5,9,13,17,21,25,29,33,37,41,45,49,53,1,7,13,19,25,31,37,43,49,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,1,5,9,13,17,21,25,29,33,37,41,45,49,53,3,9,15,21,27,33,39,45,51,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,1,5,9,13,17,21,25,29,33,37,41,45,49,53,2,8,14,20,26,32,38,44,50,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,2,6,10,14,18,22,26,30,34,38,42,46,50,3,9,15,21,27,33,39,45,51,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,2,6,10,14,18,22,26,30,34,38,42,46,50,1,7,13,19,25,31,37,43,49,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,2,6,10,14,18,22,26,30,34,38,42,46,50,3,9,15,21,27,33,39,45,51,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,3,7,11,15,19,23,27,31,35,39,43,47,51,4,10,16,22,28,34,40,46,52,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,2,6,10,14,18,22,26,30,34,38,42,46,50,4,10,16,22,28,34,40,46,52,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,3,7,11,15,19,23,27,31,35,39,43,47,51,4,10,16,22,28,34,40,46,52,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,5,9,13,17,21,25,29,33,37,41,45,49,53,5,11,17,23,29,35,41,47,53,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,3,7,11,15,19,23,27,31,35,39,43,47,51,3,9,15,21,27,33,39,45,51,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,3,7,11,15,19,23,27,31,35,39,43,47,51,5,11,17,23,29,35,41,47,53}; // set of end times of each shipment 
