int Dev = 20;// 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 = 1142;//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]={{{{12510,0,0,0,0,0},{12586,0,0,0,0,0},{12493,0,0,0,0,0},{12132,0,0,0,0,0},{11968,0,0,0,0,0},{12552,0,0,0,0,0},{12228,0,0,0,0,0},{12770,0,0,0,0,0},{12674,0,0,0,0,0},{12211,0,0,0,0,0}},{{12256,0,0,0,0,0},{12615,0,0,0,0,0},{12256,0,0,0,0,0},{12461,0,0,0,0,0},{12866,0,0,0,0,0},{12782,0,0,0,0,0},{12298,0,0,0,0,0},{12339,0,0,0,0,0},{12686,0,0,0,0,0},{12466,0,0,0,0,0}},{{11883,0,0,0,0,0},{11721,0,0,0,0,0},{11642,0,0,0,0,0},{11693,0,0,0,0,0},{11339,0,0,0,0,0},{11444,0,0,0,0,0},{11236,0,0,0,0,0},{11698,0,0,0,0,0},{11535,0,0,0,0,0},{11809,0,0,0,0,0}},{{10508,0,0,0,0,0},{10613,0,0,0,0,0},{10077,0,0,0,0,0},{10488,0,0,0,0,0},{10558,0,0,0,0,0},{10288,0,0,0,0,0},{10159,0,0,0,0,0},{10324,0,0,0,0,0},{10066,0,0,0,0,0},{10318,0,0,0,0,0}},{{9257,0,0,0,0,0},{9587,0,0,0,0,0},{9635,0,0,0,0,0},{9450,0,0,0,0,0},{9400,0,0,0,0,0},{9253,0,0,0,0,0},{9396,0,0,0,0,0},{9662,0,0,0,0,0},{9716,0,0,0,0,0},{9433,0,0,0,0,0}},{{9229,0,0,0,0,0},{9254,0,0,0,0,0},{9108,0,0,0,0,0},{9246,0,0,0,0,0},{9292,0,0,0,0,0},{9473,0,0,0,0,0},{9375,0,0,0,0,0},{9253,0,0,0,0,0},{9541,0,0,0,0,0},{9083,0,0,0,0,0}},{{9850,0,0,0,0,0},{9797,0,0,0,0,0},{9621,0,0,0,0,0},{9601,0,0,0,0,0},{10017,0,0,0,0,0},{9697,0,0,0,0,0},{9923,0,0,0,0,0},{10172,0,0,0,0,0},{9587,0,0,0,0,0},{9564,0,0,0,0,0}},{{10599,0,0,0,0,0},{10932,0,0,0,0,0},{11129,0,0,0,0,0},{10803,0,0,0,0,0},{10626,0,0,0,0,0},{11326,0,0,0,0,0},{11158,0,0,0,0,0},{11042,0,0,0,0,0},{11136,0,0,0,0,0},{10916,0,0,0,0,0}},{{11636,0,0,0,0,0},{12138,0,0,0,0,0},{11784,0,0,0,0,0},{12009,0,0,0,0,0},{12015,0,0,0,0,0},{12148,0,0,0,0,0},{12110,0,0,0,0,0},{12048,0,0,0,0,0},{11880,0,0,0,0,0},{11947,0,0,0,0,0}}},{{{-268,-282,-270,-273,-262,-338},{-312,-323,-312,-306,-300,-282},{-268,-344,-326,-294,-265,-241},{-297,-294,-235,-350,-256,-235},{-285,-250,-335,-294,-241,-329},{-303,-282,-262,-350,-297,-347},{-244,-279,-303,-291,-291,-329},{-320,-353,-329,-273,-309,-318},{-344,-335,-238,-268,-350,-247},{-285,-318,-262,-347,-285,-262}},{{-267,-292,-246,-301,-304,-238},{-328,-300,-291,-301,-272,-290},{-267,-283,-325,-249,-214,-269},{-261,-277,-316,-285,-227,-241},{-342,-303,-235,-318,-259,-275},{-322,-312,-269,-329,-307,-282},{-249,-323,-330,-266,-251,-215},{-322,-275,-232,-227,-286,-287},{-264,-289,-286,-304,-227,-264},{-244,-323,-325,-323,-243,-287}},{{-205,-252,-270,-240,-227,-225},{-222,-194,-247,-179,-240,-247},{-288,-276,-247,-188,-193,-241},{-248,-218,-219,-188,-199,-227},{-205,-247,-210,-195,-246,-177},{-208,-266,-247,-228,-250,-212},{-282,-240,-198,-197,-175,-185},{-250,-237,-242,-244,-180,-181},{-272,-249,-226,-206,-253,-225},{-208,-232,-238,-193,-205,-220}},{{-183,-213,-152,-179,-183,-178},{-162,-150,-165,-160,-182,-157},{-189,-150,-152,-141,-132,-170},{-230,-194,-150,-167,-137,-179},{-197,-223,-192,-157,-182,-130},{-232,-223,-156,-184,-185,-157},{-205,-221,-181,-198,-191,-130},{-209,-161,-195,-172,-183,-138},{-236,-174,-159,-167,-137,-162},{-201,-198,-152,-139,-196,-186}},{{-183,-171,-173,-143,-144,-143},{-140,-167,-125,-135,-138,-169},{-136,-153,-166,-150,-173,-118},{-139,-131,-135,-132,-128,-146},{-174,-130,-157,-156,-128,-168},{-163,-127,-135,-134,-119,-121},{-143,-153,-168,-122,-134,-157},{-172,-145,-134,-138,-175,-126},{-154,-162,-165,-169,-131,-168},{-157,-136,-141,-173,-163,-169}},{{-165,-157,-159,-139,-130,-177},{-132,-153,-171,-162,-142,-165},{-138,-156,-128,-148,-177,-179},{-148,-151,-163,-128,-192,-137},{-166,-140,-146,-176,-164,-142},{-159,-153,-163,-128,-177,-157},{-162,-154,-180,-177,-140,-192},{-147,-171,-171,-162,-134,-177},{-148,-163,-180,-123,-130,-147},{-141,-119,-140,-172,-184,-135}},{{-183,-172,-205,-191,-195,-247},{-139,-157,-226,-225,-215,-256},{-155,-217,-182,-225,-168,-178},{-143,-157,-196,-201,-193,-210},{-177,-210,-152,-217,-184,-245},{-141,-163,-205,-237,-195,-193},{-202,-212,-188,-225,-182,-232},{-176,-181,-186,-195,-248,-204},{-151,-148,-152,-181,-205,-189},{-144,-181,-182,-159,-230,-221}},{{-182,-226,-234,-253,-292,-226},{-257,-190,-268,-266,-305,-266},{-263,-200,-227,-240,-248,-250},{-252,-275,-200,-207,-209,-317},{-245,-202,-268,-223,-313,-226},{-236,-280,-290,-268,-277,-237},{-220,-275,-212,-253,-282,-223},{-266,-193,-234,-304,-222,-250},{-245,-200,-283,-218,-209,-269},{-257,-209,-203,-213,-245,-223}},{{-237,-334,-284,-254,-315,-235},{-326,-301,-281,-345,-338,-350},{-284,-230,-230,-242,-276,-326},{-224,-233,-342,-295,-244,-344},{-312,-247,-307,-301,-350,-262},{-257,-284,-319,-324,-315,-344},{-309,-281,-333,-310,-332,-344},{-326,-284,-244,-350,-329,-288},{-306,-256,-298,-310,-297,-353},{-221,-253,-330,-277,-323,-262}}},{{{-190,-149,-140,-184,-202,-223},{-202,-194,-152,-158,-221,-223},{-168,-167,-152,-213,-155,-172},{-144,-161,-184,-215,-149,-195},{-134,-199,-172,-179,-184,-176},{-160,-181,-201,-183,-213,-210},{-202,-194,-201,-159,-219,-199},{-178,-159,-208,-204,-213,-180},{-143,-174,-205,-143,-221,-201},{-141,-181,-187,-204,-221,-153}},{{-164,-230,-196,-212,-218,-200},{-188,-176,-230,-252,-273,-233},{-220,-234,-224,-194,-259,-190},{-158,-217,-253,-259,-188,-231},{-174,-172,-239,-252,-254,-276},{-226,-176,-228,-232,-266,-219},{-204,-199,-209,-219,-270,-195},{-166,-207,-198,-192,-243,-190},{-234,-242,-207,-219,-190,-283},{-170,-166,-179,-201,-222,-278}},{{-287,-242,-307,-256,-266,-269},{-237,-255,-241,-316,-302,-323},{-249,-250,-296,-251,-271,-289},{-247,-286,-288,-313,-285,-235},{-232,-296,-212,-221,-327,-331},{-222,-235,-288,-251,-224,-294},{-296,-286,-288,-273,-233,-269},{-282,-245,-220,-221,-294,-272},{-240,-286,-312,-254,-291,-226},{-279,-245,-301,-308,-296,-340}},{{-249,-285,-319,-337,-298,-286},{-272,-320,-352,-328,-340,-250},{-335,-235,-289,-283,-259,-340},{-263,-241,-340,-349,-274,-349},{-306,-312,-241,-304,-250,-250},{-341,-347,-298,-250,-241,-247},{-272,-282,-355,-250,-247,-274},{-266,-318,-355,-283,-307,-274},{-266,-323,-334,-286,-247,-313},{-263,-265,-250,-262,-289,-244}},{{-241,-346,-265,-348,-238,-313},{-283,-271,-352,-345,-320,-348},{-355,-259,-310,-336,-238,-334},{-304,-349,-316,-261,-235,-270},{-334,-340,-253,-336,-294,-307},{-307,-253,-355,-342,-259,-284},{-259,-256,-310,-345,-288,-299},{-331,-271,-265,-264,-347,-284},{-244,-286,-328,-282,-318,-310},{-277,-349,-280,-255,-315,-322}},{{-245,-321,-260,-296,-228,-221},{-305,-257,-290,-272,-269,-255},{-319,-229,-241,-246,-228,-228},{-322,-259,-238,-280,-236,-290},{-331,-262,-257,-272,-300,-208},{-302,-254,-290,-317,-238,-288},{-333,-248,-222,-267,-236,-211},{-319,-229,-260,-238,-307,-265},{-276,-310,-271,-216,-300,-246},{-316,-223,-257,-216,-305,-246}},{{-192,-274,-234,-174,-184,-165},{-250,-244,-268,-213,-186,-221},{-221,-248,-243,-215,-201,-161},{-233,-264,-245,-211,-246,-199},{-276,-276,-261,-217,-232,-177},{-199,-258,-236,-258,-205,-207},{-269,-253,-210,-217,-215,-173},{-223,-248,-212,-234,-215,-237},{-214,-218,-198,-213,-244,-229},{-271,-237,-263,-219,-248,-187}},{{-225,-167,-168,-142,-168,-139},{-190,-197,-148,-203,-198,-136},{-169,-153,-150,-168,-171,-183},{-225,-166,-214,-187,-185,-150},{-194,-188,-215,-164,-140,-150},{-186,-186,-215,-142,-186,-176},{-194,-153,-186,-208,-149,-134},{-163,-158,-156,-173,-205,-186},{-205,-160,-159,-180,-176,-186},{-188,-151,-148,-193,-159,-136}},{{-146,-198,-180,-156,-138,-138},{-156,-200,-150,-192,-200,-158},{-192,-138,-190,-158,-188,-134},{-178,-156,-198,-195,-156,-160},{-160,-138,-190,-188,-163,-161},{-158,-165,-170,-138,-144,-181},{-136,-181,-153,-173,-181,-178},{-186,-141,-165,-171,-178,-155},{-195,-198,-198,-190,-183,-192},{-198,-143,-151,-165,-144,-134}}},{{{-293,-270,-332,-382,-336,-368},{-375,-303,-382,-299,-359,-362},{-293,-309,-392,-349,-362,-392},{-296,-263,-332,-290,-388,-339},{-303,-306,-293,-303,-276,-395},{-280,-273,-322,-362,-362,-296},{-283,-352,-352,-276,-332,-313},{-332,-273,-388,-266,-280,-286},{-385,-299,-375,-293,-342,-355},{-276,-365,-349,-322,-273,-280}},{{-338,-383,-255,-361,-305,-322},{-276,-270,-345,-349,-323,-241},{-308,-328,-364,-257,-370,-304},{-289,-303,-306,-301,-348,-283},{-371,-322,-364,-301,-354,-304},{-380,-386,-367,-358,-360,-343},{-367,-309,-341,-355,-277,-241},{-338,-341,-274,-264,-351,-331},{-295,-274,-268,-364,-286,-307},{-295,-332,-345,-339,-280,-277}},{{-345,-248,-325,-258,-270,-267},{-298,-317,-283,-324,-307,-224},{-327,-334,-302,-291,-262,-278},{-257,-320,-308,-248,-260,-308},{-295,-265,-238,-267,-305,-218},{-242,-288,-277,-218,-254,-226},{-242,-230,-291,-223,-297,-242},{-266,-323,-308,-237,-276,-290},{-354,-245,-235,-275,-273,-257},{-351,-265,-319,-286,-231,-298}},{{-265,-279,-211,-277,-237,-204},{-270,-226,-256,-277,-253,-243},{-278,-289,-216,-196,-211,-261},{-300,-233,-273,-261,-204,-232},{-205,-279,-211,-245,-262,-180},{-250,-228,-206,-259,-237,-237},{-242,-270,-216,-201,-184,-201},{-245,-253,-256,-256,-188,-256},{-240,-224,-235,-229,-231,-239},{-222,-243,-254,-277,-244,-226}},{{-176,-223,-214,-191,-223,-235},{-191,-241,-231,-233,-170,-229},{-202,-200,-212,-216,-231,-200},{-241,-225,-202,-200,-239,-252},{-215,-220,-250,-250,-181,-202},{-252,-210,-183,-176,-195,-197},{-197,-212,-187,-214,-202,-212},{-174,-237,-195,-239,-244,-206},{-250,-191,-252,-187,-172,-229},{-213,-214,-220,-172,-189,-181}},{{-252,-220,-211,-184,-235,-194},{-170,-183,-194,-258,-209,-212},{-187,-241,-230,-178,-205,-232},{-208,-204,-241,-258,-198,-214},{-231,-204,-171,-215,-176,-241},{-185,-237,-217,-228,-194,-230},{-235,-191,-196,-228,-235,-270},{-239,-216,-169,-189,-211,-200},{-220,-244,-171,-206,-220,-263},{-170,-210,-181,-189,-251,-189}},{{-233,-230,-200,-233,-268,-301},{-273,-225,-268,-233,-227,-263},{-268,-228,-232,-251,-261,-223},{-194,-197,-266,-208,-253,-306},{-254,-235,-254,-279,-248,-242},{-187,-206,-237,-241,-258,-237},{-273,-216,-237,-271,-245,-250},{-243,-270,-215,-291,-232,-261},{-213,-280,-195,-301,-268,-229},{-196,-242,-273,-223,-217,-247}},{{-225,-275,-237,-281,-314,-262},{-299,-337,-283,-320,-242,-370},{-285,-244,-277,-329,-305,-342},{-263,-303,-277,-269,-320,-290},{-312,-309,-249,-302,-347,-262},{-296,-301,-272,-320,-269,-348},{-323,-337,-324,-278,-356,-308},{-230,-244,-301,-340,-350,-246},{-310,-250,-246,-346,-347,-360},{-326,-250,-306,-272,-338,-253}},{{-258,-374,-299,-313,-286,-276},{-280,-342,-264,-270,-306,-336},{-277,-298,-309,-375,-385,-273},{-312,-269,-299,-319,-375,-293},{-353,-275,-361,-359,-290,-378},{-315,-304,-316,-375,-345,-273},{-274,-330,-293,-395,-273,-336},{-255,-374,-277,-332,-329,-299},{-284,-317,-367,-299,-355,-345},{-312,-384,-354,-359,-342,-273}}},{{{-103,-108,-114,-136,-143,-143},{-107,-91,-95,-105,-118,-141},{-89,-95,-90,-98,-132,-120},{-100,-124,-114,-99,-111,-106},{-118,-89,-108,-111,-99,-141},{-90,-87,-108,-135,-100,-108},{-89,-108,-103,-104,-144,-141},{-121,-118,-125,-97,-128,-129},{-104,-112,-119,-124,-101,-123},{-85,-103,-128,-103,-144,-138}},{{-162,-155,-133,-157,-177,-141},{-112,-144,-166,-167,-163,-173},{-139,-155,-145,-141,-134,-141},{-140,-138,-121,-169,-184,-183},{-128,-159,-161,-135,-151,-168},{-127,-141,-178,-126,-145,-185},{-124,-121,-124,-147,-147,-175},{-157,-142,-164,-170,-148,-139},{-148,-164,-142,-149,-171,-180},{-146,-135,-176,-160,-166,-166}},{{-189,-209,-166,-215,-171,-198},{-201,-162,-218,-205,-204,-200},{-177,-160,-153,-203,-167,-232},{-201,-167,-192,-207,-174,-192},{-142,-211,-158,-226,-167,-218},{-206,-144,-192,-203,-180,-166},{-200,-148,-203,-179,-180,-236},{-206,-209,-216,-156,-200,-198},{-177,-162,-223,-184,-161,-198},{-186,-194,-158,-218,-221,-190}},{{-215,-197,-238,-175,-221,-179},{-240,-187,-207,-242,-244,-195},{-193,-211,-215,-164,-211,-177},{-213,-215,-177,-177,-166,-205},{-203,-231,-183,-213,-223,-233},{-207,-166,-231,-213,-181,-185},{-173,-201,-175,-183,-191,-189},{-189,-179,-164,-221,-164,-164},{-166,-195,-166,-164,-199,-242},{-168,-231,-225,-162,-225,-177}},{{-195,-195,-217,-207,-161,-175},{-244,-211,-183,-226,-200,-178},{-164,-238,-197,-203,-176,-171},{-164,-213,-177,-215,-181,-191},{-177,-168,-236,-211,-157,-215},{-207,-166,-207,-189,-202,-204},{-171,-215,-234,-211,-174,-188},{-175,-179,-217,-234,-197,-210},{-201,-219,-183,-230,-168,-191},{-177,-223,-171,-220,-178,-206}},{{-177,-166,-200,-165,-127,-126},{-154,-180,-159,-171,-161,-160},{-175,-144,-149,-141,-139,-165},{-181,-187,-144,-186,-125,-138},{-193,-154,-184,-173,-174,-146},{-199,-163,-200,-149,-142,-123},{-149,-161,-157,-168,-124,-148},{-175,-185,-134,-187,-153,-126},{-166,-204,-190,-173,-168,-171},{-179,-147,-150,-133,-158,-172}},{{-116,-106,-110,-134,-124,-97},{-136,-114,-122,-99,-94,-114},{-160,-148,-110,-134,-97,-106},{-125,-122,-152,-140,-139,-128},{-155,-132,-116,-140,-100,-108},{-161,-106,-105,-127,-102,-100},{-129,-124,-141,-97,-93,-104},{-143,-141,-128,-143,-139,-93},{-133,-140,-133,-99,-130,-97},{-112,-157,-150,-103,-96,-128}},{{-102,-95,-107,-87,-79,-92},{-97,-110,-97,-84,-78,-116},{-92,-88,-91,-82,-99,-107},{-122,-101,-104,-91,-95,-80},{-101,-107,-95,-78,-90,-93},{-99,-96,-109,-101,-91,-82},{-87,-95,-82,-110,-86,-109},{-88,-105,-111,-116,-108,-92},{-111,-92,-93,-114,-100,-99},{-88,-122,-103,-112,-96,-99}},{{-97,-88,-105,-96,-112,-78},{-111,-100,-91,-94,-101,-90},{-115,-110,-78,-96,-101,-107},{-91,-82,-110,-115,-114,-112},{-87,-102,-93,-89,-81,-117},{-99,-98,-98,-83,-118,-93},{-110,-94,-113,-112,-94,-89},{-110,-104,-109,-79,-89,-93},{-118,-83,-84,-96,-115,-81},{-106,-80,-80,-91,-98,-102}}},{{{-245,-274,-226,-190,-255,-243},{-189,-252,-252,-200,-274,-198},{-189,-269,-198,-226,-262,-257},{-203,-243,-221,-217,-190,-195},{-249,-214,-214,-259,-195,-226},{-231,-257,-274,-264,-190,-269},{-203,-252,-250,-193,-233,-252},{-214,-209,-217,-207,-250,-224},{-203,-255,-243,-252,-231,-240},{-186,-255,-248,-200,-226,-190}},{{-195,-198,-212,-231,-253,-221},{-236,-255,-214,-203,-199,-265},{-205,-271,-197,-243,-228,-243},{-228,-221,-219,-270,-221,-225},{-217,-274,-226,-192,-240,-236},{-238,-202,-204,-199,-201,-199},{-267,-190,-240,-222,-269,-261},{-271,-250,-188,-249,-194,-261},{-286,-274,-190,-249,-258,-212},{-205,-195,-242,-249,-240,-221}},{{-204,-236,-200,-164,-204,-212},{-211,-213,-200,-177,-224,-164},{-176,-180,-202,-193,-163,-175},{-230,-224,-210,-174,-219,-187},{-183,-184,-178,-177,-161,-160},{-249,-169,-228,-168,-204,-173},{-221,-247,-212,-205,-193,-167},{-219,-188,-214,-226,-170,-207},{-228,-226,-198,-222,-151,-189},{-221,-245,-204,-176,-159,-166}},{{-206,-185,-130,-171,-160,-115},{-203,-188,-181,-154,-151,-161},{-196,-134,-154,-122,-156,-144},{-170,-172,-160,-126,-115,-120},{-169,-152,-160,-122,-158,-166},{-174,-132,-148,-144,-163,-127},{-205,-158,-166,-176,-163,-128},{-160,-140,-152,-150,-151,-113},{-174,-165,-174,-153,-166,-126},{-187,-155,-177,-162,-171,-149}},{{-134,-130,-130,-119,-117,-119},{-138,-105,-146,-109,-113,-96},{-149,-135,-141,-115,-138,-140},{-149,-140,-129,-95,-129,-101},{-124,-135,-104,-118,-104,-114},{-158,-102,-102,-107,-98,-120},{-113,-147,-123,-123,-104,-115},{-133,-111,-122,-136,-125,-139},{-156,-135,-100,-121,-119,-118},{-129,-111,-124,-121,-120,-120}},{{-127,-139,-112,-140,-137,-132},{-118,-100,-127,-134,-137,-151},{-99,-114,-118,-96,-98,-141},{-138,-140,-99,-96,-128,-102},{-113,-136,-111,-127,-100,-120},{-134,-109,-130,-138,-123,-140},{-95,-114,-101,-134,-118,-102},{-143,-133,-137,-133,-126,-108},{-104,-143,-131,-112,-145,-151},{-96,-111,-101,-131,-138,-129}},{{-119,-124,-151,-141,-184,-154},{-127,-109,-113,-167,-136,-190},{-144,-117,-120,-164,-186,-152},{-156,-154,-151,-121,-160,-130},{-134,-132,-117,-141,-155,-149},{-124,-121,-113,-129,-144,-173},{-113,-159,-134,-127,-143,-162},{-105,-136,-131,-176,-161,-193},{-110,-113,-117,-166,-153,-134},{-113,-124,-152,-164,-158,-136}},{{-167,-168,-179,-228,-239,-216},{-158,-193,-159,-230,-195,-208},{-190,-211,-213,-159,-215,-235},{-170,-175,-170,-180,-189,-225},{-141,-152,-204,-167,-171,-222},{-175,-156,-216,-219,-163,-194},{-194,-200,-204,-163,-223,-214},{-170,-184,-191,-230,-195,-175},{-192,-170,-163,-215,-175,-243},{-190,-147,-179,-219,-163,-239}},{{-224,-247,-179,-219,-185,-217},{-251,-226,-208,-254,-192,-196},{-219,-250,-190,-231,-277,-238},{-192,-182,-237,-236,-206,-275},{-217,-215,-224,-219,-270,-185},{-183,-193,-269,-236,-206,-217},{-183,-256,-262,-213,-187,-256},{-207,-254,-215,-245,-231,-273},{-215,-195,-222,-247,-187,-196},{-249,-186,-260,-263,-208,-217}}},{{{-218,-301,-319,-226,-231,-269},{-226,-255,-311,-290,-258,-301},{-314,-221,-290,-221,-301,-309},{-311,-221,-306,-223,-263,-266},{-229,-317,-279,-266,-218,-223},{-287,-239,-234,-245,-258,-245},{-215,-261,-293,-223,-234,-306},{-285,-309,-271,-301,-277,-245},{-258,-295,-285,-298,-298,-213},{-263,-298,-271,-274,-271,-242}},{{-285,-237,-213,-269,-307,-272},{-231,-287,-218,-303,-280,-282},{-255,-293,-221,-213,-270,-264},{-263,-314,-263,-213,-307,-280},{-218,-311,-274,-285,-262,-293},{-271,-303,-319,-247,-233,-256},{-261,-250,-237,-213,-267,-256},{-263,-237,-234,-282,-228,-306},{-255,-306,-247,-285,-286,-311},{-295,-253,-290,-223,-291,-259}},{{-267,-278,-255,-268,-289,-231},{-306,-230,-267,-241,-287,-207},{-280,-288,-207,-218,-201,-231},{-231,-283,-300,-253,-270,-287},{-262,-281,-224,-298,-228,-275},{-249,-283,-257,-253,-211,-207},{-207,-213,-287,-241,-260,-239},{-259,-256,-292,-238,-235,-255},{-256,-283,-300,-213,-257,-210},{-293,-288,-287,-216,-206,-277}},{{-219,-226,-203,-216,-269,-262},{-259,-207,-192,-262,-215,-190},{-212,-261,-268,-264,-195,-213},{-226,-197,-268,-244,-195,-181},{-205,-240,-254,-269,-228,-260},{-283,-202,-270,-200,-240,-204},{-257,-204,-229,-189,-260,-246},{-226,-277,-275,-196,-222,-269},{-217,-219,-192,-223,-240,-213},{-209,-223,-224,-242,-179,-269}},{{-191,-174,-210,-230,-176,-182},{-209,-189,-204,-226,-200,-193},{-238,-226,-195,-239,-237,-258},{-180,-232,-202,-254,-184,-189},{-257,-221,-204,-224,-226,-247},{-224,-215,-206,-241,-180,-258},{-260,-204,-176,-210,-250,-234},{-244,-239,-254,-215,-178,-241},{-240,-195,-237,-252,-180,-245},{-238,-202,-241,-187,-254,-210}},{{-226,-197,-197,-237,-215,-174},{-200,-215,-219,-256,-184,-252},{-260,-215,-232,-243,-193,-210},{-258,-193,-226,-228,-239,-243},{-256,-237,-224,-206,-215,-217},{-195,-219,-245,-200,-213,-228},{-243,-193,-247,-250,-245,-239},{-182,-213,-191,-202,-219,-176},{-189,-256,-232,-256,-191,-210},{-197,-241,-189,-256,-210,-232}},{{-190,-226,-262,-253,-273,-249},{-232,-181,-228,-191,-243,-202},{-210,-235,-255,-184,-226,-266},{-208,-179,-179,-189,-243,-200},{-210,-244,-246,-212,-208,-202},{-232,-240,-233,-221,-247,-209},{-208,-211,-235,-260,-229,-254},{-190,-233,-249,-193,-259,-228},{-252,-220,-186,-216,-192,-207},{-190,-195,-186,-271,-201,-190}},{{-202,-283,-198,-226,-232,-268},{-231,-244,-257,-290,-247,-304},{-262,-273,-245,-273,-257,-210},{-238,-254,-230,-228,-202,-263},{-190,-240,-230,-263,-247,-296},{-205,-283,-243,-226,-242,-283},{-202,-218,-277,-231,-297,-250},{-219,-290,-206,-253,-262,-273},{-274,-244,-245,-211,-247,-261},{-245,-271,-279,-273,-249,-250}},{{-249,-272,-275,-234,-237,-247},{-249,-308,-228,-290,-250,-218},{-285,-246,-288,-266,-269,-311},{-287,-256,-301,-274,-306,-319},{-212,-295,-265,-229,-231,-319},{-251,-251,-259,-255,-287,-274},{-295,-238,-275,-271,-237,-250},{-287,-293,-238,-253,-269,-234},{-259,-280,-267,-255,-306,-218},{-311,-223,-270,-245,-258,-303}}},{{{-352,-271,-283,-298,-268,-340},{-295,-298,-310,-262,-319,-343},{-337,-262,-301,-337,-286,-323},{-319,-343,-250,-334,-313,-337},{-346,-334,-298,-244,-289,-272},{-325,-316,-265,-277,-337,-343},{-277,-259,-277,-307,-316,-349},{-352,-241,-289,-325,-262,-317},{-283,-331,-247,-289,-289,-284},{-256,-298,-280,-295,-283,-266}},{{-334,-247,-277,-287,-236,-231},{-252,-301,-272,-328,-318,-283},{-261,-313,-252,-311,-292,-262},{-343,-324,-252,-235,-217,-275},{-322,-342,-230,-317,-289,-283},{-293,-284,-300,-289,-244,-206},{-252,-247,-241,-284,-286,-242},{-234,-290,-286,-300,-231,-308},{-328,-284,-314,-325,-289,-301},{-293,-339,-252,-295,-286,-260}},{{-283,-197,-252,-201,-227,-230},{-203,-235,-252,-239,-176,-232},{-203,-288,-202,-210,-206,-226},{-233,-199,-220,-210,-189,-202},{-260,-252,-218,-243,-191,-228},{-211,-254,-254,-232,-244,-228},{-211,-194,-268,-201,-216,-162},{-290,-271,-202,-223,-229,-176},{-236,-242,-211,-221,-237,-240},{-263,-281,-259,-256,-187,-204}},{{-169,-210,-148,-141,-194,-179},{-165,-171,-214,-146,-163,-180},{-159,-171,-174,-162,-139,-177},{-198,-167,-199,-144,-198,-193},{-192,-192,-150,-194,-151,-179},{-155,-216,-160,-181,-138,-156},{-177,-199,-167,-187,-199,-137},{-233,-167,-208,-184,-174,-137},{-163,-190,-162,-181,-144,-153},{-204,-223,-199,-187,-164,-190}},{{-184,-171,-139,-168,-159,-128},{-172,-166,-180,-149,-149,-185},{-148,-134,-129,-140,-145,-142},{-139,-159,-146,-151,-177,-159},{-136,-132,-148,-157,-159,-129},{-159,-131,-137,-157,-148,-143},{-145,-148,-140,-176,-172,-137},{-187,-159,-149,-159,-156,-177},{-158,-140,-180,-154,-182,-174},{-162,-160,-171,-163,-169,-128}},{{-134,-143,-177,-156,-191,-179},{-179,-134,-193,-202,-140,-174},{-131,-145,-167,-165,-210,-205},{-154,-172,-164,-150,-166,-181},{-142,-189,-147,-190,-196,-168},{-145,-183,-193,-151,-172,-212},{-168,-142,-152,-188,-210,-214},{-172,-189,-147,-183,-193,-214},{-157,-156,-181,-143,-158,-188},{-183,-180,-162,-156,-210,-172}},{{-180,-232,-208,-194,-220,-236},{-207,-214,-190,-256,-234,-222},{-167,-232,-247,-185,-184,-218},{-177,-218,-237,-189,-216,-229},{-192,-194,-179,-194,-227,-241},{-194,-202,-175,-256,-227,-206},{-177,-220,-210,-174,-259,-204},{-190,-170,-247,-228,-266,-232},{-177,-220,-237,-245,-238,-267},{-198,-158,-210,-191,-216,-190}},{{-282,-280,-243,-307,-232,-303},{-224,-202,-274,-250,-304,-241},{-236,-272,-240,-315,-328,-277},{-260,-290,-240,-272,-284,-286},{-204,-217,-240,-231,-237,-241},{-233,-244,-284,-280,-326,-249},{-270,-229,-211,-242,-295,-303},{-209,-217,-295,-264,-243,-325},{-282,-214,-303,-304,-251,-328},{-265,-277,-264,-234,-268,-286}},{{-260,-323,-353,-262,-301,-271},{-246,-256,-278,-346,-334,-358},{-303,-273,-263,-271,-271,-289},{-257,-238,-299,-313,-292,-355},{-309,-270,-248,-283,-313,-310},{-332,-347,-338,-301,-250,-316},{-295,-265,-341,-265,-277,-262},{-260,-294,-293,-322,-349,-259},{-237,-297,-302,-295,-256,-262},{-234,-238,-290,-289,-337,-265}}},{{{-315,-368,-350,-420,-340,-399},{-332,-392,-354,-329,-312,-312},{-364,-382,-360,-360,-284,-354},{-332,-392,-389,-368,-318,-301},{-360,-290,-318,-312,-290,-406},{-416,-389,-280,-357,-340,-402},{-329,-392,-315,-354,-301,-329},{-420,-410,-406,-385,-413,-354},{-406,-382,-406,-357,-420,-308},{-378,-395,-318,-389,-343,-374}},{{-327,-302,-383,-364,-338,-280},{-341,-288,-373,-294,-394,-335},{-376,-274,-288,-304,-384,-322},{-365,-394,-329,-401,-341,-283},{-310,-398,-281,-354,-331,-364},{-331,-305,-292,-394,-367,-341},{-351,-374,-400,-387,-292,-351},{-348,-381,-288,-387,-354,-325},{-362,-298,-359,-347,-289,-274},{-351,-401,-305,-287,-292,-364}},{{-302,-360,-282,-243,-288,-303},{-284,-290,-246,-337,-265,-289},{-315,-351,-306,-325,-274,-297},{-343,-299,-333,-275,-299,-236},{-258,-336,-294,-275,-308,-256},{-299,-333,-297,-352,-279,-289},{-280,-370,-309,-281,-234,-225},{-252,-363,-354,-264,-248,-314},{-252,-299,-324,-272,-256,-228},{-346,-246,-270,-290,-262,-225}},{{-238,-268,-296,-231,-287,-225},{-240,-287,-303,-256,-198,-249},{-294,-247,-239,-201,-218,-280},{-262,-310,-293,-294,-243,-284},{-316,-310,-293,-299,-277,-210},{-262,-313,-206,-201,-294,-258},{-286,-274,-244,-221,-211,-244},{-297,-239,-224,-259,-262,-213},{-238,-218,-298,-238,-260,-225},{-256,-242,-275,-238,-243,-251}},{{-194,-208,-199,-196,-213,-266},{-197,-194,-249,-219,-254,-215},{-251,-240,-206,-268,-210,-273},{-249,-275,-210,-233,-273,-249},{-197,-201,-217,-196,-192,-199},{-216,-238,-206,-219,-275,-226},{-282,-192,-189,-243,-213,-249},{-256,-201,-210,-213,-254,-245},{-190,-254,-185,-277,-268,-266},{-261,-194,-229,-229,-213,-196}},{{-219,-240,-238,-217,-286,-261},{-213,-217,-261,-209,-194,-261},{-249,-240,-217,-267,-259,-231},{-252,-208,-247,-195,-203,-236},{-210,-247,-226,-264,-196,-229},{-273,-199,-217,-286,-273,-202},{-189,-256,-273,-248,-273,-197},{-196,-196,-240,-281,-254,-261},{-277,-266,-268,-274,-196,-251},{-229,-219,-266,-200,-276,-216}},{{-255,-241,-277,-270,-332,-311},{-249,-275,-242,-232,-287,-302},{-239,-233,-223,-259,-264,-279},{-219,-223,-229,-278,-306,-282},{-239,-300,-247,-319,-320,-328},{-282,-220,-298,-306,-273,-308},{-270,-293,-239,-306,-253,-325},{-242,-254,-301,-295,-295,-340},{-249,-264,-245,-221,-301,-297},{-217,-236,-306,-303,-253,-320}},{{-326,-327,-276,-260,-275,-304},{-266,-245,-273,-285,-298,-297},{-323,-342,-251,-352,-373,-314},{-287,-285,-248,-320,-275,-330},{-334,-258,-291,-288,-343,-346},{-352,-345,-313,-374,-321,-337},{-352,-364,-341,-269,-275,-350},{-317,-291,-285,-358,-366,-383},{-278,-264,-353,-323,-324,-314},{-305,-294,-264,-365,-373,-327}},{{-349,-334,-337,-413,-315,-336},{-376,-368,-330,-290,-406,-298},{-276,-286,-330,-284,-374,-382},{-306,-396,-279,-287,-308,-392},{-282,-379,-413,-294,-329,-340},{-326,-409,-299,-392,-301,-340},{-316,-276,-402,-420,-290,-354},{-386,-317,-378,-304,-326,-294},{-309,-314,-296,-308,-287,-350},{-286,-331,-347,-410,-413,-332}}}}; // 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,8,25,12,9,25,13,9,25,13,9,25,13,9,26,13,9,26,13,9,26,13,9,26,13,9,26,13,9,26,13,9,26,14,9,27,13,9,26,13,9,26,14,9,26,13,9,27,13,9,26,13,9,26,13,9,26,13,9,26,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}}; // 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,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,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,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,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,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,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,2,8,14,20,26,32,38,44,50,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,2,6,10,14,18,22,26,30,34,38,42,46,50,0,6,12,18,24,30,36,42,48,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,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,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,2,6,10,14,18,22,26,30,34,38,42,46,50,1,7,13,19,25,31,37,43,49,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,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,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,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,52,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,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,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,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,1,5,9,13,17,21,25,29,33,37,41,45,49,0,6,12,18,24,30,36,42,48,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,1,5,9,13,17,21,25,29,33,37,41,45,49,0,6,12,18,24,30,36,42,48}; // set of start times of each shipment 
int SHets[SPN]={5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,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,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,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,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,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,3,7,11,15,19,23,27,31,35,39,43,47,51,3,9,15,21,27,33,39,45,51,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,4,8,12,16,20,24,28,32,36,40,44,48,52,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,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,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,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,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,3,7,11,15,19,23,27,31,35,39,43,47,51,2,8,14,20,26,32,38,44,50,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,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,3,7,11,15,19,23,27,31,35,39,43,47,51,3,9,15,21,27,33,39,45,51,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,3,7,11,15,19,23,27,31,35,39,43,47,51,2,8,14,20,26,32,38,44,50,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,2,6,10,14,18,22,26,30,34,38,42,46,50,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,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,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,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,4,8,12,16,20,24,28,32,36,40,44,48,52,3,9,15,21,27,33,39,45,51,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,4,8,12,16,20,24,28,32,36,40,44,48,52,3,9,15,21,27,33,39,45,51}; // set of end times of each shipment 
