int Dev = 30;// 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 = 1139;//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]={{{{12031,0,0,0,0,0},{12317,0,0,0,0,0},{12154,0,0,0,0,0},{12576,0,0,0,0,0},{12205,0,0,0,0,0},{12471,0,0,0,0,0},{12638,0,0,0,0,0},{12275,0,0,0,0,0},{12750,0,0,0,0,0},{12706,0,0,0,0,0}},{{12350,0,0,0,0,0},{12631,0,0,0,0,0},{12679,0,0,0,0,0},{12508,0,0,0,0,0},{12132,0,0,0,0,0},{12260,0,0,0,0,0},{12690,0,0,0,0,0},{13013,0,0,0,0,0},{12985,0,0,0,0,0},{12111,0,0,0,0,0}},{{11440,0,0,0,0,0},{11045,0,0,0,0,0},{11433,0,0,0,0,0},{12210,0,0,0,0,0},{12047,0,0,0,0,0},{11878,0,0,0,0,0},{11112,0,0,0,0,0},{11429,0,0,0,0,0},{11228,0,0,0,0,0},{11761,0,0,0,0,0}},{{11159,0,0,0,0,0},{10432,0,0,0,0,0},{10237,0,0,0,0,0},{10366,0,0,0,0,0},{9853,0,0,0,0,0},{10364,0,0,0,0,0},{10783,0,0,0,0,0},{10165,0,0,0,0,0},{10319,0,0,0,0,0},{10215,0,0,0,0,0}},{{9776,0,0,0,0,0},{9102,0,0,0,0,0},{9588,0,0,0,0,0},{10073,0,0,0,0,0},{9458,0,0,0,0,0},{9559,0,0,0,0,0},{9674,0,0,0,0,0},{8945,0,0,0,0,0},{9135,0,0,0,0,0},{9612,0,0,0,0,0}},{{9345,0,0,0,0,0},{9104,0,0,0,0,0},{9181,0,0,0,0,0},{9388,0,0,0,0,0},{9356,0,0,0,0,0},{9316,0,0,0,0,0},{9447,0,0,0,0,0},{9288,0,0,0,0,0},{9114,0,0,0,0,0},{9262,0,0,0,0,0}},{{10400,0,0,0,0,0},{9922,0,0,0,0,0},{10010,0,0,0,0,0},{9758,0,0,0,0,0},{9715,0,0,0,0,0},{9875,0,0,0,0,0},{10319,0,0,0,0,0},{9769,0,0,0,0,0},{9402,0,0,0,0,0},{9494,0,0,0,0,0}},{{11373,0,0,0,0,0},{10846,0,0,0,0,0},{10883,0,0,0,0,0},{11039,0,0,0,0,0},{10487,0,0,0,0,0},{11240,0,0,0,0,0},{10630,0,0,0,0,0},{10380,0,0,0,0,0},{11616,0,0,0,0,0},{11571,0,0,0,0,0}},{{11731,0,0,0,0,0},{11994,0,0,0,0,0},{12509,0,0,0,0,0},{11869,0,0,0,0,0},{12037,0,0,0,0,0},{12562,0,0,0,0,0},{12125,0,0,0,0,0},{11659,0,0,0,0,0},{11783,0,0,0,0,0},{12689,0,0,0,0,0}}},{{{-206,-318,-276,-250,-376,-238},{-223,-232,-291,-294,-306,-382},{-350,-273,-376,-326,-229,-259},{-368,-303,-291,-312,-282,-244},{-312,-362,-318,-382,-303,-323},{-353,-309,-356,-303,-350,-235},{-265,-276,-303,-356,-215,-326},{-350,-341,-306,-223,-297,-212},{-335,-347,-262,-276,-294,-226},{-359,-235,-253,-259,-223,-341}},{{-203,-369,-252,-315,-275,-186},{-252,-306,-280,-238,-232,-241},{-342,-303,-269,-290,-312,-192},{-281,-335,-336,-285,-190,-329},{-307,-326,-252,-266,-302,-282},{-212,-269,-325,-214,-270,-246},{-261,-312,-246,-332,-312,-186},{-299,-249,-300,-230,-222,-280},{-255,-206,-364,-318,-219,-329},{-307,-292,-333,-203,-195,-241}},{{-310,-257,-273,-175,-193,-167},{-252,-169,-170,-161,-225,-187},{-255,-252,-284,-164,-274,-268},{-312,-177,-231,-175,-253,-206},{-182,-198,-168,-287,-270,-253},{-272,-242,-191,-249,-205,-152},{-200,-273,-226,-202,-184,-177},{-245,-177,-200,-157,-216,-165},{-282,-259,-233,-204,-195,-227},{-275,-208,-259,-231,-158,-150}},{{-252,-221,-154,-194,-185,-195},{-162,-133,-179,-177,-130,-114},{-164,-239,-172,-189,-170,-125},{-244,-151,-168,-196,-124,-174},{-152,-178,-222,-181,-170,-184},{-221,-163,-165,-198,-203,-142},{-199,-168,-213,-187,-170,-166},{-144,-221,-154,-157,-155,-203},{-183,-209,-193,-146,-137,-154},{-167,-241,-166,-167,-206,-112}},{{-199,-171,-165,-134,-182,-157},{-145,-109,-103,-157,-154,-137},{-126,-127,-181,-134,-134,-166},{-171,-152,-156,-162,-135,-181},{-137,-130,-107,-179,-131,-113},{-172,-189,-165,-122,-188,-165},{-149,-133,-144,-110,-172,-176},{-129,-155,-103,-153,-146,-191},{-111,-170,-128,-132,-141,-118},{-180,-152,-156,-146,-125,-110}},{{-146,-157,-189,-156,-116,-154},{-166,-141,-166,-108,-171,-214},{-140,-182,-175,-152,-122,-184},{-165,-138,-157,-143,-175,-200},{-107,-191,-113,-163,-193,-187},{-171,-141,-186,-166,-209,-175},{-159,-181,-183,-177,-200,-134},{-175,-140,-118,-123,-200,-159},{-132,-123,-181,-166,-142,-142},{-134,-144,-146,-117,-138,-194}},{{-132,-226,-222,-149,-248,-171},{-136,-148,-146,-233,-240,-234},{-153,-172,-218,-229,-186,-197},{-207,-134,-190,-147,-207,-254},{-167,-205,-146,-191,-217,-215},{-141,-134,-209,-247,-219,-178},{-219,-212,-245,-173,-224,-271},{-174,-150,-179,-193,-250,-165},{-211,-167,-209,-195,-168,-208},{-137,-181,-158,-149,-207,-232}},{{-270,-291,-271,-256,-271,-296},{-241,-228,-298,-180,-196,-293},{-266,-174,-232,-250,-245,-218},{-268,-258,-207,-220,-311,-315},{-159,-223,-195,-187,-271,-245},{-241,-289,-173,-281,-284,-323},{-161,-306,-178,-288,-334,-274},{-291,-289,-193,-190,-219,-253},{-277,-209,-312,-286,-282,-336},{-252,-287,-259,-311,-198,-256}},{{-221,-281,-296,-318,-206,-318},{-312,-362,-330,-374,-297,-373},{-193,-228,-373,-321,-376,-326},{-309,-242,-347,-307,-294,-270},{-342,-298,-250,-277,-276,-376},{-232,-200,-373,-280,-279,-350},{-317,-214,-258,-263,-297,-259},{-204,-200,-353,-210,-250,-268},{-273,-312,-212,-216,-341,-232},{-337,-351,-353,-353,-294,-326}}},{{{-128,-203,-140,-159,-175,-136},{-205,-123,-196,-211,-178,-147},{-185,-181,-131,-175,-239,-180},{-165,-149,-182,-218,-213,-218},{-202,-208,-164,-158,-169,-183},{-202,-191,-161,-192,-155,-233},{-128,-130,-189,-190,-234,-181},{-136,-120,-180,-166,-213,-164},{-188,-186,-220,-213,-199,-147},{-166,-203,-172,-229,-195,-235}},{{-178,-170,-266,-175,-266,-302},{-148,-191,-275,-241,-266,-174},{-232,-166,-200,-276,-298,-269},{-180,-158,-170,-239,-213,-255},{-204,-156,-181,-175,-250,-224},{-210,-215,-253,-281,-270,-274},{-172,-244,-200,-157,-181,-245},{-251,-178,-200,-241,-268,-307},{-248,-244,-241,-281,-213,-267},{-154,-154,-213,-232,-220,-195}},{{-185,-242,-194,-192,-285,-354},{-235,-324,-199,-224,-244,-269},{-230,-260,-322,-192,-296,-331},{-316,-319,-204,-346,-263,-317},{-289,-199,-341,-211,-360,-320},{-267,-311,-259,-238,-321,-297},{-314,-224,-186,-329,-341,-235},{-185,-286,-267,-243,-324,-331},{-190,-298,-189,-308,-224,-246},{-198,-222,-280,-332,-211,-303}},{{-275,-373,-334,-355,-280,-274},{-347,-226,-316,-247,-319,-292},{-266,-350,-256,-298,-367,-316},{-217,-329,-241,-343,-313,-376},{-208,-250,-274,-250,-229,-322},{-275,-229,-283,-256,-322,-238},{-355,-265,-378,-274,-229,-385},{-350,-215,-375,-223,-379,-382},{-260,-270,-387,-292,-316,-313},{-329,-318,-244,-331,-316,-229}},{{-322,-217,-382,-222,-329,-328},{-220,-364,-259,-258,-270,-354},{-301,-325,-334,-321,-320,-377},{-379,-379,-355,-273,-382,-334},{-346,-325,-325,-312,-220,-325},{-223,-379,-292,-213,-285,-336},{-352,-238,-313,-291,-376,-287},{-322,-223,-232,-321,-244,-345},{-214,-388,-271,-237,-247,-281},{-244,-277,-319,-294,-285,-316}},{{-242,-201,-233,-296,-220,-221},{-356,-220,-271,-338,-297,-268},{-276,-287,-217,-224,-187,-246},{-205,-265,-195,-185,-248,-198},{-336,-326,-287,-327,-225,-198},{-254,-232,-276,-325,-200,-238},{-299,-276,-238,-190,-253,-193},{-342,-257,-322,-327,-333,-193},{-225,-226,-290,-185,-266,-250},{-285,-340,-268,-304,-310,-193}},{{-298,-248,-283,-209,-153,-245},{-274,-253,-187,-228,-184,-171},{-226,-197,-288,-247,-248,-199},{-242,-271,-234,-228,-267,-159},{-192,-197,-174,-159,-170,-257},{-278,-267,-163,-189,-221,-241},{-257,-227,-203,-243,-203,-211},{-185,-190,-227,-219,-232,-231},{-173,-169,-181,-237,-228,-195},{-173,-209,-223,-200,-168,-153}},{{-219,-242,-233,-177,-123,-218},{-223,-234,-224,-124,-128,-143},{-138,-179,-195,-131,-214,-148},{-207,-166,-159,-158,-185,-215},{-215,-175,-181,-131,-121,-160},{-148,-199,-224,-159,-127,-186},{-217,-145,-156,-170,-183,-141},{-194,-234,-147,-159,-171,-195},{-240,-199,-233,-184,-147,-158},{-244,-173,-214,-172,-180,-171}},{{-195,-163,-212,-170,-171,-141},{-128,-144,-173,-176,-217,-176},{-192,-183,-190,-143,-208,-197},{-126,-124,-123,-193,-166,-124},{-138,-215,-129,-197,-183,-207},{-212,-175,-176,-188,-217,-190},{-121,-176,-190,-124,-118,-163},{-156,-158,-217,-131,-148,-186},{-176,-181,-213,-188,-203,-126},{-195,-134,-146,-185,-193,-205}}},{{{-336,-303,-266,-359,-372,-332},{-273,-415,-382,-339,-339,-411},{-326,-339,-382,-266,-418,-260},{-276,-243,-306,-237,-405,-405},{-283,-243,-375,-322,-359,-250},{-309,-428,-332,-286,-286,-415},{-293,-365,-283,-322,-365,-230},{-385,-290,-372,-260,-286,-428},{-336,-424,-290,-253,-316,-322},{-365,-408,-286,-336,-352,-415}},{{-285,-322,-297,-399,-259,-262},{-295,-370,-345,-336,-240,-346},{-239,-412,-415,-286,-296,-265},{-236,-361,-268,-279,-376,-367},{-285,-319,-242,-257,-354,-385},{-295,-296,-255,-254,-400,-367},{-423,-328,-380,-279,-360,-244},{-380,-357,-370,-276,-262,-223},{-413,-277,-322,-323,-308,-343},{-272,-245,-258,-257,-394,-352}},{{-271,-354,-288,-245,-310,-329},{-221,-268,-353,-267,-246,-216},{-324,-279,-232,-318,-201,-190},{-372,-251,-344,-329,-223,-267},{-324,-357,-350,-348,-212,-332},{-224,-276,-358,-291,-236,-270},{-230,-291,-235,-335,-307,-185},{-345,-334,-224,-212,-236,-306},{-313,-337,-199,-196,-241,-290},{-298,-265,-350,-272,-276,-180}},{{-322,-209,-204,-249,-179,-272},{-308,-253,-273,-164,-204,-210},{-325,-292,-263,-259,-264,-153},{-255,-180,-289,-166,-273,-153},{-212,-226,-254,-171,-197,-169},{-215,-219,-282,-282,-237,-274},{-200,-185,-299,-196,-264,-155},{-292,-187,-180,-203,-237,-155},{-315,-192,-180,-229,-177,-276},{-250,-279,-218,-224,-217,-175}},{{-263,-235,-267,-262,-172,-260},{-215,-231,-176,-158,-185,-216},{-280,-200,-160,-155,-176,-258},{-178,-183,-155,-183,-267,-227},{-252,-200,-271,-162,-185,-235},{-226,-149,-273,-208,-204,-241},{-158,-162,-260,-189,-202,-220},{-187,-172,-153,-149,-162,-223},{-176,-267,-191,-158,-147,-183},{-169,-223,-147,-218,-204,-183}},{{-160,-191,-272,-163,-231,-180},{-200,-267,-160,-280,-220,-225},{-265,-233,-167,-273,-282,-209},{-212,-172,-209,-202,-235,-166},{-273,-151,-194,-221,-211,-263},{-269,-170,-234,-193,-277,-160},{-248,-155,-249,-197,-282,-171},{-244,-218,-165,-219,-244,-263},{-252,-200,-211,-195,-211,-191},{-202,-149,-253,-221,-268,-292}},{{-206,-249,-259,-289,-273,-282},{-189,-263,-315,-324,-217,-293},{-261,-216,-195,-193,-224,-255},{-189,-220,-203,-196,-250,-253},{-208,-223,-210,-319,-322,-247},{-180,-242,-234,-251,-276,-237},{-286,-246,-290,-276,-279,-226},{-291,-251,-212,-304,-194,-325},{-256,-173,-215,-259,-191,-218},{-201,-197,-266,-324,-330,-210}},{{-195,-253,-376,-263,-381,-256},{-279,-247,-353,-349,-311,-268},{-310,-264,-208,-237,-302,-354},{-285,-351,-240,-302,-296,-246},{-192,-309,-223,-246,-368,-274},{-249,-281,-364,-373,-341,-351},{-304,-292,-289,-278,-278,-367},{-225,-284,-257,-287,-302,-271},{-260,-264,-263,-367,-338,-296},{-299,-365,-275,-299,-365,-363}},{{-249,-250,-332,-243,-237,-385},{-302,-298,-258,-319,-270,-290},{-309,-362,-277,-375,-290,-240},{-381,-371,-348,-359,-375,-230},{-290,-333,-280,-270,-276,-428},{-400,-230,-290,-276,-359,-326},{-258,-320,-361,-352,-349,-319},{-274,-291,-280,-362,-349,-375},{-391,-227,-238,-290,-319,-342},{-324,-397,-277,-339,-375,-326}}},{{{-86,-118,-92,-104,-117,-155},{-75,-136,-121,-83,-92,-99},{-83,-95,-105,-112,-100,-140},{-114,-83,-125,-124,-102,-154},{-128,-101,-96,-103,-128,-151},{-103,-103,-111,-102,-121,-122},{-77,-105,-129,-103,-89,-120},{-107,-101,-114,-147,-132,-120},{-81,-94,-146,-145,-123,-156},{-135,-104,-124,-140,-107,-142}},{{-170,-178,-145,-152,-166,-178},{-96,-173,-164,-181,-159,-153},{-142,-149,-184,-141,-195,-143},{-94,-134,-149,-198,-143,-166},{-176,-141,-142,-178,-113,-198},{-117,-175,-173,-161,-113,-141},{-161,-107,-155,-177,-192,-197},{-120,-106,-142,-155,-122,-200},{-116,-113,-120,-186,-177,-193},{-167,-142,-127,-183,-116,-148}},{{-142,-191,-156,-156,-184,-148},{-175,-178,-208,-152,-198,-238},{-200,-135,-188,-184,-151,-190},{-196,-220,-216,-238,-192,-208},{-226,-149,-206,-207,-237,-226},{-156,-176,-149,-144,-229,-150},{-210,-131,-179,-154,-184,-143},{-163,-146,-160,-139,-167,-172},{-200,-200,-154,-182,-174,-220},{-145,-149,-214,-220,-214,-168}},{{-258,-203,-189,-256,-209,-173},{-201,-231,-258,-238,-213,-219},{-240,-171,-162,-256,-219,-162},{-142,-211,-256,-231,-211,-146},{-144,-201,-244,-254,-258,-162},{-242,-171,-177,-193,-225,-154},{-193,-211,-262,-154,-248,-238},{-197,-173,-154,-197,-152,-225},{-211,-246,-187,-189,-179,-168},{-242,-256,-264,-250,-199,-152}},{{-219,-154,-142,-187,-161,-217},{-183,-254,-232,-168,-146,-149},{-199,-162,-154,-191,-191,-167},{-252,-195,-164,-168,-242,-213},{-227,-262,-165,-199,-223,-156},{-215,-233,-232,-181,-195,-132},{-199,-262,-146,-234,-240,-236},{-238,-223,-144,-220,-134,-239},{-219,-260,-205,-207,-147,-204},{-238,-189,-254,-213,-189,-237}},{{-233,-135,-194,-114,-164,-121},{-204,-215,-184,-138,-190,-103},{-183,-180,-140,-114,-167,-143},{-208,-147,-207,-195,-155,-159},{-183,-194,-144,-149,-156,-146},{-206,-166,-127,-194,-110,-131},{-184,-206,-205,-146,-132,-144},{-138,-140,-152,-130,-147,-119},{-170,-175,-140,-186,-156,-169},{-131,-170,-167,-139,-119,-156}},{{-150,-114,-109,-149,-84,-113},{-139,-120,-144,-128,-136,-118},{-160,-116,-99,-132,-133,-122},{-139,-132,-97,-127,-102,-87},{-164,-158,-121,-117,-115,-103},{-176,-101,-95,-108,-123,-130},{-123,-108,-110,-91,-92,-143},{-146,-149,-163,-131,-117,-127},{-106,-116,-145,-104,-128,-121},{-179,-113,-157,-100,-92,-80}},{{-131,-89,-122,-121,-117,-91},{-78,-113,-77,-108,-115,-79},{-110,-110,-81,-76,-81,-74},{-90,-125,-99,-79,-76,-88},{-94,-125,-83,-76,-69,-126},{-78,-83,-84,-87,-113,-108},{-91,-116,-71,-95,-75,-89},{-78,-92,-74,-82,-108,-119},{-74,-79,-100,-106,-93,-125},{-113,-108,-122,-81,-77,-122}},{{-123,-69,-96,-112,-92,-98},{-107,-127,-99,-82,-120,-71},{-122,-107,-96,-79,-94,-110},{-101,-119,-83,-76,-86,-92},{-73,-84,-124,-108,-75,-71},{-72,-87,-96,-74,-89,-102},{-122,-89,-85,-83,-74,-127},{-125,-124,-119,-74,-125,-74},{-83,-76,-102,-108,-113,-113},{-92,-117,-118,-73,-73,-93}}},{{{-233,-300,-293,-250,-233,-290},{-294,-226,-198,-295,-252,-181},{-163,-195,-264,-228,-217,-219},{-296,-286,-257,-169,-169,-202},{-200,-198,-171,-298,-167,-226},{-179,-286,-243,-248,-274,-307},{-298,-309,-274,-305,-174,-309},{-291,-281,-264,-305,-171,-188},{-303,-293,-190,-245,-276,-302},{-254,-221,-221,-231,-219,-188}},{{-264,-231,-169,-286,-165,-159},{-238,-305,-258,-185,-262,-225},{-214,-293,-294,-254,-235,-159},{-202,-255,-254,-169,-240,-274},{-217,-257,-247,-169,-255,-166},{-238,-231,-266,-249,-237,-263},{-178,-221,-294,-164,-160,-281},{-283,-293,-242,-266,-192,-274},{-231,-193,-289,-282,-203,-270},{-212,-195,-233,-166,-192,-274}},{{-189,-150,-226,-181,-148,-155},{-260,-153,-190,-148,-168,-200},{-221,-261,-184,-228,-163,-166},{-168,-190,-240,-244,-165,-223},{-198,-257,-196,-203,-151,-144},{-269,-182,-244,-252,-230,-205},{-247,-265,-226,-140,-208,-200},{-187,-217,-192,-226,-211,-162},{-200,-150,-168,-156,-232,-202},{-271,-272,-236,-244,-138,-193}},{{-201,-183,-188,-176,-181,-150},{-170,-157,-122,-188,-179,-168},{-165,-124,-190,-129,-134,-105},{-181,-135,-118,-122,-166,-110},{-153,-137,-179,-114,-145,-163},{-218,-190,-113,-189,-112,-106},{-143,-173,-116,-188,-108,-142},{-210,-148,-143,-120,-140,-153},{-158,-139,-154,-116,-166,-168},{-169,-165,-130,-120,-145,-161}},{{-112,-158,-113,-138,-104,-120},{-113,-156,-143,-112,-95,-111},{-112,-135,-144,-139,-108,-109},{-122,-161,-150,-152,-117,-123},{-93,-110,-129,-93,-99,-114},{-116,-145,-99,-130,-113,-84},{-156,-120,-113,-107,-115,-124},{-104,-111,-135,-114,-124,-105},{-157,-147,-129,-132,-96,-113},{-156,-96,-112,-127,-143,-109}},{{-144,-118,-138,-120,-100,-161},{-134,-95,-142,-123,-111,-102},{-115,-151,-127,-118,-120,-161},{-132,-129,-133,-106,-138,-91},{-109,-89,-84,-109,-145,-100},{-134,-115,-118,-112,-104,-98},{-84,-99,-148,-105,-106,-145},{-120,-115,-137,-126,-120,-101},{-84,-105,-136,-88,-143,-108},{-105,-108,-89,-145,-149,-93}},{{-144,-173,-175,-118,-155,-199},{-96,-120,-117,-144,-178,-117},{-147,-109,-166,-170,-138,-177},{-157,-131,-183,-121,-149,-172},{-170,-128,-165,-112,-116,-209},{-114,-128,-168,-145,-135,-177},{-156,-165,-179,-104,-160,-143},{-140,-105,-145,-133,-132,-160},{-166,-99,-148,-141,-149,-190},{-135,-158,-116,-115,-116,-123}},{{-131,-150,-172,-138,-195,-243},{-124,-186,-172,-230,-165,-161},{-190,-225,-172,-225,-255,-190},{-134,-136,-231,-209,-227,-247},{-156,-159,-218,-179,-175,-198},{-124,-150,-130,-146,-203,-268},{-162,-196,-239,-150,-169,-152},{-141,-218,-224,-138,-203,-171},{-175,-188,-213,-238,-139,-216},{-144,-170,-215,-200,-149,-222}},{{-168,-201,-260,-284,-213,-277},{-260,-283,-226,-206,-182,-231},{-266,-215,-208,-254,-273,-270},{-160,-274,-262,-284,-289,-203},{-158,-193,-188,-236,-298,-289},{-264,-256,-213,-289,-282,-236},{-173,-276,-235,-293,-231,-164},{-175,-250,-168,-245,-275,-180},{-243,-215,-177,-266,-171,-286},{-236,-223,-186,-247,-185,-236}}},{{{-295,-279,-200,-186,-245,-226},{-287,-330,-303,-231,-221,-266},{-282,-194,-245,-192,-287,-303},{-210,-229,-340,-258,-234,-325},{-303,-340,-303,-271,-221,-245},{-261,-311,-197,-197,-295,-255},{-226,-239,-306,-327,-213,-213},{-229,-253,-327,-231,-229,-242},{-205,-338,-340,-239,-317,-314},{-332,-327,-309,-250,-317,-295}},{{-282,-250,-319,-258,-183,-313},{-301,-314,-285,-309,-278,-267},{-340,-205,-314,-210,-272,-192},{-285,-311,-332,-245,-199,-223},{-215,-229,-261,-335,-233,-332},{-282,-301,-200,-213,-307,-262},{-290,-210,-340,-309,-304,-311},{-200,-287,-338,-332,-267,-308},{-255,-330,-298,-194,-215,-326},{-200,-269,-343,-303,-262,-205}},{{-332,-271,-328,-293,-252,-214},{-223,-319,-270,-218,-198,-231},{-316,-228,-181,-193,-250,-246},{-319,-200,-295,-268,-247,-313},{-298,-281,-181,-263,-257,-265},{-197,-225,-318,-308,-220,-287},{-267,-268,-194,-196,-277,-178},{-290,-202,-252,-226,-314,-294},{-199,-233,-247,-253,-189,-306},{-326,-283,-292,-280,-216,-263}},{{-278,-273,-192,-297,-231,-258},{-255,-296,-284,-251,-195,-222},{-193,-169,-266,-225,-240,-161},{-295,-251,-162,-274,-166,-226},{-271,-195,-166,-175,-172,-222},{-307,-226,-247,-232,-159,-273},{-236,-263,-277,-297,-244,-224},{-205,-183,-263,-161,-186,-273},{-309,-254,-213,-255,-231,-206},{-202,-186,-217,-175,-215,-267}},{{-231,-276,-206,-219,-213,-226},{-183,-154,-178,-256,-232,-167},{-229,-163,-193,-208,-213,-226},{-183,-282,-226,-161,-200,-187},{-240,-263,-278,-187,-195,-206},{-213,-273,-208,-210,-230,-278},{-286,-213,-241,-263,-219,-241},{-273,-282,-195,-184,-232,-187},{-218,-271,-282,-247,-161,-206},{-207,-271,-243,-189,-252,-215}},{{-224,-267,-258,-265,-250,-204},{-189,-169,-163,-273,-156,-213},{-208,-237,-271,-169,-239,-234},{-258,-228,-241,-280,-230,-271},{-165,-239,-265,-239,-267,-224},{-247,-245,-163,-191,-189,-271},{-265,-260,-256,-158,-263,-208},{-217,-234,-224,-158,-278,-165},{-156,-176,-210,-167,-252,-195},{-263,-276,-224,-241,-161,-215}},{{-201,-164,-195,-285,-284,-181},{-245,-282,-276,-168,-270,-179},{-225,-291,-211,-258,-222,-294},{-208,-193,-184,-166,-180,-282},{-272,-264,-215,-163,-169,-263},{-259,-233,-278,-239,-206,-251},{-188,-260,-193,-260,-247,-258},{-270,-282,-186,-191,-240,-296},{-225,-190,-271,-202,-238,-289},{-283,-278,-164,-283,-222,-287}},{{-281,-271,-186,-184,-242,-235},{-202,-211,-230,-203,-184,-225},{-264,-269,-191,-288,-295,-195},{-290,-172,-194,-181,-315,-248},{-186,-264,-235,-201,-297,-283},{-267,-184,-262,-250,-184,-210},{-171,-194,-262,-290,-295,-228},{-231,-215,-262,-233,-176,-223},{-300,-261,-301,-295,-199,-250},{-252,-315,-220,-273,-305,-228}},{{-259,-287,-304,-314,-255,-200},{-223,-326,-309,-186,-189,-298},{-251,-300,-204,-271,-239,-314},{-249,-256,-286,-293,-274,-255},{-267,-256,-299,-282,-317,-290},{-321,-290,-307,-258,-269,-226},{-311,-220,-244,-277,-335,-279},{-254,-189,-252,-186,-194,-282},{-184,-243,-333,-269,-338,-245},{-254,-277,-312,-340,-200,-231}}},{{{-331,-313,-217,-274,-229,-337},{-220,-235,-238,-295,-283,-278},{-265,-235,-280,-361,-226,-222},{-292,-319,-283,-337,-352,-228},{-337,-286,-235,-244,-259,-317},{-340,-256,-220,-379,-340,-296},{-391,-340,-349,-352,-289,-228},{-364,-286,-217,-334,-355,-260},{-361,-289,-325,-292,-265,-222},{-325,-334,-289,-235,-304,-255}},{{-363,-301,-255,-347,-323,-326},{-325,-321,-263,-210,-310,-262},{-305,-238,-297,-213,-207,-319},{-375,-321,-339,-221,-294,-195},{-316,-370,-344,-240,-262,-239},{-290,-224,-322,-289,-220,-226},{-343,-244,-280,-202,-270,-260},{-325,-342,-314,-314,-323,-231},{-357,-278,-224,-265,-231,-265},{-299,-350,-358,-229,-241,-193}},{{-303,-221,-279,-197,-189,-168},{-310,-302,-282,-278,-223,-145},{-310,-228,-199,-267,-151,-198},{-320,-182,-208,-232,-197,-236},{-186,-190,-247,-221,-263,-190},{-275,-228,-273,-276,-261,-162},{-278,-250,-215,-190,-267,-190},{-233,-302,-259,-155,-246,-242},{-285,-178,-169,-168,-216,-176},{-196,-283,-208,-170,-246,-226}},{{-231,-192,-192,-217,-169,-145},{-169,-164,-212,-124,-174,-193},{-140,-147,-189,-191,-146,-167},{-250,-192,-210,-177,-179,-198},{-231,-205,-199,-124,-161,-171},{-227,-184,-208,-224,-174,-137},{-244,-164,-219,-160,-151,-171},{-237,-216,-198,-144,-168,-153},{-165,-158,-199,-213,-124,-155},{-190,-236,-135,-126,-143,-193}},{{-139,-197,-183,-152,-191,-129},{-117,-128,-160,-125,-131,-108},{-147,-183,-177,-200,-179,-148},{-170,-162,-154,-151,-143,-186},{-168,-162,-149,-152,-148,-171},{-147,-109,-199,-166,-112,-186},{-122,-139,-160,-132,-199,-151},{-154,-157,-136,-117,-125,-200},{-195,-131,-136,-134,-117,-143},{-170,-132,-143,-152,-162,-142}},{{-191,-197,-201,-213,-194,-221},{-162,-142,-147,-158,-156,-206},{-136,-127,-194,-144,-136,-181},{-166,-199,-201,-202,-159,-223},{-151,-119,-128,-150,-147,-195},{-157,-129,-144,-175,-210,-186},{-169,-124,-157,-213,-130,-212},{-159,-200,-194,-126,-205,-167},{-196,-142,-209,-200,-217,-185},{-126,-196,-143,-148,-178,-206}},{{-154,-182,-249,-241,-288,-222},{-213,-145,-200,-249,-286,-295},{-150,-214,-196,-260,-160,-278},{-148,-257,-150,-254,-281,-215},{-201,-154,-144,-256,-284,-288},{-133,-196,-181,-170,-198,-253},{-190,-170,-249,-243,-261,-234},{-184,-156,-212,-174,-245,-250},{-177,-214,-169,-247,-243,-173},{-243,-212,-255,-256,-158,-255}},{{-245,-290,-311,-280,-282,-368},{-272,-181,-185,-242,-248,-325},{-202,-325,-308,-261,-273,-280},{-292,-199,-183,-264,-290,-252},{-260,-310,-196,-334,-193,-235},{-236,-224,-295,-296,-293,-283},{-226,-214,-206,-226,-259,-294},{-311,-232,-198,-229,-232,-241},{-173,-272,-185,-328,-268,-266},{-313,-214,-324,-280,-334,-266}},{{-338,-241,-272,-358,-241,-379},{-298,-329,-371,-229,-217,-358},{-202,-309,-257,-367,-265,-376},{-208,-235,-347,-271,-211,-244},{-332,-368,-296,-229,-214,-229},{-335,-241,-380,-367,-358,-259},{-306,-288,-251,-376,-229,-256},{-246,-232,-311,-337,-250,-355},{-231,-303,-365,-262,-265,-364},{-260,-368,-371,-385,-379,-283}}},{{{-444,-350,-392,-340,-256,-273},{-301,-438,-430,-276,-266,-420},{-448,-318,-420,-256,-374,-430},{-340,-395,-420,-402,-382,-332},{-315,-385,-315,-382,-312,-252},{-455,-262,-280,-248,-322,-262},{-371,-434,-276,-448,-301,-392},{-276,-385,-340,-262,-395,-340},{-259,-420,-340,-444,-340,-252},{-434,-270,-374,-364,-270,-304}},{{-247,-381,-271,-250,-367,-270},{-299,-281,-410,-331,-420,-270},{-369,-357,-437,-237,-374,-328},{-393,-264,-298,-281,-400,-396},{-418,-274,-261,-267,-230,-280},{-351,-364,-268,-364,-272,-235},{-331,-305,-424,-421,-295,-402},{-393,-388,-390,-424,-272,-277},{-345,-254,-420,-391,-387,-406},{-407,-432,-427,-391,-269,-261}},{{-387,-237,-342,-205,-294,-278},{-287,-231,-327,-267,-228,-208},{-258,-225,-342,-231,-314,-353},{-324,-277,-252,-299,-308,-328},{-306,-370,-387,-299,-222,-220},{-375,-290,-231,-328,-348,-231},{-243,-253,-300,-360,-200,-225},{-302,-311,-243,-325,-279,-359},{-274,-286,-330,-375,-316,-359},{-268,-302,-276,-363,-311,-320}},{{-273,-313,-270,-233,-243,-258},{-243,-281,-244,-238,-255,-234},{-294,-297,-229,-183,-179,-296},{-273,-284,-326,-221,-267,-194},{-200,-339,-303,-228,-282,-206},{-208,-258,-285,-243,-287,-191},{-259,-292,-329,-301,-318,-170},{-332,-318,-226,-181,-270,-227},{-275,-274,-206,-206,-277,-289},{-246,-226,-190,-321,-240,-265}},{{-218,-173,-291,-162,-275,-203},{-275,-213,-280,-289,-286,-247},{-185,-300,-254,-256,-252,-189},{-294,-286,-277,-243,-291,-166},{-168,-291,-180,-224,-236,-215},{-192,-247,-203,-296,-166,-219},{-197,-210,-210,-176,-238,-293},{-211,-201,-169,-254,-178,-189},{-213,-245,-245,-162,-213,-240},{-296,-213,-289,-229,-226,-270}},{{-208,-275,-196,-286,-201,-224},{-196,-180,-226,-176,-196,-187},{-199,-185,-203,-264,-261,-253},{-180,-187,-289,-259,-247,-298},{-280,-233,-189,-240,-290,-261},{-282,-231,-228,-245,-215,-317},{-289,-277,-228,-202,-227,-320},{-180,-206,-261,-236,-203,-288},{-224,-298,-296,-281,-206,-256},{-180,-261,-184,-228,-235,-268}},{{-320,-334,-340,-322,-273,-340},{-232,-321,-197,-191,-270,-311},{-222,-282,-325,-284,-312,-253},{-287,-256,-295,-347,-354,-253},{-219,-218,-338,-268,-208,-294},{-267,-246,-338,-278,-357,-285},{-312,-181,-250,-336,-253,-369},{-214,-246,-263,-298,-200,-242},{-237,-231,-319,-224,-202,-285},{-280,-215,-218,-207,-205,-271}},{{-275,-394,-279,-273,-415,-271},{-364,-358,-403,-304,-366,-416},{-258,-318,-378,-380,-230,-314},{-305,-351,-372,-304,-308,-389},{-367,-279,-388,-301,-282,-343},{-293,-330,-245,-390,-415,-416},{-216,-236,-360,-377,-356,-254},{-243,-224,-329,-311,-308,-373},{-302,-376,-363,-371,-343,-366},{-255,-273,-326,-285,-392,-310}},{{-259,-314,-299,-389,-252,-389},{-376,-263,-389,-322,-273,-245},{-356,-314,-413,-364,-389,-441},{-299,-327,-427,-420,-304,-245},{-262,-392,-341,-336,-364,-301},{-329,-283,-427,-374,-273,-452},{-427,-419,-344,-284,-452,-416},{-343,-297,-279,-452,-424,-430},{-400,-259,-330,-294,-385,-280},{-239,-286,-385,-357,-378,-395}}}}; // 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,12,8,24,12,9,24,12,9,25,13,9,25,13,9,26,13,9,25,13,9,26,13,9,26,13,9,25,13,9,26,13,9,26,13,9,26,14,9,27,14,9,26,13,9,26,13,9,27,13,9,26,13,9,25,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}}; // 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,2,6,10,14,18,22,26,30,34,38,42,46,1,7,13,19,25,31,37,43,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,1,5,9,13,17,21,25,29,33,37,41,45,0,6,12,18,24,30,36,42,48,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,1,5,9,13,17,21,25,29,33,37,41,45,0,6,12,18,24,30,36,42,48,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,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,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,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,0,4,8,12,16,20,24,28,32,36,40,44,48,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,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,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,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,0,4,8,12,16,20,24,28,32,36,40,44,48,52,1,7,13,19,25,31,37,43,49,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,0,4,8,12,16,20,24,28,32,36,40,44,48,52,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,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,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,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,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,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,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,0,4,8,12,16,20,24,28,32,36,40,44,48,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,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,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,1,7,13,19,25,31,37,43,49}; // 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,7,11,15,19,23,27,31,35,39,43,47,51,6,12,18,24,30,36,42,48,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,6,10,14,18,22,26,30,34,38,42,46,50,5,11,17,23,29,35,41,47,53,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,6,10,14,18,22,26,30,34,38,42,46,50,5,11,17,23,29,35,41,47,53,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,5,9,13,17,21,25,29,33,37,41,45,49,53,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,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,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,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,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,4,8,12,16,20,24,28,32,36,40,44,48,52,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,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,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,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,1,5,9,13,17,21,25,29,33,37,41,45,49,53,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,1,7,13,19,25,31,37,43,49,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,2,6,10,14,18,22,26,30,34,38,42,46,50,3,9,15,21,27,33,39,45,51,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,2,6,10,14,18,22,26,30,34,38,42,46,50,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,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,2,6,10,14,18,22,26,30,34,38,42,46,50,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,2,6,10,14,18,22,26,30,34,38,42,46,50,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,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,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,4,10,16,22,28,34,40,46,52}; // set of end times of each shipment 
