int Dev = 30;// Deviation
extern const int CNN = 3;// 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]={{{{13124,0,0,0,0,0},{12262,0,0,0,0,0},{12117,0,0,0,0,0},{12619,0,0,0,0,0},{12156,0,0,0,0,0},{12203,0,0,0,0,0},{12401,0,0,0,0,0},{12085,0,0,0,0,0},{12625,0,0,0,0,0},{12282,0,0,0,0,0}},{{12037,0,0,0,0,0},{12191,0,0,0,0,0},{12175,0,0,0,0,0},{12322,0,0,0,0,0},{12663,0,0,0,0,0},{12250,0,0,0,0,0},{12491,0,0,0,0,0},{12322,0,0,0,0,0},{12425,0,0,0,0,0},{12602,0,0,0,0,0}},{{11853,0,0,0,0,0},{11051,0,0,0,0,0},{11119,0,0,0,0,0},{11453,0,0,0,0,0},{11684,0,0,0,0,0},{11754,0,0,0,0,0},{11835,0,0,0,0,0},{11425,0,0,0,0,0},{11160,0,0,0,0,0},{11971,0,0,0,0,0}},{{9567,0,0,0,0,0},{10369,0,0,0,0,0},{10149,0,0,0,0,0},{10658,0,0,0,0,0},{10058,0,0,0,0,0},{10272,0,0,0,0,0},{10392,0,0,0,0,0},{10130,0,0,0,0,0},{10505,0,0,0,0,0},{10287,0,0,0,0,0}},{{9326,0,0,0,0,0},{9268,0,0,0,0,0},{9702,0,0,0,0,0},{9968,0,0,0,0,0},{9471,0,0,0,0,0},{9546,0,0,0,0,0},{9511,0,0,0,0,0},{9533,0,0,0,0,0},{9620,0,0,0,0,0},{9435,0,0,0,0,0}},{{9073,0,0,0,0,0},{9118,0,0,0,0,0},{9171,0,0,0,0,0},{9113,0,0,0,0,0},{9385,0,0,0,0,0},{9685,0,0,0,0,0},{8979,0,0,0,0,0},{9804,0,0,0,0,0},{9780,0,0,0,0,0},{9421,0,0,0,0,0}},{{9911,0,0,0,0,0},{9659,0,0,0,0,0},{9946,0,0,0,0,0},{10120,0,0,0,0,0},{9802,0,0,0,0,0},{9717,0,0,0,0,0},{10196,0,0,0,0,0},{9839,0,0,0,0,0},{9747,0,0,0,0,0},{10058,0,0,0,0,0}},{{10237,0,0,0,0,0},{11114,0,0,0,0,0},{11035,0,0,0,0,0},{11278,0,0,0,0,0},{10898,0,0,0,0,0},{11051,0,0,0,0,0},{11024,0,0,0,0,0},{11029,0,0,0,0,0},{11206,0,0,0,0,0},{10349,0,0,0,0,0}},{{11198,0,0,0,0,0},{12524,0,0,0,0,0},{12313,0,0,0,0,0},{12139,0,0,0,0,0},{11756,0,0,0,0,0},{12730,0,0,0,0,0},{11876,0,0,0,0,0},{12255,0,0,0,0,0},{12042,0,0,0,0,0},{12142,0,0,0,0,0}}},{{{-297,-315,-323,-320,-312,-362},{-356,-223,-312,-344,-250,-297},{-379,-218,-291,-247,-276,-282},{-256,-315,-273,-300,-220,-247},{-276,-282,-373,-253,-241,-218},{-309,-212,-379,-323,-253,-300},{-282,-259,-376,-238,-259,-276},{-259,-276,-244,-347,-209,-206},{-353,-212,-256,-218,-341,-215},{-294,-276,-338,-291,-315,-229}},{{-223,-214,-297,-279,-347,-277},{-235,-220,-288,-321,-275,-337},{-206,-320,-314,-312,-206,-293},{-368,-329,-241,-321,-320,-293},{-215,-297,-325,-321,-275,-269},{-226,-240,-330,-203,-246,-280},{-328,-232,-358,-206,-291,-236},{-290,-223,-358,-203,-336,-228},{-334,-286,-204,-211,-200,-308},{-325,-286,-325,-304,-291,-306}},{{-190,-225,-198,-291,-184,-177},{-195,-198,-298,-195,-246,-262},{-308,-305,-256,-177,-248,-161},{-228,-177,-263,-215,-152,-249},{-310,-298,-296,-170,-259,-198},{-228,-191,-298,-235,-208,-253},{-282,-288,-170,-204,-257,-220},{-325,-240,-284,-208,-212,-266},{-268,-276,-203,-186,-212,-212},{-288,-208,-291,-220,-238,-237}},{{-152,-178,-132,-139,-198,-130},{-236,-163,-202,-131,-148,-147},{-173,-208,-199,-179,-208,-146},{-223,-142,-177,-158,-129,-152},{-193,-142,-188,-153,-183,-117},{-169,-239,-152,-126,-213,-186},{-154,-155,-131,-150,-165,-144},{-232,-215,-217,-217,-167,-160},{-144,-170,-227,-175,-214,-163},{-146,-236,-125,-212,-196,-133}},{{-162,-161,-156,-179,-150,-162},{-177,-116,-109,-112,-144,-112},{-125,-177,-169,-141,-178,-188},{-180,-165,-137,-128,-151,-153},{-189,-188,-173,-128,-141,-119},{-156,-192,-156,-182,-185,-140},{-199,-179,-172,-173,-169,-110},{-136,-155,-169,-125,-150,-188},{-152,-124,-182,-147,-132,-182},{-179,-136,-190,-106,-188,-129}},{{-163,-107,-154,-109,-118,-190},{-178,-168,-166,-134,-164,-134},{-107,-171,-156,-134,-172,-209},{-156,-148,-127,-126,-200,-199},{-160,-126,-140,-163,-121,-155},{-165,-178,-190,-146,-132,-207},{-178,-122,-178,-120,-142,-135},{-115,-122,-165,-189,-179,-179},{-191,-147,-163,-132,-198,-202},{-178,-154,-131,-160,-179,-177}},{{-158,-145,-232,-201,-217,-189},{-202,-154,-182,-223,-186,-228},{-181,-212,-239,-253,-193,-237},{-124,-132,-207,-251,-265,-276},{-124,-230,-133,-169,-240,-178},{-162,-145,-175,-213,-265,-176},{-223,-228,-180,-255,-219,-191},{-211,-147,-243,-225,-238,-271},{-150,-157,-230,-199,-205,-282},{-216,-221,-186,-171,-255,-273}},{{-220,-242,-215,-205,-248,-213},{-252,-306,-259,-192,-279,-307},{-284,-258,-176,-293,-211,-317},{-229,-228,-303,-243,-264,-331},{-182,-251,-207,-235,-193,-285},{-259,-284,-317,-238,-269,-204},{-211,-235,-246,-271,-224,-301},{-259,-179,-285,-250,-253,-304},{-238,-226,-298,-314,-282,-317},{-216,-270,-183,-220,-206,-194}},{{-345,-320,-276,-213,-253,-247},{-301,-332,-339,-272,-359,-268},{-270,-253,-333,-318,-326,-270},{-320,-275,-264,-289,-300,-238},{-320,-259,-290,-277,-247,-268},{-342,-348,-362,-350,-247,-335},{-348,-197,-215,-315,-373,-247},{-229,-323,-353,-298,-362,-226},{-317,-360,-278,-274,-226,-285},{-337,-197,-367,-269,-282,-318}}},{{{-181,-210,-194,-209,-202,-170},{-195,-134,-135,-197,-132,-168},{-124,-167,-142,-145,-201,-134},{-128,-176,-124,-195,-153,-159},{-133,-155,-226,-192,-149,-237},{-119,-196,-164,-131,-160,-139},{-139,-134,-186,-136,-237,-244},{-124,-183,-214,-129,-167,-160},{-181,-120,-122,-227,-173,-195},{-144,-188,-205,-163,-132,-216}},{{-224,-262,-151,-228,-179,-188},{-198,-238,-170,-159,-231,-243},{-154,-191,-222,-243,-179,-248},{-242,-223,-155,-261,-218,-286},{-242,-178,-196,-276,-195,-290},{-244,-174,-213,-228,-254,-307},{-236,-160,-224,-188,-202,-224},{-186,-258,-168,-241,-183,-193},{-170,-264,-275,-221,-179,-221},{-236,-252,-213,-278,-163,-288}},{{-190,-291,-322,-321,-341,-269},{-183,-240,-225,-270,-274,-218},{-254,-212,-186,-329,-263,-297},{-220,-189,-236,-335,-233,-325},{-210,-298,-288,-348,-224,-294},{-195,-199,-328,-219,-310,-241},{-245,-296,-296,-270,-247,-204},{-287,-250,-333,-197,-341,-311},{-185,-230,-233,-284,-199,-331},{-287,-288,-293,-329,-332,-277}},{{-295,-220,-226,-241,-265,-217},{-202,-209,-224,-343,-337,-238},{-338,-282,-280,-226,-223,-295},{-376,-259,-319,-304,-346,-298},{-275,-218,-262,-259,-334,-241},{-280,-268,-361,-295,-223,-328},{-202,-350,-232,-304,-331,-370},{-277,-359,-301,-244,-238,-295},{-329,-297,-238,-259,-226,-304},{-266,-347,-238,-373,-277,-313}},{{-328,-349,-337,-216,-344,-203},{-355,-334,-337,-300,-285,-377},{-364,-370,-211,-360,-220,-339},{-277,-322,-346,-267,-297,-351},{-340,-304,-217,-210,-262,-319},{-238,-214,-340,-366,-206,-296},{-283,-355,-310,-249,-209,-368},{-337,-331,-334,-243,-220,-223},{-223,-376,-391,-327,-341,-264},{-376,-277,-283,-315,-291,-339}},{{-245,-226,-328,-222,-300,-216},{-331,-229,-341,-219,-220,-218},{-225,-251,-203,-198,-320,-305},{-288,-346,-198,-277,-236,-179},{-362,-220,-350,-275,-269,-320},{-302,-324,-295,-256,-210,-278},{-325,-257,-266,-214,-264,-198},{-339,-304,-298,-267,-210,-270},{-351,-343,-228,-317,-315,-308},{-237,-318,-263,-238,-300,-243}},{{-199,-248,-196,-219,-263,-247},{-247,-211,-198,-217,-155,-169},{-221,-188,-194,-219,-205,-259},{-214,-271,-178,-243,-213,-199},{-305,-253,-163,-183,-244,-253},{-185,-200,-183,-226,-224,-259},{-257,-253,-207,-166,-168,-175},{-269,-174,-210,-163,-151,-141},{-312,-188,-223,-215,-226,-259},{-295,-302,-161,-245,-265,-169}},{{-200,-205,-150,-164,-123,-144},{-221,-192,-138,-191,-149,-134},{-180,-136,-217,-206,-192,-163},{-192,-236,-186,-186,-142,-153},{-248,-154,-190,-182,-120,-197},{-230,-175,-185,-193,-149,-146},{-136,-188,-159,-187,-195,-192},{-246,-221,-130,-131,-212,-119},{-223,-179,-138,-203,-152,-202},{-152,-141,-235,-201,-150,-141}},{{-141,-188,-175,-210,-141,-141},{-208,-188,-203,-165,-213,-195},{-200,-161,-212,-148,-178,-118},{-186,-186,-150,-133,-134,-217},{-198,-193,-119,-185,-170,-186},{-144,-193,-205,-202,-185,-166},{-150,-173,-166,-126,-163,-208},{-143,-165,-143,-129,-195,-153},{-119,-163,-183,-203,-129,-118},{-126,-181,-190,-156,-200,-208}}},{{{-237,-375,-355,-286,-355,-368},{-352,-411,-293,-270,-349,-329},{-319,-326,-230,-336,-326,-286},{-428,-428,-349,-290,-273,-368},{-270,-322,-382,-359,-359,-342},{-401,-368,-349,-378,-296,-345},{-349,-250,-316,-385,-234,-388},{-392,-276,-263,-342,-247,-299},{-392,-372,-421,-405,-273,-398},{-270,-329,-273,-276,-385,-421}},{{-256,-338,-351,-323,-311,-352},{-420,-419,-303,-273,-225,-346},{-246,-412,-319,-361,-330,-370},{-325,-386,-300,-333,-376,-271},{-390,-419,-223,-374,-345,-334},{-344,-290,-293,-336,-348,-304},{-236,-251,-300,-276,-299,-385},{-426,-370,-249,-295,-376,-355},{-390,-306,-313,-367,-314,-292},{-354,-370,-268,-323,-216,-379}},{{-313,-343,-252,-245,-339,-247},{-209,-317,-210,-343,-268,-252},{-227,-271,-252,-207,-215,-188},{-248,-271,-283,-305,-238,-236},{-280,-282,-252,-209,-326,-314},{-357,-357,-353,-207,-199,-260},{-339,-305,-238,-305,-331,-280},{-212,-219,-230,-329,-186,-252},{-324,-360,-263,-288,-278,-242},{-357,-245,-286,-354,-215,-203}},{{-178,-219,-192,-215,-282,-234},{-178,-277,-239,-166,-244,-278},{-230,-224,-218,-210,-278,-173},{-310,-304,-192,-296,-215,-267},{-248,-173,-296,-238,-244,-160},{-310,-236,-249,-268,-242,-162},{-290,-294,-201,-254,-215,-193},{-192,-277,-287,-210,-215,-160},{-285,-194,-166,-280,-222,-191},{-205,-204,-182,-261,-249,-232}},{{-260,-210,-248,-176,-155,-239},{-187,-223,-176,-208,-149,-172},{-263,-227,-260,-269,-246,-151},{-228,-235,-248,-235,-252,-172},{-156,-235,-189,-262,-153,-246},{-282,-248,-178,-204,-267,-229},{-163,-160,-231,-181,-191,-227},{-213,-185,-256,-149,-166,-164},{-161,-200,-231,-155,-273,-229},{-260,-158,-189,-204,-195,-164}},{{-202,-265,-184,-245,-207,-250},{-183,-164,-177,-184,-266,-266},{-239,-237,-230,-208,-185,-205},{-265,-225,-247,-156,-211,-218},{-197,-166,-274,-200,-198,-200},{-244,-258,-215,-230,-253,-277},{-176,-227,-160,-158,-255,-270},{-265,-181,-217,-252,-273,-266},{-162,-212,-213,-254,-191,-198},{-231,-212,-245,-154,-213,-189}},{{-219,-287,-259,-186,-263,-269},{-238,-299,-285,-181,-199,-221},{-231,-270,-249,-226,-243,-327},{-277,-166,-195,-309,-191,-202},{-196,-192,-227,-201,-222,-338},{-185,-168,-237,-218,-322,-215},{-261,-239,-198,-276,-330,-303},{-178,-239,-183,-299,-212,-335},{-240,-225,-307,-241,-183,-210},{-192,-280,-198,-198,-294,-332}},{{-197,-244,-249,-334,-220,-382},{-195,-312,-358,-314,-214,-397},{-288,-340,-202,-228,-311,-311},{-318,-205,-312,-308,-269,-342},{-293,-253,-344,-213,-230,-299},{-195,-197,-286,-258,-323,-302},{-288,-343,-301,-379,-230,-314},{-279,-292,-355,-290,-254,-262},{-277,-211,-301,-240,-332,-314},{-255,-270,-243,-272,-239,-253}},{{-249,-339,-274,-283,-247,-349},{-334,-400,-380,-395,-398,-257},{-255,-314,-364,-237,-299,-392},{-403,-259,-361,-253,-234,-398},{-290,-262,-303,-359,-243,-299},{-353,-237,-348,-418,-411,-322},{-287,-237,-419,-260,-293,-316},{-337,-413,-351,-378,-270,-273},{-384,-275,-412,-313,-401,-270},{-375,-224,-380,-365,-355,-349}}},{{{-104,-107,-130,-144,-149,-150},{-116,-88,-91,-130,-126,-115},{-77,-123,-96,-102,-139,-156},{-108,-129,-82,-124,-149,-166},{-133,-137,-143,-150,-131,-110},{-117,-117,-118,-123,-118,-131},{-135,-107,-143,-118,-155,-131},{-110,-78,-130,-99,-159,-100},{-92,-87,-116,-146,-111,-96},{-90,-83,-124,-101,-104,-119}},{{-96,-133,-145,-144,-137,-203},{-150,-179,-104,-200,-127,-173},{-136,-102,-115,-121,-180,-165},{-135,-164,-135,-113,-182,-150},{-144,-164,-181,-121,-143,-143},{-135,-166,-104,-202,-167,-158},{-135,-100,-192,-126,-195,-207},{-94,-138,-191,-180,-143,-203},{-103,-103,-151,-200,-182,-178},{-100,-106,-186,-116,-192,-156}},{{-210,-184,-206,-135,-194,-139},{-164,-167,-143,-173,-196,-147},{-147,-198,-141,-207,-180,-180},{-131,-151,-167,-162,-229,-248},{-173,-229,-136,-177,-196,-145},{-147,-198,-208,-188,-208,-224},{-152,-171,-242,-218,-151,-212},{-138,-135,-229,-173,-239,-176},{-150,-211,-132,-175,-218,-164},{-136,-144,-203,-152,-210,-208}},{{-213,-166,-219,-217,-160,-199},{-229,-221,-223,-258,-221,-256},{-152,-221,-217,-168,-173,-262},{-207,-177,-250,-179,-166,-219},{-260,-242,-158,-250,-227,-233},{-144,-195,-144,-254,-191,-162},{-201,-207,-181,-175,-193,-246},{-195,-217,-166,-217,-203,-209},{-252,-215,-201,-189,-233,-146},{-258,-215,-227,-262,-162,-221}},{{-242,-144,-201,-177,-185,-132},{-207,-158,-158,-168,-195,-147},{-173,-168,-209,-138,-136,-180},{-181,-217,-248,-209,-163,-136},{-187,-183,-169,-203,-181,-219},{-168,-191,-252,-185,-144,-182},{-193,-256,-232,-183,-144,-158},{-256,-233,-234,-211,-221,-212},{-223,-156,-171,-191,-172,-201},{-177,-162,-256,-234,-168,-138}},{{-175,-225,-185,-168,-176,-165},{-143,-123,-122,-117,-167,-157},{-125,-213,-144,-189,-153,-151},{-188,-133,-210,-115,-194,-172},{-131,-130,-210,-146,-190,-175},{-129,-199,-127,-208,-145,-165},{-141,-159,-192,-182,-133,-110},{-141,-218,-130,-182,-193,-179},{-199,-183,-205,-154,-176,-179},{-190,-213,-127,-194,-193,-191}},{{-140,-118,-163,-97,-89,-105},{-109,-121,-126,-93,-150,-81},{-133,-141,-98,-123,-95,-83},{-178,-144,-114,-125,-133,-100},{-113,-112,-97,-133,-131,-118},{-126,-122,-140,-132,-147,-121},{-160,-102,-94,-157,-89,-95},{-104,-109,-114,-127,-125,-122},{-113,-140,-97,-99,-121,-86},{-181,-125,-157,-109,-90,-104}},{{-119,-108,-76,-81,-77,-76},{-77,-134,-105,-108,-98,-70},{-77,-110,-96,-113,-87,-69},{-129,-117,-94,-110,-124,-76},{-133,-98,-76,-110,-106,-70},{-122,-132,-122,-110,-89,-105},{-86,-101,-106,-81,-100,-99},{-82,-125,-110,-95,-81,-95},{-98,-111,-107,-121,-115,-122},{-89,-91,-121,-81,-74,-121}},{{-91,-74,-113,-74,-71,-98},{-113,-100,-85,-123,-87,-121},{-112,-76,-104,-79,-92,-112},{-114,-118,-69,-126,-83,-110},{-85,-104,-93,-76,-73,-84},{-124,-120,-99,-99,-99,-92},{-74,-95,-84,-108,-98,-110},{-107,-107,-73,-97,-120,-82},{-75,-86,-74,-105,-71,-73},{-77,-105,-107,-98,-71,-71}}},{{{-207,-278,-302,-193,-195,-262},{-247,-200,-221,-286,-205,-300},{-263,-202,-252,-183,-255,-250},{-175,-267,-278,-307,-264,-269},{-214,-193,-167,-300,-190,-176},{-198,-271,-224,-257,-224,-176},{-186,-255,-262,-207,-283,-300},{-177,-238,-238,-243,-290,-295},{-270,-214,-305,-274,-202,-209},{-233,-202,-169,-219,-238,-190}},{{-300,-190,-235,-233,-174,-175},{-221,-264,-242,-187,-167,-252},{-300,-205,-284,-194,-244,-164},{-176,-248,-204,-166,-224,-206},{-278,-214,-242,-282,-267,-212},{-221,-200,-216,-194,-242,-270},{-309,-278,-291,-210,-242,-197},{-267,-228,-223,-196,-192,-228},{-255,-293,-172,-185,-199,-234},{-195,-219,-181,-286,-212,-190}},{{-178,-255,-147,-246,-142,-200},{-194,-230,-212,-144,-163,-221},{-249,-249,-168,-228,-219,-130},{-239,-180,-214,-203,-241,-189},{-252,-249,-158,-136,-243,-153},{-252,-169,-218,-185,-236,-189},{-267,-245,-257,-185,-232,-227},{-174,-159,-220,-136,-189,-223},{-204,-234,-250,-172,-187,-144},{-239,-234,-212,-172,-219,-225}},{{-153,-125,-176,-174,-120,-99},{-136,-160,-155,-128,-150,-148},{-146,-203,-148,-132,-117,-168},{-177,-211,-127,-182,-140,-179},{-120,-200,-110,-117,-114,-153},{-127,-163,-166,-184,-181,-153},{-174,-180,-182,-192,-183,-170},{-122,-170,-185,-124,-151,-119},{-157,-127,-137,-146,-154,-109},{-200,-180,-111,-186,-171,-102}},{{-128,-94,-148,-132,-111,-127},{-108,-108,-130,-111,-119,-136},{-161,-147,-125,-113,-132,-120},{-154,-163,-161,-145,-119,-112},{-108,-158,-143,-108,-138,-120},{-144,-125,-129,-119,-127,-144},{-166,-158,-154,-125,-154,-132},{-122,-156,-156,-132,-138,-93},{-150,-142,-88,-120,-145,-94},{-104,-113,-157,-132,-123,-155}},{{-100,-105,-119,-113,-120,-115},{-89,-142,-145,-130,-118,-89},{-87,-105,-113,-113,-145,-156},{-115,-119,-123,-145,-157,-164},{-90,-118,-102,-138,-129,-101},{-87,-92,-148,-83,-92,-155},{-117,-155,-152,-99,-151,-113},{-127,-151,-108,-115,-124,-89},{-130,-86,-129,-94,-111,-130},{-108,-140,-111,-129,-146,-141}},{{-114,-151,-128,-191,-127,-196},{-110,-160,-118,-176,-186,-162},{-118,-177,-141,-185,-135,-164},{-132,-165,-135,-172,-177,-157},{-109,-102,-180,-124,-178,-199},{-153,-110,-149,-108,-135,-162},{-169,-169,-103,-182,-122,-138},{-93,-121,-127,-157,-118,-159},{-166,-122,-104,-152,-127,-115},{-111,-116,-141,-124,-130,-209}},{{-170,-211,-187,-200,-169,-247},{-143,-133,-131,-228,-253,-214},{-141,-186,-165,-207,-171,-167},{-121,-193,-172,-171,-209,-245},{-122,-140,-172,-209,-217,-251},{-212,-209,-133,-213,-197,-146},{-121,-186,-215,-217,-255,-157},{-165,-221,-235,-134,-249,-177},{-216,-158,-205,-242,-183,-218},{-172,-207,-142,-175,-239,-194}},{{-241,-252,-215,-162,-289,-268},{-219,-184,-184,-178,-296,-162},{-181,-261,-215,-189,-300,-284},{-232,-283,-224,-180,-266,-293},{-277,-153,-291,-201,-277,-284},{-228,-274,-172,-273,-261,-169},{-245,-171,-166,-268,-215,-273},{-251,-243,-224,-199,-249,-263},{-275,-164,-166,-176,-164,-293},{-236,-243,-222,-286,-173,-185}}},{{{-269,-242,-258,-210,-340,-301},{-226,-255,-192,-269,-279,-239},{-340,-287,-234,-338,-213,-343},{-303,-255,-303,-295,-261,-192},{-253,-301,-271,-194,-269,-298},{-335,-194,-231,-202,-215,-261},{-200,-303,-210,-293,-239,-205},{-295,-285,-229,-237,-255,-200},{-330,-237,-282,-306,-210,-197},{-229,-335,-210,-258,-263,-258}},{{-226,-261,-263,-285,-307,-202},{-245,-269,-223,-346,-199,-298},{-279,-215,-266,-194,-212,-259},{-287,-226,-200,-309,-249,-189},{-245,-253,-223,-197,-301,-256},{-335,-263,-205,-205,-328,-249},{-237,-325,-327,-303,-220,-254},{-287,-242,-250,-314,-259,-218},{-242,-239,-186,-332,-249,-313},{-269,-322,-317,-263,-215,-220}},{{-277,-324,-290,-213,-301,-255},{-334,-293,-186,-174,-235,-292},{-280,-197,-287,-196,-250,-239},{-316,-182,-217,-188,-296,-277},{-321,-321,-287,-255,-203,-246},{-238,-283,-267,-233,-250,-188},{-233,-311,-189,-196,-296,-292},{-238,-304,-292,-218,-216,-186},{-192,-218,-234,-317,-230,-275},{-254,-299,-310,-243,-196,-234}},{{-207,-226,-247,-285,-208,-204},{-205,-291,-240,-255,-217,-249},{-181,-284,-201,-207,-280,-253},{-305,-214,-219,-200,-235,-233},{-267,-214,-252,-264,-184,-193},{-255,-240,-164,-175,-284,-276},{-307,-219,-229,-246,-273,-213},{-278,-277,-194,-205,-231,-284},{-288,-216,-298,-294,-287,-287},{-178,-179,-254,-283,-195,-161}},{{-154,-206,-221,-184,-280,-273},{-222,-221,-197,-263,-252,-239},{-220,-156,-278,-232,-265,-154},{-279,-278,-169,-271,-182,-232},{-185,-247,-200,-217,-189,-282},{-200,-243,-232,-167,-167,-265},{-262,-221,-180,-180,-237,-208},{-180,-224,-276,-252,-276,-161},{-224,-247,-260,-219,-267,-208},{-271,-158,-232,-165,-221,-254}},{{-152,-224,-273,-163,-189,-184},{-228,-215,-243,-241,-187,-174},{-165,-239,-152,-263,-258,-163},{-169,-239,-213,-158,-206,-152},{-276,-247,-230,-271,-247,-271},{-271,-197,-161,-224,-184,-276},{-243,-154,-163,-152,-176,-178},{-280,-187,-269,-239,-200,-152},{-182,-210,-265,-202,-282,-224},{-178,-176,-232,-158,-250,-232}},{{-168,-237,-253,-285,-180,-270},{-168,-269,-220,-262,-222,-176},{-254,-222,-244,-230,-296,-240},{-285,-206,-235,-288,-270,-280},{-186,-202,-206,-271,-166,-226},{-248,-159,-253,-207,-254,-251},{-276,-206,-164,-232,-277,-228},{-188,-228,-276,-269,-284,-284},{-254,-159,-208,-205,-206,-244},{-214,-240,-258,-221,-224,-258}},{{-233,-273,-220,-203,-305,-253},{-233,-172,-260,-179,-310,-314},{-193,-300,-181,-253,-302,-306},{-219,-269,-252,-188,-214,-293},{-262,-237,-304,-253,-242,-240},{-243,-295,-245,-211,-212,-190},{-257,-208,-206,-203,-318,-286},{-214,-213,-196,-221,-229,-195},{-309,-189,-238,-228,-323,-180},{-214,-213,-213,-317,-192,-288}},{{-251,-238,-199,-207,-242,-261},{-311,-189,-210,-253,-194,-247},{-298,-321,-293,-258,-274,-346},{-295,-218,-278,-285,-266,-221},{-202,-298,-333,-295,-192,-327},{-272,-225,-252,-269,-295,-269},{-316,-321,-314,-255,-295,-290},{-329,-192,-246,-269,-306,-247},{-259,-290,-202,-322,-325,-285},{-189,-197,-246,-274,-343,-317}}},{{{-370,-391,-220,-298,-358,-216},{-379,-211,-235,-367,-298,-213},{-259,-322,-328,-364,-223,-293},{-259,-295,-289,-391,-244,-352},{-241,-211,-262,-226,-352,-305},{-310,-364,-343,-226,-247,-275},{-388,-226,-346,-247,-262,-222},{-214,-253,-385,-238,-343,-376},{-361,-340,-304,-379,-337,-207},{-331,-379,-253,-340,-367,-237}},{{-270,-261,-302,-355,-246,-321},{-240,-359,-202,-284,-273,-203},{-314,-298,-308,-210,-337,-195},{-226,-293,-300,-287,-252,-226},{-220,-342,-207,-298,-302,-188},{-363,-250,-207,-224,-284,-252},{-308,-232,-302,-347,-289,-216},{-211,-342,-308,-270,-252,-208},{-220,-255,-347,-322,-254,-216},{-331,-241,-333,-235,-294,-198}},{{-193,-182,-236,-170,-170,-212},{-255,-197,-247,-159,-227,-166},{-226,-274,-231,-183,-235,-228},{-228,-288,-277,-232,-216,-172},{-208,-245,-252,-261,-165,-158},{-275,-233,-206,-270,-254,-174},{-268,-178,-181,-259,-240,-220},{-231,-264,-284,-239,-174,-166},{-203,-230,-263,-234,-269,-172},{-258,-216,-298,-219,-212,-162}},{{-182,-153,-144,-189,-133,-172},{-246,-201,-217,-191,-161,-142},{-237,-153,-162,-163,-198,-195},{-177,-188,-151,-191,-179,-188},{-136,-212,-126,-177,-204,-192},{-227,-214,-183,-220,-134,-167},{-163,-238,-201,-136,-136,-201},{-250,-182,-144,-222,-133,-118},{-246,-147,-206,-129,-129,-192},{-241,-162,-198,-163,-151,-201}},{{-117,-194,-149,-163,-136,-196},{-133,-120,-183,-171,-159,-108},{-158,-137,-157,-180,-152,-123},{-168,-165,-137,-186,-174,-134},{-186,-189,-179,-189,-154,-154},{-203,-136,-186,-137,-183,-166},{-144,-137,-172,-132,-192,-183},{-147,-168,-148,-194,-122,-109},{-153,-185,-117,-154,-132,-139},{-119,-152,-179,-126,-149,-160}},{{-196,-118,-181,-207,-150,-134},{-163,-180,-125,-160,-170,-212},{-151,-159,-125,-213,-177,-143},{-182,-191,-170,-126,-187,-188},{-194,-119,-130,-141,-182,-157},{-156,-181,-128,-168,-224,-197},{-162,-188,-134,-210,-138,-163},{-125,-207,-190,-218,-201,-174},{-199,-207,-199,-123,-159,-212},{-166,-205,-170,-215,-205,-185}},{{-198,-178,-239,-258,-220,-227},{-209,-242,-171,-224,-236,-269},{-224,-190,-183,-174,-171,-239},{-243,-210,-167,-153,-218,-243},{-205,-257,-229,-157,-268,-269},{-188,-200,-202,-226,-277,-208},{-177,-244,-237,-198,-284,-290},{-241,-200,-222,-187,-261,-295},{-239,-184,-206,-206,-232,-215},{-162,-206,-255,-170,-187,-213}},{{-306,-192,-240,-245,-243,-238},{-313,-214,-196,-250,-306,-241},{-277,-320,-287,-199,-348,-286},{-216,-192,-269,-291,-328,-323},{-175,-262,-222,-291,-295,-297},{-296,-312,-313,-218,-339,-323},{-260,-315,-313,-221,-254,-201},{-250,-310,-243,-320,-326,-209},{-224,-272,-196,-237,-353,-266},{-190,-285,-206,-344,-273,-294}},{{-211,-270,-284,-247,-262,-274},{-370,-356,-368,-232,-301,-217},{-237,-238,-221,-319,-304,-340},{-312,-206,-305,-211,-244,-376},{-329,-294,-344,-361,-220,-217},{-289,-315,-377,-316,-331,-388},{-254,-329,-308,-373,-271,-328},{-324,-347,-248,-298,-262,-388},{-240,-294,-338,-247,-385,-223},{-234,-250,-242,-277,-220,-328}}},{{{-434,-424,-448,-287,-318,-448},{-301,-326,-392,-410,-406,-392},{-354,-252,-410,-256,-448,-326},{-294,-364,-308,-406,-416,-392},{-312,-371,-441,-336,-322,-378},{-256,-322,-284,-455,-413,-374},{-430,-326,-410,-434,-364,-326},{-262,-318,-452,-455,-364,-430},{-427,-252,-389,-304,-312,-455},{-329,-416,-438,-389,-318,-315}},{{-324,-364,-275,-244,-276,-290},{-254,-295,-275,-334,-358,-367},{-351,-271,-329,-404,-259,-338},{-338,-305,-353,-271,-315,-345},{-376,-418,-271,-237,-413,-361},{-341,-250,-247,-387,-361,-364},{-317,-278,-312,-357,-367,-386},{-351,-364,-285,-334,-361,-245},{-355,-357,-264,-381,-371,-412},{-338,-367,-298,-347,-328,-370}},{{-334,-400,-390,-270,-351,-311},{-290,-222,-315,-372,-294,-236},{-369,-311,-222,-234,-308,-197},{-397,-219,-297,-246,-339,-309},{-334,-225,-321,-237,-322,-220},{-410,-370,-381,-211,-251,-200},{-255,-305,-237,-346,-271,-222},{-290,-246,-312,-355,-242,-295},{-239,-293,-345,-223,-211,-197},{-350,-249,-369,-322,-225,-253}},{{-254,-234,-226,-248,-318,-203},{-219,-289,-254,-218,-238,-289},{-340,-271,-198,-203,-220,-206},{-240,-237,-301,-181,-301,-237},{-240,-266,-283,-218,-223,-299},{-289,-200,-190,-191,-255,-237},{-327,-258,-208,-211,-235,-172},{-211,-208,-226,-183,-245,-198},{-351,-295,-221,-208,-289,-272},{-265,-205,-324,-243,-196,-198}},{{-284,-182,-166,-201,-182,-182},{-273,-282,-178,-254,-182,-213},{-206,-247,-298,-189,-217,-273},{-301,-213,-217,-245,-199,-266},{-209,-236,-196,-240,-224,-247},{-166,-240,-215,-201,-284,-166},{-249,-182,-169,-164,-215,-300},{-230,-164,-284,-226,-263,-201},{-284,-185,-189,-169,-268,-277},{-270,-243,-194,-300,-178,-166}},{{-268,-293,-266,-205,-169,-204},{-263,-182,-259,-300,-269,-263},{-259,-173,-291,-295,-191,-305},{-247,-199,-168,-233,-264,-184},{-254,-245,-242,-186,-208,-229},{-293,-229,-214,-248,-227,-317},{-284,-238,-252,-233,-286,-276},{-240,-217,-238,-228,-271,-320},{-231,-261,-207,-238,-281,-197},{-247,-189,-170,-248,-232,-258}},{{-207,-228,-261,-246,-292,-348},{-323,-215,-226,-270,-340,-230},{-260,-228,-218,-287,-301,-245},{-265,-254,-255,-355,-332,-216},{-209,-337,-274,-355,-334,-204},{-247,-256,-261,-347,-351,-219},{-194,-293,-242,-349,-343,-253},{-229,-287,-194,-235,-343,-251},{-214,-337,-282,-270,-284,-308},{-252,-210,-245,-341,-264,-288}},{{-249,-267,-267,-314,-282,-231},{-293,-385,-322,-250,-402,-370},{-240,-315,-313,-273,-321,-419},{-225,-279,-400,-320,-389,-403},{-281,-330,-304,-377,-376,-370},{-278,-312,-322,-330,-308,-304},{-275,-267,-347,-295,-295,-379},{-320,-379,-378,-266,-356,-314},{-340,-258,-353,-285,-282,-330},{-334,-227,-329,-282,-321,-280}},{{-296,-375,-248,-256,-346,-392},{-360,-327,-444,-294,-368,-424},{-437,-290,-444,-343,-382,-315},{-407,-341,-334,-368,-392,-382},{-309,-389,-292,-290,-276,-322},{-242,-242,-385,-424,-416,-245},{-349,-246,-286,-343,-262,-336},{-272,-389,-258,-336,-368,-420},{-265,-273,-420,-444,-399,-399},{-430,-361,-392,-350,-312,-427}}}}; // 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,13,8,25,13,9,24,13,8,25,13,9,26,13,9,26,13,9,26,13,9,26,13,9,25,13,9,26,13,9,26,13,9,26,13,9,26,14,9,27,13,9,26,13,9,26,13,9,27,13,9,27,13,9,25,13,9,26,13,9,26,13,9,25,13,9,26,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,0,4,8,12,16,20,24,28,32,36,40,44,48,1,7,13,19,25,31,37,43,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,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,0,4,8,12,16,20,24,28,32,36,40,44,48,2,8,14,20,26,32,38,44,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,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,2,6,10,14,18,22,26,30,34,38,42,46,50,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,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,1,5,9,13,17,21,25,29,33,37,41,45,49,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,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,0,4,8,12,16,20,24,28,32,36,40,44,48,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,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,0,4,8,12,16,20,24,28,32,36,40,44,48,52,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,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,1,5,9,13,17,21,25,29,33,37,41,45,49,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,2,6,10,14,18,22,26,30,34,38,42,46,50,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,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,2,6,10,14,18,22,26,30,34,38,42,46,50,1,7,13,19,25,31,37,43,49,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,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,1,5,9,13,17,21,25,29,33,37,41,45,49,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,0,4,8,12,16,20,24,28,32,36,40,44,48,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,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,50,1,5,9,13,17,21,25,29,33,37,41,45,49,1,7,13,19,25,31,37,43,49}; // 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,5,9,13,17,21,25,29,33,37,41,45,49,53,6,12,18,24,30,36,42,48,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,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,7,13,19,25,31,37,43,49,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,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,5,9,13,17,21,25,29,33,37,41,45,49,53,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,3,7,11,15,19,23,27,31,35,39,43,47,51,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,3,7,11,15,19,23,27,31,35,39,43,47,51,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,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,3,7,11,15,19,23,27,31,35,39,43,47,51,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,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,52,3,7,11,15,19,23,27,31,35,39,43,47,51,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,1,5,9,13,17,21,25,29,33,37,41,45,49,53,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,3,7,11,15,19,23,27,31,35,39,43,47,51,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,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,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,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,3,7,11,15,19,23,27,31,35,39,43,47,51,2,8,14,20,26,32,38,44,50,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,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,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,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,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,3,9,15,21,27,33,39,45,51,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}; // set of end times of each shipment 
