int Dev = 40;// Deviation
extern const int CNN = 4;// 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]={{{{11066,0,0,0,0,0},{10485,0,0,0,0,0},{11462,0,0,0,0,0},{11570,0,0,0,0,0},{11345,0,0,0,0,0},{10808,0,0,0,0,0},{11037,0,0,0,0,0},{10674,0,0,0,0,0},{11296,0,0,0,0,0},{10823,0,0,0,0,0}},{{10808,0,0,0,0,0},{10954,0,0,0,0,0},{10753,0,0,0,0,0},{10886,0,0,0,0,0},{11869,0,0,0,0,0},{10430,0,0,0,0,0},{10957,0,0,0,0,0},{11403,0,0,0,0,0},{10960,0,0,0,0,0},{12075,0,0,0,0,0}},{{11095,0,0,0,0,0},{11097,0,0,0,0,0},{10966,0,0,0,0,0},{11035,0,0,0,0,0},{11087,0,0,0,0,0},{10748,0,0,0,0,0},{10932,0,0,0,0,0},{10902,0,0,0,0,0},{10772,0,0,0,0,0},{10662,0,0,0,0,0}},{{10737,0,0,0,0,0},{10956,0,0,0,0,0},{10444,0,0,0,0,0},{10759,0,0,0,0,0},{11215,0,0,0,0,0},{11215,0,0,0,0,0},{11003,0,0,0,0,0},{11058,0,0,0,0,0},{10823,0,0,0,0,0},{10834,0,0,0,0,0}},{{11381,0,0,0,0,0},{10625,0,0,0,0,0},{10842,0,0,0,0,0},{10784,0,0,0,0,0},{11212,0,0,0,0,0},{11730,0,0,0,0,0},{10750,0,0,0,0,0},{11258,0,0,0,0,0},{10797,0,0,0,0,0},{11225,0,0,0,0,0}},{{10903,0,0,0,0,0},{11059,0,0,0,0,0},{11306,0,0,0,0,0},{10593,0,0,0,0,0},{10256,0,0,0,0,0},{11427,0,0,0,0,0},{11052,0,0,0,0,0},{11109,0,0,0,0,0},{11147,0,0,0,0,0},{10789,0,0,0,0,0}},{{11451,0,0,0,0,0},{10867,0,0,0,0,0},{10810,0,0,0,0,0},{10254,0,0,0,0,0},{10314,0,0,0,0,0},{11019,0,0,0,0,0},{11038,0,0,0,0,0},{11096,0,0,0,0,0},{11200,0,0,0,0,0},{11600,0,0,0,0,0}},{{10506,0,0,0,0,0},{10443,0,0,0,0,0},{11059,0,0,0,0,0},{11110,0,0,0,0,0},{11345,0,0,0,0,0},{10792,0,0,0,0,0},{10690,0,0,0,0,0},{11263,0,0,0,0,0},{11005,0,0,0,0,0},{11104,0,0,0,0,0}},{{10868,0,0,0,0,0},{11320,0,0,0,0,0},{11155,0,0,0,0,0},{11429,0,0,0,0,0},{10851,0,0,0,0,0},{11151,0,0,0,0,0},{11316,0,0,0,0,0},{10685,0,0,0,0,0},{11074,0,0,0,0,0},{11457,0,0,0,0,0}}},{{{-148,-293,-193,-206,-271,-302},{-208,-184,-246,-309,-237,-188},{-251,-208,-280,-267,-213,-246},{-300,-258,-293,-267,-206,-244},{-139,-311,-211,-208,-172,-311},{-184,-134,-202,-276,-206,-155},{-251,-249,-177,-150,-244,-139},{-264,-246,-186,-287,-172,-134},{-157,-220,-314,-244,-175,-139},{-226,-172,-293,-143,-307,-242}},{{-287,-134,-267,-307,-273,-197},{-220,-186,-211,-314,-166,-231},{-175,-166,-179,-148,-215,-166},{-220,-262,-228,-197,-287,-166},{-231,-222,-280,-296,-228,-152},{-148,-170,-195,-159,-240,-215},{-296,-199,-184,-237,-211,-262},{-197,-289,-262,-271,-159,-237},{-226,-228,-228,-211,-233,-199},{-300,-161,-296,-195,-157,-305}},{{-273,-202,-220,-134,-197,-224},{-215,-231,-148,-143,-300,-237},{-175,-141,-244,-195,-193,-282},{-260,-206,-314,-267,-240,-284},{-273,-155,-134,-224,-177,-208},{-267,-159,-143,-296,-276,-166},{-309,-276,-159,-282,-305,-255},{-287,-161,-307,-148,-161,-134},{-226,-242,-217,-186,-260,-170},{-137,-190,-206,-305,-184,-139}},{{-195,-202,-143,-240,-269,-168},{-311,-150,-208,-296,-139,-267},{-134,-271,-213,-260,-260,-249},{-240,-195,-179,-146,-134,-170},{-217,-172,-231,-213,-264,-190},{-166,-226,-179,-311,-222,-141},{-157,-199,-255,-164,-190,-181},{-220,-305,-302,-197,-305,-298},{-249,-164,-213,-172,-215,-195},{-228,-298,-231,-311,-146,-222}},{{-224,-244,-242,-276,-199,-287},{-271,-190,-240,-296,-152,-168},{-206,-150,-253,-152,-298,-177},{-168,-298,-220,-157,-287,-300},{-302,-307,-177,-152,-164,-284},{-264,-246,-170,-242,-181,-220},{-280,-202,-155,-177,-264,-300},{-251,-175,-181,-175,-309,-177},{-134,-224,-287,-143,-282,-260},{-204,-273,-226,-271,-255,-177}},{{-246,-258,-244,-215,-244,-197},{-222,-237,-228,-150,-302,-235},{-289,-172,-206,-159,-197,-226},{-244,-226,-253,-202,-278,-302},{-184,-181,-139,-168,-302,-199},{-217,-235,-287,-276,-199,-168},{-302,-137,-235,-206,-188,-202},{-231,-208,-215,-206,-197,-206},{-157,-190,-267,-255,-172,-195},{-231,-164,-195,-240,-213,-267}},{{-166,-220,-300,-157,-166,-152},{-186,-284,-188,-184,-224,-141},{-195,-271,-172,-150,-280,-226},{-148,-139,-282,-269,-211,-246},{-291,-213,-222,-253,-289,-170},{-289,-188,-139,-155,-302,-181},{-184,-300,-282,-157,-264,-175},{-246,-260,-202,-282,-278,-228},{-271,-186,-168,-188,-311,-300},{-242,-166,-193,-311,-146,-197}},{{-186,-271,-141,-175,-172,-228},{-143,-134,-195,-242,-309,-193},{-276,-240,-242,-235,-226,-309},{-284,-287,-166,-175,-289,-296},{-255,-284,-300,-193,-168,-215},{-282,-240,-215,-235,-175,-220},{-302,-278,-258,-179,-269,-202},{-251,-172,-213,-222,-139,-282},{-166,-298,-300,-222,-141,-237},{-172,-195,-143,-152,-172,-233}},{{-184,-249,-143,-150,-267,-233},{-235,-302,-224,-228,-155,-282},{-311,-208,-231,-193,-177,-289},{-267,-150,-282,-278,-197,-284},{-226,-273,-231,-152,-215,-226},{-264,-258,-170,-296,-141,-269},{-186,-215,-213,-157,-152,-282},{-296,-213,-197,-249,-202,-305},{-284,-179,-253,-258,-291,-298},{-300,-311,-309,-134,-249,-237}}},{{{-155,-207,-271,-205,-205,-186},{-245,-231,-148,-164,-145,-324},{-195,-257,-288,-288,-271,-178},{-190,-186,-314,-202,-319,-317},{-176,-143,-326,-305,-157,-305},{-174,-331,-186,-148,-250,-217},{-328,-207,-188,-321,-207,-278},{-331,-276,-257,-276,-164,-243},{-312,-324,-217,-276,-248,-226},{-190,-269,-188,-286,-159,-150}},{{-245,-281,-321,-262,-190,-212},{-290,-155,-188,-228,-264,-321},{-302,-274,-319,-228,-317,-183},{-283,-245,-250,-181,-233,-317},{-257,-238,-259,-221,-269,-328},{-302,-200,-176,-321,-162,-245},{-217,-293,-248,-276,-155,-226},{-226,-281,-188,-300,-259,-236},{-231,-328,-259,-245,-271,-155},{-169,-333,-243,-257,-176,-328}},{{-171,-236,-309,-298,-295,-233},{-331,-174,-278,-183,-190,-155},{-152,-233,-217,-219,-181,-183},{-214,-333,-155,-228,-164,-167},{-221,-293,-145,-274,-326,-164},{-307,-290,-155,-176,-198,-302},{-188,-324,-186,-145,-276,-176},{-169,-267,-231,-298,-212,-238},{-321,-148,-148,-195,-309,-207},{-195,-202,-267,-298,-159,-200}},{{-278,-324,-198,-252,-183,-333},{-281,-183,-326,-328,-171,-286},{-212,-193,-167,-317,-212,-248},{-143,-333,-240,-250,-152,-224},{-298,-243,-243,-302,-209,-159},{-183,-186,-298,-255,-248,-207},{-183,-252,-188,-314,-150,-298},{-195,-312,-217,-190,-274,-312},{-195,-236,-162,-169,-257,-214},{-200,-262,-312,-319,-231,-312}},{{-314,-305,-228,-190,-226,-207},{-205,-190,-209,-264,-209,-148},{-200,-331,-157,-209,-274,-176},{-331,-176,-267,-148,-183,-202},{-231,-143,-159,-169,-236,-302},{-252,-264,-238,-226,-252,-324},{-295,-209,-212,-248,-209,-224},{-307,-195,-200,-290,-226,-200},{-271,-202,-305,-264,-200,-155},{-276,-157,-276,-267,-331,-238}},{{-257,-228,-219,-159,-145,-309},{-276,-159,-155,-324,-164,-281},{-288,-326,-333,-176,-159,-328},{-169,-333,-145,-221,-271,-236},{-217,-250,-305,-214,-186,-169},{-145,-171,-212,-193,-219,-207},{-171,-190,-305,-302,-145,-202},{-274,-145,-281,-188,-276,-319},{-259,-312,-245,-264,-195,-212},{-250,-231,-286,-224,-281,-233}},{{-226,-174,-312,-278,-255,-305},{-157,-226,-271,-250,-257,-202},{-217,-169,-174,-319,-233,-157},{-257,-276,-226,-224,-145,-164},{-219,-202,-162,-295,-178,-319},{-233,-178,-319,-290,-302,-212},{-302,-312,-167,-150,-150,-150},{-152,-188,-252,-319,-212,-281},{-250,-195,-319,-202,-255,-252},{-217,-209,-314,-176,-243,-207}},{{-288,-245,-188,-212,-233,-219},{-286,-271,-281,-148,-190,-195},{-252,-162,-159,-288,-155,-198},{-214,-298,-309,-145,-236,-224},{-302,-293,-245,-169,-155,-162},{-186,-152,-169,-186,-333,-164},{-205,-190,-262,-264,-319,-231},{-262,-295,-314,-209,-221,-243},{-148,-152,-148,-324,-274,-312},{-193,-300,-228,-293,-186,-248}},{{-226,-176,-207,-150,-276,-188},{-221,-148,-257,-300,-314,-150},{-307,-214,-214,-307,-307,-321},{-259,-319,-174,-264,-214,-293},{-248,-328,-283,-255,-274,-283},{-240,-324,-186,-169,-143,-231},{-290,-250,-250,-200,-331,-159},{-295,-281,-217,-169,-259,-288},{-183,-171,-257,-224,-231,-217},{-262,-183,-328,-195,-248,-274}}},{{{-295,-207,-210,-240,-292,-287},{-251,-295,-289,-197,-257,-289},{-248,-254,-243,-243,-292,-276},{-268,-164,-257,-265,-355,-199},{-175,-218,-172,-238,-328,-339},{-317,-262,-308,-308,-298,-183},{-319,-254,-251,-265,-164,-278},{-328,-349,-358,-268,-284,-330},{-273,-251,-268,-273,-336,-344},{-246,-374,-319,-257,-167,-248}},{{-224,-328,-257,-268,-363,-328},{-207,-358,-199,-167,-235,-325},{-229,-281,-180,-273,-188,-257},{-265,-333,-243,-205,-227,-169},{-238,-314,-221,-251,-379,-298},{-177,-298,-251,-328,-213,-229},{-303,-276,-207,-191,-374,-205},{-235,-295,-369,-303,-366,-238},{-194,-210,-202,-336,-167,-298},{-336,-328,-336,-317,-355,-243}},{{-262,-224,-336,-175,-199,-308},{-366,-311,-183,-194,-319,-164},{-308,-191,-175,-227,-259,-177},{-355,-218,-278,-287,-175,-369},{-377,-276,-352,-186,-369,-246},{-213,-177,-349,-164,-224,-379},{-265,-199,-281,-251,-207,-339},{-349,-197,-194,-366,-287,-292},{-216,-278,-344,-268,-167,-205},{-224,-218,-227,-355,-257,-273}},{{-330,-292,-259,-246,-358,-224},{-248,-366,-317,-248,-191,-270},{-210,-379,-281,-172,-221,-205},{-251,-379,-262,-374,-254,-377},{-229,-295,-167,-333,-349,-339},{-349,-344,-317,-319,-355,-349},{-227,-191,-314,-183,-278,-382},{-183,-319,-322,-191,-358,-180},{-371,-246,-352,-306,-202,-333},{-382,-300,-355,-314,-221,-183}},{{-308,-235,-336,-358,-210,-322},{-164,-360,-374,-240,-232,-218},{-259,-339,-229,-243,-221,-308},{-183,-167,-197,-205,-213,-175},{-232,-325,-322,-314,-347,-355},{-371,-273,-339,-251,-270,-349},{-341,-377,-186,-243,-191,-344},{-221,-276,-180,-251,-265,-369},{-333,-379,-251,-330,-281,-292},{-183,-284,-374,-186,-311,-360}},{{-188,-238,-344,-317,-205,-169},{-180,-251,-369,-243,-366,-278},{-366,-330,-369,-369,-199,-281},{-382,-265,-180,-311,-257,-308},{-188,-191,-336,-251,-188,-358},{-377,-322,-374,-191,-246,-229},{-314,-268,-382,-224,-177,-216},{-259,-207,-374,-210,-246,-265},{-186,-382,-322,-287,-172,-382},{-377,-278,-229,-262,-333,-262}},{{-257,-319,-268,-382,-251,-344},{-169,-227,-273,-306,-248,-336},{-238,-199,-319,-213,-210,-352},{-207,-257,-259,-172,-218,-205},{-188,-254,-287,-227,-169,-207},{-276,-336,-344,-216,-177,-366},{-336,-180,-265,-371,-194,-311},{-221,-243,-268,-251,-276,-355},{-169,-216,-328,-232,-363,-224},{-273,-276,-369,-284,-333,-278}},{{-306,-377,-265,-210,-227,-224},{-202,-167,-308,-207,-308,-210},{-281,-199,-232,-210,-292,-270},{-227,-191,-205,-311,-216,-298},{-363,-216,-379,-218,-355,-319},{-322,-270,-172,-273,-248,-328},{-341,-281,-213,-202,-292,-169},{-259,-194,-352,-289,-210,-341},{-371,-248,-330,-287,-352,-229},{-333,-308,-197,-284,-377,-265}},{{-180,-303,-377,-360,-319,-289},{-281,-186,-308,-259,-265,-298},{-194,-300,-164,-194,-347,-360},{-281,-363,-177,-379,-235,-227},{-221,-180,-257,-328,-379,-227},{-238,-243,-306,-213,-232,-319},{-295,-259,-317,-349,-336,-341},{-229,-328,-186,-273,-164,-227},{-194,-169,-238,-221,-322,-235},{-254,-311,-248,-221,-251,-281}}},{{{-162,-132,-136,-145,-108,-183},{-123,-99,-172,-209,-151,-132},{-197,-105,-116,-197,-95,-177},{-95,-149,-176,-163,-139,-146},{-139,-209,-149,-194,-183,-208},{-120,-99,-106,-145,-105,-146},{-120,-119,-120,-111,-203,-197},{-120,-160,-182,-100,-149,-143},{-188,-131,-209,-177,-134,-205},{-106,-143,-92,-129,-126,-183}},{{-126,-125,-137,-116,-159,-123},{-109,-139,-156,-211,-102,-146},{-199,-203,-166,-216,-94,-125},{-114,-154,-165,-129,-137,-176},{-103,-165,-128,-216,-148,-200},{-156,-160,-105,-151,-99,-152},{-126,-156,-200,-111,-148,-197},{-189,-99,-202,-152,-159,-199},{-160,-117,-152,-205,-186,-100},{-145,-106,-119,-156,-162,-216}},{{-125,-216,-186,-151,-205,-205},{-126,-148,-102,-209,-125,-151},{-208,-132,-140,-94,-151,-157},{-182,-211,-92,-145,-139,-165},{-100,-120,-183,-197,-95,-213},{-123,-102,-213,-95,-126,-160},{-192,-177,-189,-157,-189,-151},{-143,-119,-182,-203,-162,-126},{-136,-174,-95,-209,-151,-156},{-160,-169,-114,-203,-151,-111}},{{-206,-112,-94,-112,-100,-203},{-160,-209,-103,-140,-162,-211},{-214,-128,-143,-100,-151,-160},{-177,-172,-157,-216,-188,-105},{-188,-165,-143,-162,-209,-148},{-196,-109,-162,-177,-111,-160},{-112,-183,-122,-216,-154,-100},{-149,-156,-122,-106,-106,-168},{-152,-102,-194,-111,-182,-140},{-97,-100,-112,-123,-143,-126}},{{-205,-94,-208,-189,-180,-97},{-146,-183,-176,-146,-149,-99},{-216,-143,-151,-185,-159,-126},{-166,-182,-186,-131,-112,-105},{-171,-154,-203,-197,-92,-106},{-157,-162,-132,-177,-156,-137},{-102,-209,-152,-119,-179,-156},{-197,-182,-185,-122,-148,-111},{-192,-126,-186,-117,-120,-129},{-157,-132,-102,-92,-157,-106}},{{-159,-100,-179,-122,-102,-136},{-102,-188,-196,-189,-174,-163},{-171,-163,-119,-125,-185,-216},{-146,-131,-109,-145,-106,-137},{-123,-131,-103,-132,-102,-149},{-185,-159,-183,-179,-125,-174},{-183,-206,-123,-199,-114,-131},{-95,-117,-160,-214,-117,-186},{-196,-163,-132,-146,-183,-188},{-216,-151,-177,-216,-171,-125}},{{-171,-194,-189,-182,-168,-108},{-152,-203,-146,-123,-103,-99},{-100,-209,-213,-142,-186,-126},{-103,-148,-131,-194,-176,-139},{-109,-200,-99,-163,-131,-165},{-177,-123,-202,-132,-137,-162},{-126,-137,-145,-156,-111,-216},{-137,-176,-129,-185,-154,-192},{-165,-174,-120,-148,-157,-208},{-205,-194,-152,-205,-199,-182}},{{-206,-171,-208,-139,-160,-137},{-165,-132,-131,-156,-112,-142},{-214,-157,-145,-179,-154,-132},{-129,-165,-200,-134,-156,-102},{-165,-111,-188,-191,-105,-196},{-216,-132,-168,-132,-172,-191},{-123,-95,-171,-128,-216,-191},{-186,-99,-159,-119,-134,-197},{-186,-148,-134,-137,-120,-179},{-120,-145,-114,-202,-209,-168}},{{-157,-191,-192,-92,-202,-192},{-169,-142,-131,-182,-199,-125},{-163,-114,-165,-216,-146,-109},{-203,-177,-174,-136,-129,-92},{-95,-108,-159,-111,-194,-100},{-117,-149,-183,-205,-214,-148},{-134,-179,-152,-216,-99,-213},{-202,-99,-145,-157,-140,-122},{-162,-199,-105,-211,-156,-97},{-199,-125,-129,-128,-134,-156}}},{{{-244,-144,-255,-248,-126,-213},{-164,-144,-164,-226,-213,-109},{-238,-206,-229,-158,-228,-157},{-158,-133,-116,-169,-155,-213},{-217,-218,-193,-218,-217,-231},{-177,-118,-255,-251,-184,-175},{-198,-138,-178,-120,-213,-237},{-142,-186,-138,-126,-162,-222},{-160,-122,-118,-206,-249,-233},{-146,-193,-253,-189,-237,-222}},{{-164,-109,-162,-126,-233,-218},{-204,-124,-195,-197,-207,-111},{-206,-180,-166,-209,-158,-213},{-204,-248,-198,-162,-111,-138},{-242,-242,-171,-248,-111,-115},{-175,-111,-129,-166,-122,-135},{-173,-120,-122,-224,-129,-177},{-186,-178,-155,-160,-222,-127},{-235,-122,-124,-222,-228,-175},{-209,-147,-206,-235,-218,-233}},{{-124,-187,-228,-153,-157,-242},{-171,-197,-242,-124,-253,-206},{-200,-164,-244,-228,-113,-124},{-113,-113,-175,-166,-186,-146},{-182,-157,-238,-202,-217,-169},{-222,-217,-126,-175,-198,-136},{-116,-235,-160,-124,-157,-126},{-242,-202,-140,-231,-147,-182},{-220,-138,-146,-238,-226,-162},{-142,-189,-173,-122,-164,-195}},{{-131,-127,-220,-133,-111,-244},{-127,-213,-115,-155,-193,-187},{-147,-182,-220,-151,-228,-218},{-127,-164,-226,-153,-189,-178},{-228,-138,-228,-111,-129,-240},{-222,-217,-138,-238,-222,-251},{-204,-235,-144,-118,-151,-235},{-146,-160,-178,-207,-149,-200},{-229,-238,-255,-253,-211,-186},{-138,-202,-122,-204,-249,-142}},{{-146,-200,-186,-191,-171,-142},{-149,-111,-162,-189,-222,-198},{-131,-242,-177,-109,-144,-211},{-224,-240,-189,-111,-215,-249},{-231,-251,-136,-198,-127,-191},{-242,-153,-140,-160,-175,-184},{-229,-186,-173,-160,-228,-115},{-177,-133,-213,-153,-237,-249},{-200,-175,-178,-158,-142,-147},{-198,-244,-115,-213,-164,-111}},{{-226,-191,-197,-138,-166,-255},{-229,-226,-206,-226,-191,-133},{-111,-118,-160,-158,-186,-206},{-124,-182,-253,-116,-171,-129},{-222,-235,-222,-140,-202,-207},{-115,-235,-248,-231,-169,-237},{-113,-162,-133,-242,-144,-138},{-193,-155,-131,-109,-157,-244},{-109,-193,-138,-195,-222,-197},{-173,-178,-173,-175,-251,-144}},{{-136,-251,-133,-149,-124,-131},{-255,-115,-111,-204,-233,-237},{-109,-238,-251,-178,-224,-184},{-166,-195,-146,-115,-235,-198},{-171,-211,-140,-138,-226,-197},{-135,-173,-131,-169,-200,-195},{-207,-193,-255,-235,-202,-111},{-149,-149,-118,-113,-167,-136},{-164,-197,-146,-169,-171,-233},{-173,-162,-149,-109,-167,-122}},{{-244,-193,-157,-180,-175,-131},{-140,-113,-146,-244,-207,-209},{-218,-186,-175,-158,-248,-162},{-186,-140,-222,-218,-253,-248},{-155,-164,-133,-111,-255,-153},{-242,-233,-202,-171,-155,-166},{-191,-144,-124,-215,-155,-142},{-229,-200,-248,-126,-253,-109},{-178,-146,-182,-184,-111,-198},{-127,-242,-166,-147,-202,-169}},{{-116,-142,-138,-115,-231,-118},{-231,-235,-211,-209,-118,-226},{-129,-186,-218,-246,-248,-126},{-218,-135,-222,-126,-175,-244},{-158,-149,-246,-136,-228,-113},{-206,-242,-177,-113,-233,-173},{-146,-138,-122,-155,-240,-120},{-238,-118,-166,-211,-195,-178},{-235,-215,-116,-251,-251,-135},{-113,-244,-146,-118,-253,-118}}},{{{-279,-194,-243,-314,-240,-314},{-154,-152,-247,-287,-301,-331},{-174,-225,-262,-250,-267,-343},{-282,-272,-343,-343,-338,-243},{-333,-328,-296,-169,-314,-272},{-240,-213,-336,-331,-301,-206},{-198,-270,-225,-326,-284,-247},{-174,-238,-169,-213,-201,-257},{-299,-157,-184,-343,-321,-152},{-206,-189,-336,-252,-240,-154}},{{-176,-326,-211,-196,-343,-301},{-343,-296,-294,-238,-235,-230},{-245,-341,-230,-265,-184,-152},{-262,-233,-321,-262,-277,-181},{-240,-277,-196,-260,-326,-201},{-328,-196,-235,-328,-167,-257},{-272,-218,-225,-220,-287,-336},{-198,-230,-316,-196,-223,-292},{-240,-162,-223,-328,-314,-213},{-299,-240,-252,-326,-252,-328}},{{-206,-216,-179,-164,-299,-228},{-294,-201,-154,-343,-169,-257},{-159,-318,-284,-260,-343,-338},{-211,-257,-152,-250,-294,-223},{-152,-198,-255,-176,-277,-331},{-250,-201,-294,-323,-267,-338},{-162,-228,-186,-235,-176,-220},{-277,-272,-181,-225,-314,-189},{-149,-213,-316,-206,-216,-282},{-238,-323,-189,-343,-250,-282}},{{-284,-341,-201,-189,-174,-309},{-159,-159,-331,-211,-208,-277},{-186,-265,-162,-172,-216,-211},{-326,-265,-154,-213,-176,-245},{-225,-174,-292,-338,-318,-338},{-289,-270,-149,-198,-338,-191},{-181,-252,-149,-296,-338,-306},{-277,-159,-243,-296,-326,-176},{-314,-240,-152,-240,-149,-149},{-159,-228,-152,-198,-218,-167}},{{-326,-172,-304,-282,-218,-206},{-279,-157,-201,-186,-189,-235},{-169,-211,-149,-289,-311,-301},{-220,-216,-316,-326,-245,-240},{-279,-228,-220,-159,-341,-282},{-164,-338,-296,-176,-304,-252},{-255,-274,-181,-247,-328,-225},{-220,-196,-287,-299,-172,-265},{-157,-189,-328,-289,-203,-267},{-149,-179,-216,-304,-247,-260}},{{-287,-194,-218,-262,-309,-181},{-172,-189,-174,-233,-186,-296},{-191,-326,-296,-301,-186,-218},{-191,-196,-252,-176,-333,-228},{-208,-262,-194,-336,-172,-243},{-240,-311,-287,-196,-328,-208},{-240,-274,-206,-296,-289,-196},{-311,-243,-235,-279,-314,-250},{-309,-294,-218,-203,-294,-245},{-162,-223,-272,-216,-191,-265}},{{-267,-159,-311,-167,-267,-225},{-164,-279,-272,-336,-211,-245},{-328,-296,-220,-279,-181,-223},{-147,-191,-201,-228,-301,-206},{-292,-250,-164,-174,-179,-181},{-279,-341,-159,-186,-174,-225},{-218,-267,-321,-152,-220,-316},{-164,-159,-157,-333,-292,-255},{-282,-164,-238,-159,-245,-321},{-323,-277,-314,-218,-238,-149}},{{-279,-191,-228,-147,-196,-252},{-328,-301,-289,-167,-304,-216},{-338,-152,-304,-159,-189,-328},{-299,-316,-220,-272,-167,-147},{-343,-343,-272,-257,-265,-147},{-223,-260,-316,-154,-196,-194},{-196,-252,-152,-172,-154,-331},{-223,-225,-314,-277,-164,-186},{-341,-213,-338,-247,-326,-191},{-206,-235,-260,-203,-233,-223}},{{-211,-294,-196,-262,-245,-331},{-255,-333,-149,-247,-296,-172},{-152,-265,-159,-211,-196,-208},{-211,-328,-162,-189,-267,-306},{-235,-216,-279,-149,-272,-245},{-287,-201,-149,-164,-225,-343},{-287,-201,-311,-223,-252,-184},{-164,-223,-289,-220,-323,-267},{-194,-186,-289,-333,-184,-196},{-235,-174,-206,-213,-318,-314}}},{{{-259,-303,-286,-296,-270,-192},{-159,-201,-203,-307,-164,-296},{-199,-266,-323,-176,-245,-307},{-187,-233,-252,-219,-323,-224},{-310,-282,-286,-252,-219,-139},{-245,-159,-146,-282,-194,-300},{-208,-233,-307,-231,-152,-199},{-148,-224,-303,-231,-303,-157},{-224,-323,-282,-280,-296,-215},{-226,-293,-307,-148,-217,-247}},{{-176,-169,-273,-240,-210,-219},{-263,-215,-226,-182,-314,-303},{-164,-182,-319,-305,-155,-185},{-319,-148,-203,-143,-249,-157},{-298,-316,-219,-146,-303,-231},{-289,-171,-291,-273,-296,-157},{-243,-247,-316,-187,-203,-196},{-146,-146,-201,-194,-319,-159},{-185,-266,-305,-139,-310,-187},{-189,-312,-261,-316,-169,-275}},{{-266,-289,-201,-226,-187,-139},{-233,-316,-219,-305,-162,-275},{-319,-210,-247,-277,-296,-169},{-148,-166,-222,-303,-224,-157},{-219,-199,-261,-259,-166,-201},{-187,-245,-266,-310,-171,-275},{-291,-263,-196,-192,-263,-312},{-173,-187,-300,-323,-182,-252},{-141,-192,-159,-305,-226,-249},{-206,-266,-196,-282,-298,-256}},{{-180,-270,-293,-176,-203,-206},{-143,-187,-316,-164,-162,-196},{-171,-323,-139,-226,-252,-229},{-143,-176,-148,-243,-146,-323},{-150,-263,-194,-173,-289,-300},{-233,-312,-206,-143,-293,-210},{-238,-229,-245,-189,-319,-208},{-222,-213,-303,-182,-182,-293},{-256,-300,-199,-305,-273,-143},{-213,-173,-141,-169,-268,-314}},{{-169,-268,-261,-187,-277,-316},{-319,-263,-254,-247,-150,-201},{-233,-233,-273,-319,-275,-157},{-245,-270,-206,-215,-148,-210},{-268,-300,-282,-155,-261,-169},{-303,-312,-305,-185,-164,-286},{-201,-256,-157,-252,-238,-187},{-261,-201,-263,-296,-284,-263},{-307,-219,-201,-217,-254,-206},{-164,-300,-217,-240,-139,-270}},{{-286,-152,-284,-284,-159,-314},{-243,-187,-240,-224,-252,-203},{-268,-256,-169,-189,-164,-243},{-249,-182,-150,-166,-316,-143},{-187,-157,-155,-192,-180,-217},{-162,-307,-236,-187,-310,-270},{-152,-305,-243,-296,-270,-298},{-270,-150,-282,-321,-213,-240},{-321,-245,-182,-206,-233,-146},{-146,-159,-166,-300,-312,-164}},{{-268,-282,-249,-286,-286,-319},{-298,-171,-243,-261,-229,-217},{-173,-178,-261,-203,-217,-233},{-159,-312,-229,-316,-185,-261},{-162,-312,-159,-296,-249,-245},{-268,-146,-303,-215,-282,-303},{-252,-303,-208,-275,-148,-293},{-256,-252,-164,-282,-243,-247},{-312,-210,-208,-319,-146,-233},{-284,-173,-319,-266,-261,-192}},{{-300,-213,-247,-305,-162,-166},{-192,-187,-261,-286,-182,-187},{-226,-284,-169,-210,-164,-310},{-231,-249,-238,-319,-303,-141},{-194,-319,-213,-280,-189,-238},{-178,-189,-148,-238,-296,-199},{-206,-256,-273,-166,-171,-298},{-187,-176,-307,-249,-164,-282},{-155,-196,-187,-254,-249,-266},{-222,-270,-316,-273,-180,-238}},{{-282,-275,-178,-321,-259,-201},{-312,-215,-261,-310,-192,-176},{-300,-164,-238,-217,-182,-141},{-277,-307,-155,-316,-219,-148},{-224,-245,-298,-171,-254,-213},{-254,-243,-310,-245,-182,-222},{-268,-240,-210,-166,-303,-270},{-194,-249,-316,-224,-141,-189},{-286,-171,-310,-199,-219,-164},{-310,-314,-240,-178,-310,-213}}},{{{-329,-294,-291,-323,-176,-194},{-338,-297,-300,-215,-197,-223},{-235,-338,-365,-362,-218,-306},{-347,-262,-394,-212,-318,-362},{-235,-247,-270,-259,-262,-262},{-403,-200,-300,-235,-306,-391},{-326,-300,-268,-365,-268,-406},{-232,-194,-253,-382,-212,-200},{-244,-191,-318,-209,-232,-297},{-359,-212,-338,-262,-309,-273}},{{-182,-235,-215,-291,-215,-288},{-297,-270,-309,-379,-182,-212},{-270,-370,-306,-253,-368,-244},{-229,-338,-329,-368,-279,-341},{-397,-347,-323,-297,-403,-318},{-347,-347,-182,-297,-353,-226},{-179,-382,-362,-350,-303,-188},{-294,-341,-335,-412,-356,-306},{-247,-397,-312,-229,-244,-412},{-273,-312,-379,-273,-223,-409}},{{-409,-409,-226,-344,-226,-406},{-394,-259,-344,-379,-320,-297},{-268,-291,-350,-365,-353,-412},{-397,-344,-241,-323,-388,-388},{-309,-291,-291,-385,-368,-276},{-226,-306,-197,-241,-329,-188},{-268,-306,-265,-262,-341,-370},{-185,-338,-191,-356,-362,-218},{-397,-323,-285,-373,-223,-359},{-376,-191,-244,-247,-270,-276}},{{-244,-203,-265,-318,-379,-215},{-297,-220,-262,-409,-409,-285},{-403,-279,-176,-368,-179,-241},{-294,-203,-323,-282,-388,-356},{-238,-265,-341,-320,-223,-232},{-188,-400,-288,-176,-270,-203},{-338,-285,-409,-350,-338,-253},{-203,-303,-235,-297,-312,-309},{-182,-368,-250,-179,-391,-229},{-370,-306,-353,-409,-226,-185}},{{-379,-188,-226,-279,-288,-315},{-400,-329,-226,-312,-320,-297},{-373,-303,-256,-235,-223,-356},{-329,-368,-320,-403,-332,-188},{-303,-362,-253,-279,-273,-220},{-388,-256,-303,-326,-409,-256},{-185,-176,-297,-282,-176,-368},{-391,-262,-391,-300,-323,-229},{-306,-197,-191,-265,-256,-282},{-323,-303,-388,-412,-359,-315}},{{-344,-353,-176,-385,-306,-256},{-406,-300,-235,-297,-359,-220},{-312,-250,-273,-285,-391,-297},{-241,-265,-259,-323,-368,-223},{-341,-312,-318,-197,-344,-247},{-206,-335,-356,-318,-400,-262},{-315,-253,-412,-350,-385,-218},{-323,-385,-338,-326,-253,-191},{-412,-176,-309,-309,-353,-176},{-179,-279,-332,-315,-179,-223}},{{-285,-294,-353,-359,-394,-212},{-303,-226,-388,-285,-332,-297},{-335,-379,-276,-203,-206,-365},{-362,-335,-191,-238,-197,-344},{-259,-362,-220,-241,-212,-262},{-306,-188,-376,-229,-394,-206},{-294,-212,-268,-244,-335,-368},{-326,-403,-338,-291,-209,-406},{-376,-268,-256,-288,-297,-397},{-412,-409,-288,-309,-409,-306}},{{-194,-250,-303,-179,-379,-247},{-182,-347,-320,-250,-226,-332},{-376,-176,-359,-241,-394,-326},{-347,-279,-235,-412,-179,-232},{-268,-341,-270,-397,-285,-206},{-265,-256,-362,-303,-297,-368},{-268,-179,-235,-373,-397,-259},{-215,-403,-412,-376,-297,-279},{-262,-238,-265,-326,-297,-212},{-300,-379,-220,-409,-300,-347}},{{-185,-265,-341,-335,-256,-268},{-268,-391,-235,-388,-294,-235},{-362,-385,-309,-297,-318,-347},{-388,-244,-400,-182,-262,-394},{-300,-329,-203,-306,-185,-344},{-306,-397,-368,-376,-209,-268},{-303,-270,-341,-409,-373,-209},{-212,-226,-332,-197,-388,-182},{-403,-182,-406,-315,-326,-353},{-403,-362,-391,-259,-270,-288}}}}; // supply (positive for supply and negative for demand) under different scenarios 
int iniv[I]={1841,192,221,150,198,208,315,198,294}; // initial inventory 
int ubiv[I]={2104,384,442,300,396,416,630,396,588}; // 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.32,8.46,5.6,4.24,2.89,1.51,4.53,7.74}; // 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.11,7.69,5.09,3.85,2.63,1.37,4.12,7.04}}; // 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.69,9.69,9.69,8.48,8.48,8.48,7.27,7.27,7.27,6.15,6.15,6.15,5.38,5.38,5.38,4.61,4.61,4.61,4.07,4.07,4.07,3.56,3.56,3.56,3.05,3.05,3.05,3.08,3.08,3.08,2.7,2.7,2.7,2.31,2.31,2.31,2.1,2.1,2.1,1.84,1.84,1.84,1.58,1.58,1.58,1.1,1.1,1.1,0.96,0.96,0.96,0.82,0.82,0.82,3.3,3.3,3.3,2.88,2.88,2.88,2.47,2.47,2.47,5.63,5.63,5.63,4.93,4.93,4.93,4.22,4.22,4.22}; // freight rate of each bid 
int lbcap[BN]={75,75,75,1,151,151,151,226,226,75,75,75,301,151,151,151,226,226,75,75,75,301,151,151,151,226,226,75,75,75,301,151,151,151,226,226,75,75,75,301,151,151,151,226,226,75,75,75,301,151,151,151,226,226,75,75,75,301,151,151,151,226,226,75,75,75,301,151,151,151,226,226}; // capacity lower bound of each bid 
int ubcap[BN]={150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300}; // capacity upper bound of each bid 
// shipment parameters: 
int SHN[BN]={24,12,8,24,12,9,24,12,8,26,13,9,26,13,9,25,13,9,26,13,9,26,13,9,26,13,9,25,13,9,26,13,9,26,13,9,27,14,9,27,13,9,26,13,9,27,13,9,27,13,9,26,13,9,25,13,9,25,13,9,25,13,9,25,13,9,25,13,9,26,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]={1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,1,5,9,13,17,21,25,29,33,37,41,45,1,7,13,19,25,31,37,43,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,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,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,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,1,5,9,13,17,21,25,29,33,37,41,45,49,0,6,12,18,24,30,36,42,48,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,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,2,8,14,20,26,32,38,44,50,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,0,4,8,12,16,20,24,28,32,36,40,44,48,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,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,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,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,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,2,6,10,14,18,22,26,30,34,38,42,46,50,0,6,12,18,24,30,36,42,48,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,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,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,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,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,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,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,2,6,10,14,18,22,26,30,34,38,42,46,50,0,6,12,18,24,30,36,42,48,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,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,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,1,7,13,19,25,31,37,43,49}; // set of start times of each shipment 
int SHets[SPN]={6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,6,10,14,18,22,26,30,34,38,42,46,50,6,12,18,24,30,36,42,48,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,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,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,5,9,13,17,21,25,29,33,37,41,45,49,53,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,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,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,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,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,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,2,6,10,14,18,22,26,30,34,38,42,46,50,4,10,16,22,28,34,40,46,52,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,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,3,7,11,15,19,23,27,31,35,39,43,47,51,1,7,13,19,25,31,37,43,49,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,3,7,11,15,19,23,27,31,35,39,43,47,51,2,8,14,20,26,32,38,44,50,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,3,7,11,15,19,23,27,31,35,39,43,47,51,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,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,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,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,2,8,14,20,26,32,38,44,50,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,5,9,13,17,21,25,29,33,37,41,45,49,53,4,10,16,22,28,34,40,46,52,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,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,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 
