int Dev = 50;// 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 = 1138;//Number of shipments
extern const int SN = 10;//Number of scenarios at each stage
extern const int MBSN = 26;//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]={{{{12484,0,0,0,0,0},{13369,0,0,0,0,0},{11771,0,0,0,0,0},{12005,0,0,0,0,0},{12798,0,0,0,0,0},{12618,0,0,0,0,0},{11869,0,0,0,0,0},{12413,0,0,0,0,0},{12584,0,0,0,0,0},{13759,0,0,0,0,0}},{{12525,0,0,0,0,0},{12378,0,0,0,0,0},{13070,0,0,0,0,0},{12802,0,0,0,0,0},{12452,0,0,0,0,0},{11920,0,0,0,0,0},{12354,0,0,0,0,0},{12162,0,0,0,0,0},{13187,0,0,0,0,0},{11903,0,0,0,0,0}},{{12233,0,0,0,0,0},{11364,0,0,0,0,0},{11267,0,0,0,0,0},{11053,0,0,0,0,0},{11237,0,0,0,0,0},{11982,0,0,0,0,0},{11213,0,0,0,0,0},{10986,0,0,0,0,0},{11357,0,0,0,0,0},{11167,0,0,0,0,0}},{{10545,0,0,0,0,0},{10353,0,0,0,0,0},{10386,0,0,0,0,0},{10095,0,0,0,0,0},{10361,0,0,0,0,0},{10036,0,0,0,0,0},{11054,0,0,0,0,0},{10547,0,0,0,0,0},{9434,0,0,0,0,0},{10245,0,0,0,0,0}},{{9219,0,0,0,0,0},{8840,0,0,0,0,0},{9711,0,0,0,0,0},{9773,0,0,0,0,0},{9686,0,0,0,0,0},{9072,0,0,0,0,0},{9062,0,0,0,0,0},{9022,0,0,0,0,0},{9079,0,0,0,0,0},{9971,0,0,0,0,0}},{{9226,0,0,0,0,0},{9871,0,0,0,0,0},{8504,0,0,0,0,0},{9443,0,0,0,0,0},{9701,0,0,0,0,0},{9513,0,0,0,0,0},{9553,0,0,0,0,0},{9105,0,0,0,0,0},{9515,0,0,0,0,0},{9315,0,0,0,0,0}},{{10240,0,0,0,0,0},{10032,0,0,0,0,0},{9537,0,0,0,0,0},{9671,0,0,0,0,0},{10222,0,0,0,0,0},{9540,0,0,0,0,0},{9620,0,0,0,0,0},{9649,0,0,0,0,0},{9688,0,0,0,0,0},{10080,0,0,0,0,0}},{{10831,0,0,0,0,0},{11139,0,0,0,0,0},{10692,0,0,0,0,0},{10947,0,0,0,0,0},{12007,0,0,0,0,0},{11452,0,0,0,0,0},{11109,0,0,0,0,0},{11041,0,0,0,0,0},{11423,0,0,0,0,0},{10760,0,0,0,0,0}},{{12085,0,0,0,0,0},{12375,0,0,0,0,0},{11805,0,0,0,0,0},{13296,0,0,0,0,0},{11338,0,0,0,0,0},{12942,0,0,0,0,0},{11968,0,0,0,0,0},{12028,0,0,0,0,0},{11635,0,0,0,0,0},{12032,0,0,0,0,0}}},{{{-153,-409,-353,-400,-306,-441},{-326,-350,-382,-306,-285,-294},{-241,-415,-218,-362,-294,-441},{-203,-220,-332,-200,-347,-171},{-197,-382,-318,-256,-253,-191},{-335,-220,-273,-276,-209,-250},{-312,-438,-279,-379,-306,-409},{-441,-150,-291,-432,-376,-250},{-291,-362,-335,-318,-379,-291},{-223,-379,-285,-353,-309,-171}},{{-241,-369,-322,-381,-288,-324},{-371,-423,-235,-159,-200,-179},{-226,-315,-160,-170,-272,-352},{-165,-260,-316,-288,-307,-140},{-200,-360,-330,-299,-323,-342},{-270,-240,-353,-156,-136,-370},{-258,-266,-311,-206,-318,-287},{-232,-263,-316,-332,-230,-246},{-296,-375,-230,-290,-248,-212},{-310,-378,-316,-266,-379,-174}},{{-242,-329,-263,-228,-250,-173},{-368,-278,-317,-260,-133,-128},{-262,-140,-207,-293,-280,-270},{-278,-244,-137,-325,-141,-214},{-210,-356,-212,-157,-259,-109},{-375,-242,-249,-305,-321,-307},{-220,-264,-121,-179,-263,-105},{-265,-186,-156,-222,-319,-150},{-272,-182,-126,-199,-141,-140},{-155,-281,-133,-323,-302,-161}},{{-142,-243,-188,-101,-92,-166},{-203,-217,-243,-243,-137,-184},{-185,-178,-209,-112,-236,-238},{-205,-198,-195,-155,-135,-216},{-193,-103,-141,-107,-117,-240},{-165,-174,-229,-160,-162,-234},{-165,-247,-218,-218,-175,-98},{-201,-166,-233,-131,-228,-200},{-227,-200,-140,-119,-170,-152},{-114,-198,-260,-122,-145,-85}},{{-183,-159,-191,-219,-147,-126},{-108,-149,-76,-140,-101,-76},{-94,-110,-162,-219,-191,-112},{-186,-109,-131,-176,-196,-209},{-152,-124,-173,-141,-194,-76},{-89,-140,-82,-162,-159,-109},{-100,-162,-204,-98,-94,-181},{-188,-100,-219,-103,-91,-153},{-228,-180,-160,-187,-148,-115},{-146,-127,-85,-125,-140,-204}},{{-132,-163,-213,-132,-209,-142},{-93,-178,-127,-143,-211,-175},{-151,-125,-131,-120,-169,-105},{-213,-110,-106,-222,-195,-210},{-135,-151,-222,-199,-101,-217},{-147,-184,-118,-217,-171,-247},{-85,-163,-115,-216,-174,-165},{-135,-118,-130,-85,-105,-160},{-175,-168,-226,-125,-142,-174},{-78,-188,-76,-109,-235,-229}},{{-259,-197,-228,-281,-151,-312},{-202,-139,-146,-161,-205,-174},{-252,-215,-114,-103,-186,-139},{-172,-230,-116,-131,-215,-267},{-146,-215,-194,-241,-159,-247},{-139,-250,-241,-153,-265,-137},{-162,-150,-205,-245,-159,-154},{-139,-233,-228,-217,-126,-228},{-184,-221,-188,-129,-226,-284},{-130,-206,-112,-133,-261,-245}},{{-325,-240,-185,-321,-284,-229},{-129,-341,-251,-281,-352,-229},{-207,-230,-337,-192,-183,-328},{-229,-303,-329,-180,-227,-178},{-207,-268,-359,-223,-331,-369},{-329,-289,-290,-321,-209,-395},{-286,-352,-142,-276,-251,-175},{-116,-277,-320,-157,-295,-269},{-225,-348,-281,-180,-350,-404},{-309,-317,-181,-240,-136,-331}},{{-270,-298,-359,-158,-309,-368},{-293,-332,-144,-149,-406,-309},{-400,-244,-149,-190,-306,-235},{-210,-407,-396,-374,-376,-288},{-240,-174,-187,-418,-429,-276},{-359,-194,-178,-312,-147,-379},{-221,-292,-175,-420,-182,-215},{-182,-419,-379,-321,-176,-250},{-155,-169,-270,-412,-273,-256},{-235,-275,-244,-298,-394,-306}}},{{{-116,-223,-108,-211,-120,-277},{-108,-193,-161,-131,-219,-260},{-150,-95,-105,-140,-125,-235},{-188,-101,-212,-149,-166,-248},{-223,-189,-236,-268,-110,-105},{-205,-88,-105,-98,-232,-101},{-223,-162,-233,-152,-210,-130},{-138,-216,-254,-147,-234,-206},{-192,-110,-228,-127,-125,-103},{-128,-132,-178,-177,-272,-279}},{{-156,-211,-113,-130,-156,-143},{-176,-182,-204,-150,-149,-352},{-228,-277,-317,-327,-124,-145},{-273,-295,-251,-188,-259,-252},{-160,-176,-245,-135,-172,-219},{-148,-152,-296,-263,-140,-321},{-232,-125,-109,-312,-266,-233},{-139,-295,-130,-155,-240,-186},{-236,-230,-200,-296,-254,-221},{-220,-160,-243,-309,-316,-167}},{{-331,-135,-369,-243,-177,-368},{-173,-217,-176,-373,-235,-246},{-170,-181,-215,-194,-379,-308},{-173,-332,-362,-340,-144,-252},{-207,-367,-288,-154,-163,-190},{-126,-153,-367,-302,-313,-306},{-156,-375,-144,-254,-302,-337},{-188,-372,-257,-275,-299,-190},{-136,-296,-257,-248,-368,-294},{-274,-301,-189,-362,-288,-238}},{{-402,-335,-218,-181,-349,-322},{-303,-262,-206,-307,-310,-343},{-338,-182,-411,-409,-388,-205},{-318,-203,-304,-346,-316,-427},{-217,-250,-250,-358,-268,-217},{-185,-162,-328,-331,-211,-307},{-355,-435,-247,-334,-346,-271},{-150,-238,-372,-385,-370,-424},{-332,-412,-414,-187,-199,-193},{-335,-320,-387,-253,-358,-328}},{{-241,-412,-361,-270,-232,-168},{-256,-169,-406,-258,-182,-293},{-223,-382,-295,-171,-385,-435},{-184,-367,-244,-333,-268,-197},{-385,-430,-286,-222,-373,-273},{-271,-391,-250,-351,-288,-423},{-406,-181,-150,-156,-156,-232},{-202,-406,-433,-303,-253,-177},{-391,-190,-289,-429,-379,-162},{-223,-163,-334,-291,-235,-339}},{{-288,-215,-301,-282,-333,-310},{-245,-399,-276,-246,-233,-285},{-234,-265,-306,-269,-146,-208},{-205,-324,-211,-375,-374,-156},{-188,-371,-190,-348,-371,-169},{-168,-293,-228,-301,-251,-241},{-205,-363,-347,-145,-146,-298},{-245,-268,-328,-272,-151,-184},{-399,-413,-241,-388,-215,-250},{-359,-223,-377,-135,-300,-337}},{{-122,-148,-270,-320,-132,-169},{-137,-144,-321,-129,-277,-217},{-358,-299,-261,-267,-261,-223},{-247,-306,-123,-183,-153,-163},{-336,-181,-216,-204,-149,-195},{-125,-269,-252,-277,-151,-221},{-125,-176,-261,-271,-265,-100},{-134,-132,-120,-191,-257,-241},{-346,-183,-268,-200,-228,-157},{-266,-336,-314,-271,-161,-239}},{{-106,-225,-141,-110,-212,-133},{-252,-97,-201,-233,-109,-245},{-134,-95,-130,-236,-118,-245},{-194,-219,-208,-233,-106,-150},{-284,-145,-262,-193,-109,-97},{-265,-112,-188,-126,-214,-138},{-142,-97,-210,-256,-156,-139},{-259,-175,-157,-159,-118,-89},{-217,-214,-114,-144,-231,-96},{-163,-259,-136,-149,-239,-114}},{{-121,-183,-108,-178,-175,-153},{-183,-175,-155,-150,-205,-225},{-250,-109,-197,-168,-111,-210},{-244,-146,-237,-161,-129,-228},{-173,-109,-150,-158,-225,-249},{-87,-237,-213,-175,-99,-235},{-129,-244,-124,-200,-208,-190},{-144,-250,-205,-190,-181,-227},{-227,-227,-114,-180,-252,-200},{-239,-212,-153,-202,-148,-96}}},{{{-224,-207,-220,-464,-474,-263},{-266,-494,-349,-339,-250,-243},{-342,-207,-415,-188,-207,-184},{-293,-349,-178,-368,-214,-303},{-283,-428,-220,-359,-411,-316},{-382,-329,-207,-247,-342,-224},{-388,-164,-290,-365,-211,-457},{-290,-431,-362,-477,-461,-204},{-171,-339,-359,-336,-378,-191},{-293,-464,-164,-303,-474,-316}},{{-305,-435,-313,-308,-363,-193},{-315,-477,-226,-449,-286,-367},{-390,-464,-284,-188,-419,-406},{-194,-306,-258,-408,-462,-292},{-164,-390,-370,-377,-182,-187},{-413,-396,-325,-317,-191,-172},{-249,-316,-220,-229,-326,-349},{-358,-396,-182,-317,-191,-430},{-394,-451,-265,-371,-302,-379},{-472,-415,-204,-305,-373,-250}},{{-322,-204,-400,-335,-212,-185},{-230,-233,-316,-174,-196,-231},{-295,-357,-395,-180,-344,-370},{-233,-302,-322,-158,-286,-206},{-283,-167,-400,-215,-260,-267},{-434,-331,-406,-185,-294,-350},{-195,-389,-202,-272,-183,-239},{-239,-170,-258,-190,-347,-275},{-286,-412,-333,-305,-260,-244},{-215,-170,-294,-174,-379,-200}},{{-145,-126,-344,-143,-170,-274},{-252,-250,-149,-346,-116,-291},{-348,-129,-280,-321,-139,-134},{-205,-126,-249,-164,-222,-313},{-325,-284,-313,-303,-273,-195},{-340,-129,-230,-215,-228,-112},{-218,-306,-192,-148,-204,-237},{-210,-204,-289,-217,-181,-125},{-210,-364,-130,-171,-244,-298},{-160,-321,-320,-201,-161,-169}},{{-228,-122,-164,-241,-128,-294},{-128,-286,-200,-176,-286,-246},{-226,-233,-132,-275,-229,-134},{-243,-206,-275,-111,-296,-172},{-245,-130,-187,-304,-181,-252},{-228,-168,-214,-195,-279,-132},{-152,-162,-107,-134,-149,-191},{-128,-147,-248,-132,-300,-225},{-117,-164,-218,-134,-271,-126},{-308,-254,-244,-160,-151,-124}},{{-286,-139,-127,-117,-306,-112},{-233,-147,-293,-258,-286,-144},{-118,-284,-306,-286,-145,-277},{-218,-130,-177,-265,-112,-317},{-200,-235,-224,-150,-183,-178},{-277,-160,-228,-280,-262,-119},{-277,-204,-217,-182,-301,-196},{-155,-206,-298,-141,-209,-124},{-244,-105,-137,-108,-277,-122},{-143,-107,-156,-297,-183,-151}},{{-187,-147,-251,-136,-369,-237},{-143,-313,-361,-296,-372,-237},{-328,-173,-212,-216,-201,-207},{-120,-201,-173,-286,-168,-354},{-173,-327,-200,-163,-157,-239},{-136,-348,-251,-218,-181,-359},{-150,-187,-256,-276,-129,-173},{-333,-356,-254,-351,-188,-340},{-310,-156,-356,-286,-240,-197},{-314,-173,-288,-238,-338,-258}},{{-137,-303,-249,-311,-239,-400},{-208,-149,-159,-397,-157,-323},{-140,-211,-384,-243,-368,-160},{-178,-374,-329,-181,-230,-154},{-214,-191,-434,-408,-441,-447},{-337,-292,-173,-408,-347,-296},{-195,-169,-185,-388,-441,-397},{-162,-140,-292,-169,-429,-240},{-255,-244,-283,-429,-378,-373},{-348,-146,-246,-219,-347,-444}},{{-362,-330,-293,-355,-424,-487},{-378,-400,-206,-447,-240,-290},{-350,-346,-402,-273,-438,-204},{-391,-330,-374,-201,-480,-494},{-280,-400,-190,-211,-411,-359},{-378,-416,-287,-474,-362,-385},{-391,-352,-412,-418,-266,-257},{-186,-189,-377,-257,-178,-342},{-277,-368,-480,-411,-352,-428},{-255,-374,-438,-247,-204,-237}}},{{{-59,-153,-138,-144,-163,-146},{-141,-156,-106,-139,-90,-73},{-91,-55,-77,-108,-81,-129},{-97,-80,-104,-108,-85,-179},{-100,-118,-91,-136,-118,-164},{-147,-121,-137,-126,-95,-120},{-69,-122,-94,-115,-174,-81},{-152,-90,-161,-156,-95,-108},{-70,-76,-132,-62,-129,-178},{-114,-58,-108,-84,-165,-73}},{{-138,-99,-181,-163,-89,-198},{-166,-149,-172,-178,-148,-123},{-104,-70,-198,-217,-216,-114},{-171,-102,-182,-203,-93,-97},{-178,-127,-178,-167,-135,-198},{-104,-209,-173,-217,-108,-126},{-134,-210,-75,-158,-93,-178},{-77,-185,-200,-157,-233,-116},{-155,-162,-74,-136,-127,-208},{-108,-123,-102,-198,-127,-245}},{{-126,-230,-279,-192,-247,-271},{-212,-110,-231,-264,-214,-129},{-172,-133,-166,-236,-172,-253},{-201,-236,-100,-142,-204,-265},{-252,-256,-229,-207,-265,-147},{-257,-108,-125,-103,-137,-238},{-178,-221,-234,-175,-229,-251},{-208,-236,-112,-156,-235,-180},{-175,-113,-188,-277,-120,-168},{-117,-211,-205,-120,-106,-105}},{{-238,-134,-223,-302,-254,-286},{-148,-207,-256,-211,-156,-154},{-264,-296,-294,-150,-272,-215},{-140,-148,-177,-235,-278,-122},{-106,-203,-168,-270,-223,-272},{-205,-302,-197,-268,-201,-164},{-233,-284,-290,-118,-209,-302},{-290,-160,-264,-264,-114,-185},{-207,-250,-223,-104,-128,-195},{-104,-260,-203,-114,-270,-158}},{{-286,-175,-268,-113,-146,-215},{-150,-268,-148,-224,-221,-247},{-252,-134,-219,-201,-231,-252},{-248,-156,-134,-107,-181,-153},{-300,-126,-169,-109,-240,-142},{-116,-233,-294,-109,-144,-215},{-248,-229,-260,-105,-270,-272},{-221,-116,-268,-183,-136,-99},{-197,-112,-148,-123,-147,-197},{-252,-114,-296,-148,-227,-263}},{{-247,-221,-229,-192,-90,-119},{-224,-102,-174,-126,-207,-194},{-134,-133,-179,-147,-161,-154},{-234,-194,-229,-181,-127,-160},{-166,-185,-234,-240,-147,-190},{-213,-197,-242,-152,-133,-137},{-120,-183,-222,-176,-199,-213},{-181,-204,-202,-166,-159,-93},{-100,-187,-209,-176,-225,-206},{-249,-256,-140,-226,-98,-109}},{{-197,-177,-146,-171,-147,-129},{-101,-162,-65,-110,-115,-76},{-119,-82,-156,-150,-99,-92},{-200,-93,-76,-117,-172,-147},{-185,-85,-135,-73,-146,-68},{-183,-173,-151,-144,-119,-151},{-127,-170,-105,-172,-74,-149},{-77,-85,-65,-106,-79,-103},{-175,-129,-126,-148,-100,-122},{-185,-152,-119,-142,-164,-156}},{{-108,-65,-132,-141,-80,-110},{-152,-61,-144,-69,-83,-74},{-127,-111,-122,-83,-72,-83},{-121,-114,-139,-63,-49,-52},{-82,-88,-106,-65,-122,-56},{-128,-144,-115,-53,-64,-147},{-87,-126,-49,-96,-113,-102},{-104,-150,-61,-80,-58,-128},{-67,-147,-142,-140,-55,-53},{-84,-142,-85,-119,-57,-84}},{{-144,-74,-97,-57,-141,-127},{-120,-108,-97,-122,-102,-133},{-119,-115,-54,-107,-73,-137},{-125,-52,-137,-100,-117,-54},{-124,-85,-85,-135,-122,-58},{-100,-76,-94,-125,-142,-96},{-80,-57,-86,-139,-77,-65},{-114,-105,-59,-138,-129,-91},{-84,-61,-73,-122,-121,-125},{-79,-137,-144,-116,-124,-110}}},{{{-210,-148,-133,-219,-300,-347},{-179,-214,-345,-283,-312,-259},{-270,-212,-357,-209,-257,-252},{-119,-200,-305,-193,-314,-283},{-310,-148,-312,-340,-157,-262},{-191,-245,-119,-309,-357,-267},{-119,-252,-148,-174,-328,-202},{-235,-183,-205,-278,-164,-140},{-249,-269,-221,-190,-169,-209},{-268,-352,-324,-269,-328,-352}},{{-264,-338,-164,-333,-319,-274},{-314,-136,-287,-217,-240,-327},{-262,-143,-273,-314,-273,-259},{-226,-343,-176,-293,-253,-312},{-309,-195,-207,-129,-170,-307},{-321,-238,-172,-129,-151,-152},{-169,-126,-296,-291,-298,-234},{-148,-262,-122,-300,-147,-128},{-167,-314,-294,-330,-258,-283},{-131,-131,-122,-243,-208,-318}},{{-178,-163,-180,-248,-211,-182},{-123,-301,-147,-257,-138,-230},{-129,-169,-214,-205,-168,-140},{-224,-125,-115,-267,-112,-99},{-241,-123,-285,-172,-155,-236},{-230,-157,-220,-246,-116,-124},{-269,-215,-170,-150,-123,-270},{-112,-205,-145,-181,-247,-193},{-288,-173,-162,-142,-226,-160},{-286,-305,-259,-158,-204,-160}},{{-136,-231,-157,-225,-176,-175},{-186,-198,-195,-189,-192,-106},{-112,-153,-83,-114,-121,-184},{-96,-101,-111,-144,-170,-88},{-182,-221,-160,-212,-120,-80},{-132,-158,-201,-198,-95,-170},{-222,-109,-218,-106,-179,-135},{-100,-139,-116,-220,-213,-119},{-105,-153,-203,-183,-153,-132},{-136,-89,-132,-178,-108,-200}},{{-89,-94,-164,-124,-178,-111},{-104,-105,-62,-84,-151,-156},{-182,-139,-62,-146,-60,-161},{-170,-107,-174,-64,-133,-137},{-98,-154,-162,-161,-101,-142},{-130,-81,-167,-83,-149,-136},{-106,-93,-120,-124,-177,-82},{-160,-185,-82,-125,-63,-80},{-125,-76,-151,-76,-148,-138},{-164,-173,-109,-82,-119,-79}},{{-90,-150,-167,-87,-66,-132},{-100,-75,-150,-152,-126,-98},{-114,-121,-124,-152,-82,-184},{-126,-89,-61,-142,-134,-98},{-132,-161,-138,-149,-113,-77},{-169,-165,-148,-169,-96,-180},{-89,-165,-90,-96,-107,-136},{-94,-87,-163,-173,-104,-141},{-176,-90,-77,-151,-100,-64},{-151,-142,-123,-159,-73,-150}},{{-194,-126,-85,-219,-90,-199},{-113,-143,-199,-104,-232,-115},{-88,-151,-151,-141,-93,-160},{-151,-143,-86,-160,-169,-92},{-173,-167,-206,-98,-174,-180},{-111,-118,-96,-92,-122,-128},{-183,-148,-116,-133,-144,-240},{-144,-192,-99,-96,-135,-235},{-121,-110,-82,-178,-161,-178},{-117,-105,-103,-84,-110,-128}},{{-172,-218,-257,-102,-241,-262},{-139,-207,-235,-188,-121,-270},{-235,-251,-183,-127,-269,-220},{-189,-255,-211,-106,-121,-181},{-102,-242,-157,-223,-153,-293},{-155,-143,-98,-140,-275,-130},{-224,-124,-224,-186,-231,-210},{-177,-214,-204,-156,-221,-105},{-156,-221,-150,-154,-123,-241},{-189,-216,-157,-248,-135,-107}},{{-313,-219,-298,-143,-263,-129},{-109,-296,-195,-185,-152,-296},{-288,-250,-128,-236,-291,-305},{-320,-300,-193,-300,-203,-296},{-145,-223,-220,-166,-159,-189},{-181,-201,-311,-266,-273,-178},{-258,-210,-181,-296,-335,-217},{-219,-110,-184,-132,-277,-169},{-117,-193,-179,-213,-282,-229},{-309,-197,-143,-129,-118,-185}}},{{{-298,-152,-303,-348,-274,-181},{-309,-136,-327,-348,-168,-253},{-170,-141,-200,-255,-319,-213},{-234,-274,-290,-340,-144,-327},{-340,-223,-348,-223,-378,-207},{-226,-282,-319,-383,-215,-234},{-194,-176,-138,-149,-202,-255},{-202,-362,-372,-226,-226,-176},{-391,-200,-184,-207,-378,-266},{-335,-253,-287,-149,-263,-367}},{{-157,-293,-399,-287,-278,-287},{-247,-295,-194,-173,-160,-228},{-274,-327,-314,-202,-283,-132},{-218,-207,-200,-168,-210,-337},{-192,-319,-338,-160,-231,-145},{-383,-192,-362,-149,-314,-321},{-314,-157,-223,-160,-270,-298},{-354,-274,-207,-154,-265,-142},{-192,-372,-354,-356,-141,-192},{-170,-386,-168,-141,-372,-368}},{{-243,-164,-149,-335,-130,-321},{-337,-258,-365,-345,-230,-200},{-262,-329,-234,-151,-296,-359},{-280,-271,-164,-236,-365,-282},{-205,-258,-320,-250,-213,-219},{-135,-245,-310,-146,-255,-231},{-383,-134,-335,-300,-353,-217},{-184,-357,-365,-275,-360,-154},{-368,-352,-161,-226,-152,-272},{-324,-367,-192,-330,-201,-125}},{{-124,-179,-280,-278,-237,-246},{-212,-150,-180,-251,-143,-213},{-214,-287,-337,-198,-175,-155},{-145,-186,-238,-182,-296,-309},{-293,-212,-166,-324,-264,-143},{-317,-179,-245,-304,-269,-143},{-357,-313,-316,-320,-202,-231},{-314,-291,-219,-212,-146,-195},{-126,-162,-199,-299,-141,-148},{-259,-139,-201,-145,-155,-291}},{{-167,-326,-128,-154,-169,-221},{-189,-135,-135,-180,-191,-276},{-185,-182,-260,-224,-224,-284},{-266,-145,-232,-165,-310,-276},{-246,-161,-243,-239,-135,-265},{-112,-271,-258,-152,-128,-117},{-196,-254,-297,-189,-174,-252},{-310,-182,-178,-306,-282,-139},{-147,-234,-323,-113,-135,-304},{-277,-315,-295,-250,-239,-321}},{{-224,-306,-169,-213,-145,-319},{-178,-282,-228,-145,-237,-213},{-124,-221,-137,-128,-286,-141},{-128,-304,-295,-265,-247,-239},{-265,-219,-171,-297,-197,-250},{-111,-115,-130,-278,-237,-271},{-178,-286,-126,-245,-150,-148},{-208,-117,-304,-254,-141,-247},{-128,-228,-234,-302,-163,-239},{-254,-226,-124,-111,-200,-326}},{{-285,-320,-280,-184,-238,-251},{-203,-316,-224,-138,-173,-317},{-168,-195,-143,-209,-261,-298},{-285,-296,-320,-182,-129,-352},{-232,-130,-264,-299,-282,-348},{-148,-224,-159,-221,-319,-341},{-159,-186,-280,-327,-340,-237},{-208,-161,-300,-292,-270,-266},{-128,-206,-172,-129,-231,-263},{-164,-128,-300,-159,-187,-343}},{{-355,-121,-355,-290,-343,-380},{-186,-276,-338,-305,-333,-215},{-188,-329,-169,-159,-222,-185},{-338,-278,-328,-226,-131,-195},{-312,-298,-350,-303,-176,-261},{-233,-189,-292,-248,-338,-210},{-331,-281,-240,-226,-270,-233},{-240,-254,-265,-312,-330,-293},{-129,-358,-159,-340,-192,-180},{-264,-257,-328,-193,-179,-369}},{{-259,-199,-359,-348,-309,-266},{-192,-153,-215,-303,-162,-184},{-142,-194,-139,-157,-332,-394},{-321,-272,-147,-144,-362,-319},{-293,-181,-155,-245,-269,-138},{-311,-334,-270,-170,-223,-388},{-225,-179,-170,-396,-383,-218},{-275,-378,-204,-245,-340,-388},{-225,-275,-220,-255,-319,-255},{-155,-360,-335,-242,-223,-154}}},{{{-154,-178,-310,-262,-301,-406},{-409,-388,-370,-445,-439,-329},{-253,-160,-199,-418,-409,-364},{-283,-452,-448,-223,-217,-388},{-205,-436,-280,-388,-247,-278},{-400,-385,-208,-424,-409,-332},{-376,-337,-202,-283,-452,-225},{-283,-190,-292,-406,-150,-255},{-391,-412,-370,-442,-244,-394},{-403,-394,-232,-403,-442,-213}},{{-422,-184,-283,-287,-339,-159},{-261,-419,-162,-401,-188,-167},{-337,-316,-207,-401,-355,-272},{-264,-362,-353,-254,-286,-344},{-357,-232,-277,-322,-193,-208},{-220,-175,-316,-158,-358,-290},{-372,-402,-392,-238,-387,-262},{-349,-430,-398,-404,-286,-172},{-223,-416,-344,-382,-220,-236},{-316,-158,-165,-147,-273,-134}},{{-372,-230,-144,-157,-316,-236},{-223,-221,-220,-164,-246,-149},{-166,-223,-128,-223,-125,-230},{-203,-326,-149,-206,-189,-244},{-275,-235,-341,-159,-225,-234},{-171,-245,-334,-219,-286,-160},{-181,-194,-325,-177,-307,-255},{-248,-175,-149,-177,-114,-218},{-159,-298,-236,-183,-220,-240},{-203,-170,-311,-305,-134,-176}},{{-291,-199,-192,-95,-222,-143},{-206,-242,-91,-95,-203,-179},{-120,-153,-246,-227,-153,-213},{-192,-102,-231,-175,-221,-161},{-97,-221,-153,-167,-103,-163},{-138,-199,-126,-144,-212,-175},{-241,-156,-91,-229,-203,-193},{-248,-251,-263,-157,-108,-90},{-198,-140,-128,-98,-110,-159},{-231,-190,-228,-158,-246,-222}},{{-231,-79,-108,-166,-214,-85},{-122,-152,-226,-231,-95,-143},{-151,-149,-92,-202,-172,-126},{-189,-156,-111,-122,-226,-128},{-122,-132,-145,-203,-182,-103},{-115,-180,-146,-223,-105,-202},{-129,-223,-100,-162,-165,-172},{-129,-149,-120,-126,-159,-129},{-211,-180,-119,-213,-95,-140},{-226,-149,-200,-189,-228,-179}},{{-100,-92,-227,-119,-203,-143},{-226,-145,-139,-235,-256,-194},{-142,-200,-194,-151,-119,-232},{-136,-137,-212,-158,-107,-116},{-97,-126,-196,-160,-205,-235},{-94,-229,-139,-190,-234,-223},{-128,-95,-237,-250,-236,-201},{-188,-140,-152,-240,-257,-179},{-186,-197,-220,-156,-247,-148},{-106,-80,-230,-212,-121,-161}},{{-253,-261,-258,-206,-112,-339},{-186,-230,-169,-191,-274,-194},{-118,-168,-266,-254,-158,-185},{-236,-246,-253,-254,-198,-227},{-205,-210,-262,-166,-333,-225},{-169,-265,-122,-127,-232,-321},{-230,-255,-284,-157,-230,-346},{-142,-113,-227,-144,-243,-199},{-105,-194,-177,-241,-220,-297},{-243,-261,-251,-148,-248,-180}},{{-250,-164,-373,-137,-373,-215},{-284,-358,-303,-169,-353,-328},{-364,-242,-251,-296,-243,-323},{-279,-325,-217,-382,-381,-399},{-231,-262,-295,-379,-323,-204},{-294,-345,-334,-379,-215,-243},{-141,-315,-258,-360,-395,-153},{-253,-260,-373,-398,-163,-413},{-299,-141,-284,-285,-315,-258},{-163,-192,-279,-196,-149,-289}},{{-182,-415,-215,-199,-364,-304},{-407,-409,-323,-415,-223,-283},{-144,-341,-278,-397,-166,-412},{-329,-226,-371,-166,-439,-364},{-381,-426,-326,-274,-265,-184},{-410,-356,-161,-334,-394,-331},{-185,-285,-401,-178,-160,-415},{-197,-312,-254,-208,-280,-418},{-272,-244,-410,-250,-157,-169},{-321,-232,-383,-370,-328,-244}}},{{{-508,-340,-360,-298,-248,-434},{-406,-252,-340,-455,-518,-224},{-518,-322,-210,-252,-406,-500},{-500,-193,-441,-266,-266,-410},{-332,-350,-508,-399,-214,-441},{-346,-312,-508,-343,-455,-480},{-210,-280,-231,-207,-522,-444},{-322,-424,-514,-252,-248,-186},{-430,-430,-402,-234,-186,-434},{-402,-444,-318,-500,-455,-504}},{{-345,-281,-386,-237,-361,-229},{-456,-271,-420,-484,-295,-200},{-411,-408,-180,-481,-344,-319},{-244,-446,-356,-281,-440,-467},{-334,-412,-434,-444,-466,-457},{-334,-302,-363,-418,-190,-316},{-212,-501,-203,-284,-377,-428},{-282,-381,-410,-291,-315,-335},{-310,-271,-302,-394,-276,-448},{-463,-288,-170,-197,-420,-254}},{{-387,-437,-267,-325,-333,-414},{-158,-203,-414,-375,-385,-231},{-258,-274,-150,-366,-151,-345},{-173,-169,-351,-352,-259,-295},{-158,-216,-378,-290,-237,-192},{-466,-376,-315,-182,-265,-214},{-161,-403,-192,-284,-157,-170},{-233,-191,-228,-261,-390,-339},{-397,-379,-210,-316,-180,-317},{-243,-305,-378,-196,-368,-164}},{{-329,-279,-275,-299,-220,-179},{-373,-137,-224,-336,-216,-342},{-254,-132,-190,-151,-292,-189},{-262,-224,-386,-208,-279,-191},{-367,-331,-247,-218,-311,-210},{-335,-224,-208,-156,-194,-275},{-197,-252,-303,-316,-145,-170},{-392,-229,-136,-248,-184,-356},{-178,-179,-221,-294,-169,-287},{-224,-281,-272,-324,-172,-318}},{{-197,-289,-231,-240,-206,-159},{-353,-196,-127,-155,-259,-219},{-306,-157,-266,-268,-259,-157},{-254,-328,-219,-328,-328,-323},{-320,-280,-261,-148,-247,-222},{-334,-116,-280,-134,-129,-282},{-322,-277,-314,-125,-273,-337},{-263,-141,-169,-166,-282,-266},{-261,-224,-122,-293,-213,-226},{-164,-305,-266,-259,-125,-305}},{{-164,-270,-231,-155,-276,-273},{-277,-305,-336,-269,-191,-315},{-201,-116,-156,-309,-189,-128},{-330,-219,-172,-143,-215,-325},{-208,-323,-261,-121,-269,-337},{-116,-335,-158,-262,-252,-246},{-328,-286,-242,-355,-310,-157},{-259,-268,-329,-255,-203,-283},{-178,-270,-219,-283,-302,-145},{-298,-291,-298,-162,-293,-263}},{{-219,-223,-234,-180,-422,-179},{-360,-228,-303,-311,-334,-372},{-300,-321,-192,-360,-205,-239},{-285,-176,-346,-336,-146,-190},{-262,-285,-394,-284,-405,-204},{-154,-210,-152,-229,-191,-395},{-224,-197,-223,-254,-247,-239},{-189,-228,-325,-216,-337,-305},{-141,-228,-168,-399,-413,-187},{-370,-238,-327,-180,-200,-305}},{{-275,-197,-155,-384,-185,-241},{-178,-188,-170,-412,-415,-472},{-252,-285,-279,-158,-431,-492},{-151,-330,-356,-158,-434,-436},{-157,-258,-372,-355,-467,-333},{-358,-312,-400,-320,-253,-168},{-314,-342,-245,-441,-350,-185},{-299,-330,-356,-380,-337,-304},{-216,-294,-394,-460,-275,-429},{-400,-294,-422,-250,-282,-307}},{{-232,-266,-378,-252,-322,-280},{-309,-430,-351,-448,-483,-483},{-437,-321,-341,-312,-410,-203},{-501,-457,-351,-294,-346,-224},{-309,-416,-258,-427,-248,-193},{-410,-365,-423,-364,-406,-332},{-333,-338,-485,-252,-241,-427},{-430,-317,-289,-357,-480,-476},{-269,-331,-203,-298,-385,-248},{-376,-460,-248,-357,-452,-444}}}}; // 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]={25,13,9,25,12,8,24,12,9,25,13,9,26,13,9,25,13,9,25,13,9,25,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,26,14,9,26,13,9,26,13,9,25,13,9,26,13,9,25,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}}; // set of shipments in each bid 
int SHsts[SPN]={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,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,1,5,9,13,17,21,25,29,33,37,41,45,2,8,14,20,26,32,38,44,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,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,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,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,1,5,9,13,17,21,25,29,33,37,41,45,49,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,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,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,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,2,6,10,14,18,22,26,30,34,38,42,46,50,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,2,6,10,14,18,22,26,30,34,38,42,46,50,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,2,6,10,14,18,22,26,30,34,38,42,46,50,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,1,5,9,13,17,21,25,29,33,37,41,45,49,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,52,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,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,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,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,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,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,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,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,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,1,5,9,13,17,21,25,29,33,37,41,45,49,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,0,6,12,18,24,30,36,42,48}; // set of start times of each shipment 
int SHets[SPN]={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,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,6,10,14,18,22,26,30,34,38,42,46,50,7,13,19,25,31,37,43,49,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,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,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,4,8,12,16,20,24,28,32,36,40,44,48,52,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,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,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,3,9,15,21,27,33,39,45,51,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,4,8,12,16,20,24,28,32,36,40,44,48,52,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,4,8,12,16,20,24,28,32,36,40,44,48,52,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,4,8,12,16,20,24,28,32,36,40,44,48,52,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,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,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,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,52,1,5,9,13,17,21,25,29,33,37,41,45,49,53,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,52,1,5,9,13,17,21,25,29,33,37,41,45,49,53,3,9,15,21,27,33,39,45,51,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,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,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,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,2,8,14,20,26,32,38,44,50,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,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,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,3,9,15,21,27,33,39,45,51}; // set of end times of each shipment 
