int Dev = 50;// 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 = 1143;//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]={{{{13285,0,0,0,0,0},{13193,0,0,0,0,0},{12346,0,0,0,0,0},{12853,0,0,0,0,0},{13341,0,0,0,0,0},{12880,0,0,0,0,0},{12927,0,0,0,0,0},{12497,0,0,0,0,0},{12423,0,0,0,0,0},{12804,0,0,0,0,0}},{{12542,0,0,0,0,0},{12079,0,0,0,0,0},{13392,0,0,0,0,0},{11587,0,0,0,0,0},{12797,0,0,0,0,0},{12488,0,0,0,0,0},{12051,0,0,0,0,0},{12600,0,0,0,0,0},{12383,0,0,0,0,0},{12970,0,0,0,0,0}},{{11313,0,0,0,0,0},{11409,0,0,0,0,0},{10931,0,0,0,0,0},{11268,0,0,0,0,0},{12581,0,0,0,0,0},{12212,0,0,0,0,0},{11179,0,0,0,0,0},{11927,0,0,0,0,0},{11891,0,0,0,0,0},{10975,0,0,0,0,0}},{{11159,0,0,0,0,0},{10576,0,0,0,0,0},{10161,0,0,0,0,0},{10111,0,0,0,0,0},{10478,0,0,0,0,0},{10983,0,0,0,0,0},{10001,0,0,0,0,0},{10198,0,0,0,0,0},{9965,0,0,0,0,0},{10031,0,0,0,0,0}},{{9008,0,0,0,0,0},{9251,0,0,0,0,0},{9682,0,0,0,0,0},{9107,0,0,0,0,0},{9181,0,0,0,0,0},{9326,0,0,0,0,0},{9663,0,0,0,0,0},{9052,0,0,0,0,0},{9673,0,0,0,0,0},{9681,0,0,0,0,0}},{{9632,0,0,0,0,0},{8975,0,0,0,0,0},{9184,0,0,0,0,0},{9453,0,0,0,0,0},{8931,0,0,0,0,0},{9729,0,0,0,0,0},{9286,0,0,0,0,0},{9452,0,0,0,0,0},{8969,0,0,0,0,0},{8668,0,0,0,0,0}},{{9423,0,0,0,0,0},{9391,0,0,0,0,0},{9234,0,0,0,0,0},{10196,0,0,0,0,0},{10029,0,0,0,0,0},{10510,0,0,0,0,0},{9761,0,0,0,0,0},{10097,0,0,0,0,0},{10786,0,0,0,0,0},{9200,0,0,0,0,0}},{{10578,0,0,0,0,0},{11092,0,0,0,0,0},{11079,0,0,0,0,0},{10374,0,0,0,0,0},{11218,0,0,0,0,0},{10881,0,0,0,0,0},{11090,0,0,0,0,0},{12051,0,0,0,0,0},{11187,0,0,0,0,0},{10853,0,0,0,0,0}},{{11625,0,0,0,0,0},{12110,0,0,0,0,0},{11675,0,0,0,0,0},{12205,0,0,0,0,0},{11615,0,0,0,0,0},{12300,0,0,0,0,0},{11972,0,0,0,0,0},{12341,0,0,0,0,0},{11867,0,0,0,0,0},{12266,0,0,0,0,0}}},{{{-347,-415,-262,-441,-362,-156},{-244,-262,-332,-229,-403,-223},{-315,-403,-388,-288,-168,-320},{-179,-218,-370,-182,-347,-215},{-335,-168,-285,-438,-376,-315},{-406,-347,-229,-379,-441,-282},{-394,-226,-176,-344,-429,-235},{-159,-279,-376,-159,-423,-370},{-385,-173,-323,-218,-403,-218},{-370,-350,-423,-282,-344,-250}},{{-386,-306,-322,-222,-200,-189},{-313,-372,-232,-386,-310,-373},{-232,-257,-378,-145,-376,-352},{-171,-212,-140,-153,-150,-192},{-229,-363,-249,-315,-248,-275},{-400,-246,-286,-145,-150,-319},{-206,-183,-319,-411,-227,-192},{-360,-329,-308,-411,-368,-163},{-307,-378,-420,-175,-387,-228},{-171,-149,-406,-233,-206,-298}},{{-292,-138,-308,-130,-233,-126},{-165,-208,-287,-253,-287,-154},{-200,-140,-196,-282,-287,-198},{-352,-223,-256,-170,-280,-183},{-375,-254,-172,-217,-278,-187},{-312,-172,-289,-253,-218,-286},{-275,-194,-254,-280,-199,-293},{-170,-300,-231,-168,-124,-202},{-188,-259,-347,-190,-312,-210},{-220,-148,-200,-148,-242,-293}},{{-132,-228,-186,-127,-229,-162},{-250,-170,-113,-100,-84,-160},{-292,-189,-93,-165,-96,-120},{-195,-159,-129,-88,-231,-178},{-278,-264,-115,-136,-198,-106},{-270,-144,-227,-127,-99,-194},{-120,-237,-138,-115,-153,-181},{-278,-256,-260,-119,-241,-155},{-179,-181,-197,-144,-129,-90},{-179,-241,-106,-127,-193,-198}},{{-229,-125,-101,-79,-173,-162},{-154,-122,-215,-126,-131,-128},{-188,-204,-87,-106,-90,-123},{-157,-174,-121,-169,-88,-166},{-177,-189,-190,-173,-209,-218},{-100,-153,-190,-116,-97,-123},{-129,-124,-122,-125,-78,-138},{-122,-174,-204,-132,-122,-84},{-209,-182,-175,-140,-181,-182},{-214,-206,-153,-215,-156,-106}},{{-147,-128,-226,-163,-105,-169},{-176,-119,-213,-180,-137,-130},{-137,-212,-76,-139,-161,-249},{-141,-151,-172,-196,-89,-140},{-100,-123,-113,-86,-229,-180},{-129,-128,-205,-214,-200,-250},{-121,-160,-86,-82,-85,-219},{-85,-212,-127,-97,-147,-204},{-122,-74,-181,-169,-225,-154},{-93,-76,-154,-165,-204,-107}},{{-190,-114,-110,-295,-120,-191},{-150,-208,-108,-147,-244,-195},{-259,-110,-175,-239,-290,-250},{-219,-235,-236,-255,-246,-250},{-205,-150,-268,-119,-292,-197},{-117,-221,-253,-273,-168,-130},{-223,-224,-163,-207,-120,-326},{-136,-183,-171,-231,-205,-156},{-230,-233,-129,-297,-259,-247},{-139,-192,-262,-211,-277,-176}},{{-297,-273,-222,-175,-256,-218},{-281,-348,-266,-291,-154,-199},{-336,-308,-212,-324,-157,-355},{-150,-275,-173,-223,-350,-245},{-257,-197,-364,-129,-386,-360},{-329,-164,-215,-248,-311,-280},{-148,-212,-149,-159,-355,-325},{-207,-125,-205,-336,-352,-401},{-184,-345,-249,-349,-334,-350},{-241,-139,-142,-331,-329,-366}},{{-323,-270,-187,-289,-368,-188},{-306,-357,-261,-193,-412,-156},{-190,-388,-379,-239,-435,-247},{-210,-230,-408,-347,-268,-315},{-378,-216,-301,-272,-276,-350},{-279,-270,-319,-342,-441,-218},{-345,-303,-198,-228,-318,-409},{-326,-289,-187,-146,-406,-162},{-259,-399,-152,-342,-200,-297},{-298,-306,-364,-280,-285,-370}}},{{{-200,-186,-131,-120,-204,-151},{-249,-232,-159,-147,-267,-254},{-240,-157,-191,-215,-162,-244},{-202,-123,-234,-233,-171,-134},{-218,-204,-226,-120,-254,-178},{-223,-106,-231,-199,-241,-206},{-215,-240,-189,-170,-201,-99},{-235,-101,-248,-97,-107,-139},{-134,-186,-103,-175,-265,-118},{-200,-245,-126,-233,-217,-151}},{{-103,-141,-173,-119,-323,-148},{-164,-170,-241,-281,-222,-355},{-283,-293,-160,-332,-188,-274},{-166,-297,-155,-283,-176,-262},{-263,-277,-211,-186,-238,-338},{-202,-154,-198,-309,-153,-228},{-119,-162,-162,-155,-268,-347},{-232,-139,-305,-270,-124,-186},{-236,-246,-134,-155,-289,-169},{-176,-125,-309,-157,-222,-338}},{{-185,-163,-348,-392,-158,-280},{-188,-163,-335,-213,-180,-416},{-165,-247,-307,-346,-180,-218},{-180,-232,-231,-184,-230,-422},{-356,-158,-317,-143,-407,-410},{-163,-150,-309,-227,-183,-342},{-329,-173,-278,-254,-138,-424},{-163,-242,-388,-202,-341,-258},{-336,-255,-341,-256,-263,-212},{-185,-237,-236,-248,-158,-385}},{{-306,-318,-426,-157,-268,-325},{-410,-365,-229,-403,-265,-397},{-344,-212,-191,-430,-415,-178},{-234,-226,-310,-175,-226,-331},{-249,-270,-438,-208,-400,-406},{-280,-429,-316,-331,-439,-262},{-341,-197,-378,-166,-193,-421},{-396,-247,-283,-214,-271,-379},{-431,-165,-441,-190,-214,-238},{-335,-159,-221,-415,-403,-253}},{{-325,-427,-235,-339,-156,-157},{-160,-298,-292,-381,-344,-154},{-166,-400,-415,-378,-315,-313},{-379,-355,-187,-261,-435,-197},{-193,-217,-295,-393,-212,-342},{-418,-442,-154,-321,-209,-423},{-298,-328,-409,-264,-273,-406},{-388,-157,-274,-339,-147,-296},{-433,-340,-154,-348,-259,-194},{-325,-163,-196,-261,-256,-145}},{{-265,-226,-360,-378,-177,-221},{-345,-293,-385,-201,-269,-154},{-254,-273,-366,-370,-323,-243},{-342,-215,-252,-166,-220,-146},{-214,-321,-293,-224,-220,-260},{-373,-165,-247,-240,-279,-233},{-351,-223,-255,-288,-266,-124},{-325,-179,-282,-306,-179,-208},{-237,-259,-230,-354,-282,-238},{-390,-357,-233,-190,-212,-275}},{{-264,-167,-248,-299,-108,-201},{-204,-343,-152,-230,-302,-203},{-137,-190,-306,-215,-300,-127},{-348,-116,-190,-284,-172,-241},{-252,-336,-317,-202,-306,-275},{-139,-325,-176,-297,-310,-259},{-326,-135,-210,-157,-279,-291},{-245,-172,-120,-264,-306,-107},{-360,-348,-167,-307,-273,-195},{-314,-153,-143,-183,-263,-195}},{{-161,-156,-101,-130,-168,-111},{-192,-236,-212,-166,-200,-92},{-236,-227,-179,-257,-217,-245},{-98,-216,-148,-128,-127,-175},{-132,-272,-154,-98,-99,-165},{-115,-249,-206,-144,-205,-108},{-202,-246,-232,-257,-198,-101},{-280,-244,-233,-108,-197,-123},{-96,-231,-107,-147,-125,-170},{-111,-205,-239,-177,-253,-99}},{{-116,-102,-119,-180,-150,-250},{-143,-245,-114,-190,-193,-237},{-139,-114,-207,-86,-190,-158},{-96,-176,-249,-124,-227,-186},{-227,-244,-188,-106,-155,-195},{-166,-111,-133,-89,-109,-141},{-249,-84,-151,-193,-114,-143},{-242,-124,-87,-228,-205,-168},{-84,-213,-165,-102,-166,-116},{-227,-109,-166,-235,-113,-129}}},{{{-418,-345,-309,-474,-329,-421},{-247,-276,-362,-197,-362,-484},{-247,-494,-174,-237,-273,-457},{-467,-316,-388,-224,-401,-438},{-480,-424,-355,-421,-411,-467},{-336,-480,-392,-164,-428,-388},{-438,-467,-188,-306,-329,-457},{-441,-392,-316,-345,-359,-280},{-313,-227,-395,-260,-247,-240},{-359,-401,-243,-319,-303,-164}},{{-361,-480,-319,-374,-209,-199},{-426,-335,-268,-223,-305,-334},{-423,-296,-402,-399,-363,-181},{-417,-299,-230,-399,-385,-337},{-266,-222,-469,-261,-305,-388},{-443,-174,-376,-192,-290,-196},{-220,-409,-472,-427,-453,-253},{-207,-460,-242,-452,-246,-355},{-462,-164,-195,-261,-407,-448},{-203,-435,-195,-468,-450,-361}},{{-292,-144,-272,-394,-281,-221},{-422,-274,-395,-177,-276,-365},{-289,-412,-160,-343,-238,-146},{-230,-351,-216,-239,-297,-260},{-440,-305,-381,-163,-196,-332},{-277,-173,-241,-384,-331,-218},{-283,-213,-140,-185,-178,-321},{-401,-380,-274,-160,-392,-342},{-174,-190,-258,-199,-299,-306},{-195,-340,-274,-313,-376,-175}},{{-250,-219,-303,-159,-228,-188},{-218,-233,-201,-298,-242,-193},{-165,-357,-164,-155,-242,-261},{-322,-357,-265,-280,-190,-158},{-140,-343,-268,-316,-202,-320},{-220,-238,-246,-319,-246,-228},{-178,-194,-356,-342,-148,-219},{-280,-153,-327,-326,-179,-197},{-352,-151,-230,-245,-233,-149},{-220,-124,-232,-247,-255,-280}},{{-213,-128,-244,-193,-141,-151},{-152,-210,-225,-109,-254,-275},{-184,-116,-139,-174,-258,-239},{-306,-155,-281,-197,-141,-136},{-237,-155,-231,-149,-260,-145},{-310,-141,-124,-210,-252,-256},{-187,-284,-241,-235,-176,-118},{-184,-273,-214,-235,-229,-304},{-219,-260,-168,-195,-149,-158},{-119,-252,-288,-265,-223,-153}},{{-139,-206,-270,-187,-323,-144},{-162,-248,-207,-286,-200,-160},{-218,-300,-116,-119,-273,-209},{-216,-292,-150,-276,-262,-297},{-147,-304,-106,-202,-174,-328},{-271,-187,-118,-217,-306,-243},{-267,-273,-148,-158,-310,-151},{-302,-172,-222,-323,-317,-184},{-111,-158,-243,-128,-198,-286},{-143,-206,-241,-213,-229,-223}},{{-141,-246,-283,-228,-353,-343},{-222,-199,-224,-158,-325,-245},{-231,-180,-237,-274,-152,-295},{-266,-156,-278,-241,-284,-301},{-226,-296,-307,-241,-245,-189},{-196,-292,-303,-316,-245,-271},{-238,-284,-195,-141,-263,-202},{-273,-194,-166,-301,-237,-170},{-277,-213,-166,-198,-338,-295},{-282,-118,-288,-153,-289,-301}},{{-411,-289,-344,-181,-296,-379},{-255,-267,-384,-397,-151,-367},{-299,-171,-251,-172,-447,-231},{-392,-264,-272,-284,-287,-256},{-403,-309,-179,-373,-205,-225},{-156,-149,-272,-423,-408,-403},{-178,-385,-384,-334,-251,-400},{-392,-407,-243,-417,-347,-434},{-348,-250,-324,-225,-353,-234},{-400,-422,-240,-423,-214,-308}},{{-315,-384,-325,-234,-194,-306},{-296,-288,-338,-207,-490,-438},{-252,-307,-457,-392,-424,-484},{-400,-237,-345,-431,-388,-273},{-173,-173,-258,-375,-362,-234},{-337,-173,-364,-329,-408,-260},{-302,-413,-370,-352,-405,-191},{-419,-224,-357,-388,-214,-329},{-391,-186,-277,-260,-480,-392},{-280,-419,-454,-204,-457,-211}}},{{{-81,-144,-168,-166,-133,-120},{-142,-151,-166,-104,-165,-174},{-155,-107,-58,-70,-110,-90},{-118,-65,-122,-116,-128,-83},{-59,-88,-160,-83,-99,-183},{-144,-106,-132,-122,-84,-70},{-90,-152,-123,-95,-63,-119},{-154,-70,-104,-143,-172,-147},{-64,-55,-142,-66,-93,-91},{-82,-131,-144,-67,-85,-122}},{{-120,-128,-86,-209,-185,-153},{-119,-206,-74,-102,-193,-133},{-103,-172,-170,-130,-217,-218},{-108,-118,-151,-99,-100,-178},{-143,-89,-102,-195,-204,-153},{-140,-176,-154,-112,-156,-252},{-84,-135,-203,-85,-187,-136},{-124,-131,-186,-107,-113,-166},{-140,-100,-132,-129,-174,-181},{-184,-192,-218,-184,-232,-218}},{{-234,-137,-138,-239,-188,-210},{-194,-173,-225,-97,-282,-220},{-186,-131,-195,-207,-159,-99},{-203,-245,-242,-194,-102,-214},{-142,-113,-134,-165,-225,-214},{-254,-198,-218,-279,-194,-293},{-187,-103,-190,-253,-239,-145},{-222,-180,-186,-120,-212,-283},{-124,-169,-123,-194,-172,-107},{-130,-164,-236,-162,-290,-139}},{{-106,-193,-132,-256,-248,-158},{-140,-219,-146,-274,-158,-258},{-136,-209,-254,-223,-168,-124},{-160,-199,-185,-294,-144,-120},{-260,-225,-152,-166,-162,-185},{-193,-268,-262,-250,-193,-276},{-144,-146,-160,-264,-233,-298},{-164,-173,-118,-104,-162,-132},{-168,-168,-300,-191,-140,-162},{-185,-246,-233,-162,-288,-183}},{{-106,-270,-169,-269,-197,-96},{-185,-207,-130,-250,-225,-241},{-189,-256,-154,-191,-215,-230},{-195,-122,-164,-222,-197,-188},{-274,-238,-230,-168,-176,-121},{-256,-142,-138,-220,-102,-188},{-288,-120,-193,-218,-155,-184},{-136,-116,-292,-199,-234,-156},{-193,-106,-262,-254,-123,-230},{-221,-294,-264,-129,-187,-204}},{{-177,-201,-184,-125,-129,-194},{-227,-104,-227,-109,-179,-121},{-145,-168,-110,-179,-95,-125},{-236,-197,-199,-93,-81,-128},{-98,-244,-132,-213,-179,-98},{-140,-95,-135,-131,-184,-138},{-147,-227,-112,-154,-168,-163},{-124,-144,-237,-128,-156,-125},{-193,-187,-232,-206,-127,-207},{-188,-86,-140,-91,-124,-123}},{{-101,-118,-127,-157,-102,-103},{-161,-129,-107,-87,-174,-75},{-122,-164,-140,-109,-93,-158},{-109,-168,-70,-137,-160,-165},{-116,-144,-174,-167,-124,-168},{-133,-166,-74,-152,-74,-156},{-87,-90,-180,-109,-82,-147},{-133,-129,-126,-93,-167,-64},{-144,-150,-138,-169,-104,-94},{-113,-73,-168,-144,-151,-101}},{{-128,-108,-122,-80,-70,-75},{-80,-52,-100,-102,-97,-55},{-142,-102,-74,-103,-84,-80},{-134,-132,-130,-49,-97,-123},{-99,-111,-64,-114,-121,-92},{-103,-90,-125,-145,-59,-91},{-123,-64,-142,-136,-64,-51},{-129,-133,-133,-109,-122,-113},{-110,-153,-98,-59,-62,-66},{-86,-117,-81,-79,-82,-58}},{{-88,-102,-66,-122,-84,-91},{-72,-58,-79,-54,-60,-135},{-112,-84,-51,-74,-137,-79},{-57,-137,-103,-52,-103,-110},{-71,-120,-104,-145,-135,-67},{-52,-146,-83,-95,-51,-77},{-111,-61,-125,-107,-87,-138},{-137,-126,-133,-110,-93,-59},{-65,-78,-58,-138,-56,-51},{-126,-115,-59,-76,-141,-134}}},{{{-140,-143,-236,-188,-319,-119},{-326,-333,-226,-250,-207,-124},{-207,-236,-336,-129,-193,-190},{-324,-302,-312,-338,-150,-259},{-198,-345,-157,-226,-281,-176},{-294,-307,-198,-124,-129,-250},{-280,-352,-269,-317,-228,-274},{-340,-224,-331,-298,-133,-302},{-319,-148,-269,-145,-259,-331},{-340,-124,-169,-257,-126,-298}},{{-298,-319,-233,-236,-314,-175},{-186,-324,-172,-203,-163,-296},{-293,-350,-254,-141,-118,-312},{-136,-129,-139,-159,-258,-332},{-202,-202,-261,-259,-183,-210},{-321,-145,-207,-176,-323,-141},{-221,-178,-249,-173,-287,-245},{-224,-152,-298,-127,-201,-287},{-264,-133,-230,-213,-113,-236},{-157,-183,-310,-125,-136,-172}},{{-185,-142,-301,-242,-211,-153},{-316,-301,-275,-222,-170,-140},{-206,-169,-242,-197,-245,-221},{-129,-207,-121,-109,-252,-236},{-170,-253,-224,-224,-219,-239},{-273,-270,-242,-216,-213,-92},{-303,-169,-200,-125,-155,-261},{-307,-303,-255,-121,-125,-158},{-275,-251,-277,-236,-221,-239},{-226,-286,-117,-236,-116,-90}},{{-206,-188,-212,-195,-104,-108},{-189,-130,-201,-216,-114,-155},{-218,-231,-105,-80,-138,-115},{-115,-144,-129,-225,-82,-141},{-114,-137,-160,-112,-144,-207},{-158,-238,-155,-209,-166,-181},{-249,-145,-206,-111,-140,-174},{-187,-239,-137,-214,-125,-94},{-134,-200,-173,-178,-199,-167},{-172,-177,-118,-106,-130,-91}},{{-188,-88,-114,-124,-105,-82},{-158,-100,-169,-146,-76,-87},{-73,-154,-124,-156,-171,-142},{-181,-78,-126,-137,-88,-68},{-146,-123,-93,-75,-100,-178},{-125,-102,-138,-108,-120,-107},{-138,-77,-172,-62,-152,-70},{-124,-146,-99,-118,-99,-120},{-142,-101,-110,-96,-162,-75},{-96,-136,-154,-149,-64,-123}},{{-174,-120,-101,-121,-138,-161},{-171,-81,-146,-63,-99,-86},{-108,-173,-114,-138,-139,-173},{-155,-175,-123,-123,-93,-178},{-109,-152,-76,-74,-121,-122},{-170,-170,-145,-86,-146,-126},{-145,-61,-155,-169,-102,-113},{-138,-156,-129,-137,-83,-139},{-76,-114,-134,-148,-67,-168},{-174,-137,-96,-88,-151,-87}},{{-103,-118,-107,-148,-198,-178},{-130,-136,-204,-184,-174,-241},{-97,-94,-165,-89,-99,-136},{-119,-132,-209,-93,-126,-126},{-177,-182,-157,-110,-133,-130},{-110,-167,-178,-101,-212,-117},{-94,-68,-118,-126,-127,-156},{-182,-98,-165,-164,-166,-206},{-169,-158,-78,-87,-130,-243},{-169,-110,-182,-166,-208,-117}},{{-202,-257,-130,-121,-267,-157},{-126,-219,-102,-109,-185,-122},{-148,-216,-109,-271,-135,-107},{-94,-172,-192,-165,-209,-187},{-192,-227,-94,-184,-241,-165},{-230,-204,-163,-204,-239,-111},{-100,-219,-255,-194,-253,-295},{-194,-168,-187,-165,-193,-255},{-162,-239,-92,-156,-113,-262},{-224,-170,-131,-156,-111,-169}},{{-153,-261,-152,-328,-282,-162},{-277,-283,-228,-238,-275,-293},{-288,-199,-278,-217,-192,-116},{-106,-142,-166,-217,-196,-238},{-141,-313,-323,-164,-159,-284},{-198,-287,-188,-245,-236,-252},{-309,-177,-280,-132,-201,-233},{-294,-239,-318,-215,-238,-178},{-213,-123,-264,-252,-178,-247},{-305,-237,-224,-139,-178,-134}}},{{{-146,-378,-202,-269,-348,-362},{-287,-226,-168,-287,-173,-186},{-189,-213,-194,-356,-271,-274},{-322,-306,-314,-136,-282,-149},{-396,-186,-165,-255,-250,-226},{-144,-322,-186,-340,-285,-314},{-327,-340,-231,-176,-154,-319},{-338,-144,-319,-362,-168,-343},{-293,-383,-338,-144,-146,-162},{-170,-242,-332,-319,-168,-346}},{{-391,-154,-207,-269,-194,-287},{-152,-218,-295,-394,-272,-290},{-370,-285,-157,-364,-231,-321},{-157,-178,-255,-210,-356,-324},{-250,-332,-362,-359,-367,-130},{-229,-242,-271,-229,-362,-210},{-351,-186,-197,-298,-196,-199},{-192,-202,-322,-133,-252,-130},{-234,-178,-282,-253,-270,-202},{-301,-184,-391,-247,-165,-347}},{{-264,-233,-174,-218,-157,-342},{-168,-126,-139,-327,-184,-149},{-166,-258,-151,-293,-287,-157},{-251,-311,-282,-283,-331,-205},{-321,-159,-244,-228,-245,-333},{-332,-326,-257,-169,-181,-316},{-280,-321,-169,-146,-260,-251},{-321,-268,-307,-265,-250,-178},{-381,-380,-255,-308,-213,-268},{-210,-334,-139,-198,-252,-313}},{{-283,-181,-314,-216,-296,-246},{-126,-216,-155,-310,-334,-179},{-307,-240,-245,-239,-231,-128},{-283,-315,-310,-209,-170,-316},{-183,-164,-222,-198,-282,-125},{-238,-160,-157,-163,-204,-298},{-136,-310,-171,-258,-278,-130},{-157,-343,-259,-127,-128,-121},{-176,-277,-132,-324,-287,-150},{-183,-233,-300,-255,-235,-170}},{{-150,-321,-247,-224,-241,-174},{-194,-254,-143,-308,-154,-184},{-172,-139,-111,-273,-213,-265},{-222,-230,-124,-161,-208,-293},{-238,-254,-221,-193,-239,-154},{-152,-180,-145,-152,-269,-193},{-191,-108,-237,-326,-278,-271},{-125,-167,-178,-312,-150,-193},{-185,-117,-319,-234,-189,-202},{-132,-243,-230,-258,-171,-152}},{{-187,-111,-321,-250,-304,-278},{-306,-167,-132,-213,-145,-247},{-276,-204,-135,-267,-117,-289},{-161,-286,-306,-271,-208,-243},{-195,-163,-202,-312,-302,-113},{-308,-286,-315,-215,-282,-265},{-156,-254,-206,-260,-193,-321},{-250,-315,-124,-206,-115,-326},{-258,-124,-308,-291,-143,-289},{-280,-263,-193,-208,-267,-213}},{{-168,-213,-251,-196,-132,-256},{-137,-244,-195,-127,-155,-134},{-170,-143,-152,-299,-238,-125},{-219,-327,-161,-202,-282,-233},{-236,-157,-199,-331,-171,-129},{-117,-267,-240,-255,-215,-226},{-148,-193,-137,-133,-286,-263},{-194,-211,-325,-258,-173,-195},{-323,-121,-325,-301,-219,-350},{-183,-166,-204,-271,-340,-183}},{{-238,-242,-135,-372,-164,-137},{-150,-278,-277,-273,-285,-293},{-121,-208,-189,-370,-179,-182},{-305,-174,-198,-300,-310,-364},{-331,-324,-336,-367,-232,-223},{-140,-191,-299,-216,-217,-359},{-224,-247,-154,-340,-255,-225},{-202,-353,-368,-263,-186,-281},{-300,-162,-289,-310,-370,-354},{-281,-211,-360,-332,-305,-243}},{{-269,-168,-225,-391,-399,-287},{-300,-332,-152,-314,-271,-263},{-179,-228,-176,-322,-317,-138},{-267,-264,-320,-165,-194,-181},{-228,-254,-183,-253,-245,-141},{-184,-368,-351,-332,-362,-309},{-228,-168,-196,-285,-133,-266},{-339,-337,-149,-388,-378,-325},{-370,-326,-309,-261,-154,-247},{-376,-202,-215,-354,-335,-314}}},{{{-358,-292,-331,-403,-241,-255},{-265,-406,-337,-430,-244,-432},{-415,-199,-343,-415,-205,-426},{-364,-226,-382,-154,-415,-231},{-295,-388,-421,-358,-166,-219},{-301,-319,-295,-169,-397,-403},{-199,-265,-367,-238,-187,-175},{-292,-232,-154,-229,-175,-195},{-310,-409,-452,-313,-250,-263},{-202,-343,-436,-292,-337,-417}},{{-375,-201,-412,-401,-347,-265},{-226,-230,-171,-265,-135,-206},{-237,-195,-333,-393,-231,-185},{-208,-410,-190,-188,-347,-249},{-398,-396,-182,-207,-167,-254},{-378,-330,-367,-254,-246,-373},{-343,-264,-216,-194,-188,-362},{-407,-422,-347,-319,-241,-280},{-229,-327,-406,-240,-392,-229},{-246,-344,-283,-298,-268,-332}},{{-273,-312,-307,-232,-197,-105},{-144,-326,-208,-206,-140,-141},{-345,-264,-256,-309,-288,-172},{-208,-228,-199,-130,-312,-158},{-365,-322,-302,-192,-235,-127},{-221,-178,-119,-290,-165,-267},{-226,-120,-316,-164,-182,-226},{-293,-178,-263,-159,-299,-156},{-372,-166,-185,-219,-131,-162},{-243,-336,-126,-325,-295,-154}},{{-173,-240,-256,-249,-224,-233},{-248,-214,-166,-229,-173,-198},{-211,-106,-158,-187,-208,-180},{-97,-112,-117,-222,-120,-87},{-186,-147,-153,-91,-179,-167},{-274,-132,-150,-184,-91,-198},{-142,-199,-148,-127,-151,-227},{-175,-121,-180,-218,-149,-116},{-275,-218,-210,-117,-154,-84},{-210,-203,-212,-136,-141,-204}},{{-123,-136,-112,-83,-151,-172},{-206,-177,-123,-120,-188,-100},{-161,-172,-219,-202,-160,-112},{-147,-191,-166,-149,-86,-180},{-133,-132,-140,-151,-182,-165},{-165,-174,-157,-132,-86,-203},{-175,-180,-185,-148,-205,-219},{-222,-108,-159,-191,-216,-85},{-100,-148,-189,-125,-157,-186},{-215,-122,-219,-151,-117,-131}},{{-229,-215,-206,-94,-128,-217},{-114,-156,-122,-156,-257,-244},{-129,-197,-220,-185,-115,-210},{-95,-110,-181,-160,-117,-244},{-202,-221,-215,-138,-110,-168},{-182,-232,-102,-171,-115,-143},{-202,-224,-160,-223,-172,-221},{-214,-124,-139,-126,-212,-123},{-86,-178,-146,-170,-226,-250},{-214,-143,-84,-87,-102,-235}},{{-137,-232,-130,-271,-119,-339},{-95,-285,-307,-232,-315,-117},{-101,-109,-262,-318,-209,-138},{-236,-261,-126,-161,-169,-206},{-232,-226,-305,-148,-232,-145},{-236,-244,-290,-307,-225,-232},{-243,-287,-152,-243,-261,-178},{-154,-232,-196,-176,-173,-283},{-256,-297,-190,-200,-220,-269},{-105,-196,-159,-200,-176,-164}},{{-182,-338,-180,-331,-348,-207},{-233,-164,-130,-323,-375,-161},{-343,-295,-201,-288,-312,-320},{-165,-333,-138,-342,-201,-175},{-262,-139,-264,-366,-315,-359},{-292,-151,-389,-164,-334,-241},{-289,-134,-130,-325,-367,-195},{-204,-146,-295,-231,-273,-229},{-282,-131,-352,-239,-138,-212},{-173,-156,-172,-320,-182,-357}},{{-202,-194,-344,-430,-193,-184},{-176,-412,-257,-223,-157,-385},{-387,-150,-236,-226,-193,-205},{-318,-218,-254,-436,-433,-412},{-205,-223,-407,-271,-452,-229},{-315,-329,-410,-331,-178,-286},{-266,-212,-284,-379,-307,-418},{-315,-415,-150,-220,-412,-223},{-306,-179,-425,-322,-319,-385},{-197,-320,-302,-214,-256,-301}}},{{{-336,-525,-494,-210,-466,-441},{-452,-389,-522,-350,-410,-332},{-312,-500,-473,-189,-224,-294},{-434,-469,-368,-518,-312,-312},{-497,-452,-312,-220,-315,-490},{-336,-203,-266,-424,-395,-343},{-438,-458,-287,-290,-514,-497},{-518,-234,-462,-234,-497,-357},{-494,-476,-329,-487,-483,-326},{-374,-514,-207,-350,-462,-368}},{{-289,-175,-447,-217,-417,-464},{-264,-271,-359,-170,-413,-267},{-456,-508,-244,-304,-367,-399},{-400,-388,-407,-451,-351,-187},{-198,-425,-451,-200,-485,-328},{-306,-295,-495,-428,-390,-319},{-456,-206,-231,-247,-456,-293},{-251,-508,-468,-287,-167,-399},{-372,-367,-397,-180,-374,-345},{-244,-415,-298,-481,-453,-460}},{{-195,-336,-387,-229,-242,-373},{-211,-323,-366,-261,-353,-264},{-167,-194,-159,-434,-142,-278},{-340,-206,-396,-185,-208,-245},{-293,-440,-285,-398,-348,-331},{-202,-440,-300,-404,-408,-367},{-195,-462,-372,-390,-197,-161},{-306,-314,-432,-196,-237,-295},{-343,-262,-429,-170,-339,-325},{-217,-259,-216,-182,-319,-292}},{{-259,-371,-272,-321,-350,-358},{-338,-145,-324,-221,-132,-337},{-402,-334,-208,-136,-318,-253},{-302,-384,-329,-266,-284,-196},{-373,-224,-365,-259,-233,-246},{-246,-368,-378,-178,-147,-253},{-381,-237,-152,-226,-152,-229},{-308,-218,-342,-276,-201,-349},{-270,-255,-136,-136,-341,-284},{-224,-153,-141,-126,-368,-258}},{{-254,-192,-296,-319,-217,-210},{-216,-252,-120,-316,-164,-328},{-218,-192,-310,-333,-316,-164},{-254,-277,-189,-185,-231,-143},{-201,-171,-120,-199,-187,-194},{-332,-314,-203,-125,-215,-344},{-182,-208,-222,-217,-254,-293},{-232,-266,-219,-129,-219,-164},{-318,-233,-185,-316,-328,-342},{-239,-337,-326,-247,-328,-346}},{{-312,-321,-126,-309,-208,-157},{-213,-201,-177,-157,-271,-219},{-247,-157,-193,-195,-203,-140},{-180,-231,-308,-328,-232,-288},{-286,-333,-123,-159,-191,-256},{-176,-125,-301,-300,-319,-221},{-166,-296,-149,-240,-353,-207},{-335,-333,-217,-124,-334,-268},{-143,-199,-175,-145,-131,-199},{-229,-240,-121,-307,-136,-150}},{{-146,-293,-213,-147,-399,-320},{-156,-163,-359,-227,-180,-302},{-169,-313,-266,-254,-155,-380},{-234,-326,-266,-248,-354,-253},{-171,-275,-253,-183,-267,-164},{-373,-254,-346,-216,-329,-207},{-368,-254,-266,-257,-410,-314},{-295,-332,-388,-374,-422,-386},{-176,-277,-207,-205,-360,-294},{-287,-135,-146,-265,-169,-210}},{{-189,-373,-369,-320,-337,-231},{-423,-448,-285,-418,-350,-419},{-266,-206,-270,-390,-450,-294},{-317,-258,-267,-260,-279,-241},{-346,-170,-360,-193,-201,-419},{-266,-239,-350,-298,-249,-337},{-346,-227,-415,-403,-217,-185},{-260,-418,-434,-235,-318,-403},{-326,-170,-450,-406,-373,-330},{-166,-336,-198,-184,-428,-346}},{{-198,-416,-478,-332,-276,-448},{-437,-198,-172,-473,-416,-256},{-245,-450,-478,-346,-270,-214},{-343,-450,-485,-238,-487,-203},{-175,-477,-320,-318,-287,-438},{-312,-232,-275,-452,-490,-385},{-410,-303,-227,-430,-315,-416},{-292,-426,-303,-178,-416,-434},{-316,-259,-337,-175,-483,-490},{-292,-303,-372,-228,-525,-385}}}}; // 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,12,9,26,13,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,26,13,9,26,13,9,27,13,9,27,13,9,26,13,9,27,13,9,26,13,9,25,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}}; // 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,2,6,10,14,18,22,26,30,34,38,42,46,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,0,4,8,12,16,20,24,28,32,36,40,44,48,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,0,4,8,12,16,20,24,28,32,36,40,44,48,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,0,4,8,12,16,20,24,28,32,36,40,44,48,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,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,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,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,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,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,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,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,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,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,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,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,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,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,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,0,6,12,18,24,30,36,42,48}; // 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,7,11,15,19,23,27,31,35,39,43,47,51,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,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,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,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,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,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,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,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,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,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,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,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,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,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,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,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,2,6,10,14,18,22,26,30,34,38,42,46,50,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,4,8,12,16,20,24,28,32,36,40,44,48,52,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,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,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,3,7,11,15,19,23,27,31,35,39,43,47,51,3,9,15,21,27,33,39,45,51}; // set of end times of each shipment 
