int Dev = 30;// Deviation
extern const int CNN = 2;// 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 = 1141;//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]={{{{11087,0,0,0,0,0},{11093,0,0,0,0,0},{11417,0,0,0,0,0},{11052,0,0,0,0,0},{10943,0,0,0,0,0},{10961,0,0,0,0,0},{10938,0,0,0,0,0},{11098,0,0,0,0,0},{10640,0,0,0,0,0},{10948,0,0,0,0,0}},{{11063,0,0,0,0,0},{10828,0,0,0,0,0},{10770,0,0,0,0,0},{11031,0,0,0,0,0},{11010,0,0,0,0,0},{10874,0,0,0,0,0},{11034,0,0,0,0,0},{10951,0,0,0,0,0},{11551,0,0,0,0,0},{11013,0,0,0,0,0}},{{11254,0,0,0,0,0},{10897,0,0,0,0,0},{10768,0,0,0,0,0},{11071,0,0,0,0,0},{10550,0,0,0,0,0},{10949,0,0,0,0,0},{10966,0,0,0,0,0},{11220,0,0,0,0,0},{11007,0,0,0,0,0},{11180,0,0,0,0,0}},{{10640,0,0,0,0,0},{10818,0,0,0,0,0},{11132,0,0,0,0,0},{11066,0,0,0,0,0},{10672,0,0,0,0,0},{11404,0,0,0,0,0},{11024,0,0,0,0,0},{11254,0,0,0,0,0},{11213,0,0,0,0,0},{10868,0,0,0,0,0}},{{11247,0,0,0,0,0},{11232,0,0,0,0,0},{10888,0,0,0,0,0},{11094,0,0,0,0,0},{10695,0,0,0,0,0},{11069,0,0,0,0,0},{10803,0,0,0,0,0},{11416,0,0,0,0,0},{10923,0,0,0,0,0},{11212,0,0,0,0,0}},{{10821,0,0,0,0,0},{11404,0,0,0,0,0},{11502,0,0,0,0,0},{11603,0,0,0,0,0},{10984,0,0,0,0,0},{11389,0,0,0,0,0},{10856,0,0,0,0,0},{11513,0,0,0,0,0},{11555,0,0,0,0,0},{11342,0,0,0,0,0}},{{10648,0,0,0,0,0},{11265,0,0,0,0,0},{10459,0,0,0,0,0},{11088,0,0,0,0,0},{11263,0,0,0,0,0},{11058,0,0,0,0,0},{10964,0,0,0,0,0},{10972,0,0,0,0,0},{10837,0,0,0,0,0},{10984,0,0,0,0,0}},{{11151,0,0,0,0,0},{10906,0,0,0,0,0},{11613,0,0,0,0,0},{11347,0,0,0,0,0},{11063,0,0,0,0,0},{10929,0,0,0,0,0},{10695,0,0,0,0,0},{11112,0,0,0,0,0},{10452,0,0,0,0,0},{11370,0,0,0,0,0}},{{10717,0,0,0,0,0},{10904,0,0,0,0,0},{11363,0,0,0,0,0},{10747,0,0,0,0,0},{10847,0,0,0,0,0},{10770,0,0,0,0,0},{10685,0,0,0,0,0},{10744,0,0,0,0,0},{11070,0,0,0,0,0},{10924,0,0,0,0,0}}},{{{-159,-184,-231,-278,-224,-264},{-166,-237,-264,-269,-251,-280},{-242,-224,-202,-193,-166,-237},{-164,-262,-276,-249,-228,-204},{-278,-186,-220,-181,-278,-166},{-157,-213,-222,-253,-161,-206},{-181,-217,-280,-172,-175,-262},{-166,-267,-184,-242,-273,-215},{-175,-172,-181,-276,-188,-211},{-289,-231,-237,-258,-206,-242}},{{-269,-273,-258,-172,-195,-157},{-269,-213,-284,-213,-195,-181},{-220,-235,-271,-204,-291,-211},{-204,-159,-170,-235,-260,-157},{-175,-246,-226,-217,-213,-166},{-278,-251,-213,-184,-186,-264},{-260,-175,-233,-287,-228,-264},{-217,-161,-269,-170,-235,-224},{-240,-202,-253,-271,-287,-184},{-276,-240,-213,-291,-262,-249}},{{-208,-260,-184,-246,-233,-199},{-170,-188,-181,-264,-161,-222},{-273,-260,-199,-244,-168,-291},{-172,-244,-161,-226,-202,-197},{-237,-175,-228,-237,-240,-228},{-276,-208,-161,-291,-217,-188},{-172,-177,-260,-197,-246,-237},{-260,-164,-249,-240,-179,-215},{-170,-235,-276,-175,-208,-164},{-159,-208,-190,-258,-262,-240}},{{-235,-246,-244,-267,-177,-172},{-202,-164,-172,-269,-161,-278},{-166,-222,-211,-186,-255,-237},{-273,-177,-166,-208,-289,-253},{-287,-224,-240,-166,-168,-164},{-208,-287,-202,-287,-246,-184},{-291,-233,-242,-269,-184,-271},{-231,-282,-204,-287,-215,-269},{-231,-202,-271,-224,-202,-197},{-273,-291,-233,-282,-168,-228}},{{-159,-260,-208,-242,-244,-255},{-186,-228,-181,-195,-157,-231},{-269,-213,-237,-213,-157,-193},{-175,-289,-287,-204,-181,-291},{-244,-202,-222,-251,-172,-170},{-215,-287,-246,-204,-177,-177},{-287,-246,-217,-251,-264,-197},{-233,-177,-242,-237,-255,-253},{-258,-235,-249,-204,-206,-164},{-253,-204,-170,-172,-289,-161}},{{-166,-231,-291,-164,-193,-273},{-186,-164,-166,-289,-240,-242},{-246,-282,-287,-289,-177,-260},{-269,-186,-258,-255,-211,-211},{-188,-168,-242,-220,-215,-166},{-164,-208,-253,-179,-204,-284},{-222,-206,-278,-253,-190,-168},{-244,-276,-237,-184,-291,-253},{-206,-231,-267,-193,-161,-287},{-267,-175,-159,-255,-161,-244}},{{-193,-273,-157,-244,-166,-280},{-159,-242,-278,-166,-215,-237},{-204,-228,-217,-193,-202,-289},{-220,-267,-184,-244,-224,-222},{-282,-184,-289,-208,-280,-271},{-258,-235,-202,-287,-202,-224},{-217,-177,-276,-188,-269,-206},{-267,-188,-222,-211,-267,-237},{-168,-264,-161,-195,-222,-249},{-181,-166,-159,-170,-251,-271}},{{-233,-278,-211,-197,-202,-224},{-251,-267,-208,-276,-157,-273},{-172,-249,-199,-195,-278,-269},{-172,-253,-217,-211,-166,-246},{-190,-181,-228,-193,-231,-228},{-202,-287,-271,-258,-253,-195},{-224,-280,-255,-159,-188,-269},{-217,-273,-289,-287,-264,-172},{-228,-215,-204,-157,-166,-240},{-269,-222,-197,-287,-246,-269}},{{-204,-284,-291,-184,-226,-193},{-228,-220,-271,-184,-164,-224},{-269,-204,-190,-159,-284,-161},{-249,-202,-179,-199,-226,-284},{-211,-172,-255,-195,-262,-289},{-255,-166,-175,-170,-184,-208},{-168,-215,-224,-284,-202,-168},{-260,-166,-186,-213,-251,-206},{-240,-208,-161,-164,-273,-206},{-197,-235,-215,-208,-289,-244}}},{{{-245,-238,-262,-174,-264,-264},{-307,-240,-231,-224,-264,-293},{-293,-262,-183,-305,-233,-240},{-236,-257,-186,-252,-276,-305},{-200,-281,-293,-290,-259,-257},{-188,-190,-271,-309,-214,-267},{-281,-238,-233,-300,-212,-245},{-214,-186,-252,-212,-309,-267},{-255,-202,-181,-248,-309,-221},{-205,-255,-243,-202,-274,-174}},{{-233,-257,-231,-183,-248,-209},{-267,-209,-181,-231,-221,-257},{-176,-245,-193,-171,-198,-212},{-290,-286,-293,-214,-307,-255},{-228,-205,-307,-183,-190,-288},{-190,-307,-200,-252,-288,-186},{-293,-243,-190,-221,-221,-276},{-200,-167,-190,-209,-183,-288},{-290,-276,-233,-278,-283,-181},{-271,-169,-181,-281,-305,-224}},{{-305,-205,-195,-238,-226,-231},{-169,-255,-198,-176,-290,-283},{-214,-233,-240,-214,-245,-224},{-257,-186,-190,-183,-209,-309},{-188,-269,-195,-274,-202,-259},{-300,-293,-181,-200,-176,-195},{-262,-217,-186,-264,-278,-231},{-233,-178,-226,-219,-276,-286},{-293,-243,-190,-300,-302,-212},{-205,-209,-281,-300,-252,-298}},{{-174,-171,-255,-221,-200,-240},{-293,-307,-255,-193,-186,-267},{-226,-283,-309,-281,-278,-183},{-238,-298,-276,-271,-219,-178},{-181,-293,-193,-240,-167,-276},{-283,-207,-193,-300,-243,-286},{-209,-224,-286,-264,-274,-190},{-200,-298,-171,-171,-283,-188},{-250,-233,-262,-214,-243,-236},{-290,-302,-295,-181,-240,-224}},{{-226,-264,-174,-269,-264,-233},{-231,-286,-278,-283,-276,-302},{-224,-243,-167,-295,-288,-243},{-190,-286,-236,-193,-267,-221},{-214,-195,-293,-250,-214,-255},{-298,-307,-286,-250,-212,-221},{-167,-221,-264,-190,-293,-236},{-224,-248,-281,-274,-262,-288},{-193,-202,-255,-224,-281,-276},{-283,-288,-193,-243,-174,-226}},{{-183,-236,-190,-298,-276,-257},{-200,-224,-305,-224,-288,-193},{-183,-174,-238,-171,-267,-281},{-219,-200,-205,-305,-281,-198},{-264,-264,-221,-174,-181,-202},{-245,-176,-283,-290,-231,-228},{-183,-221,-238,-259,-169,-288},{-248,-202,-245,-245,-181,-295},{-278,-252,-264,-209,-252,-183},{-262,-257,-219,-233,-281,-283}},{{-233,-178,-231,-243,-209,-278},{-290,-181,-281,-274,-281,-167},{-262,-186,-295,-169,-181,-202},{-238,-276,-186,-288,-262,-219},{-295,-171,-245,-214,-248,-174},{-183,-200,-217,-195,-255,-233},{-262,-293,-236,-286,-224,-188},{-231,-174,-195,-264,-240,-276},{-262,-274,-252,-169,-190,-295},{-252,-248,-212,-205,-257,-281}},{{-259,-171,-288,-240,-214,-190},{-278,-176,-212,-167,-226,-198},{-219,-293,-271,-238,-288,-236},{-186,-243,-171,-255,-293,-169},{-259,-278,-188,-198,-274,-214},{-200,-259,-267,-264,-181,-219},{-293,-290,-259,-212,-209,-236},{-176,-240,-281,-190,-302,-255},{-298,-183,-228,-290,-238,-298},{-252,-309,-195,-171,-188,-186}},{{-193,-195,-293,-209,-181,-264},{-207,-178,-259,-276,-305,-236},{-245,-257,-264,-255,-298,-178},{-302,-178,-169,-212,-257,-269},{-245,-271,-186,-181,-257,-238},{-207,-245,-188,-240,-167,-205},{-290,-228,-278,-195,-219,-271},{-205,-174,-286,-169,-300,-169},{-271,-190,-264,-207,-236,-257},{-243,-207,-221,-274,-176,-186}}},{{{-218,-287,-314,-268,-328,-295},{-344,-273,-240,-257,-270,-257},{-322,-328,-303,-349,-218,-276},{-197,-224,-355,-349,-238,-270},{-265,-298,-303,-319,-240,-276},{-254,-339,-259,-259,-270,-232},{-281,-194,-207,-213,-248,-265},{-284,-273,-246,-227,-322,-238},{-270,-216,-265,-197,-317,-216},{-325,-270,-251,-303,-257,-341}},{{-194,-292,-246,-355,-295,-317},{-259,-287,-232,-298,-300,-314},{-254,-248,-317,-202,-227,-339},{-221,-330,-227,-199,-336,-254},{-308,-207,-322,-202,-251,-336},{-319,-306,-295,-251,-191,-218},{-265,-238,-325,-352,-314,-229},{-349,-339,-322,-210,-289,-355},{-341,-221,-298,-281,-276,-292},{-287,-317,-248,-287,-270,-270}},{{-216,-295,-317,-218,-259,-202},{-243,-317,-246,-306,-235,-221},{-278,-232,-276,-216,-317,-289},{-276,-235,-352,-289,-349,-284},{-191,-314,-292,-243,-246,-273},{-216,-210,-197,-292,-341,-243},{-289,-308,-287,-210,-344,-213},{-232,-298,-276,-265,-352,-289},{-216,-300,-218,-284,-303,-202},{-344,-202,-197,-216,-276,-229}},{{-352,-257,-216,-300,-229,-197},{-227,-229,-298,-229,-199,-197},{-281,-229,-278,-257,-303,-227},{-336,-349,-336,-246,-248,-300},{-224,-202,-330,-273,-306,-254},{-243,-276,-328,-281,-238,-229},{-300,-243,-314,-238,-265,-349},{-355,-194,-314,-325,-210,-322},{-322,-221,-339,-227,-251,-339},{-199,-284,-218,-202,-333,-300}},{{-333,-298,-287,-344,-243,-257},{-273,-333,-278,-265,-308,-278},{-235,-281,-319,-194,-306,-265},{-197,-216,-314,-292,-281,-330},{-224,-344,-311,-314,-281,-205},{-259,-333,-276,-251,-213,-243},{-308,-210,-218,-287,-199,-303},{-287,-243,-336,-317,-248,-207},{-251,-344,-221,-311,-298,-232},{-349,-292,-317,-191,-303,-347}},{{-287,-232,-303,-218,-303,-341},{-311,-347,-349,-339,-349,-210},{-292,-240,-262,-330,-308,-352},{-317,-314,-207,-300,-355,-259},{-221,-243,-270,-292,-336,-336},{-349,-355,-303,-289,-347,-319},{-202,-341,-325,-251,-339,-276},{-328,-191,-232,-227,-349,-300},{-281,-311,-295,-344,-344,-330},{-248,-240,-273,-268,-352,-344}},{{-336,-218,-349,-254,-333,-262},{-311,-287,-295,-314,-303,-202},{-330,-194,-246,-199,-229,-278},{-262,-240,-246,-344,-317,-235},{-243,-287,-347,-216,-251,-341},{-292,-235,-202,-257,-284,-259},{-257,-257,-339,-213,-199,-248},{-213,-243,-322,-246,-262,-325},{-194,-289,-254,-287,-199,-243},{-355,-268,-254,-317,-333,-257}},{{-213,-319,-251,-298,-205,-284},{-281,-311,-339,-330,-197,-257},{-238,-229,-281,-202,-355,-341},{-355,-243,-216,-295,-298,-227},{-229,-319,-243,-276,-254,-303},{-199,-221,-292,-298,-303,-289},{-289,-352,-210,-265,-251,-328},{-191,-278,-227,-207,-278,-227},{-202,-210,-257,-355,-251,-276},{-325,-352,-292,-191,-355,-339}},{{-205,-355,-210,-306,-243,-268},{-238,-194,-235,-319,-227,-194},{-330,-238,-314,-336,-281,-268},{-207,-262,-278,-352,-205,-197},{-341,-287,-265,-229,-248,-341},{-287,-191,-314,-254,-216,-202},{-265,-248,-303,-197,-246,-232},{-207,-303,-232,-308,-202,-218},{-221,-347,-251,-289,-199,-289},{-221,-308,-349,-210,-336,-216}}},{{{-145,-165,-152,-196,-199,-177},{-154,-108,-188,-151,-129,-142},{-169,-111,-152,-132,-159,-159},{-197,-114,-183,-192,-128,-168},{-185,-140,-132,-152,-149,-129},{-142,-125,-116,-196,-163,-129},{-142,-180,-168,-162,-148,-159},{-131,-174,-176,-188,-171,-119},{-122,-166,-157,-157,-156,-160},{-194,-174,-174,-149,-156,-166}},{{-197,-154,-109,-125,-149,-186},{-197,-108,-179,-109,-188,-111},{-166,-176,-182,-182,-143,-132},{-108,-154,-123,-169,-143,-194},{-189,-119,-186,-172,-114,-177},{-117,-176,-137,-145,-119,-116},{-194,-109,-146,-132,-148,-182},{-128,-122,-112,-168,-109,-177},{-108,-183,-148,-188,-163,-114},{-165,-189,-122,-162,-129,-174}},{{-165,-194,-200,-109,-116,-111},{-183,-111,-157,-136,-163,-145},{-191,-122,-180,-151,-160,-162},{-172,-160,-157,-169,-194,-149},{-159,-165,-151,-162,-112,-139},{-114,-128,-162,-162,-117,-134},{-149,-120,-125,-152,-120,-165},{-114,-186,-151,-179,-177,-119},{-128,-146,-200,-192,-166,-122},{-162,-174,-186,-182,-156,-152}},{{-199,-160,-134,-176,-120,-139},{-149,-165,-188,-139,-148,-162},{-131,-194,-172,-162,-188,-159},{-159,-166,-151,-156,-125,-143},{-159,-188,-182,-196,-148,-176},{-168,-122,-160,-188,-196,-192},{-122,-119,-132,-134,-116,-151},{-186,-119,-189,-192,-183,-145},{-131,-128,-125,-185,-152,-188},{-132,-112,-142,-176,-177,-165}},{{-142,-180,-186,-180,-179,-131},{-154,-169,-114,-136,-154,-149},{-108,-132,-139,-194,-131,-126},{-111,-191,-125,-188,-145,-171},{-145,-149,-182,-145,-136,-166},{-165,-174,-120,-108,-172,-172},{-160,-137,-116,-134,-189,-129},{-139,-131,-154,-192,-139,-188},{-148,-196,-165,-117,-134,-194},{-126,-199,-145,-196,-145,-122}},{{-172,-189,-172,-129,-132,-176},{-189,-157,-123,-176,-129,-174},{-192,-159,-116,-200,-194,-182},{-123,-196,-199,-129,-180,-157},{-163,-180,-172,-145,-183,-189},{-186,-137,-111,-172,-131,-156},{-191,-154,-157,-111,-163,-189},{-168,-199,-196,-169,-165,-134},{-162,-194,-129,-131,-140,-168},{-183,-188,-146,-157,-112,-123}},{{-140,-148,-159,-112,-111,-114},{-191,-146,-196,-140,-116,-143},{-154,-199,-157,-183,-163,-126},{-189,-200,-165,-123,-145,-148},{-154,-134,-112,-200,-186,-137},{-169,-188,-131,-136,-116,-188},{-196,-114,-129,-169,-129,-148},{-172,-123,-117,-177,-163,-197},{-180,-152,-185,-134,-162,-131},{-172,-116,-154,-196,-188,-192}},{{-119,-143,-126,-145,-189,-191},{-129,-179,-152,-129,-183,-156},{-197,-165,-159,-176,-186,-148},{-189,-182,-151,-188,-163,-131},{-122,-196,-109,-168,-143,-185},{-146,-146,-119,-159,-119,-188},{-182,-191,-136,-126,-182,-157},{-192,-196,-154,-192,-126,-145},{-192,-185,-143,-117,-119,-154},{-186,-149,-129,-132,-165,-176}},{{-180,-162,-134,-165,-154,-131},{-196,-168,-192,-186,-128,-162},{-194,-174,-134,-186,-200,-128},{-117,-140,-126,-143,-126,-159},{-152,-128,-126,-180,-117,-197},{-134,-159,-154,-156,-137,-128},{-186,-117,-117,-165,-197,-159},{-134,-146,-185,-186,-119,-180},{-188,-157,-123,-191,-143,-123},{-176,-182,-134,-128,-143,-197}}},{{{-127,-171,-193,-187,-218,-151},{-131,-175,-217,-140,-177,-213},{-131,-229,-127,-191,-222,-206},{-215,-206,-127,-149,-162,-211},{-184,-182,-142,-180,-153,-195},{-191,-184,-237,-131,-140,-193},{-197,-237,-171,-235,-162,-166},{-187,-147,-237,-231,-235,-189},{-217,-158,-206,-209,-131,-237},{-129,-140,-147,-136,-162,-166}},{{-127,-189,-231,-151,-166,-169},{-142,-182,-153,-164,-222,-142},{-127,-226,-142,-144,-136,-140},{-144,-191,-177,-209,-207,-127},{-182,-178,-146,-237,-233,-140},{-142,-177,-171,-215,-198,-153},{-147,-153,-220,-233,-206,-191},{-153,-235,-218,-177,-235,-164},{-237,-187,-198,-131,-180,-204},{-135,-149,-202,-202,-226,-226}},{{-195,-197,-191,-220,-215,-173},{-193,-175,-202,-140,-187,-204},{-229,-127,-195,-136,-146,-142},{-198,-202,-220,-191,-178,-160},{-215,-173,-207,-136,-157,-129},{-138,-173,-177,-206,-220,-215},{-228,-224,-197,-133,-131,-233},{-158,-211,-182,-207,-136,-177},{-169,-213,-189,-158,-138,-224},{-206,-217,-142,-191,-127,-169}},{{-217,-217,-158,-217,-209,-200},{-228,-198,-213,-215,-171,-204},{-204,-197,-157,-175,-222,-213},{-147,-144,-173,-224,-182,-200},{-138,-209,-198,-167,-204,-215},{-155,-166,-197,-193,-171,-166},{-166,-182,-202,-151,-187,-217},{-207,-144,-184,-231,-195,-220},{-233,-217,-167,-224,-217,-209},{-220,-153,-136,-169,-155,-175}},{{-198,-182,-158,-160,-213,-207},{-187,-209,-213,-213,-149,-131},{-169,-149,-151,-162,-222,-226},{-222,-228,-144,-133,-151,-224},{-157,-187,-215,-158,-136,-140},{-233,-146,-169,-178,-224,-173},{-173,-213,-140,-178,-209,-142},{-202,-146,-198,-162,-171,-191},{-153,-200,-177,-166,-186,-200},{-136,-213,-193,-202,-207,-200}},{{-153,-206,-173,-144,-135,-149},{-142,-142,-173,-147,-220,-153},{-136,-218,-213,-171,-197,-131},{-209,-226,-189,-167,-140,-209},{-186,-153,-189,-178,-200,-180},{-197,-166,-158,-233,-151,-228},{-187,-177,-151,-213,-207,-158},{-217,-202,-180,-171,-220,-138},{-193,-235,-144,-220,-157,-186},{-207,-171,-178,-206,-146,-202}},{{-127,-226,-191,-186,-200,-162},{-178,-207,-166,-207,-229,-184},{-211,-153,-204,-131,-151,-144},{-178,-153,-127,-204,-189,-211},{-220,-186,-136,-175,-135,-162},{-231,-195,-153,-169,-189,-162},{-235,-182,-129,-226,-233,-127},{-142,-202,-173,-233,-157,-175},{-195,-222,-218,-222,-200,-215},{-173,-220,-157,-228,-206,-127}},{{-140,-180,-197,-175,-207,-166},{-138,-144,-169,-180,-229,-167},{-217,-213,-218,-204,-129,-237},{-202,-228,-228,-218,-144,-175},{-193,-200,-147,-209,-235,-131},{-215,-220,-158,-187,-220,-158},{-133,-138,-142,-135,-182,-228},{-193,-197,-226,-167,-195,-166},{-146,-140,-171,-133,-131,-198},{-231,-213,-222,-211,-177,-136}},{{-157,-136,-189,-153,-158,-215},{-151,-237,-206,-164,-140,-217},{-173,-142,-140,-146,-197,-211},{-155,-142,-195,-180,-202,-157},{-175,-222,-131,-193,-146,-198},{-204,-189,-169,-200,-182,-195},{-129,-206,-171,-133,-131,-157},{-131,-182,-217,-136,-162,-229},{-153,-228,-222,-235,-162,-138},{-171,-153,-189,-146,-173,-173}}},{{{-247,-184,-206,-216,-314,-213},{-240,-191,-220,-309,-247,-220},{-279,-304,-213,-235,-176,-238},{-203,-179,-282,-174,-284,-196},{-198,-189,-213,-184,-176,-225},{-299,-213,-257,-311,-311,-265},{-235,-186,-208,-277,-196,-208},{-304,-247,-201,-228,-301,-198},{-247,-201,-228,-225,-172,-252},{-316,-225,-260,-218,-196,-287}},{{-181,-270,-257,-176,-206,-289},{-306,-304,-228,-235,-174,-216},{-174,-245,-240,-304,-296,-206},{-294,-282,-314,-235,-238,-282},{-294,-250,-318,-184,-223,-191},{-255,-194,-216,-196,-191,-228},{-260,-260,-247,-181,-282,-304},{-213,-238,-198,-245,-265,-238},{-289,-292,-265,-172,-270,-270},{-272,-238,-252,-262,-274,-304}},{{-272,-289,-186,-260,-292,-277},{-262,-172,-299,-223,-301,-186},{-216,-181,-235,-289,-203,-186},{-201,-223,-194,-252,-296,-174},{-174,-235,-250,-279,-176,-206},{-318,-289,-262,-235,-262,-274},{-289,-267,-252,-262,-247,-311},{-282,-294,-279,-235,-247,-274},{-194,-299,-230,-314,-257,-240},{-262,-289,-318,-206,-245,-186}},{{-262,-179,-172,-255,-181,-211},{-201,-299,-287,-225,-184,-257},{-186,-206,-277,-245,-194,-284},{-206,-196,-223,-216,-282,-257},{-191,-213,-289,-314,-287,-181},{-255,-316,-218,-294,-279,-196},{-218,-257,-279,-270,-225,-184},{-230,-262,-218,-176,-223,-252},{-225,-223,-299,-201,-243,-174},{-289,-198,-216,-191,-174,-189}},{{-203,-316,-184,-267,-250,-257},{-274,-213,-289,-208,-191,-272},{-296,-245,-314,-194,-186,-240},{-299,-228,-230,-196,-235,-250},{-235,-189,-245,-201,-284,-272},{-316,-174,-238,-213,-206,-260},{-225,-294,-279,-213,-284,-301},{-318,-240,-184,-240,-299,-289},{-309,-270,-198,-272,-211,-262},{-194,-211,-260,-282,-235,-225}},{{-181,-270,-265,-299,-194,-245},{-267,-270,-318,-198,-179,-287},{-296,-233,-299,-309,-198,-250},{-318,-304,-314,-277,-228,-311},{-257,-189,-211,-243,-208,-228},{-299,-282,-309,-174,-274,-203},{-262,-265,-240,-186,-220,-225},{-186,-176,-191,-311,-270,-216},{-304,-189,-225,-223,-213,-235},{-196,-309,-211,-233,-284,-179}},{{-225,-257,-196,-208,-191,-314},{-238,-174,-181,-179,-208,-306},{-174,-252,-216,-289,-179,-306},{-238,-225,-294,-203,-299,-220},{-184,-316,-194,-196,-270,-230},{-206,-260,-318,-304,-316,-243},{-292,-194,-245,-176,-225,-304},{-270,-228,-181,-218,-198,-218},{-233,-213,-257,-289,-277,-292},{-306,-189,-225,-189,-250,-179}},{{-301,-306,-194,-194,-252,-206},{-270,-203,-272,-203,-247,-203},{-220,-218,-203,-216,-194,-279},{-311,-255,-284,-314,-311,-174},{-287,-257,-274,-247,-201,-206},{-257,-218,-181,-245,-245,-287},{-176,-191,-213,-265,-265,-306},{-201,-243,-311,-223,-274,-176},{-314,-306,-179,-179,-252,-225},{-243,-172,-289,-311,-306,-318}},{{-311,-233,-267,-267,-245,-289},{-274,-262,-299,-233,-250,-262},{-255,-294,-255,-223,-292,-198},{-186,-299,-194,-272,-191,-213},{-289,-216,-208,-240,-270,-245},{-287,-292,-314,-223,-233,-262},{-255,-228,-196,-228,-206,-218},{-262,-216,-257,-299,-206,-311},{-314,-213,-240,-250,-296,-243},{-233,-174,-318,-194,-318,-172}}},{{{-259,-229,-206,-187,-213,-182},{-176,-182,-256,-247,-284,-201},{-275,-280,-199,-300,-266,-169},{-300,-217,-213,-189,-284,-231},{-266,-240,-240,-187,-247,-275},{-277,-215,-162,-166,-254,-280},{-284,-210,-293,-176,-224,-266},{-164,-176,-266,-277,-277,-180},{-247,-189,-166,-226,-273,-282},{-210,-196,-166,-213,-284,-194}},{{-173,-210,-219,-273,-266,-233},{-213,-178,-189,-173,-217,-238},{-201,-261,-219,-259,-208,-187},{-284,-224,-164,-280,-210,-173},{-210,-293,-247,-252,-300,-247},{-217,-240,-238,-273,-277,-261},{-259,-180,-196,-203,-201,-169},{-254,-226,-270,-270,-203,-273},{-192,-189,-210,-224,-169,-275},{-277,-210,-178,-210,-162,-226}},{{-233,-226,-199,-259,-270,-263},{-300,-268,-261,-243,-182,-291},{-233,-236,-178,-192,-222,-277},{-263,-240,-249,-259,-162,-162},{-231,-194,-275,-222,-208,-210},{-243,-275,-194,-240,-261,-263},{-169,-215,-238,-261,-215,-226},{-166,-284,-298,-240,-162,-263},{-236,-270,-238,-166,-249,-162},{-210,-270,-254,-192,-215,-249}},{{-208,-187,-249,-206,-293,-233},{-291,-185,-293,-203,-208,-176},{-224,-263,-231,-210,-226,-180},{-273,-266,-275,-166,-213,-210},{-192,-169,-164,-233,-280,-247},{-219,-226,-215,-169,-282,-261},{-169,-256,-300,-256,-300,-222},{-275,-206,-233,-249,-286,-219},{-282,-187,-277,-238,-277,-201},{-169,-289,-199,-217,-273,-189}},{{-282,-201,-266,-240,-259,-196},{-226,-231,-259,-169,-196,-275},{-224,-185,-215,-293,-252,-217},{-231,-166,-194,-284,-215,-210},{-215,-261,-171,-247,-208,-187},{-180,-275,-236,-226,-270,-243},{-259,-203,-185,-213,-210,-173},{-270,-293,-273,-178,-231,-201},{-173,-210,-268,-189,-180,-233},{-293,-240,-280,-196,-206,-273}},{{-187,-182,-298,-173,-298,-282},{-240,-206,-210,-270,-284,-224},{-208,-187,-229,-280,-199,-247},{-222,-201,-289,-236,-231,-243},{-280,-169,-282,-256,-226,-263},{-247,-275,-286,-224,-231,-238},{-171,-282,-176,-263,-189,-275},{-284,-275,-293,-261,-236,-270},{-252,-289,-215,-217,-298,-268},{-201,-275,-298,-171,-189,-245}},{{-215,-224,-224,-243,-199,-164},{-259,-247,-189,-171,-233,-256},{-245,-199,-229,-252,-215,-249},{-254,-226,-217,-162,-203,-236},{-293,-222,-201,-275,-240,-219},{-293,-226,-226,-300,-266,-215},{-284,-270,-266,-224,-296,-236},{-277,-293,-266,-296,-270,-171},{-261,-164,-275,-194,-247,-162},{-263,-293,-180,-236,-286,-243}},{{-289,-275,-217,-289,-275,-178},{-210,-289,-291,-203,-176,-277},{-164,-243,-256,-243,-270,-252},{-259,-249,-166,-169,-293,-208},{-164,-270,-210,-291,-222,-296},{-178,-236,-162,-254,-219,-203},{-247,-280,-240,-185,-169,-263},{-298,-259,-252,-169,-286,-203},{-201,-166,-217,-240,-284,-217},{-199,-226,-240,-273,-171,-243}},{{-208,-215,-240,-171,-293,-249},{-210,-240,-210,-215,-208,-243},{-171,-238,-296,-236,-284,-236},{-162,-217,-231,-270,-293,-296},{-203,-162,-233,-268,-266,-201},{-176,-249,-284,-252,-182,-277},{-256,-298,-222,-194,-286,-249},{-238,-166,-194,-196,-275,-266},{-252,-275,-263,-210,-185,-270},{-275,-203,-243,-196,-185,-222}}},{{{-265,-315,-212,-344,-335,-382},{-323,-250,-288,-235,-326,-306},{-359,-362,-315,-259,-368,-256},{-332,-238,-256,-344,-241,-309},{-297,-320,-332,-209,-323,-309},{-382,-206,-220,-294,-338,-300},{-303,-250,-365,-347,-270,-309},{-259,-282,-220,-379,-215,-362},{-376,-229,-376,-332,-220,-223},{-297,-338,-256,-368,-259,-209}},{{-362,-362,-379,-253,-282,-335},{-338,-279,-297,-353,-312,-270},{-279,-353,-276,-282,-288,-382},{-247,-370,-206,-365,-220,-300},{-320,-244,-215,-300,-326,-253},{-323,-368,-270,-244,-323,-315},{-232,-247,-238,-282,-250,-368},{-315,-220,-218,-318,-365,-247},{-365,-253,-359,-368,-338,-323},{-218,-235,-291,-247,-223,-212}},{{-347,-356,-341,-329,-285,-247},{-297,-256,-335,-326,-268,-306},{-335,-323,-241,-285,-223,-359},{-326,-376,-312,-241,-373,-297},{-306,-318,-238,-326,-241,-265},{-262,-238,-335,-250,-279,-338},{-318,-259,-215,-232,-276,-359},{-282,-256,-318,-376,-265,-265},{-326,-220,-362,-291,-270,-347},{-312,-312,-347,-306,-282,-335}},{{-288,-241,-320,-253,-250,-353},{-306,-318,-350,-235,-253,-241},{-270,-282,-256,-306,-362,-344},{-241,-297,-297,-294,-247,-276},{-209,-209,-315,-232,-359,-220},{-373,-291,-291,-247,-318,-359},{-212,-215,-262,-362,-262,-250},{-318,-332,-273,-315,-223,-250},{-226,-347,-309,-338,-306,-220},{-323,-309,-288,-362,-291,-247}},{{-362,-282,-323,-209,-209,-265},{-365,-256,-288,-270,-368,-335},{-285,-362,-341,-262,-273,-253},{-218,-353,-376,-382,-268,-276},{-312,-250,-350,-256,-259,-276},{-262,-312,-247,-320,-270,-332},{-229,-373,-282,-329,-220,-253},{-232,-270,-318,-229,-344,-382},{-238,-235,-376,-315,-288,-256},{-370,-338,-215,-229,-285,-341}},{{-232,-244,-303,-273,-223,-300},{-376,-309,-347,-303,-259,-306},{-370,-273,-332,-365,-220,-259},{-220,-218,-382,-288,-344,-303},{-338,-232,-291,-244,-373,-373},{-235,-306,-259,-338,-229,-247},{-294,-256,-279,-241,-265,-300},{-326,-288,-270,-232,-373,-368},{-329,-232,-288,-332,-326,-373},{-373,-303,-370,-341,-256,-368}},{{-238,-241,-353,-320,-285,-238},{-382,-309,-368,-373,-238,-368},{-268,-209,-256,-206,-297,-338},{-312,-329,-315,-285,-282,-282},{-362,-209,-376,-379,-238,-376},{-273,-344,-262,-279,-215,-265},{-294,-250,-273,-209,-256,-318},{-235,-341,-323,-270,-206,-297},{-238,-279,-259,-273,-326,-215},{-209,-312,-323,-241,-247,-247}},{{-359,-335,-276,-353,-244,-353},{-303,-288,-215,-362,-238,-297},{-294,-353,-335,-344,-362,-365},{-365,-309,-265,-335,-350,-315},{-359,-220,-326,-315,-309,-285},{-279,-320,-285,-288,-238,-341},{-223,-253,-215,-250,-241,-212},{-253,-273,-335,-318,-250,-285},{-232,-206,-212,-256,-373,-268},{-285,-297,-320,-235,-241,-229}},{{-250,-244,-276,-265,-250,-206},{-318,-259,-262,-306,-244,-303},{-218,-338,-368,-312,-270,-323},{-318,-265,-265,-259,-382,-365},{-232,-297,-256,-235,-259,-329},{-350,-265,-220,-282,-368,-373},{-373,-223,-373,-235,-206,-338},{-291,-370,-297,-218,-370,-250},{-323,-209,-262,-338,-291,-300},{-347,-294,-312,-259,-297,-382}}}}; // 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]={25,13,8,24,12,8,25,12,8,26,13,9,25,13,9,26,13,9,26,13,9,25,13,9,26,13,9,26,13,9,25,13,9,25,13,9,27,13,9,26,14,9,26,14,9,26,13,9,27,14,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,1135,1136,1137,1138,1139,1140}}; // 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,0,4,8,12,16,20,24,28,32,36,40,44,48,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,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,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,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,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,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,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,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,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,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,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,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,0,4,8,12,16,20,24,28,32,36,40,44,48,52,1,7,13,19,25,31,37,43,49,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,0,4,8,12,16,20,24,28,32,36,40,44,48,52,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,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,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,0,6,12,18,24,30,36,42,48,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,0,4,8,12,16,20,24,28,32,36,40,44,48,1,7,13,19,25,31,37,43,49,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,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,2,6,10,14,18,22,26,30,34,38,42,46,50,1,7,13,19,25,31,37,43,49,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,1,5,9,13,17,21,25,29,33,37,41,45,49,0,6,12,18,24,30,36,42,48,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,2,6,10,14,18,22,26,30,34,38,42,46,50,0,6,12,18,24,30,36,42,48,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,2,6,10,14,18,22,26,30,34,38,42,46,50,0,6,12,18,24,30,36,42,48}; // 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,5,9,13,17,21,25,29,33,37,41,45,49,53,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,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,6,12,18,24,30,36,42,48,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,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,3,7,11,15,19,23,27,31,35,39,43,47,51,5,11,17,23,29,35,41,47,53,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,4,8,12,16,20,24,28,32,36,40,44,48,52,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,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,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,4,8,12,16,20,24,28,32,36,40,44,48,52,4,10,16,22,28,34,40,46,52,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,4,8,12,16,20,24,28,32,36,40,44,48,52,4,10,16,22,28,34,40,46,52,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,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,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,1,5,9,13,17,21,25,29,33,37,41,45,49,53,2,8,14,20,26,32,38,44,50,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,1,5,9,13,17,21,25,29,33,37,41,45,49,53,2,8,14,20,26,32,38,44,50,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,2,6,10,14,18,22,26,30,34,38,42,46,50,3,9,15,21,27,33,39,45,51,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,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,1,7,13,19,25,31,37,43,49,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,2,6,10,14,18,22,26,30,34,38,42,46,50,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,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,4,8,12,16,20,24,28,32,36,40,44,48,52,3,9,15,21,27,33,39,45,51,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,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,5,9,13,17,21,25,29,33,37,41,45,49,53,3,9,15,21,27,33,39,45,51,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,5,9,13,17,21,25,29,33,37,41,45,49,53,3,9,15,21,27,33,39,45,51}; // set of end times of each shipment 
