int Dev = 40;// Deviation
extern const int CNN = 3;// Case Index
extern const int P = 9;// Number of phases
extern const int PT = 6;// Number of periods in a phase
extern const int T = 54;// Number of periods
extern const int I1 =1;// Number of suppliers
extern const int I2 = 8;// Number of customers
extern const int I = 9;// Number of sites
extern const int BN = 72;//Number of bids
extern const int LBN = 9;//Number of bids on each arc
extern const int SPN = 1144;//Number of shipments
extern const int SN = 10;//Number of scenarios at each stage
extern const int MBSN = 27;//Number of shipments in a bid
// tree parameters:
double PRO[P][SN]={{0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1},{0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1},{0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1},{0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1},{0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1},{0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1},{0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1},{0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1},{0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1}}; // the probability of each scenario at each phase 
// timing parameters: 
int PTN[P]={6,6,6,6,6,6,6,6,6}; // number of periods in each phase 
int PTset[P][PT]={{0,1,2,3,4,5},{6,7,8,9,10,11},{12,13,14,15,16,17},{18,19,20,21,22,23},{24,25,26,27,28,29},{30,31,32,33,34,35},{36,37,38,39,40,41},{42,43,44,45,46,47},{48,49,50,51,52,53}}; // set of periods in each phase 
// distribution parameters: 
int sup[I][P][SN][PT]={{{{12688,0,0,0,0,0},{12210,0,0,0,0,0},{12331,0,0,0,0,0},{13203,0,0,0,0,0},{12485,0,0,0,0,0},{11818,0,0,0,0,0},{12472,0,0,0,0,0},{12952,0,0,0,0,0},{11720,0,0,0,0,0},{12376,0,0,0,0,0}},{{12815,0,0,0,0,0},{11567,0,0,0,0,0},{12118,0,0,0,0,0},{12281,0,0,0,0,0},{11708,0,0,0,0,0},{12191,0,0,0,0,0},{12958,0,0,0,0,0},{12410,0,0,0,0,0},{12498,0,0,0,0,0},{11991,0,0,0,0,0}},{{12326,0,0,0,0,0},{11445,0,0,0,0,0},{11459,0,0,0,0,0},{11456,0,0,0,0,0},{11388,0,0,0,0,0},{11419,0,0,0,0,0},{11514,0,0,0,0,0},{12020,0,0,0,0,0},{11776,0,0,0,0,0},{10748,0,0,0,0,0}},{{10059,0,0,0,0,0},{10656,0,0,0,0,0},{10831,0,0,0,0,0},{10279,0,0,0,0,0},{10423,0,0,0,0,0},{10050,0,0,0,0,0},{10830,0,0,0,0,0},{10641,0,0,0,0,0},{10147,0,0,0,0,0},{10030,0,0,0,0,0}},{{9678,0,0,0,0,0},{9288,0,0,0,0,0},{9178,0,0,0,0,0},{9128,0,0,0,0,0},{10267,0,0,0,0,0},{9887,0,0,0,0,0},{8979,0,0,0,0,0},{9251,0,0,0,0,0},{9753,0,0,0,0,0},{10310,0,0,0,0,0}},{{9512,0,0,0,0,0},{8470,0,0,0,0,0},{9219,0,0,0,0,0},{9146,0,0,0,0,0},{8966,0,0,0,0,0},{9226,0,0,0,0,0},{9627,0,0,0,0,0},{9627,0,0,0,0,0},{9656,0,0,0,0,0},{9032,0,0,0,0,0}},{{9817,0,0,0,0,0},{10015,0,0,0,0,0},{9798,0,0,0,0,0},{10017,0,0,0,0,0},{10221,0,0,0,0,0},{9647,0,0,0,0,0},{10183,0,0,0,0,0},{10188,0,0,0,0,0},{9529,0,0,0,0,0},{9852,0,0,0,0,0}},{{11099,0,0,0,0,0},{11889,0,0,0,0,0},{11991,0,0,0,0,0},{11167,0,0,0,0,0},{10967,0,0,0,0,0},{11450,0,0,0,0,0},{10534,0,0,0,0,0},{10552,0,0,0,0,0},{10870,0,0,0,0,0},{10625,0,0,0,0,0}},{{12514,0,0,0,0,0},{12767,0,0,0,0,0},{12014,0,0,0,0,0},{12501,0,0,0,0,0},{12746,0,0,0,0,0},{12417,0,0,0,0,0},{12308,0,0,0,0,0},{12087,0,0,0,0,0},{11542,0,0,0,0,0},{12865,0,0,0,0,0}}},{{{-388,-373,-394,-315,-344,-188},{-388,-370,-335,-268,-376,-250},{-276,-376,-373,-312,-285,-338},{-318,-209,-259,-320,-244,-229},{-241,-285,-279,-235,-376,-318},{-265,-329,-229,-218,-259,-206},{-270,-232,-256,-291,-268,-247},{-394,-344,-294,-306,-220,-320},{-303,-259,-288,-365,-276,-350},{-197,-400,-265,-188,-403,-238}},{{-362,-286,-269,-293,-184,-215},{-232,-335,-266,-285,-278,-332},{-299,-243,-308,-307,-200,-171},{-357,-186,-319,-222,-302,-212},{-246,-349,-269,-186,-328,-280},{-174,-289,-330,-312,-192,-311},{-336,-312,-319,-381,-352,-262},{-380,-266,-300,-332,-347,-319},{-365,-200,-235,-255,-334,-176},{-206,-240,-193,-384,-288,-355}},{{-318,-218,-214,-260,-238,-239},{-282,-288,-256,-202,-257,-260},{-310,-327,-238,-177,-158,-187},{-202,-232,-219,-246,-227,-282},{-150,-179,-221,-155,-259,-243},{-245,-235,-151,-235,-152,-239},{-202,-324,-158,-188,-182,-264},{-172,-322,-189,-148,-227,-132},{-220,-273,-147,-246,-268,-134},{-260,-174,-261,-208,-218,-157}},{{-124,-249,-234,-224,-160,-110},{-250,-193,-247,-148,-172,-187},{-183,-112,-227,-131,-183,-210},{-134,-112,-109,-229,-229,-110},{-136,-245,-120,-148,-132,-184},{-238,-120,-129,-177,-223,-178},{-162,-252,-166,-191,-219,-173},{-213,-260,-242,-127,-224,-158},{-240,-196,-226,-213,-142,-213},{-242,-185,-249,-153,-145,-101}},{{-194,-179,-140,-131,-171,-182},{-186,-192,-159,-171,-96,-100},{-163,-104,-106,-163,-163,-182},{-151,-104,-103,-88,-203,-157},{-136,-94,-126,-90,-193,-181},{-131,-167,-116,-176,-178,-148},{-172,-145,-198,-134,-107,-118},{-97,-152,-97,-131,-160,-156},{-146,-103,-98,-193,-143,-188},{-139,-204,-129,-94,-128,-156}},{{-160,-146,-168,-97,-175,-165},{-160,-91,-198,-102,-134,-180},{-128,-148,-118,-214,-209,-154},{-131,-201,-136,-97,-119,-110},{-109,-128,-139,-211,-175,-145},{-147,-172,-127,-114,-106,-155},{-113,-154,-202,-146,-118,-234},{-156,-93,-159,-143,-118,-165},{-119,-146,-130,-120,-167,-155},{-122,-156,-91,-99,-108,-189}},{{-155,-210,-160,-215,-195,-254},{-158,-192,-116,-249,-176,-208},{-130,-248,-243,-151,-151,-278},{-132,-197,-215,-257,-246,-237},{-226,-152,-175,-131,-182,-154},{-150,-145,-158,-129,-217,-193},{-167,-148,-266,-223,-213,-154},{-111,-186,-137,-259,-221,-184},{-209,-228,-198,-197,-126,-208},{-146,-157,-194,-167,-143,-302}},{{-218,-223,-217,-162,-240,-234},{-234,-143,-190,-347,-350,-328},{-304,-160,-339,-336,-271,-369},{-279,-183,-190,-324,-253,-226},{-211,-197,-256,-240,-222,-186},{-316,-148,-329,-334,-298,-261},{-306,-183,-200,-175,-206,-266},{-275,-296,-190,-321,-313,-172},{-204,-157,-178,-276,-209,-336},{-170,-230,-163,-210,-321,-175}},{{-282,-244,-258,-310,-235,-300},{-328,-351,-250,-251,-356,-353},{-171,-281,-382,-385,-270,-223},{-226,-177,-350,-292,-218,-397},{-301,-371,-293,-321,-397,-191},{-243,-362,-212,-333,-297,-397},{-351,-171,-376,-277,-297,-350},{-268,-318,-336,-272,-212,-262},{-257,-320,-192,-333,-244,-268},{-166,-194,-270,-219,-259,-306}}},{{{-220,-139,-208,-243,-191,-117},{-119,-177,-226,-233,-164,-252},{-166,-164,-240,-109,-134,-220},{-119,-204,-217,-172,-160,-223},{-153,-189,-238,-107,-166,-212},{-166,-177,-130,-136,-201,-143},{-161,-228,-214,-229,-243,-174},{-190,-198,-180,-141,-114,-248},{-227,-134,-112,-245,-236,-220},{-228,-208,-224,-165,-138,-151}},{{-220,-182,-247,-181,-291,-276},{-158,-129,-185,-175,-183,-157},{-150,-131,-155,-270,-307,-331},{-127,-131,-183,-307,-144,-250},{-194,-275,-290,-305,-291,-319},{-168,-191,-241,-155,-307,-209},{-123,-285,-151,-236,-247,-231},{-133,-174,-228,-250,-234,-245},{-123,-266,-190,-208,-188,-264},{-214,-135,-251,-219,-185,-195}},{{-225,-278,-231,-359,-346,-340},{-252,-222,-186,-173,-330,-241},{-309,-222,-259,-289,-283,-266},{-168,-301,-212,-278,-186,-209},{-188,-250,-236,-313,-183,-235},{-291,-242,-160,-178,-211,-204},{-311,-357,-359,-346,-258,-379},{-316,-156,-356,-176,-374,-229},{-207,-209,-191,-327,-175,-354},{-227,-161,-280,-184,-194,-303}},{{-306,-279,-191,-340,-277,-217},{-217,-382,-283,-391,-241,-307},{-399,-347,-191,-412,-340,-310},{-387,-376,-226,-382,-211,-316},{-387,-412,-179,-283,-226,-373},{-329,-394,-417,-202,-256,-388},{-240,-332,-352,-397,-292,-376},{-402,-185,-215,-262,-421,-244},{-298,-253,-355,-409,-235,-403},{-396,-232,-241,-286,-301,-358}},{{-406,-355,-196,-273,-344,-331},{-184,-205,-367,-333,-235,-267},{-400,-235,-226,-360,-365,-255},{-199,-238,-217,-369,-253,-336},{-289,-316,-388,-345,-197,-406},{-268,-214,-364,-273,-197,-261},{-310,-325,-211,-258,-182,-209},{-256,-385,-196,-309,-206,-252},{-382,-358,-235,-363,-265,-281},{-421,-352,-418,-294,-288,-261}},{{-311,-360,-314,-211,-358,-250},{-245,-388,-182,-180,-207,-203},{-319,-206,-201,-216,-333,-332},{-322,-193,-344,-359,-338,-191},{-171,-363,-301,-354,-338,-312},{-336,-195,-279,-211,-325,-243},{-382,-349,-379,-346,-317,-223},{-205,-276,-271,-362,-358,-193},{-219,-363,-369,-277,-358,-211},{-256,-318,-282,-296,-238,-186}},{{-274,-197,-274,-219,-203,-265},{-334,-311,-207,-174,-273,-165},{-300,-290,-176,-292,-265,-235},{-295,-186,-145,-163,-267,-259},{-314,-292,-161,-247,-184,-149},{-187,-239,-254,-277,-238,-217},{-214,-176,-248,-271,-155,-191},{-240,-241,-227,-230,-282,-145},{-199,-309,-154,-187,-155,-133},{-154,-223,-156,-224,-226,-265}},{{-200,-140,-183,-184,-188,-208},{-186,-115,-241,-236,-176,-123},{-179,-216,-116,-138,-221,-119},{-250,-160,-199,-234,-229,-138},{-192,-203,-192,-234,-106,-109},{-136,-134,-185,-145,-144,-155},{-230,-177,-248,-144,-178,-146},{-142,-205,-170,-193,-198,-218},{-207,-113,-172,-114,-103,-158},{-240,-247,-170,-136,-176,-232}},{{-123,-185,-180,-186,-166,-131},{-161,-133,-146,-205,-220,-156},{-146,-227,-193,-141,-148,-144},{-141,-208,-158,-124,-175,-225},{-223,-234,-123,-114,-129,-218},{-193,-113,-223,-202,-104,-119},{-183,-119,-180,-208,-210,-203},{-217,-207,-186,-141,-133,-202},{-106,-223,-131,-210,-186,-129},{-205,-160,-126,-144,-207,-190}}},{{{-368,-454,-326,-326,-339,-421},{-217,-349,-270,-322,-220,-217},{-424,-332,-342,-332,-266,-392},{-447,-392,-214,-342,-283,-444},{-260,-273,-260,-240,-276,-447},{-424,-214,-398,-253,-309,-332},{-250,-237,-447,-395,-250,-411},{-332,-438,-431,-306,-438,-457},{-197,-197,-392,-408,-230,-197},{-326,-273,-197,-257,-454,-326}},{{-423,-283,-427,-188,-293,-337},{-341,-238,-345,-223,-320,-223},{-361,-216,-415,-214,-388,-226},{-403,-451,-367,-327,-268,-232},{-259,-232,-252,-210,-317,-325},{-377,-290,-405,-371,-419,-379},{-282,-386,-447,-345,-342,-409},{-338,-377,-236,-273,-326,-214},{-246,-316,-198,-392,-363,-358},{-197,-393,-220,-301,-243,-268}},{{-209,-219,-328,-310,-284,-350},{-248,-184,-367,-223,-172,-326},{-301,-202,-168,-340,-246,-314},{-260,-199,-218,-171,-225,-283},{-280,-308,-300,-188,-286,-167},{-195,-369,-300,-370,-329,-306},{-381,-202,-171,-201,-238,-203},{-224,-297,-319,-307,-363,-270},{-307,-268,-356,-286,-302,-329},{-348,-251,-330,-182,-355,-167}},{{-158,-309,-313,-150,-258,-245},{-158,-313,-232,-293,-296,-261},{-150,-262,-218,-256,-137,-250},{-208,-194,-275,-171,-251,-215},{-278,-180,-308,-157,-262,-155},{-150,-168,-237,-192,-302,-263},{-350,-326,-246,-166,-251,-221},{-212,-231,-192,-266,-228,-298},{-232,-153,-322,-307,-195,-232},{-190,-192,-204,-286,-143,-149}},{{-252,-241,-267,-212,-158,-284},{-182,-216,-195,-241,-241,-277},{-184,-193,-218,-258,-172,-158},{-135,-197,-237,-254,-258,-248},{-232,-208,-275,-235,-292,-229},{-299,-218,-214,-290,-290,-208},{-145,-141,-216,-210,-216,-286},{-163,-210,-227,-277,-244,-176},{-215,-174,-162,-223,-235,-160},{-280,-281,-172,-178,-275,-160}},{{-197,-147,-148,-219,-218,-308},{-162,-160,-160,-226,-262,-155},{-277,-288,-135,-245,-249,-272},{-290,-162,-238,-206,-143,-232},{-132,-132,-209,-178,-249,-302},{-260,-202,-190,-132,-260,-315},{-202,-269,-213,-158,-165,-248},{-164,-279,-253,-195,-257,-153},{-244,-290,-150,-234,-242,-243},{-286,-292,-198,-165,-196,-176}},{{-217,-175,-342,-304,-353,-218},{-303,-294,-293,-246,-271,-340},{-282,-216,-176,-236,-217,-364},{-291,-284,-234,-248,-250,-234},{-273,-216,-251,-171,-361,-301},{-256,-239,-317,-201,-227,-160},{-298,-251,-256,-296,-289,-306},{-196,-180,-315,-324,-304,-306},{-192,-199,-293,-314,-170,-364},{-146,-320,-278,-259,-307,-226}},{{-279,-357,-298,-364,-223,-194},{-340,-388,-405,-323,-230,-413},{-348,-292,-225,-308,-417,-277},{-370,-393,-387,-263,-374,-305},{-186,-287,-344,-388,-384,-394},{-244,-233,-364,-385,-332,-407},{-345,-287,-301,-210,-335,-219},{-206,-202,-393,-207,-217,-314},{-249,-211,-381,-266,-320,-330},{-359,-177,-355,-284,-196,-330}},{{-280,-422,-345,-378,-444,-260},{-356,-387,-380,-296,-263,-332},{-205,-435,-274,-375,-392,-280},{-356,-192,-444,-461,-365,-329},{-324,-326,-370,-280,-214,-395},{-312,-378,-377,-362,-243,-299},{-381,-218,-374,-418,-234,-313},{-211,-205,-380,-385,-398,-299},{-309,-387,-348,-428,-392,-207},{-403,-346,-383,-434,-306,-424}}},{{{-140,-77,-82,-78,-96,-136},{-68,-135,-73,-163,-142,-170},{-99,-110,-82,-128,-146,-88},{-112,-138,-113,-81,-100,-152},{-100,-105,-110,-112,-165,-124},{-133,-109,-140,-102,-128,-116},{-131,-138,-115,-85,-109,-159},{-85,-111,-140,-143,-137,-145},{-123,-103,-119,-87,-78,-102},{-140,-95,-116,-143,-161,-132}},{{-124,-89,-161,-189,-224,-202},{-155,-106,-149,-108,-182,-123},{-104,-154,-160,-130,-200,-232},{-159,-185,-114,-108,-206,-185},{-163,-107,-188,-113,-130,-111},{-99,-157,-98,-113,-221,-106},{-177,-134,-154,-172,-153,-143},{-130,-106,-192,-122,-126,-143},{-113,-165,-170,-130,-201,-134},{-181,-140,-158,-129,-105,-165}},{{-198,-133,-246,-226,-235,-226},{-126,-243,-240,-232,-272,-168},{-154,-157,-193,-141,-274,-148},{-208,-155,-132,-173,-210,-232},{-172,-157,-193,-264,-233,-135},{-119,-196,-260,-243,-167,-135},{-186,-171,-117,-192,-274,-202},{-161,-218,-231,-141,-202,-162},{-122,-166,-212,-152,-133,-226},{-128,-137,-208,-142,-151,-150}},{{-223,-242,-164,-252,-154,-213},{-164,-233,-229,-266,-166,-227},{-213,-126,-144,-268,-284,-260},{-162,-207,-231,-122,-207,-233},{-260,-166,-124,-278,-124,-122},{-154,-233,-231,-195,-203,-213},{-207,-244,-179,-168,-187,-246},{-235,-246,-148,-205,-187,-250},{-219,-240,-132,-284,-162,-272},{-213,-209,-223,-262,-227,-142}},{{-122,-254,-183,-152,-144,-236},{-144,-213,-217,-146,-225,-180},{-193,-144,-152,-119,-149,-116},{-166,-130,-213,-230,-183,-131},{-244,-233,-187,-138,-249,-182},{-284,-284,-244,-224,-176,-131},{-124,-191,-260,-174,-153,-245},{-207,-229,-124,-168,-212,-162},{-209,-215,-191,-166,-259,-114},{-134,-246,-266,-135,-174,-158}},{{-136,-147,-187,-213,-161,-187},{-122,-114,-120,-174,-207,-123},{-150,-237,-205,-98,-95,-103},{-172,-201,-180,-200,-115,-98},{-202,-112,-134,-176,-177,-196},{-183,-142,-100,-99,-141,-115},{-125,-170,-170,-152,-104,-204},{-247,-223,-182,-216,-177,-116},{-220,-163,-104,-203,-184,-129},{-152,-180,-220,-122,-147,-123}},{{-189,-129,-155,-143,-95,-147},{-182,-137,-95,-82,-84,-94},{-90,-112,-102,-140,-107,-112},{-126,-85,-136,-103,-79,-68},{-115,-112,-93,-80,-90,-130},{-161,-126,-118,-163,-82,-130},{-150,-93,-165,-156,-82,-120},{-167,-121,-174,-86,-94,-90},{-167,-120,-144,-82,-160,-121},{-141,-178,-94,-136,-114,-113}},{{-90,-69,-134,-78,-112,-64},{-114,-123,-81,-122,-134,-102},{-99,-116,-77,-122,-62,-134},{-140,-118,-63,-129,-71,-114},{-69,-103,-61,-89,-136,-137},{-135,-142,-104,-96,-115,-130},{-99,-67,-102,-72,-81,-120},{-124,-62,-97,-137,-123,-71},{-145,-69,-132,-105,-89,-92},{-72,-79,-99,-76,-127,-126}},{{-93,-116,-133,-84,-67,-71},{-117,-100,-98,-132,-134,-111},{-77,-130,-136,-132,-111,-84},{-86,-87,-62,-130,-93,-106},{-117,-88,-69,-86,-130,-102},{-75,-129,-101,-104,-81,-97},{-77,-59,-82,-121,-117,-90},{-115,-137,-91,-84,-77,-127},{-106,-81,-87,-74,-75,-71},{-95,-128,-129,-74,-137,-87}}},{{{-210,-252,-274,-209,-236,-264},{-235,-228,-150,-186,-295,-167},{-170,-236,-248,-236,-259,-159},{-301,-207,-302,-259,-271,-321},{-217,-148,-181,-314,-178,-269},{-231,-152,-286,-240,-231,-259},{-289,-321,-243,-276,-255,-300},{-205,-302,-276,-286,-176,-207},{-147,-202,-326,-157,-236,-209},{-177,-159,-269,-219,-295,-190}},{{-231,-212,-301,-219,-151,-283},{-202,-183,-313,-143,-199,-150},{-193,-305,-186,-215,-212,-139},{-152,-298,-209,-266,-167,-292},{-143,-183,-179,-236,-183,-263},{-269,-217,-146,-210,-167,-168},{-157,-290,-167,-263,-244,-303},{-176,-324,-212,-277,-233,-292},{-248,-240,-183,-303,-301,-267},{-155,-288,-280,-169,-228,-141}},{{-245,-286,-145,-271,-219,-117},{-200,-253,-131,-152,-122,-238},{-299,-284,-176,-218,-247,-216},{-280,-169,-242,-199,-153,-131},{-140,-245,-210,-131,-236,-252},{-295,-288,-267,-140,-148,-216},{-166,-234,-160,-138,-127,-108},{-286,-276,-283,-267,-172,-200},{-202,-238,-257,-164,-221,-149},{-183,-207,-204,-199,-135,-214}},{{-200,-150,-126,-142,-171,-141},{-205,-115,-201,-183,-124,-116},{-201,-228,-111,-138,-180,-178},{-181,-170,-160,-122,-193,-181},{-150,-109,-130,-126,-181,-144},{-186,-183,-135,-135,-189,-134},{-229,-163,-129,-165,-190,-105},{-187,-140,-160,-150,-101,-164},{-189,-213,-171,-111,-92,-132},{-189,-148,-173,-169,-105,-135}},{{-100,-142,-124,-159,-157,-96},{-86,-92,-151,-108,-156,-167},{-110,-88,-122,-167,-71,-115},{-166,-130,-172,-139,-148,-94},{-168,-98,-77,-154,-140,-83},{-86,-113,-170,-138,-81,-123},{-82,-115,-105,-144,-82,-129},{-108,-88,-133,-157,-126,-158},{-174,-129,-165,-119,-113,-95},{-162,-158,-138,-106,-165,-111}},{{-121,-98,-142,-112,-142,-126},{-113,-102,-133,-89,-132,-92},{-117,-94,-164,-131,-166,-78},{-140,-87,-118,-95,-131,-118},{-90,-123,-162,-144,-107,-169},{-114,-130,-157,-111,-132,-127},{-93,-111,-81,-92,-116,-135},{-150,-105,-113,-88,-170,-170},{-142,-96,-132,-132,-133,-94},{-100,-163,-106,-76,-107,-101}},{{-138,-128,-169,-145,-152,-207},{-161,-133,-188,-90,-127,-222},{-89,-141,-169,-188,-108,-144},{-155,-156,-121,-182,-141,-122},{-110,-170,-104,-176,-211,-136},{-105,-163,-137,-145,-144,-157},{-134,-190,-114,-161,-197,-120},{-100,-113,-182,-181,-206,-227},{-166,-184,-127,-148,-189,-138},{-84,-189,-155,-182,-164,-117}},{{-187,-120,-133,-123,-271,-231},{-139,-228,-244,-188,-231,-142},{-151,-198,-205,-250,-119,-239},{-141,-119,-126,-240,-135,-161},{-182,-195,-157,-138,-273,-276},{-129,-246,-146,-177,-221,-220},{-117,-152,-237,-182,-221,-175},{-165,-131,-202,-250,-121,-134},{-133,-161,-207,-198,-235,-177},{-153,-108,-185,-234,-221,-202}},{{-217,-188,-204,-252,-178,-316},{-215,-285,-278,-303,-247,-266},{-192,-191,-307,-159,-298,-270},{-200,-186,-309,-305,-298,-150},{-239,-169,-195,-243,-201,-282},{-264,-195,-311,-152,-219,-300},{-219,-261,-159,-266,-173,-176},{-258,-145,-143,-180,-307,-213},{-253,-158,-170,-201,-164,-310},{-243,-147,-262,-282,-139,-284}}},{{{-314,-242,-178,-234,-239,-306},{-213,-317,-279,-202,-189,-325},{-168,-335,-290,-237,-200,-335},{-234,-364,-343,-319,-261,-271},{-317,-263,-255,-309,-362,-181},{-330,-301,-181,-314,-189,-168},{-364,-176,-229,-277,-285,-215},{-231,-356,-346,-192,-362,-218},{-263,-314,-287,-255,-340,-194},{-287,-314,-364,-207,-301,-327}},{{-181,-330,-327,-269,-356,-287},{-205,-287,-274,-279,-291,-168},{-189,-184,-330,-303,-178,-329},{-266,-210,-282,-311,-162,-249},{-271,-200,-178,-351,-283,-189},{-290,-176,-189,-255,-204,-179},{-242,-215,-221,-279,-296,-251},{-306,-290,-359,-359,-330,-223},{-160,-370,-269,-160,-280,-267},{-330,-359,-192,-335,-309,-355}},{{-197,-205,-307,-298,-272,-304},{-332,-154,-343,-278,-164,-318},{-300,-245,-318,-345,-245,-176},{-352,-157,-282,-312,-247,-335},{-313,-253,-305,-218,-272,-282},{-363,-281,-189,-253,-328,-195},{-326,-311,-161,-308,-196,-202},{-280,-283,-297,-191,-336,-301},{-262,-306,-348,-226,-252,-190},{-298,-205,-270,-335,-162,-214}},{{-162,-237,-280,-189,-134,-190},{-202,-249,-298,-138,-161,-190},{-255,-256,-157,-283,-235,-226},{-148,-275,-273,-322,-233,-242},{-300,-298,-240,-205,-150,-220},{-288,-268,-150,-253,-161,-197},{-178,-204,-298,-145,-255,-143},{-331,-204,-139,-297,-260,-307},{-317,-183,-159,-168,-134,-170},{-174,-275,-187,-175,-269,-244}},{{-194,-221,-254,-137,-195,-208},{-273,-297,-169,-184,-130,-145},{-147,-254,-304,-163,-289,-210},{-143,-221,-139,-202,-141,-191},{-233,-265,-204,-302,-226,-206},{-161,-256,-171,-226,-302,-250},{-150,-276,-304,-143,-243,-204},{-161,-243,-271,-204,-295,-182},{-282,-167,-278,-184,-297,-267},{-295,-297,-215,-176,-289,-219}},{{-210,-276,-232,-232,-189,-293},{-250,-167,-171,-234,-234,-250},{-169,-276,-232,-282,-156,-145},{-202,-226,-289,-152,-184,-167},{-241,-167,-169,-299,-135,-148},{-232,-265,-234,-230,-243,-219},{-304,-291,-130,-293,-143,-284},{-234,-217,-232,-232,-269,-286},{-241,-237,-189,-295,-180,-182},{-215,-267,-295,-202,-215,-197}},{{-155,-175,-155,-244,-213,-301},{-241,-280,-271,-235,-256,-237},{-228,-296,-195,-278,-284,-183},{-157,-197,-237,-218,-199,-270},{-309,-166,-307,-283,-312,-261},{-230,-246,-199,-244,-217,-150},{-270,-155,-181,-143,-319,-322},{-159,-213,-246,-248,-310,-204},{-179,-170,-296,-154,-139,-216},{-305,-280,-244,-161,-201,-228}},{{-226,-312,-233,-208,-320,-286},{-300,-302,-274,-263,-328,-291},{-198,-310,-267,-337,-260,-286},{-209,-283,-230,-223,-295,-185},{-262,-198,-164,-169,-217,-202},{-238,-196,-260,-347,-325,-220},{-264,-155,-157,-345,-224,-281},{-181,-223,-272,-198,-310,-329},{-333,-317,-208,-290,-350,-336},{-257,-300,-247,-198,-171,-162}},{{-285,-194,-333,-162,-253,-348},{-293,-316,-312,-362,-322,-176},{-259,-181,-244,-314,-277,-170},{-236,-282,-257,-221,-231,-229},{-293,-194,-309,-255,-181,-215},{-197,-194,-212,-245,-255,-367},{-350,-293,-322,-274,-226,-309},{-207,-321,-212,-218,-162,-364},{-161,-295,-212,-314,-298,-335},{-295,-181,-354,-295,-332,-332}}},{{{-367,-301,-403,-319,-310,-258},{-322,-397,-286,-253,-409,-272},{-415,-262,-223,-202,-259,-323},{-340,-304,-289,-415,-361,-400},{-313,-412,-286,-382,-376,-385},{-358,-244,-415,-235,-229,-207},{-259,-379,-262,-181,-187,-184},{-385,-271,-232,-181,-283,-278},{-292,-370,-277,-232,-253,-320},{-304,-199,-244,-259,-298,-287}},{{-255,-172,-353,-281,-191,-334},{-202,-181,-288,-289,-236,-272},{-272,-373,-339,-347,-284,-218},{-375,-330,-235,-199,-305,-170},{-299,-396,-241,-369,-172,-200},{-404,-255,-389,-191,-302,-270},{-217,-192,-328,-352,-366,-275},{-211,-187,-246,-298,-310,-262},{-346,-396,-294,-177,-366,-355},{-270,-379,-311,-333,-196,-213}},{{-345,-290,-247,-232,-295,-160},{-268,-329,-305,-194,-144,-232},{-149,-161,-147,-225,-208,-188},{-325,-336,-318,-155,-189,-156},{-181,-178,-151,-245,-282,-242},{-161,-206,-188,-135,-172,-252},{-179,-314,-302,-274,-269,-135},{-213,-298,-137,-144,-129,-190},{-285,-271,-321,-221,-263,-265},{-243,-166,-174,-208,-167,-147}},{{-248,-193,-134,-141,-151,-219},{-146,-260,-132,-115,-229,-98},{-178,-126,-244,-201,-224,-224},{-250,-199,-150,-151,-128,-153},{-227,-244,-231,-138,-174,-145},{-146,-125,-121,-139,-121,-121},{-130,-180,-167,-175,-126,-175},{-182,-147,-199,-132,-214,-118},{-126,-126,-109,-139,-100,-137},{-149,-125,-196,-191,-105,-145}},{{-164,-149,-182,-189,-137,-154},{-197,-211,-216,-159,-123,-145},{-193,-165,-192,-168,-117,-202},{-189,-179,-171,-168,-102,-108},{-190,-206,-214,-168,-129,-156},{-218,-117,-165,-211,-213,-188},{-137,-183,-97,-140,-106,-142},{-200,-117,-146,-188,-186,-125},{-100,-119,-134,-157,-152,-134},{-212,-186,-214,-112,-162,-142}},{{-97,-159,-118,-173,-124,-214},{-120,-161,-188,-131,-149,-163},{-100,-164,-122,-104,-128,-239},{-185,-154,-181,-146,-154,-250},{-123,-178,-162,-113,-163,-170},{-192,-208,-177,-124,-229,-186},{-103,-126,-193,-168,-219,-118},{-100,-148,-120,-234,-203,-176},{-154,-205,-167,-151,-184,-179},{-143,-183,-136,-114,-144,-226}},{{-165,-137,-192,-217,-290,-147},{-142,-141,-208,-249,-202,-204},{-190,-170,-245,-176,-180,-211},{-188,-214,-247,-280,-198,-307},{-200,-263,-194,-252,-281,-161},{-114,-257,-284,-249,-315,-239},{-163,-166,-231,-247,-281,-222},{-139,-234,-159,-290,-184,-180},{-163,-259,-187,-221,-266,-253},{-156,-194,-227,-217,-250,-178}},{{-313,-333,-209,-180,-284,-376},{-192,-285,-358,-164,-337,-277},{-224,-330,-219,-369,-232,-218},{-309,-275,-269,-215,-224,-345},{-236,-297,-235,-334,-301,-246},{-301,-292,-180,-218,-188,-181},{-265,-272,-331,-237,-295,-266},{-192,-202,-162,-199,-306,-345},{-207,-262,-331,-371,-190,-226},{-177,-166,-188,-334,-257,-306}},{{-399,-291,-362,-421,-385,-349},{-283,-332,-308,-181,-193,-238},{-332,-179,-257,-211,-307,-214},{-211,-244,-257,-313,-355,-283},{-327,-394,-377,-403,-343,-358},{-179,-376,-407,-376,-208,-403},{-318,-176,-182,-331,-409,-274},{-251,-220,-332,-283,-331,-373},{-185,-273,-260,-208,-382,-337},{-332,-388,-356,-373,-319,-406}}},{{{-343,-248,-266,-238,-270,-444},{-448,-434,-368,-210,-301,-220},{-270,-318,-455,-350,-357,-290},{-374,-455,-354,-332,-280,-354},{-354,-210,-284,-441,-385,-392},{-354,-315,-346,-241,-392,-483},{-346,-476,-360,-382,-420,-266},{-332,-262,-395,-343,-301,-420},{-259,-234,-402,-270,-343,-290},{-413,-360,-217,-410,-368,-483}},{{-362,-477,-414,-254,-413,-216},{-313,-422,-441,-354,-338,-309},{-268,-206,-414,-264,-344,-354},{-313,-326,-417,-344,-246,-412},{-331,-206,-203,-237,-456,-200},{-390,-357,-403,-384,-262,-200},{-317,-233,-231,-351,-364,-425},{-278,-319,-349,-267,-253,-258},{-292,-415,-322,-468,-233,-196},{-258,-326,-315,-331,-276,-277}},{{-195,-200,-213,-290,-379,-384},{-230,-299,-381,-217,-208,-203},{-271,-209,-342,-261,-294,-272},{-312,-259,-336,-404,-351,-228},{-284,-422,-288,-290,-342,-331},{-416,-385,-243,-199,-194,-373},{-195,-422,-309,-190,-322,-300},{-287,-388,-291,-396,-399,-284},{-413,-271,-258,-255,-353,-175},{-441,-256,-201,-220,-342,-381}},{{-378,-218,-216,-233,-201,-213},{-351,-300,-257,-163,-247,-320},{-184,-287,-249,-243,-333,-277},{-251,-231,-278,-203,-321,-167},{-259,-318,-314,-304,-245,-332},{-240,-318,-200,-171,-314,-163},{-302,-350,-332,-269,-331,-146},{-313,-271,-185,-201,-296,-292},{-186,-295,-226,-351,-206,-174},{-232,-316,-257,-248,-279,-215}},{{-277,-173,-182,-321,-146,-210},{-175,-254,-213,-277,-249,-139},{-159,-182,-305,-282,-222,-173},{-142,-249,-303,-321,-247,-263},{-268,-236,-300,-229,-298,-252},{-244,-259,-226,-323,-148,-143},{-280,-291,-238,-298,-217,-143},{-242,-222,-319,-254,-152,-178},{-251,-277,-238,-305,-316,-222},{-204,-247,-268,-316,-293,-280}},{{-185,-293,-228,-309,-257,-199},{-249,-263,-177,-267,-196,-184},{-196,-282,-235,-143,-271,-293},{-210,-284,-177,-202,-290,-226},{-143,-280,-245,-195,-145,-150},{-206,-305,-182,-162,-276,-236},{-263,-233,-142,-255,-298,-293},{-185,-224,-252,-295,-155,-308},{-139,-254,-235,-298,-302,-295},{-270,-275,-147,-145,-327,-280}},{{-171,-197,-295,-240,-185,-311},{-247,-246,-192,-303,-205,-251},{-214,-155,-340,-248,-171,-282},{-265,-334,-301,-317,-278,-196},{-229,-254,-332,-284,-329,-337},{-169,-332,-221,-314,-219,-213},{-312,-287,-346,-191,-301,-242},{-295,-311,-356,-308,-295,-228},{-174,-179,-210,-273,-289,-320},{-224,-350,-250,-232,-391,-204}},{{-204,-388,-332,-384,-408,-379},{-323,-236,-388,-260,-444,-251},{-406,-364,-384,-333,-441,-406},{-284,-209,-431,-346,-224,-297},{-252,-358,-418,-276,-318,-337},{-207,-288,-434,-444,-350,-370},{-367,-245,-208,-330,-237,-274},{-246,-215,-356,-336,-321,-310},{-255,-336,-347,-190,-314,-280},{-228,-336,-350,-238,-441,-416}},{{-363,-259,-447,-410,-241,-364},{-228,-338,-440,-360,-476,-399},{-437,-385,-351,-318,-476,-343},{-437,-457,-402,-389,-469,-378},{-417,-457,-313,-357,-350,-458},{-386,-436,-423,-487,-252,-217},{-403,-351,-437,-350,-210,-430},{-349,-375,-464,-448,-262,-406},{-218,-273,-251,-350,-294,-476},{-370,-423,-451,-241,-304,-364}}}}; // supply (positive for supply and negative for demand) under different scenarios 
int iniv[I]={1052,192,238,253,176,234,280,264,252}; // initial inventory 
int ubiv[I]={2104,384,476,507,352,468,350,495,504}; // the upper bounds of inventory 
int len[I1][I2]={{5,3,2,2,1,1,2,3}}; // the traveling time between two sites 
// cost parameters: 
double c1[I]={0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0}; // inventory holding cost 
double c2[I]={0.05,13.35,8.59,5.57,4.52,2.83,1.94,4.81,7.57}; // cost of leftover and unmet 
double c3[BN]={0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0}; // transportation cost for capacity contracts 
double c4[I1][I2]={{12.14,7.81,5.06,4.11,2.57,1.76,4.37,6.88}}; // cost of spot market 
// bid parameters: 
int RLBN[I1][I2]={{9,9,9,9,9,9,9,9}}; // number of bids on each arc 
int LBset[I1][I2][LBN]={{{0,1,2,3,4,5,6,7,8},{9,10,11,12,13,14,15,16,17},{18,19,20,21,22,23,24,25,26},{27,28,29,30,31,32,33,34,35},{36,37,38,39,40,41,42,43,44},{45,46,47,48,49,50,51,52,53},{54,55,56,57,58,59,60,61,62},{63,64,65,66,67,68,69,70,71}}}; // set of bids on each arc 
double frt[BN]={9.71,9.71,9.71,8.5,8.5,8.5,7.28,7.28,7.28,6.25,6.25,6.25,5.47,5.47,5.47,4.69,4.69,4.69,4.05,4.05,4.05,3.54,3.54,3.54,3.04,3.04,3.04,3.29,3.29,3.29,2.88,2.88,2.88,2.47,2.47,2.47,2.06,2.06,2.06,1.8,1.8,1.8,1.54,1.54,1.54,1.41,1.41,1.41,1.23,1.23,1.23,1.06,1.06,1.06,3.5,3.5,3.5,3.06,3.06,3.06,2.62,2.62,2.62,5.5,5.5,5.5,4.82,4.82,4.82,4.13,4.13,4.13}; // freight rate of each bid 
int lbcap[BN]={75,75,75,1,151,151,151,226,226,75,75,75,301,151,151,151,226,226,75,75,75,301,151,151,151,226,226,75,75,75,301,151,151,151,226,226,75,75,75,301,151,151,151,226,226,75,75,75,301,151,151,151,226,226,75,75,75,301,151,151,151,226,226,75,75,75,301,151,151,151,226,226}; // capacity lower bound of each bid 
int ubcap[BN]={150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300}; // capacity upper bound of each bid 
// shipment parameters: 
int SHN[BN]={25,12,8,25,13,8,25,12,9,25,13,9,25,13,9,26,13,9,26,13,9,26,13,9,26,13,9,26,13,9,25,13,9,26,13,9,26,14,9,26,13,9,27,13,9,27,14,9,26,14,9,27,14,9,25,13,9,26,13,9,25,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,1138,1139,1140,1141,1142,1143}}; // 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,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,2,8,14,20,26,32,38,44,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,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,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,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,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,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,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,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,51,0,4,8,12,16,20,24,28,32,36,40,44,48,52,0,6,12,18,24,30,36,42,48,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,1,5,9,13,17,21,25,29,33,37,41,45,49,0,6,12,18,24,30,36,42,48,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,1,5,9,13,17,21,25,29,33,37,41,45,49,2,8,14,20,26,32,38,44,50,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,0,4,8,12,16,20,24,28,32,36,40,44,48,52,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,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,0,4,8,12,16,20,24,28,32,36,40,44,48,0,6,12,18,24,30,36,42,48,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,2,6,10,14,18,22,26,30,34,38,42,46,50,2,8,14,20,26,32,38,44,50,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,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,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,2,8,14,20,26,32,38,44,50}; // 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,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,7,13,19,25,31,37,43,49,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,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,5,9,13,17,21,25,29,33,37,41,45,49,53,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,5,9,13,17,21,25,29,33,37,41,45,49,53,3,9,15,21,27,33,39,45,51,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,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,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,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,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,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,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,1,5,9,13,17,21,25,29,33,37,41,45,49,53,1,7,13,19,25,31,37,43,49,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,2,6,10,14,18,22,26,30,34,38,42,46,50,1,7,13,19,25,31,37,43,49,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,2,6,10,14,18,22,26,30,34,38,42,46,50,3,9,15,21,27,33,39,45,51,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,1,5,9,13,17,21,25,29,33,37,41,45,49,53,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,1,5,9,13,17,21,25,29,33,37,41,45,49,53,2,8,14,20,26,32,38,44,50,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,2,6,10,14,18,22,26,30,34,38,42,46,50,2,8,14,20,26,32,38,44,50,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,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,5,9,13,17,21,25,29,33,37,41,45,49,53,5,11,17,23,29,35,41,47,53,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,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,5,11,17,23,29,35,41,47,53}; // set of end times of each shipment 
