int Dev = 20;// 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 = 1137;//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]={{{{11489,0,0,0,0,0},{11108,0,0,0,0,0},{10695,0,0,0,0,0},{10956,0,0,0,0,0},{11089,0,0,0,0,0},{11444,0,0,0,0,0},{11032,0,0,0,0,0},{11593,0,0,0,0,0},{11009,0,0,0,0,0},{11400,0,0,0,0,0}},{{11398,0,0,0,0,0},{11079,0,0,0,0,0},{11500,0,0,0,0,0},{11230,0,0,0,0,0},{10879,0,0,0,0,0},{11082,0,0,0,0,0},{11280,0,0,0,0,0},{11516,0,0,0,0,0},{11172,0,0,0,0,0},{10840,0,0,0,0,0}},{{11075,0,0,0,0,0},{11179,0,0,0,0,0},{11167,0,0,0,0,0},{11120,0,0,0,0,0},{11100,0,0,0,0,0},{11335,0,0,0,0,0},{10884,0,0,0,0,0},{11350,0,0,0,0,0},{11047,0,0,0,0,0},{10788,0,0,0,0,0}},{{10981,0,0,0,0,0},{11085,0,0,0,0,0},{11025,0,0,0,0,0},{11164,0,0,0,0,0},{11208,0,0,0,0,0},{10870,0,0,0,0,0},{11316,0,0,0,0,0},{10917,0,0,0,0,0},{11122,0,0,0,0,0},{11066,0,0,0,0,0}},{{10963,0,0,0,0,0},{10761,0,0,0,0,0},{11013,0,0,0,0,0},{11130,0,0,0,0,0},{11229,0,0,0,0,0},{11268,0,0,0,0,0},{11106,0,0,0,0,0},{11003,0,0,0,0,0},{10968,0,0,0,0,0},{11291,0,0,0,0,0}},{{11237,0,0,0,0,0},{10759,0,0,0,0,0},{11002,0,0,0,0,0},{11482,0,0,0,0,0},{10949,0,0,0,0,0},{11014,0,0,0,0,0},{11032,0,0,0,0,0},{11127,0,0,0,0,0},{10860,0,0,0,0,0},{10870,0,0,0,0,0}},{{10872,0,0,0,0,0},{11046,0,0,0,0,0},{10477,0,0,0,0,0},{11112,0,0,0,0,0},{10709,0,0,0,0,0},{11049,0,0,0,0,0},{11026,0,0,0,0,0},{11195,0,0,0,0,0},{10982,0,0,0,0,0},{10944,0,0,0,0,0}},{{10977,0,0,0,0,0},{10993,0,0,0,0,0},{10926,0,0,0,0,0},{11096,0,0,0,0,0},{10608,0,0,0,0,0},{10930,0,0,0,0,0},{11130,0,0,0,0,0},{10872,0,0,0,0,0},{11461,0,0,0,0,0},{10988,0,0,0,0,0}},{{10675,0,0,0,0,0},{11260,0,0,0,0,0},{11112,0,0,0,0,0},{10856,0,0,0,0,0},{11244,0,0,0,0,0},{10878,0,0,0,0,0},{10868,0,0,0,0,0},{10995,0,0,0,0,0},{11115,0,0,0,0,0},{10990,0,0,0,0,0}}},{{{-228,-215,-249,-249,-237,-253},{-217,-242,-211,-240,-262,-244},{-179,-231,-204,-228,-181,-215},{-193,-215,-222,-211,-215,-246},{-253,-206,-269,-202,-240,-228},{-258,-208,-246,-240,-204,-237},{-246,-188,-264,-237,-269,-264},{-213,-249,-206,-228,-202,-226},{-206,-233,-190,-199,-206,-188},{-269,-208,-193,-228,-269,-237}},{{-253,-195,-228,-217,-222,-213},{-215,-206,-204,-190,-251,-231},{-253,-258,-262,-267,-255,-267},{-240,-179,-199,-188,-235,-208},{-242,-186,-231,-204,-208,-228},{-251,-193,-184,-193,-228,-206},{-249,-231,-262,-251,-244,-224},{-262,-237,-197,-197,-264,-269},{-251,-199,-262,-264,-204,-237},{-179,-202,-262,-258,-249,-220}},{{-242,-199,-211,-260,-213,-260},{-251,-233,-181,-195,-267,-269},{-237,-188,-242,-220,-220,-199},{-190,-233,-262,-222,-228,-267},{-206,-195,-188,-249,-258,-249},{-246,-224,-208,-255,-267,-206},{-213,-220,-184,-251,-258,-184},{-206,-240,-264,-262,-195,-233},{-249,-251,-193,-184,-264,-197},{-251,-193,-264,-211,-181,-213}},{{-206,-186,-202,-242,-235,-269},{-242,-235,-202,-211,-262,-244},{-195,-228,-199,-255,-188,-224},{-204,-220,-258,-220,-251,-244},{-237,-244,-228,-264,-228,-253},{-262,-190,-217,-237,-208,-195},{-220,-181,-233,-242,-262,-228},{-179,-217,-264,-181,-262,-186},{-244,-199,-224,-231,-249,-231},{-262,-226,-249,-186,-226,-255}},{{-184,-262,-193,-220,-235,-195},{-202,-233,-220,-199,-264,-195},{-255,-249,-242,-179,-197,-262},{-258,-267,-246,-240,-258,-197},{-220,-269,-233,-251,-246,-190},{-260,-190,-251,-264,-181,-204},{-269,-255,-186,-228,-251,-242},{-195,-208,-206,-211,-253,-264},{-237,-179,-249,-215,-213,-197},{-264,-211,-262,-222,-188,-222}},{{-220,-202,-226,-251,-237,-240},{-184,-240,-204,-181,-188,-228},{-253,-204,-264,-208,-206,-249},{-215,-264,-184,-179,-251,-258},{-269,-179,-220,-204,-181,-244},{-190,-258,-253,-188,-213,-211},{-190,-240,-246,-226,-244,-215},{-231,-242,-242,-253,-186,-220},{-195,-260,-260,-215,-235,-226},{-193,-244,-260,-242,-228,-197}},{{-231,-240,-267,-220,-193,-211},{-262,-188,-222,-220,-233,-246},{-267,-220,-255,-233,-190,-199},{-199,-267,-267,-217,-231,-269},{-197,-258,-222,-179,-190,-244},{-226,-195,-244,-264,-188,-233},{-264,-220,-240,-267,-204,-228},{-262,-237,-220,-228,-215,-181},{-179,-211,-179,-249,-233,-224},{-184,-206,-193,-184,-251,-262}},{{-204,-262,-251,-249,-188,-184},{-246,-179,-262,-228,-235,-251},{-222,-181,-186,-231,-253,-199},{-213,-251,-179,-224,-253,-213},{-224,-186,-220,-206,-186,-240},{-213,-199,-251,-260,-195,-217},{-269,-220,-242,-249,-193,-217},{-246,-190,-208,-237,-206,-237},{-269,-253,-262,-249,-260,-186},{-260,-264,-193,-222,-260,-264}},{{-258,-253,-233,-237,-228,-267},{-260,-188,-184,-246,-213,-184},{-217,-228,-251,-235,-217,-204},{-190,-255,-249,-237,-215,-202},{-233,-260,-258,-213,-181,-269},{-217,-249,-213,-226,-235,-244},{-211,-197,-220,-240,-193,-222},{-204,-215,-255,-251,-199,-233},{-255,-222,-233,-242,-186,-242},{-195,-260,-204,-262,-240,-240}}},{{{-198,-236,-286,-224,-233,-278},{-238,-217,-209,-248,-228,-264},{-278,-228,-212,-238,-228,-205},{-193,-209,-214,-245,-252,-202},{-212,-193,-269,-240,-281,-202},{-250,-231,-283,-255,-238,-238},{-269,-190,-243,-252,-267,-262},{-255,-198,-274,-274,-276,-228},{-200,-269,-236,-205,-226,-259},{-271,-248,-264,-207,-198,-221}},{{-255,-281,-240,-283,-267,-276},{-236,-209,-221,-205,-283,-243},{-245,-207,-281,-219,-228,-228},{-274,-250,-214,-219,-281,-259},{-198,-228,-276,-198,-259,-209},{-248,-271,-224,-276,-248,-198},{-283,-243,-281,-236,-257,-259},{-252,-276,-283,-243,-248,-198},{-281,-252,-264,-236,-205,-278},{-190,-214,-259,-200,-271,-193}},{{-269,-226,-255,-193,-209,-267},{-209,-278,-205,-271,-226,-264},{-269,-224,-271,-214,-226,-221},{-226,-236,-252,-236,-224,-252},{-207,-267,-269,-198,-274,-267},{-212,-221,-226,-267,-236,-255},{-195,-248,-264,-198,-238,-269},{-255,-283,-269,-274,-276,-231},{-255,-224,-278,-245,-212,-271},{-245,-202,-271,-200,-224,-190}},{{-255,-255,-250,-228,-286,-276},{-219,-255,-259,-281,-226,-233},{-200,-286,-217,-283,-195,-255},{-257,-195,-195,-228,-269,-281},{-190,-200,-193,-198,-209,-233},{-245,-250,-250,-209,-240,-193},{-259,-221,-212,-269,-286,-259},{-240,-212,-236,-233,-252,-248},{-269,-286,-233,-214,-255,-286},{-190,-238,-202,-236,-217,-283}},{{-198,-207,-283,-262,-209,-207},{-245,-271,-212,-271,-267,-269},{-281,-278,-200,-243,-257,-219},{-236,-202,-257,-221,-209,-212},{-195,-262,-214,-269,-243,-198},{-205,-252,-207,-193,-269,-252},{-286,-243,-240,-281,-219,-238},{-217,-231,-240,-283,-264,-233},{-259,-217,-271,-250,-200,-286},{-207,-212,-269,-257,-245,-193}},{{-202,-252,-264,-236,-281,-205},{-286,-193,-271,-217,-193,-276},{-200,-274,-248,-198,-271,-209},{-226,-212,-267,-219,-259,-240},{-252,-231,-212,-217,-276,-195},{-233,-250,-245,-276,-228,-198},{-214,-248,-267,-259,-200,-255},{-212,-212,-274,-271,-283,-205},{-202,-271,-233,-252,-214,-276},{-238,-217,-214,-214,-281,-219}},{{-193,-221,-281,-276,-226,-257},{-276,-271,-200,-231,-257,-231},{-212,-193,-212,-202,-250,-238},{-259,-274,-264,-226,-245,-245},{-271,-202,-214,-278,-245,-202},{-286,-236,-245,-262,-257,-286},{-209,-238,-283,-190,-221,-278},{-233,-283,-190,-198,-255,-248},{-250,-226,-202,-281,-274,-236},{-221,-224,-276,-274,-228,-190}},{{-195,-198,-252,-219,-228,-257},{-214,-269,-217,-221,-236,-278},{-233,-209,-252,-250,-255,-226},{-207,-259,-212,-228,-255,-202},{-212,-255,-190,-276,-255,-205},{-207,-271,-252,-233,-252,-226},{-281,-269,-264,-193,-202,-226},{-264,-250,-226,-214,-193,-236},{-262,-217,-214,-286,-245,-259},{-217,-231,-231,-214,-250,-257}},{{-226,-233,-195,-248,-267,-202},{-224,-236,-281,-231,-264,-274},{-262,-207,-262,-238,-259,-200},{-255,-231,-252,-250,-226,-259},{-264,-250,-252,-262,-219,-250},{-281,-257,-209,-240,-274,-245},{-212,-274,-259,-240,-205,-195},{-259,-269,-262,-283,-269,-228},{-274,-195,-219,-264,-207,-257},{-281,-255,-255,-212,-217,-252}}},{{{-298,-229,-322,-300,-270,-314},{-268,-273,-248,-328,-221,-240},{-235,-295,-232,-243,-224,-221},{-232,-325,-240,-328,-292,-251},{-227,-259,-298,-224,-278,-276},{-221,-251,-300,-306,-311,-257},{-224,-262,-254,-273,-229,-229},{-317,-276,-262,-308,-270,-306},{-251,-325,-303,-259,-232,-314},{-273,-317,-308,-232,-259,-270}},{{-314,-306,-262,-325,-238,-308},{-303,-278,-218,-295,-322,-328},{-240,-311,-262,-257,-295,-292},{-273,-268,-281,-319,-308,-270},{-295,-317,-254,-298,-235,-229},{-227,-221,-306,-303,-281,-287},{-284,-306,-221,-325,-287,-235},{-306,-273,-292,-325,-273,-289},{-314,-276,-262,-262,-221,-254},{-268,-306,-284,-276,-325,-218}},{{-328,-322,-229,-248,-268,-317},{-303,-240,-224,-284,-319,-259},{-232,-311,-278,-289,-259,-273},{-240,-270,-289,-303,-281,-224},{-268,-270,-232,-306,-281,-218},{-224,-262,-319,-284,-276,-281},{-243,-218,-224,-259,-235,-235},{-311,-289,-295,-254,-276,-246},{-276,-281,-248,-300,-240,-238},{-265,-218,-254,-221,-289,-300}},{{-311,-319,-268,-229,-303,-238},{-246,-270,-306,-317,-276,-298},{-289,-262,-254,-273,-289,-251},{-229,-224,-270,-303,-218,-298},{-319,-314,-292,-238,-322,-229},{-289,-218,-251,-298,-322,-227},{-292,-221,-306,-273,-238,-314},{-265,-306,-328,-278,-319,-238},{-243,-259,-284,-273,-224,-243},{-268,-319,-281,-314,-278,-240}},{{-265,-251,-224,-287,-235,-325},{-259,-238,-254,-224,-238,-232},{-221,-303,-262,-322,-265,-251},{-218,-240,-243,-262,-295,-273},{-276,-240,-276,-257,-238,-281},{-251,-328,-295,-273,-328,-289},{-227,-308,-259,-224,-276,-276},{-254,-259,-218,-268,-276,-229},{-262,-235,-262,-319,-276,-240},{-295,-328,-265,-328,-300,-314}},{{-246,-311,-295,-289,-240,-328},{-278,-319,-240,-246,-278,-270},{-221,-270,-311,-287,-289,-319},{-221,-319,-325,-238,-278,-328},{-238,-322,-270,-246,-238,-306},{-235,-246,-246,-246,-229,-300},{-289,-257,-235,-232,-221,-281},{-298,-300,-243,-240,-311,-317},{-243,-306,-281,-243,-303,-235},{-298,-314,-246,-262,-265,-248}},{{-308,-246,-254,-227,-243,-257},{-240,-314,-248,-248,-325,-328},{-227,-224,-251,-218,-235,-243},{-278,-300,-238,-227,-311,-278},{-251,-328,-311,-246,-229,-240},{-259,-278,-278,-262,-259,-246},{-303,-224,-232,-311,-289,-235},{-278,-300,-240,-251,-287,-273},{-229,-325,-227,-251,-243,-287},{-311,-276,-262,-259,-218,-287}},{{-251,-284,-295,-238,-314,-229},{-218,-229,-227,-273,-278,-235},{-322,-322,-232,-289,-281,-295},{-322,-322,-273,-224,-251,-287},{-221,-262,-265,-257,-298,-273},{-218,-306,-232,-276,-218,-292},{-268,-325,-308,-232,-243,-259},{-298,-314,-325,-314,-238,-289},{-287,-328,-218,-317,-259,-311},{-281,-227,-265,-259,-281,-248}},{{-221,-240,-265,-221,-229,-224},{-268,-243,-311,-273,-265,-287},{-243,-243,-262,-259,-248,-306},{-221,-235,-273,-254,-268,-218},{-295,-278,-232,-319,-298,-328},{-289,-265,-303,-292,-284,-268},{-268,-276,-270,-265,-251,-238},{-251,-287,-259,-262,-303,-292},{-287,-262,-314,-325,-243,-306},{-246,-259,-308,-224,-224,-308}}},{{{-148,-151,-166,-136,-126,-152},{-157,-143,-177,-125,-179,-137},{-171,-136,-169,-152,-123,-151},{-172,-129,-182,-140,-143,-151},{-176,-128,-174,-174,-163,-165},{-140,-159,-151,-168,-172,-180},{-165,-183,-131,-162,-159,-163},{-137,-174,-132,-134,-176,-180},{-132,-169,-146,-166,-185,-166},{-145,-128,-165,-163,-183,-166}},{{-146,-151,-157,-139,-185,-176},{-146,-137,-174,-131,-137,-134},{-129,-134,-165,-176,-151,-149},{-185,-146,-159,-151,-185,-128},{-126,-123,-171,-128,-177,-172},{-139,-137,-160,-140,-185,-148},{-159,-145,-157,-177,-169,-143},{-156,-172,-128,-185,-139,-182},{-174,-179,-129,-146,-149,-128},{-165,-128,-185,-136,-172,-134}},{{-142,-128,-148,-172,-136,-128},{-179,-156,-179,-172,-132,-156},{-183,-182,-152,-169,-157,-145},{-168,-177,-156,-163,-179,-148},{-176,-162,-149,-168,-143,-172},{-123,-162,-185,-156,-183,-123},{-182,-136,-163,-125,-137,-145},{-152,-131,-182,-146,-157,-179},{-185,-123,-151,-180,-160,-174},{-162,-129,-143,-159,-176,-163}},{{-126,-146,-139,-123,-163,-148},{-185,-149,-168,-125,-174,-149},{-151,-183,-134,-143,-179,-123},{-140,-166,-132,-171,-166,-146},{-123,-151,-169,-168,-132,-176},{-168,-132,-168,-182,-163,-152},{-165,-148,-126,-148,-160,-125},{-143,-148,-163,-179,-172,-128},{-185,-159,-172,-180,-171,-131},{-151,-149,-125,-183,-143,-123}},{{-182,-165,-174,-174,-149,-162},{-143,-169,-125,-131,-137,-145},{-126,-134,-149,-183,-131,-132},{-140,-172,-185,-183,-139,-151},{-169,-139,-140,-149,-157,-168},{-160,-152,-177,-128,-165,-165},{-160,-151,-185,-159,-129,-156},{-139,-165,-171,-171,-165,-182},{-160,-132,-146,-185,-157,-176},{-157,-148,-123,-151,-163,-169}},{{-180,-160,-136,-159,-159,-126},{-163,-136,-151,-180,-174,-174},{-129,-125,-128,-165,-162,-163},{-171,-145,-180,-143,-185,-183},{-180,-176,-165,-176,-171,-180},{-177,-162,-151,-159,-169,-149},{-174,-159,-137,-126,-180,-140},{-125,-132,-148,-137,-169,-145},{-162,-160,-129,-185,-132,-126},{-152,-131,-185,-182,-149,-139}},{{-174,-129,-125,-134,-183,-132},{-125,-151,-131,-145,-129,-154},{-145,-142,-169,-131,-154,-157},{-160,-149,-128,-168,-176,-123},{-123,-129,-148,-152,-142,-132},{-183,-134,-157,-159,-176,-177},{-169,-140,-136,-149,-180,-162},{-139,-139,-177,-172,-152,-163},{-142,-182,-176,-169,-143,-163},{-129,-172,-182,-132,-137,-151}},{{-165,-131,-152,-134,-183,-159},{-154,-145,-152,-160,-171,-179},{-166,-134,-149,-169,-183,-143},{-139,-146,-156,-148,-134,-152},{-152,-145,-172,-137,-159,-128},{-168,-128,-172,-145,-134,-182},{-142,-182,-162,-139,-125,-156},{-128,-145,-156,-129,-136,-146},{-126,-163,-183,-154,-143,-139},{-160,-151,-183,-129,-142,-174}},{{-154,-165,-134,-129,-156,-154},{-182,-131,-148,-149,-148,-182},{-185,-162,-128,-172,-183,-140},{-157,-149,-180,-176,-179,-182},{-156,-174,-148,-160,-137,-126},{-146,-174,-160,-128,-179,-145},{-136,-143,-168,-183,-179,-156},{-142,-154,-131,-154,-163,-145},{-137,-145,-148,-168,-146,-140},{-132,-148,-174,-169,-183,-123}}},{{{-182,-211,-198,-147,-198,-166},{-175,-211,-175,-195,-209,-173},{-207,-200,-206,-147,-198,-169},{-184,-217,-153,-160,-184,-209},{-166,-204,-206,-164,-206,-151},{-211,-213,-164,-213,-158,-167},{-153,-204,-204,-178,-158,-160},{-213,-211,-215,-204,-198,-157},{-186,-155,-187,-213,-157,-213},{-195,-173,-211,-189,-209,-147}},{{-155,-147,-215,-171,-191,-189},{-184,-211,-178,-217,-202,-217},{-149,-213,-186,-217,-207,-197},{-200,-207,-198,-155,-178,-197},{-213,-200,-173,-151,-207,-155},{-206,-173,-173,-206,-209,-149},{-204,-198,-200,-187,-178,-157},{-187,-162,-178,-182,-218,-193},{-206,-187,-167,-186,-147,-198},{-149,-193,-151,-173,-217,-177}},{{-167,-147,-189,-178,-207,-173},{-169,-184,-175,-180,-180,-158},{-200,-197,-173,-218,-189,-160},{-197,-146,-166,-215,-193,-160},{-160,-186,-197,-173,-167,-209},{-193,-164,-186,-187,-189,-180},{-200,-175,-215,-218,-207,-180},{-206,-218,-182,-204,-184,-213},{-202,-213,-202,-195,-149,-157},{-177,-177,-151,-202,-166,-158}},{{-184,-189,-189,-189,-153,-189},{-215,-177,-182,-173,-197,-166},{-177,-206,-218,-157,-175,-157},{-153,-146,-206,-167,-146,-213},{-186,-215,-213,-166,-195,-213},{-158,-160,-178,-157,-171,-178},{-191,-217,-171,-164,-215,-193},{-162,-153,-198,-155,-189,-153},{-167,-206,-204,-207,-164,-164},{-195,-211,-198,-177,-186,-171}},{{-171,-189,-191,-189,-197,-193},{-184,-157,-147,-180,-217,-175},{-147,-155,-158,-195,-207,-182},{-171,-209,-200,-171,-166,-189},{-151,-198,-193,-215,-213,-186},{-178,-213,-195,-209,-158,-204},{-153,-178,-187,-147,-147,-160},{-217,-191,-202,-206,-173,-164},{-153,-207,-198,-182,-162,-211},{-204,-177,-213,-207,-204,-186}},{{-155,-146,-197,-197,-149,-153},{-167,-153,-167,-211,-186,-149},{-195,-177,-187,-177,-213,-175},{-218,-191,-177,-166,-151,-211},{-155,-158,-155,-204,-191,-213},{-206,-191,-200,-191,-178,-211},{-189,-171,-169,-198,-164,-211},{-146,-193,-209,-166,-180,-175},{-198,-162,-180,-184,-215,-162},{-206,-164,-149,-182,-146,-178}},{{-177,-173,-162,-177,-147,-178},{-151,-211,-153,-178,-164,-158},{-215,-191,-180,-158,-204,-169},{-211,-160,-166,-171,-151,-158},{-182,-158,-184,-169,-169,-195},{-173,-171,-180,-204,-158,-149},{-153,-218,-187,-213,-213,-186},{-151,-200,-153,-146,-211,-197},{-160,-187,-211,-189,-151,-153},{-153,-164,-160,-191,-155,-218}},{{-175,-182,-204,-207,-180,-151},{-186,-204,-193,-193,-151,-206},{-182,-204,-164,-207,-158,-177},{-217,-153,-207,-149,-182,-218},{-193,-211,-173,-207,-164,-202},{-158,-209,-149,-166,-187,-155},{-197,-162,-200,-158,-189,-167},{-187,-197,-173,-151,-191,-169},{-186,-198,-204,-182,-202,-155},{-184,-175,-195,-146,-171,-162}},{{-146,-160,-173,-207,-215,-160},{-184,-180,-187,-187,-153,-200},{-167,-206,-197,-206,-189,-193},{-217,-177,-202,-191,-173,-193},{-186,-202,-187,-149,-151,-160},{-178,-147,-157,-164,-204,-147},{-206,-211,-149,-213,-158,-171},{-167,-178,-146,-157,-182,-158},{-209,-166,-169,-151,-184,-147},{-149,-213,-211,-195,-182,-189}}},{{{-282,-289,-233,-287,-208,-284},{-203,-233,-245,-287,-279,-230},{-294,-220,-220,-274,-238,-198},{-265,-262,-287,-265,-201,-203},{-287,-208,-201,-230,-272,-289},{-218,-279,-235,-223,-262,-270},{-294,-257,-262,-203,-196,-225},{-201,-260,-216,-265,-272,-279},{-216,-262,-216,-196,-250,-279},{-267,-267,-279,-292,-262,-211}},{{-284,-211,-260,-228,-270,-238},{-198,-274,-216,-284,-260,-233},{-287,-223,-294,-243,-238,-240},{-201,-230,-243,-260,-277,-235},{-230,-208,-218,-201,-289,-198},{-216,-260,-267,-272,-272,-228},{-211,-289,-265,-238,-277,-255},{-294,-206,-277,-292,-267,-240},{-206,-223,-238,-240,-265,-240},{-284,-213,-292,-235,-252,-272}},{{-252,-282,-233,-255,-262,-250},{-262,-216,-233,-294,-267,-274},{-282,-203,-277,-257,-220,-277},{-201,-270,-228,-277,-282,-267},{-228,-211,-292,-230,-265,-211},{-243,-252,-274,-257,-277,-211},{-198,-292,-233,-235,-198,-230},{-238,-196,-262,-272,-250,-213},{-279,-208,-220,-274,-206,-292},{-252,-198,-230,-243,-262,-257}},{{-270,-243,-233,-196,-216,-245},{-203,-245,-240,-206,-240,-235},{-284,-220,-235,-289,-272,-196},{-274,-235,-294,-262,-228,-284},{-230,-292,-208,-260,-201,-243},{-230,-274,-252,-292,-270,-250},{-294,-255,-282,-257,-228,-223},{-243,-284,-250,-252,-238,-201},{-230,-289,-287,-201,-238,-228},{-213,-250,-267,-262,-220,-208}},{{-225,-282,-255,-272,-287,-218},{-211,-250,-270,-257,-213,-211},{-206,-270,-225,-277,-250,-272},{-247,-274,-223,-277,-213,-228},{-272,-274,-279,-292,-260,-201},{-223,-201,-230,-211,-267,-230},{-243,-196,-267,-223,-255,-265},{-265,-274,-223,-277,-218,-228},{-206,-230,-211,-220,-289,-201},{-216,-225,-238,-201,-287,-252}},{{-196,-274,-228,-294,-225,-287},{-265,-206,-255,-228,-247,-284},{-267,-201,-196,-265,-228,-272},{-252,-230,-250,-260,-238,-294},{-230,-292,-211,-230,-228,-213},{-218,-267,-216,-198,-225,-250},{-277,-272,-230,-198,-220,-255},{-243,-270,-252,-277,-201,-247},{-225,-196,-252,-198,-292,-257},{-255,-245,-223,-201,-245,-196}},{{-211,-294,-225,-270,-206,-243},{-247,-196,-287,-218,-267,-267},{-255,-292,-262,-216,-220,-216},{-282,-208,-208,-292,-213,-201},{-289,-255,-218,-206,-218,-203},{-240,-206,-243,-230,-213,-233},{-257,-216,-250,-230,-201,-260},{-279,-267,-225,-206,-279,-265},{-252,-262,-270,-198,-284,-265},{-240,-230,-287,-238,-238,-270}},{{-277,-206,-225,-250,-262,-220},{-233,-238,-238,-203,-211,-201},{-206,-250,-198,-247,-240,-267},{-220,-213,-284,-270,-260,-235},{-267,-233,-230,-196,-206,-220},{-225,-203,-216,-292,-289,-201},{-279,-252,-196,-223,-287,-262},{-250,-240,-277,-267,-213,-284},{-247,-277,-277,-270,-243,-287},{-294,-225,-220,-223,-289,-206}},{{-270,-206,-211,-213,-223,-277},{-272,-211,-260,-218,-282,-233},{-287,-250,-274,-208,-206,-220},{-245,-211,-206,-294,-208,-245},{-262,-277,-255,-292,-225,-270},{-228,-216,-216,-230,-220,-279},{-213,-255,-238,-252,-201,-196},{-216,-265,-233,-267,-247,-235},{-289,-267,-223,-282,-255,-211},{-270,-208,-198,-208,-260,-250}}},{{{-252,-270,-189,-208,-261,-229},{-277,-247,-270,-275,-187,-233},{-224,-189,-259,-189,-273,-273},{-199,-270,-236,-245,-226,-224},{-261,-238,-199,-245,-226,-261},{-231,-277,-231,-215,-268,-243},{-226,-256,-275,-261,-185,-213},{-229,-236,-254,-275,-229,-208},{-210,-233,-249,-238,-261,-189},{-192,-226,-240,-273,-187,-273}},{{-245,-263,-245,-261,-245,-249},{-226,-254,-222,-277,-201,-206},{-249,-210,-247,-261,-273,-208},{-231,-252,-238,-196,-189,-263},{-217,-231,-229,-224,-273,-273},{-185,-273,-206,-261,-217,-229},{-217,-203,-199,-201,-245,-254},{-192,-263,-261,-192,-229,-206},{-238,-268,-268,-273,-222,-268},{-245,-213,-189,-236,-203,-243}},{{-247,-273,-266,-215,-208,-240},{-189,-256,-254,-233,-194,-222},{-259,-259,-238,-201,-233,-222},{-261,-275,-273,-194,-256,-187},{-270,-270,-266,-236,-273,-194},{-266,-254,-189,-210,-247,-206},{-268,-210,-270,-263,-217,-236},{-224,-245,-217,-203,-233,-259},{-240,-213,-219,-215,-249,-277},{-273,-210,-208,-219,-185,-256}},{{-229,-194,-187,-259,-226,-259},{-266,-245,-213,-215,-187,-189},{-189,-240,-249,-263,-208,-215},{-222,-263,-243,-240,-256,-219},{-187,-243,-266,-199,-187,-268},{-240,-187,-236,-189,-189,-203},{-203,-266,-226,-217,-275,-219},{-219,-219,-231,-213,-201,-210},{-229,-249,-222,-194,-199,-268},{-194,-199,-247,-224,-240,-249}},{{-224,-210,-194,-236,-222,-240},{-213,-206,-236,-270,-226,-222},{-201,-236,-249,-229,-192,-189},{-231,-277,-210,-270,-229,-233},{-201,-219,-217,-210,-222,-273},{-226,-273,-187,-243,-254,-266},{-240,-185,-226,-229,-268,-243},{-252,-215,-231,-224,-189,-252},{-249,-266,-266,-233,-270,-229},{-236,-210,-249,-215,-219,-268}},{{-226,-273,-275,-208,-277,-270},{-243,-233,-199,-254,-185,-219},{-263,-203,-208,-201,-208,-213},{-277,-222,-254,-270,-236,-270},{-201,-217,-231,-275,-201,-185},{-229,-243,-215,-252,-215,-270},{-213,-219,-226,-194,-240,-275},{-224,-270,-254,-199,-252,-236},{-187,-187,-263,-189,-252,-238},{-213,-249,-194,-268,-233,-229}},{{-277,-254,-187,-192,-201,-268},{-249,-245,-259,-245,-185,-247},{-189,-254,-231,-210,-217,-196},{-187,-266,-206,-222,-226,-219},{-268,-213,-238,-199,-185,-240},{-256,-203,-224,-226,-194,-189},{-203,-192,-196,-185,-252,-203},{-231,-252,-213,-256,-247,-187},{-247,-238,-199,-189,-189,-196},{-273,-206,-210,-213,-245,-275}},{{-275,-215,-240,-215,-256,-189},{-222,-273,-254,-199,-273,-206},{-196,-226,-226,-259,-245,-240},{-249,-231,-194,-231,-229,-185},{-210,-196,-252,-226,-268,-254},{-268,-229,-229,-247,-261,-249},{-213,-219,-252,-194,-217,-247},{-224,-206,-238,-233,-210,-206},{-259,-270,-266,-203,-270,-219},{-217,-243,-259,-252,-196,-249}},{{-254,-256,-252,-254,-189,-252},{-238,-261,-233,-273,-259,-199},{-261,-275,-203,-245,-201,-249},{-236,-196,-185,-238,-222,-208},{-229,-268,-208,-196,-187,-185},{-266,-196,-203,-208,-185,-215},{-224,-208,-249,-259,-201,-217},{-210,-219,-219,-275,-206,-236},{-210,-259,-236,-210,-277,-222},{-215,-249,-254,-192,-185,-224}}},{{{-306,-315,-350,-270,-312,-344},{-265,-238,-303,-262,-326,-294},{-244,-306,-294,-318,-323,-253},{-288,-312,-341,-241,-320,-262},{-276,-262,-241,-353,-338,-268},{-338,-303,-312,-347,-262,-300},{-320,-353,-291,-238,-291,-244},{-303,-323,-338,-347,-318,-341},{-332,-288,-335,-329,-312,-238},{-276,-350,-335,-265,-350,-309}},{{-265,-297,-241,-347,-247,-297},{-332,-253,-279,-241,-276,-341},{-341,-315,-303,-259,-268,-341},{-344,-291,-326,-306,-347,-247},{-303,-253,-268,-323,-353,-297},{-306,-309,-235,-323,-312,-341},{-285,-256,-303,-265,-300,-265},{-312,-241,-294,-335,-323,-326},{-270,-268,-256,-344,-297,-270},{-259,-247,-318,-250,-244,-291}},{{-335,-247,-256,-244,-241,-338},{-270,-323,-318,-247,-285,-344},{-241,-329,-318,-259,-288,-306},{-288,-247,-320,-294,-241,-256},{-276,-241,-306,-279,-312,-276},{-320,-303,-309,-326,-344,-347},{-353,-341,-262,-256,-288,-315},{-241,-282,-303,-273,-323,-303},{-259,-306,-235,-335,-235,-288},{-250,-288,-306,-320,-332,-344}},{{-262,-285,-270,-294,-341,-276},{-332,-282,-268,-315,-294,-268},{-353,-270,-273,-344,-282,-297},{-320,-282,-300,-335,-347,-244},{-312,-332,-335,-253,-341,-353},{-306,-326,-238,-335,-341,-244},{-259,-329,-347,-315,-312,-270},{-341,-276,-318,-326,-235,-273},{-238,-270,-318,-297,-320,-288},{-247,-344,-288,-288,-312,-332}},{{-291,-256,-329,-268,-323,-253},{-265,-297,-288,-309,-294,-320},{-241,-285,-318,-344,-315,-329},{-315,-315,-273,-279,-273,-353},{-344,-288,-353,-338,-285,-265},{-353,-256,-332,-353,-241,-326},{-335,-332,-294,-344,-276,-265},{-259,-285,-297,-265,-347,-247},{-244,-294,-259,-282,-315,-268},{-262,-291,-265,-300,-338,-335}},{{-268,-320,-303,-318,-235,-318},{-241,-268,-238,-297,-329,-265},{-315,-279,-312,-320,-309,-265},{-268,-341,-270,-320,-279,-347},{-318,-291,-338,-279,-338,-247},{-270,-323,-335,-291,-270,-338},{-238,-341,-315,-318,-338,-326},{-344,-247,-285,-282,-338,-241},{-262,-270,-259,-306,-332,-250},{-247,-291,-329,-262,-341,-306}},{{-241,-288,-350,-347,-247,-329},{-309,-253,-344,-256,-341,-241},{-247,-247,-265,-335,-282,-259},{-279,-326,-338,-235,-335,-353},{-303,-338,-329,-323,-241,-253},{-303,-344,-335,-285,-315,-285},{-338,-259,-294,-318,-312,-318},{-315,-323,-318,-344,-259,-350},{-329,-350,-297,-300,-341,-244},{-285,-285,-300,-320,-235,-344}},{{-279,-335,-244,-303,-315,-350},{-341,-273,-253,-309,-323,-353},{-259,-323,-294,-253,-238,-285},{-329,-332,-350,-238,-344,-326},{-256,-241,-297,-303,-238,-241},{-282,-353,-241,-315,-318,-241},{-350,-347,-241,-315,-265,-332},{-312,-288,-235,-270,-247,-279},{-247,-326,-303,-265,-259,-256},{-291,-235,-288,-247,-332,-326}},{{-268,-268,-276,-247,-244,-315},{-350,-279,-279,-341,-268,-341},{-247,-338,-309,-323,-306,-241},{-309,-259,-329,-279,-279,-241},{-329,-347,-256,-329,-256,-276},{-262,-235,-320,-270,-312,-297},{-282,-326,-344,-312,-309,-273},{-259,-347,-350,-247,-256,-250},{-294,-273,-270,-300,-268,-326},{-353,-250,-347,-235,-347,-235}}}}; // 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,13,9,24,12,8,24,12,8,25,13,9,25,13,9,25,13,9,25,13,9,25,13,9,26,13,9,26,13,9,26,13,9,25,13,9,26,14,9,27,13,9,26,13,9,26,13,9,26,14,9,26,13,9,26,13,9,25,13,9,26,13,9,26,13,9,26,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}}; // set of shipments in each bid 
int SHsts[SPN]={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,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,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,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,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,0,4,8,12,16,20,24,28,32,36,40,44,48,1,7,13,19,25,31,37,43,49,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,0,4,8,12,16,20,24,28,32,36,40,44,48,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,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,0,4,8,12,16,20,24,28,32,36,40,44,48,0,6,12,18,24,30,36,42,48,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,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,1,5,9,13,17,21,25,29,33,37,41,45,49,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,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,0,4,8,12,16,20,24,28,32,36,40,44,48,52,0,6,12,18,24,30,36,42,48,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,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,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,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,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,0,6,12,18,24,30,36,42,48,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,1,5,9,13,17,21,25,29,33,37,41,45,49,0,6,12,18,24,30,36,42,48,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,2,6,10,14,18,22,26,30,34,38,42,46,50,1,7,13,19,25,31,37,43,49,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,0,4,8,12,16,20,24,28,32,36,40,44,48,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}; // set of start times of each shipment 
int SHets[SPN]={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,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,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,7,11,15,19,23,27,31,35,39,43,47,51,6,12,18,24,30,36,42,48,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,5,9,13,17,21,25,29,33,37,41,45,49,53,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,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,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,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,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,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,1,5,9,13,17,21,25,29,33,37,41,45,49,53,1,7,13,19,25,31,37,43,49,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,2,6,10,14,18,22,26,30,34,38,42,46,50,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,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,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,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,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,2,8,14,20,26,32,38,44,50,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,3,7,11,15,19,23,27,31,35,39,43,47,51,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,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,3,7,11,15,19,23,27,31,35,39,43,47,51,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}; // set of end times of each shipment 
