int Dev = 30;// 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 = 1135;//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]={{{{11413,0,0,0,0,0},{10894,0,0,0,0,0},{10924,0,0,0,0,0},{11386,0,0,0,0,0},{10859,0,0,0,0,0},{10882,0,0,0,0,0},{10767,0,0,0,0,0},{10799,0,0,0,0,0},{11024,0,0,0,0,0},{11308,0,0,0,0,0}},{{10879,0,0,0,0,0},{10531,0,0,0,0,0},{11234,0,0,0,0,0},{11028,0,0,0,0,0},{10861,0,0,0,0,0},{10730,0,0,0,0,0},{10657,0,0,0,0,0},{11261,0,0,0,0,0},{11482,0,0,0,0,0},{10866,0,0,0,0,0}},{{11049,0,0,0,0,0},{10773,0,0,0,0,0},{11270,0,0,0,0,0},{11037,0,0,0,0,0},{11079,0,0,0,0,0},{11421,0,0,0,0,0},{11131,0,0,0,0,0},{10560,0,0,0,0,0},{11417,0,0,0,0,0},{10971,0,0,0,0,0}},{{10947,0,0,0,0,0},{11231,0,0,0,0,0},{11202,0,0,0,0,0},{11401,0,0,0,0,0},{11357,0,0,0,0,0},{11026,0,0,0,0,0},{11138,0,0,0,0,0},{10807,0,0,0,0,0},{11508,0,0,0,0,0},{11360,0,0,0,0,0}},{{11164,0,0,0,0,0},{11088,0,0,0,0,0},{11002,0,0,0,0,0},{10918,0,0,0,0,0},{11358,0,0,0,0,0},{11151,0,0,0,0,0},{11031,0,0,0,0,0},{10877,0,0,0,0,0},{11286,0,0,0,0,0},{11533,0,0,0,0,0}},{{11238,0,0,0,0,0},{11004,0,0,0,0,0},{11168,0,0,0,0,0},{10971,0,0,0,0,0},{10890,0,0,0,0,0},{10797,0,0,0,0,0},{11200,0,0,0,0,0},{11632,0,0,0,0,0},{10892,0,0,0,0,0},{11063,0,0,0,0,0}},{{11004,0,0,0,0,0},{11037,0,0,0,0,0},{11604,0,0,0,0,0},{10950,0,0,0,0,0},{11128,0,0,0,0,0},{10557,0,0,0,0,0},{10819,0,0,0,0,0},{11158,0,0,0,0,0},{11025,0,0,0,0,0},{10919,0,0,0,0,0}},{{11305,0,0,0,0,0},{10713,0,0,0,0,0},{10880,0,0,0,0,0},{11099,0,0,0,0,0},{11248,0,0,0,0,0},{10732,0,0,0,0,0},{11502,0,0,0,0,0},{11170,0,0,0,0,0},{10972,0,0,0,0,0},{10720,0,0,0,0,0}},{{11436,0,0,0,0,0},{10520,0,0,0,0,0},{11663,0,0,0,0,0},{10746,0,0,0,0,0},{10736,0,0,0,0,0},{11409,0,0,0,0,0},{11000,0,0,0,0,0},{10637,0,0,0,0,0},{11362,0,0,0,0,0},{10778,0,0,0,0,0}}},{{{-237,-175,-264,-211,-278,-280},{-231,-202,-284,-184,-186,-181},{-253,-246,-276,-175,-188,-168},{-208,-251,-271,-161,-267,-213},{-199,-289,-195,-237,-157,-233},{-202,-164,-242,-195,-175,-235},{-253,-188,-202,-264,-237,-168},{-193,-228,-224,-186,-195,-213},{-260,-249,-251,-282,-222,-269},{-280,-240,-215,-276,-213,-222}},{{-233,-260,-249,-240,-287,-280},{-249,-188,-179,-271,-220,-179},{-206,-260,-220,-181,-222,-233},{-184,-164,-211,-206,-168,-195},{-204,-282,-291,-278,-220,-184},{-282,-159,-166,-258,-202,-157},{-287,-217,-168,-186,-161,-228},{-284,-208,-231,-213,-224,-284},{-175,-190,-269,-262,-231,-240},{-260,-282,-175,-195,-262,-166}},{{-208,-215,-267,-260,-240,-170},{-157,-251,-213,-195,-282,-271},{-170,-255,-224,-157,-166,-287},{-271,-249,-278,-244,-233,-175},{-235,-208,-184,-235,-195,-246},{-276,-289,-188,-208,-242,-159},{-246,-237,-233,-255,-235,-222},{-217,-157,-157,-208,-249,-199},{-280,-233,-175,-258,-190,-228},{-199,-267,-164,-240,-213,-208}},{{-255,-222,-157,-255,-258,-161},{-251,-177,-262,-164,-237,-220},{-273,-177,-235,-204,-208,-184},{-235,-251,-260,-267,-280,-278},{-206,-186,-260,-289,-204,-291},{-273,-242,-188,-186,-287,-240},{-211,-231,-267,-202,-181,-244},{-240,-166,-224,-184,-172,-228},{-253,-282,-244,-206,-246,-276},{-276,-222,-186,-161,-273,-271}},{{-224,-186,-224,-224,-184,-213},{-199,-278,-260,-264,-251,-215},{-246,-186,-220,-242,-233,-164},{-228,-190,-244,-215,-273,-168},{-233,-235,-246,-161,-249,-224},{-193,-240,-240,-157,-202,-220},{-246,-291,-197,-224,-278,-159},{-186,-199,-188,-197,-215,-249},{-231,-267,-251,-204,-278,-269},{-222,-289,-258,-253,-222,-237}},{{-206,-244,-244,-197,-242,-211},{-233,-253,-186,-255,-233,-255},{-287,-287,-177,-181,-222,-199},{-190,-199,-235,-190,-166,-213},{-284,-186,-195,-273,-217,-157},{-251,-215,-202,-181,-190,-188},{-193,-226,-181,-168,-175,-240},{-260,-208,-269,-249,-262,-161},{-271,-213,-164,-197,-222,-251},{-282,-215,-249,-231,-235,-186}},{{-251,-235,-199,-157,-215,-211},{-211,-204,-237,-287,-244,-222},{-287,-262,-168,-284,-253,-186},{-161,-282,-157,-186,-186,-177},{-291,-197,-242,-161,-231,-240},{-289,-213,-199,-237,-172,-188},{-193,-175,-242,-186,-240,-240},{-235,-273,-204,-258,-197,-264},{-231,-166,-220,-264,-179,-215},{-157,-276,-161,-289,-197,-157}},{{-276,-228,-235,-217,-287,-224},{-181,-184,-213,-273,-235,-253},{-197,-291,-215,-164,-231,-206},{-280,-249,-168,-159,-157,-172},{-211,-202,-262,-233,-264,-204},{-161,-166,-246,-273,-159,-251},{-280,-235,-175,-255,-202,-228},{-220,-253,-217,-289,-280,-204},{-190,-175,-181,-231,-193,-233},{-204,-235,-287,-267,-280,-206}},{{-242,-175,-215,-260,-244,-253},{-226,-197,-282,-282,-164,-204},{-287,-289,-231,-276,-199,-240},{-217,-184,-199,-175,-215,-170},{-179,-287,-267,-269,-195,-161},{-289,-206,-231,-249,-267,-157},{-175,-244,-255,-251,-177,-190},{-246,-226,-237,-179,-197,-195},{-253,-164,-206,-264,-211,-264},{-215,-235,-177,-271,-264,-233}}},{{{-300,-174,-186,-207,-193,-209},{-183,-209,-178,-290,-174,-255},{-262,-169,-276,-276,-298,-207},{-248,-169,-202,-278,-233,-290},{-245,-174,-290,-250,-276,-267},{-190,-295,-167,-167,-290,-309},{-186,-255,-243,-290,-250,-245},{-262,-167,-221,-193,-264,-248},{-202,-290,-305,-245,-195,-290},{-238,-190,-293,-224,-293,-176}},{{-269,-214,-195,-198,-169,-207},{-190,-236,-183,-248,-171,-193},{-302,-305,-259,-307,-236,-267},{-255,-264,-288,-228,-205,-259},{-295,-245,-214,-167,-226,-219},{-214,-209,-193,-181,-243,-243},{-221,-257,-190,-209,-198,-264},{-190,-224,-278,-274,-221,-309},{-293,-224,-286,-288,-298,-269},{-171,-236,-219,-290,-255,-198}},{{-283,-243,-288,-274,-217,-226},{-252,-238,-188,-300,-248,-217},{-298,-290,-186,-174,-259,-295},{-178,-274,-224,-181,-226,-169},{-288,-259,-288,-176,-274,-202},{-288,-278,-240,-295,-283,-171},{-298,-205,-283,-186,-286,-181},{-188,-174,-286,-195,-224,-214},{-274,-264,-252,-307,-269,-202},{-255,-178,-228,-233,-207,-293}},{{-248,-167,-207,-298,-205,-207},{-307,-174,-226,-252,-307,-288},{-171,-290,-252,-233,-300,-267},{-221,-183,-295,-264,-290,-193},{-264,-205,-252,-212,-305,-274},{-248,-231,-271,-200,-169,-195},{-214,-245,-290,-283,-307,-278},{-219,-281,-248,-207,-183,-193},{-231,-271,-269,-169,-300,-245},{-262,-188,-300,-205,-257,-212}},{{-298,-233,-286,-290,-169,-186},{-236,-293,-278,-167,-281,-276},{-214,-252,-181,-250,-262,-290},{-209,-245,-274,-286,-186,-252},{-252,-283,-200,-298,-307,-174},{-250,-298,-202,-305,-174,-293},{-269,-295,-190,-309,-221,-236},{-238,-286,-217,-224,-255,-183},{-190,-236,-212,-264,-276,-202},{-302,-271,-278,-190,-226,-240}},{{-202,-293,-307,-257,-209,-288},{-236,-305,-200,-238,-219,-259},{-233,-295,-228,-202,-186,-269},{-209,-302,-264,-238,-298,-248},{-228,-250,-198,-186,-288,-240},{-286,-228,-183,-167,-228,-178},{-305,-300,-207,-269,-302,-207},{-298,-302,-309,-271,-300,-250},{-252,-288,-278,-193,-171,-193},{-307,-221,-295,-224,-240,-214}},{{-205,-267,-252,-302,-298,-250},{-302,-309,-257,-167,-255,-236},{-302,-221,-276,-226,-209,-288},{-283,-307,-198,-181,-171,-271},{-190,-214,-255,-217,-243,-202},{-231,-255,-236,-167,-221,-174},{-295,-198,-174,-200,-274,-174},{-195,-228,-262,-298,-212,-224},{-267,-298,-262,-167,-188,-300},{-183,-186,-212,-252,-209,-226}},{{-174,-298,-171,-307,-238,-248},{-214,-207,-167,-283,-198,-207},{-174,-209,-181,-176,-221,-276},{-309,-278,-221,-283,-252,-202},{-262,-226,-288,-293,-283,-167},{-190,-221,-226,-183,-264,-226},{-295,-209,-240,-228,-243,-264},{-243,-200,-176,-224,-298,-243},{-178,-300,-288,-274,-248,-309},{-293,-169,-302,-243,-176,-257}},{{-243,-295,-190,-243,-217,-305},{-236,-276,-178,-281,-188,-228},{-209,-267,-267,-298,-278,-290},{-278,-214,-212,-226,-171,-233},{-202,-188,-200,-167,-219,-305},{-262,-271,-193,-231,-188,-305},{-174,-212,-288,-245,-307,-202},{-167,-295,-171,-195,-190,-181},{-195,-198,-257,-181,-188,-238},{-188,-290,-181,-271,-207,-252}}},{{{-248,-218,-328,-347,-213,-229},{-295,-238,-202,-238,-344,-319},{-251,-207,-194,-308,-246,-227},{-191,-317,-347,-210,-284,-300},{-268,-221,-306,-251,-298,-311},{-289,-221,-344,-295,-194,-319},{-207,-306,-194,-221,-317,-194},{-227,-202,-281,-221,-216,-265},{-232,-248,-300,-339,-300,-330},{-259,-229,-306,-262,-210,-295}},{{-322,-292,-317,-221,-355,-224},{-246,-289,-238,-240,-281,-248},{-347,-306,-218,-243,-273,-210},{-289,-202,-287,-199,-333,-243},{-287,-254,-303,-257,-248,-197},{-317,-281,-306,-347,-240,-238},{-232,-216,-262,-298,-325,-240},{-238,-287,-325,-251,-284,-205},{-216,-322,-336,-333,-336,-227},{-191,-248,-287,-238,-270,-238}},{{-355,-287,-319,-325,-199,-300},{-352,-229,-251,-243,-257,-273},{-240,-229,-303,-221,-339,-273},{-205,-284,-251,-281,-295,-210},{-248,-213,-268,-259,-300,-243},{-322,-306,-352,-336,-243,-344},{-328,-333,-308,-268,-270,-314},{-270,-270,-347,-303,-235,-349},{-308,-317,-352,-322,-243,-197},{-306,-265,-205,-213,-287,-289}},{{-205,-322,-243,-349,-207,-355},{-235,-300,-322,-259,-336,-306},{-194,-257,-308,-281,-355,-194},{-268,-262,-207,-202,-202,-349},{-246,-232,-257,-325,-229,-339},{-276,-221,-333,-287,-325,-349},{-325,-202,-207,-216,-325,-325},{-336,-199,-229,-319,-246,-278},{-273,-268,-330,-339,-328,-317},{-295,-202,-251,-232,-355,-347}},{{-347,-213,-235,-216,-325,-292},{-207,-349,-262,-213,-289,-235},{-355,-278,-259,-347,-268,-197},{-232,-238,-311,-243,-325,-251},{-319,-281,-254,-213,-213,-349},{-278,-336,-216,-325,-352,-276},{-213,-292,-311,-287,-243,-205},{-240,-240,-314,-339,-349,-202},{-349,-191,-333,-308,-325,-328},{-240,-311,-325,-270,-341,-224}},{{-319,-341,-248,-273,-278,-349},{-191,-218,-224,-238,-311,-243},{-224,-311,-199,-322,-246,-328},{-229,-308,-202,-300,-218,-336},{-246,-317,-205,-194,-238,-308},{-349,-268,-276,-265,-339,-336},{-218,-298,-289,-336,-227,-325},{-355,-232,-221,-278,-292,-352},{-191,-330,-251,-205,-199,-205},{-278,-216,-270,-216,-194,-352}},{{-289,-235,-273,-254,-259,-246},{-355,-284,-238,-330,-213,-213},{-218,-227,-328,-292,-216,-339},{-303,-292,-262,-199,-205,-347},{-341,-199,-289,-295,-213,-273},{-218,-328,-295,-251,-240,-265},{-328,-273,-328,-322,-276,-322},{-205,-319,-347,-278,-248,-349},{-270,-205,-325,-319,-355,-257},{-191,-273,-333,-273,-317,-278}},{{-202,-336,-287,-248,-248,-246},{-224,-213,-268,-248,-303,-227},{-207,-194,-328,-210,-308,-257},{-322,-197,-229,-254,-210,-224},{-213,-218,-265,-349,-303,-257},{-276,-210,-238,-259,-273,-227},{-308,-330,-308,-336,-300,-284},{-300,-210,-265,-224,-281,-207},{-259,-227,-259,-298,-199,-339},{-289,-325,-197,-344,-216,-306}},{{-240,-330,-202,-216,-336,-303},{-328,-194,-292,-273,-248,-210},{-314,-336,-295,-287,-276,-281},{-306,-235,-355,-262,-289,-347},{-303,-259,-339,-213,-243,-224},{-306,-218,-205,-270,-314,-352},{-254,-287,-330,-281,-347,-210},{-300,-349,-210,-319,-248,-238},{-278,-325,-341,-344,-328,-308},{-199,-218,-317,-221,-355,-238}}},{{{-172,-140,-166,-165,-159,-151},{-114,-119,-151,-191,-120,-185},{-200,-165,-143,-169,-120,-162},{-174,-146,-128,-179,-142,-148},{-140,-177,-148,-136,-149,-134},{-194,-142,-185,-117,-120,-156},{-165,-111,-116,-165,-131,-139},{-182,-163,-111,-112,-180,-111},{-169,-122,-136,-160,-109,-117},{-182,-177,-143,-200,-186,-189}},{{-139,-172,-183,-200,-200,-129},{-140,-112,-132,-111,-139,-174},{-200,-152,-185,-119,-154,-159},{-196,-199,-139,-172,-114,-116},{-177,-137,-116,-142,-111,-123},{-172,-200,-168,-157,-112,-120},{-177,-168,-162,-134,-196,-156},{-192,-109,-188,-199,-137,-137},{-159,-182,-120,-189,-196,-146},{-157,-191,-199,-154,-114,-122}},{{-119,-146,-165,-186,-111,-200},{-128,-122,-131,-134,-159,-114},{-156,-159,-129,-168,-168,-182},{-111,-142,-128,-123,-142,-199},{-174,-128,-154,-108,-152,-169},{-132,-131,-189,-116,-185,-143},{-149,-145,-146,-160,-194,-166},{-123,-183,-159,-122,-199,-134},{-122,-117,-165,-148,-192,-119},{-172,-145,-152,-125,-145,-116}},{{-114,-143,-154,-142,-120,-137},{-126,-162,-149,-174,-189,-143},{-114,-126,-117,-192,-137,-177},{-145,-183,-197,-189,-165,-126},{-163,-123,-128,-174,-162,-174},{-199,-151,-134,-157,-125,-149},{-123,-157,-192,-156,-109,-165},{-123,-172,-117,-188,-114,-188},{-137,-200,-157,-166,-117,-192},{-143,-149,-157,-199,-194,-145}},{{-137,-108,-194,-136,-123,-180},{-176,-108,-132,-152,-122,-196},{-197,-200,-189,-169,-185,-171},{-116,-142,-119,-132,-132,-140},{-128,-136,-200,-136,-123,-122},{-126,-128,-174,-183,-177,-119},{-174,-157,-154,-185,-123,-151},{-199,-125,-125,-109,-148,-132},{-139,-140,-134,-199,-112,-134},{-183,-183,-151,-180,-140,-137}},{{-183,-163,-146,-109,-126,-116},{-171,-179,-180,-191,-177,-137},{-160,-145,-129,-169,-134,-165},{-154,-128,-123,-134,-148,-189},{-112,-165,-120,-129,-188,-143},{-163,-176,-157,-157,-117,-149},{-191,-152,-156,-163,-163,-151},{-169,-139,-169,-191,-194,-125},{-169,-182,-134,-128,-152,-186},{-149,-112,-157,-168,-123,-199}},{{-142,-156,-186,-154,-126,-171},{-129,-151,-108,-122,-186,-149},{-168,-177,-165,-114,-194,-143},{-123,-132,-191,-165,-111,-191},{-129,-180,-199,-160,-183,-129},{-112,-180,-160,-148,-182,-176},{-165,-136,-131,-159,-139,-108},{-148,-108,-108,-180,-189,-111},{-176,-188,-129,-188,-168,-117},{-151,-148,-125,-166,-165,-162}},{{-189,-200,-136,-183,-191,-197},{-172,-177,-197,-154,-122,-145},{-137,-116,-197,-197,-180,-125},{-159,-180,-200,-176,-194,-162},{-191,-136,-146,-162,-185,-163},{-174,-171,-125,-160,-180,-171},{-152,-122,-140,-149,-160,-182},{-177,-157,-200,-162,-125,-166},{-151,-123,-197,-192,-145,-168},{-129,-152,-156,-162,-134,-122}},{{-176,-169,-154,-152,-112,-192},{-163,-168,-125,-179,-192,-156},{-194,-122,-189,-112,-165,-176},{-186,-132,-139,-139,-112,-200},{-200,-151,-154,-154,-180,-179},{-116,-152,-134,-146,-152,-112},{-186,-159,-132,-165,-140,-109},{-162,-128,-180,-156,-140,-179},{-186,-109,-179,-182,-169,-143},{-165,-177,-157,-142,-143,-177}}},{{{-164,-233,-237,-138,-149,-171},{-144,-197,-186,-207,-180,-237},{-151,-189,-135,-191,-198,-211},{-218,-233,-200,-231,-169,-142},{-187,-215,-171,-217,-131,-146},{-162,-207,-136,-198,-222,-217},{-177,-233,-169,-127,-200,-211},{-209,-218,-235,-195,-209,-207},{-147,-166,-184,-140,-151,-173},{-204,-222,-191,-166,-224,-229}},{{-158,-164,-135,-197,-235,-135},{-157,-155,-182,-193,-231,-229},{-131,-138,-187,-166,-162,-217},{-182,-135,-204,-213,-175,-171},{-167,-209,-167,-135,-202,-229},{-146,-158,-178,-147,-224,-173},{-178,-173,-222,-195,-151,-136},{-166,-195,-233,-220,-224,-153},{-162,-189,-127,-149,-207,-213},{-217,-206,-215,-220,-151,-153}},{{-233,-140,-173,-217,-131,-169},{-224,-193,-182,-218,-135,-209},{-206,-184,-217,-218,-135,-135},{-151,-211,-151,-237,-129,-144},{-175,-220,-186,-207,-229,-198},{-175,-164,-149,-146,-184,-220},{-206,-187,-189,-144,-235,-144},{-193,-187,-218,-140,-220,-200},{-147,-162,-191,-187,-213,-178},{-166,-193,-153,-142,-209,-149}},{{-235,-226,-149,-164,-218,-182},{-182,-189,-224,-171,-202,-237},{-155,-146,-200,-158,-164,-129},{-209,-153,-149,-218,-164,-211},{-191,-222,-224,-218,-220,-197},{-207,-147,-151,-189,-153,-204},{-218,-180,-215,-217,-187,-171},{-198,-198,-228,-138,-131,-195},{-220,-131,-129,-147,-197,-218},{-229,-233,-189,-197,-178,-184}},{{-131,-157,-202,-149,-222,-186},{-198,-166,-231,-187,-182,-195},{-189,-222,-217,-166,-173,-178},{-231,-220,-127,-146,-187,-142},{-144,-160,-206,-228,-144,-217},{-162,-204,-166,-162,-200,-191},{-228,-235,-189,-171,-131,-215},{-177,-149,-178,-160,-147,-138},{-222,-149,-235,-206,-138,-167},{-151,-233,-182,-167,-222,-229}},{{-164,-164,-224,-155,-231,-135},{-178,-235,-226,-217,-149,-206},{-157,-166,-178,-220,-142,-131},{-175,-158,-140,-138,-233,-195},{-158,-200,-182,-164,-229,-189},{-166,-136,-171,-180,-142,-218},{-173,-173,-147,-151,-231,-147},{-144,-135,-182,-171,-235,-237},{-178,-187,-129,-237,-200,-193},{-187,-140,-155,-155,-157,-202}},{{-222,-166,-204,-164,-127,-162},{-175,-149,-153,-157,-133,-209},{-182,-213,-235,-182,-200,-215},{-215,-187,-207,-149,-146,-231},{-155,-213,-138,-193,-235,-158},{-149,-149,-142,-131,-233,-138},{-146,-222,-195,-209,-162,-169},{-151,-224,-237,-220,-133,-237},{-151,-204,-220,-144,-191,-177},{-144,-204,-193,-177,-235,-237}},{{-135,-146,-198,-131,-164,-189},{-224,-162,-233,-135,-218,-198},{-228,-204,-144,-146,-220,-178},{-209,-215,-178,-135,-224,-158},{-142,-233,-182,-182,-158,-228},{-228,-206,-211,-204,-138,-228},{-167,-178,-226,-202,-135,-173},{-213,-202,-229,-220,-198,-200},{-235,-158,-182,-218,-127,-144},{-193,-195,-237,-151,-133,-138}},{{-226,-235,-211,-182,-213,-158},{-155,-131,-231,-186,-191,-235},{-233,-229,-213,-142,-200,-233},{-138,-153,-153,-191,-204,-131},{-215,-218,-202,-160,-237,-169},{-184,-186,-218,-220,-127,-217},{-138,-175,-146,-138,-195,-211},{-207,-144,-195,-140,-177,-164},{-149,-153,-162,-202,-233,-158},{-218,-138,-142,-136,-182,-162}}},{{{-318,-181,-270,-277,-198,-316},{-238,-208,-176,-296,-265,-318},{-314,-306,-203,-220,-296,-274},{-201,-311,-172,-277,-287,-296},{-211,-272,-218,-318,-255,-245},{-181,-262,-189,-194,-235,-235},{-206,-316,-223,-318,-318,-203},{-252,-186,-311,-316,-198,-228},{-306,-184,-316,-306,-270,-196},{-270,-238,-191,-262,-194,-255}},{{-201,-186,-181,-198,-203,-255},{-233,-201,-196,-279,-309,-314},{-270,-296,-270,-230,-304,-201},{-267,-238,-257,-240,-201,-220},{-216,-318,-201,-306,-203,-296},{-284,-186,-257,-186,-194,-184},{-289,-198,-176,-196,-240,-284},{-201,-277,-228,-294,-257,-203},{-296,-230,-240,-274,-213,-218},{-238,-282,-218,-203,-186,-277}},{{-318,-191,-262,-181,-247,-181},{-172,-201,-240,-201,-260,-270},{-245,-230,-272,-223,-270,-277},{-189,-309,-235,-292,-252,-213},{-292,-306,-289,-289,-243,-211},{-201,-213,-277,-172,-203,-243},{-257,-216,-238,-274,-311,-245},{-282,-211,-247,-181,-174,-304},{-316,-257,-228,-262,-265,-262},{-186,-238,-172,-206,-262,-238}},{{-279,-220,-196,-314,-176,-240},{-196,-186,-181,-223,-287,-176},{-284,-306,-250,-257,-216,-274},{-257,-299,-274,-289,-296,-191},{-250,-250,-225,-213,-306,-211},{-228,-240,-218,-238,-216,-203},{-198,-203,-282,-201,-245,-191},{-250,-314,-257,-235,-299,-289},{-265,-233,-245,-279,-282,-282},{-301,-316,-265,-265,-262,-279}},{{-294,-250,-250,-179,-265,-314},{-296,-198,-223,-208,-274,-174},{-245,-289,-206,-301,-274,-211},{-250,-292,-206,-189,-176,-287},{-306,-184,-179,-235,-174,-184},{-189,-225,-279,-225,-311,-245},{-225,-282,-309,-194,-211,-265},{-316,-196,-318,-203,-196,-299},{-223,-216,-198,-311,-267,-294},{-252,-255,-203,-196,-181,-289}},{{-230,-247,-301,-243,-267,-247},{-181,-225,-279,-194,-262,-174},{-292,-270,-240,-189,-304,-270},{-267,-284,-225,-296,-309,-296},{-220,-201,-294,-282,-228,-194},{-240,-203,-208,-225,-208,-181},{-245,-186,-203,-228,-174,-216},{-282,-272,-211,-294,-262,-174},{-294,-206,-279,-272,-206,-206},{-172,-311,-198,-230,-255,-252}},{{-267,-189,-267,-174,-172,-247},{-309,-201,-287,-257,-189,-191},{-299,-230,-294,-272,-252,-277},{-240,-304,-270,-174,-181,-304},{-196,-318,-306,-172,-262,-184},{-247,-186,-223,-181,-306,-243},{-240,-284,-289,-220,-213,-279},{-260,-223,-260,-318,-309,-235},{-277,-233,-265,-296,-220,-274},{-191,-252,-208,-233,-189,-230}},{{-220,-235,-287,-274,-289,-247},{-230,-181,-216,-260,-255,-223},{-172,-284,-274,-233,-243,-301},{-238,-250,-243,-203,-306,-289},{-211,-189,-316,-225,-247,-235},{-316,-316,-172,-225,-230,-208},{-311,-208,-287,-318,-196,-267},{-257,-309,-267,-218,-198,-223},{-174,-176,-277,-314,-296,-230},{-174,-220,-181,-191,-213,-304}},{{-191,-314,-299,-198,-218,-284},{-174,-220,-287,-211,-262,-247},{-252,-230,-279,-194,-213,-191},{-318,-257,-306,-196,-252,-203},{-196,-211,-208,-316,-233,-257},{-198,-279,-216,-304,-240,-314},{-260,-228,-306,-189,-181,-316},{-257,-301,-279,-296,-213,-196},{-223,-247,-255,-282,-191,-284},{-181,-301,-196,-243,-304,-198}}},{{{-259,-289,-293,-300,-293,-199},{-178,-219,-259,-270,-273,-245},{-185,-213,-261,-226,-229,-224},{-298,-185,-166,-243,-293,-233},{-226,-180,-219,-178,-166,-277},{-201,-187,-275,-296,-245,-231},{-245,-173,-300,-266,-210,-173},{-270,-224,-273,-298,-206,-176},{-208,-171,-252,-213,-192,-192},{-169,-162,-171,-217,-296,-171}},{{-199,-236,-203,-194,-245,-282},{-199,-291,-192,-166,-185,-173},{-182,-291,-224,-171,-210,-249},{-247,-270,-296,-296,-185,-231},{-284,-178,-196,-238,-169,-259},{-266,-286,-169,-256,-277,-293},{-249,-171,-289,-180,-238,-182},{-201,-296,-196,-259,-263,-176},{-256,-296,-226,-233,-217,-194},{-254,-196,-296,-245,-208,-180}},{{-203,-189,-222,-185,-196,-259},{-296,-293,-162,-252,-263,-201},{-233,-256,-203,-206,-282,-210},{-238,-243,-247,-284,-259,-199},{-249,-171,-247,-215,-162,-217},{-187,-201,-296,-162,-243,-284},{-178,-219,-240,-215,-210,-169},{-182,-289,-189,-219,-203,-173},{-236,-286,-247,-213,-182,-286},{-300,-196,-185,-286,-277,-268}},{{-291,-208,-206,-233,-231,-298},{-286,-245,-164,-284,-238,-263},{-268,-226,-171,-210,-270,-296},{-222,-240,-189,-194,-238,-280},{-231,-291,-213,-171,-210,-289},{-173,-277,-240,-254,-273,-280},{-187,-277,-185,-300,-210,-263},{-298,-215,-178,-222,-298,-231},{-171,-224,-213,-201,-178,-284},{-206,-210,-252,-187,-243,-213}},{{-192,-185,-291,-249,-203,-291},{-231,-273,-215,-266,-178,-243},{-162,-176,-263,-238,-238,-277},{-249,-166,-282,-282,-289,-194},{-296,-178,-275,-296,-243,-289},{-201,-289,-247,-298,-206,-273},{-215,-210,-254,-182,-196,-194},{-273,-215,-215,-275,-171,-189},{-189,-245,-176,-236,-284,-236},{-254,-275,-171,-194,-238,-224}},{{-243,-201,-189,-268,-245,-173},{-268,-203,-178,-291,-247,-180},{-208,-245,-284,-277,-261,-201},{-291,-222,-194,-263,-203,-293},{-249,-284,-263,-199,-261,-201},{-247,-261,-249,-178,-256,-173},{-300,-236,-208,-300,-189,-243},{-224,-201,-247,-256,-229,-268},{-245,-215,-169,-289,-282,-178},{-247,-247,-203,-229,-219,-254}},{{-192,-199,-173,-273,-249,-254},{-182,-256,-180,-224,-203,-277},{-203,-240,-238,-213,-203,-231},{-245,-238,-187,-173,-261,-226},{-208,-243,-217,-226,-268,-263},{-238,-280,-226,-182,-291,-293},{-182,-217,-249,-240,-203,-249},{-247,-180,-171,-284,-289,-273},{-206,-171,-187,-252,-173,-266},{-259,-286,-201,-247,-222,-243}},{{-270,-229,-261,-187,-249,-215},{-252,-187,-219,-298,-259,-162},{-203,-219,-256,-194,-284,-277},{-176,-240,-185,-222,-263,-286},{-185,-164,-222,-226,-231,-268},{-275,-236,-298,-208,-187,-164},{-270,-226,-229,-222,-201,-256},{-219,-201,-277,-247,-187,-245},{-298,-240,-203,-238,-229,-217},{-215,-298,-185,-226,-263,-291}},{{-162,-166,-213,-273,-300,-286},{-201,-252,-196,-194,-206,-166},{-187,-194,-192,-270,-291,-282},{-266,-266,-171,-201,-296,-176},{-224,-256,-169,-254,-296,-162},{-229,-259,-298,-243,-263,-203},{-238,-266,-208,-173,-201,-206},{-224,-247,-208,-217,-289,-171},{-293,-199,-226,-286,-206,-252},{-189,-291,-296,-189,-231,-203}}},{{{-370,-250,-382,-329,-282,-265},{-229,-294,-370,-238,-288,-306},{-315,-335,-241,-209,-297,-315},{-359,-365,-268,-373,-218,-291},{-282,-288,-218,-253,-359,-276},{-268,-353,-250,-373,-329,-229},{-335,-220,-288,-306,-218,-285},{-220,-300,-259,-359,-206,-379},{-265,-282,-256,-309,-288,-235},{-376,-270,-318,-356,-320,-338}},{{-303,-338,-279,-215,-212,-370},{-329,-273,-379,-270,-309,-229},{-226,-323,-320,-279,-332,-291},{-326,-226,-353,-359,-373,-247},{-229,-273,-262,-338,-309,-300},{-320,-291,-223,-282,-309,-276},{-303,-253,-232,-262,-373,-335},{-247,-362,-206,-365,-244,-303},{-288,-288,-353,-223,-262,-341},{-276,-312,-341,-350,-209,-315}},{{-332,-285,-341,-273,-306,-212},{-223,-270,-265,-300,-323,-215},{-309,-344,-329,-379,-209,-370},{-268,-294,-382,-323,-376,-338},{-288,-306,-285,-344,-338,-206},{-350,-238,-332,-350,-368,-347},{-294,-235,-306,-218,-312,-241},{-218,-215,-247,-356,-247,-303},{-368,-244,-291,-268,-365,-229},{-353,-353,-341,-376,-288,-329}},{{-241,-282,-344,-318,-212,-353},{-212,-206,-235,-382,-323,-373},{-379,-309,-326,-362,-306,-294},{-373,-229,-226,-276,-350,-362},{-262,-206,-279,-229,-373,-376},{-247,-288,-291,-268,-379,-226},{-350,-347,-338,-241,-215,-262},{-226,-279,-212,-268,-285,-309},{-220,-350,-350,-329,-215,-329},{-288,-294,-273,-244,-291,-279}},{{-309,-382,-370,-247,-279,-344},{-262,-279,-379,-315,-229,-247},{-223,-206,-270,-212,-229,-282},{-353,-376,-232,-353,-232,-306},{-279,-368,-350,-379,-329,-379},{-235,-259,-218,-273,-341,-288},{-212,-244,-312,-273,-318,-356},{-338,-212,-306,-379,-356,-312},{-241,-209,-332,-344,-323,-273},{-353,-315,-294,-312,-335,-335}},{{-341,-241,-276,-253,-326,-323},{-303,-256,-344,-247,-332,-297},{-341,-285,-312,-318,-232,-347},{-262,-318,-247,-291,-212,-238},{-270,-312,-335,-273,-256,-379},{-356,-215,-306,-368,-282,-379},{-303,-332,-350,-350,-320,-353},{-326,-238,-294,-297,-315,-282},{-347,-370,-359,-306,-241,-279},{-335,-282,-379,-368,-209,-344}},{{-256,-273,-379,-362,-347,-353},{-232,-379,-356,-306,-250,-373},{-373,-309,-268,-244,-373,-315},{-373,-344,-285,-279,-294,-356},{-359,-362,-347,-332,-265,-235},{-318,-294,-215,-247,-276,-232},{-256,-262,-291,-270,-268,-226},{-223,-244,-279,-262,-244,-215},{-282,-318,-212,-241,-329,-282},{-376,-365,-288,-223,-323,-306}},{{-376,-297,-259,-270,-373,-238},{-220,-323,-320,-256,-335,-282},{-285,-318,-344,-244,-326,-306},{-282,-215,-323,-373,-373,-276},{-303,-356,-303,-344,-309,-306},{-303,-223,-279,-320,-312,-215},{-350,-244,-365,-300,-320,-226},{-265,-212,-282,-312,-350,-318},{-250,-291,-209,-253,-303,-353},{-253,-209,-282,-223,-238,-256}},{{-356,-294,-223,-359,-329,-282},{-347,-279,-209,-229,-209,-232},{-256,-235,-338,-341,-220,-370},{-223,-276,-382,-259,-206,-326},{-232,-323,-232,-282,-223,-223},{-265,-359,-303,-273,-356,-329},{-373,-247,-382,-362,-250,-291},{-362,-244,-206,-268,-335,-209},{-291,-223,-262,-353,-353,-368},{-291,-256,-215,-312,-326,-285}}}}; // 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,9,24,12,8,24,12,9,26,13,9,25,13,9,25,13,9,25,13,9,25,13,9,25,13,9,26,13,9,25,13,9,26,13,9,26,13,9,26,13,9,27,14,9,26,13,9,26,13,9,26,13,9,26,13,9,26,13,9,26,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}}; // 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,2,6,10,14,18,22,26,30,34,38,42,46,0,6,12,18,24,30,36,42,48,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,2,6,10,14,18,22,26,30,34,38,42,46,1,7,13,19,25,31,37,43,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,1,5,9,13,17,21,25,29,33,37,41,45,0,6,12,18,24,30,36,42,48,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,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,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,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,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,1,5,9,13,17,21,25,29,33,37,41,45,49,2,8,14,20,26,32,38,44,50,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,0,4,8,12,16,20,24,28,32,36,40,44,48,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,1,5,9,13,17,21,25,29,33,37,41,45,49,0,6,12,18,24,30,36,42,48,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,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,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,1,5,9,13,17,21,25,29,33,37,41,45,49,2,8,14,20,26,32,38,44,50,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,1,5,9,13,17,21,25,29,33,37,41,45,49,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,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,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,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,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,1,5,9,13,17,21,25,29,33,37,41,45,49,2,8,14,20,26,32,38,44,50}; // 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,7,11,15,19,23,27,31,35,39,43,47,51,5,11,17,23,29,35,41,47,53,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,7,11,15,19,23,27,31,35,39,43,47,51,6,12,18,24,30,36,42,48,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,6,10,14,18,22,26,30,34,38,42,46,50,5,11,17,23,29,35,41,47,53,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,3,7,11,15,19,23,27,31,35,39,43,47,51,4,10,16,22,28,34,40,46,52,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,3,7,11,15,19,23,27,31,35,39,43,47,51,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,3,7,11,15,19,23,27,31,35,39,43,47,51,2,8,14,20,26,32,38,44,50,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,3,7,11,15,19,23,27,31,35,39,43,47,51,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,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,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,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,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,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,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,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,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,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,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,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,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,5,11,17,23,29,35,41,47,53}; // set of end times of each shipment 
