int Dev = 30;// Deviation
extern const int CNN = 1;// 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 = 1128;//Number of shipments
extern const int SN = 10;//Number of scenarios at each stage
extern const int MBSN = 26;//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]={{{{11434,0,0,0,0,0},{11544,0,0,0,0,0},{11785,0,0,0,0,0},{11599,0,0,0,0,0},{11209,0,0,0,0,0},{11164,0,0,0,0,0},{11345,0,0,0,0,0},{10917,0,0,0,0,0},{10461,0,0,0,0,0},{11656,0,0,0,0,0}},{{11275,0,0,0,0,0},{11185,0,0,0,0,0},{12002,0,0,0,0,0},{11217,0,0,0,0,0},{11101,0,0,0,0,0},{11105,0,0,0,0,0},{11102,0,0,0,0,0},{11138,0,0,0,0,0},{11415,0,0,0,0,0},{11775,0,0,0,0,0}},{{11702,0,0,0,0,0},{11331,0,0,0,0,0},{11180,0,0,0,0,0},{10751,0,0,0,0,0},{11471,0,0,0,0,0},{11264,0,0,0,0,0},{11432,0,0,0,0,0},{11514,0,0,0,0,0},{11918,0,0,0,0,0},{11410,0,0,0,0,0}},{{11406,0,0,0,0,0},{11743,0,0,0,0,0},{11285,0,0,0,0,0},{10862,0,0,0,0,0},{11193,0,0,0,0,0},{11487,0,0,0,0,0},{11241,0,0,0,0,0},{10994,0,0,0,0,0},{11309,0,0,0,0,0},{11919,0,0,0,0,0}},{{11039,0,0,0,0,0},{11833,0,0,0,0,0},{11608,0,0,0,0,0},{10950,0,0,0,0,0},{11933,0,0,0,0,0},{11205,0,0,0,0,0},{11071,0,0,0,0,0},{11233,0,0,0,0,0},{11719,0,0,0,0,0},{11507,0,0,0,0,0}},{{11175,0,0,0,0,0},{11743,0,0,0,0,0},{11925,0,0,0,0,0},{11510,0,0,0,0,0},{11342,0,0,0,0,0},{11591,0,0,0,0,0},{11419,0,0,0,0,0},{11657,0,0,0,0,0},{12102,0,0,0,0,0},{11307,0,0,0,0,0}},{{11146,0,0,0,0,0},{10841,0,0,0,0,0},{11647,0,0,0,0,0},{11772,0,0,0,0,0},{11675,0,0,0,0,0},{12137,0,0,0,0,0},{11762,0,0,0,0,0},{11588,0,0,0,0,0},{11404,0,0,0,0,0},{11578,0,0,0,0,0}},{{11419,0,0,0,0,0},{11534,0,0,0,0,0},{11598,0,0,0,0,0},{11766,0,0,0,0,0},{11487,0,0,0,0,0},{11416,0,0,0,0,0},{11298,0,0,0,0,0},{11786,0,0,0,0,0},{11448,0,0,0,0,0},{11742,0,0,0,0,0}},{{11641,0,0,0,0,0},{11420,0,0,0,0,0},{11451,0,0,0,0,0},{11386,0,0,0,0,0},{11416,0,0,0,0,0},{11349,0,0,0,0,0},{11517,0,0,0,0,0},{11146,0,0,0,0,0},{10965,0,0,0,0,0},{11287,0,0,0,0,0}}},{{{-225,-238,-173,-256,-219,-260},{-221,-205,-246,-175,-144,-217},{-256,-177,-209,-246,-185,-189},{-235,-175,-195,-171,-168,-158},{-173,-189,-203,-185,-175,-154},{-142,-181,-231,-162,-262,-162},{-166,-227,-197,-152,-231,-248},{-205,-211,-233,-252,-181,-148},{-173,-158,-221,-158,-238,-258},{-262,-162,-254,-189,-168,-205}},{{-166,-217,-187,-191,-233,-225},{-175,-205,-162,-223,-223,-175},{-164,-258,-215,-219,-148,-197},{-242,-175,-238,-193,-142,-144},{-144,-262,-177,-173,-252,-175},{-166,-199,-189,-183,-219,-223},{-164,-166,-177,-213,-217,-240},{-223,-164,-242,-195,-185,-183},{-179,-148,-254,-191,-164,-197},{-258,-187,-235,-256,-156,-231}},{{-242,-221,-258,-219,-175,-187},{-197,-185,-225,-181,-258,-248},{-199,-256,-175,-152,-248,-221},{-166,-164,-148,-221,-146,-203},{-211,-207,-162,-152,-242,-238},{-171,-209,-179,-177,-195,-148},{-150,-256,-211,-211,-185,-256},{-158,-217,-231,-164,-233,-160},{-262,-221,-250,-181,-244,-171},{-248,-240,-154,-154,-171,-256}},{{-166,-193,-209,-246,-209,-160},{-175,-235,-252,-217,-199,-152},{-181,-258,-193,-168,-227,-201},{-158,-235,-225,-164,-195,-207},{-205,-191,-233,-231,-142,-197},{-154,-158,-179,-246,-154,-250},{-148,-193,-164,-154,-177,-223},{-142,-229,-168,-183,-231,-154},{-219,-160,-142,-262,-240,-168},{-166,-235,-240,-146,-256,-156}},{{-150,-154,-146,-183,-142,-183},{-223,-256,-148,-215,-229,-162},{-219,-175,-205,-260,-152,-195},{-250,-225,-181,-238,-185,-142},{-142,-146,-246,-260,-197,-240},{-185,-185,-207,-225,-183,-173},{-183,-231,-195,-166,-179,-229},{-156,-197,-179,-183,-156,-205},{-211,-193,-191,-238,-260,-156},{-152,-195,-225,-264,-201,-177}},{{-197,-209,-179,-177,-158,-152},{-175,-162,-246,-213,-221,-231},{-221,-246,-227,-242,-189,-227},{-154,-225,-229,-148,-205,-160},{-213,-168,-175,-181,-193,-197},{-252,-219,-175,-244,-242,-175},{-201,-185,-250,-250,-217,-211},{-158,-242,-175,-254,-193,-162},{-213,-175,-146,-227,-260,-221},{-252,-179,-171,-156,-179,-238}},{{-166,-158,-238,-238,-235,-162},{-177,-179,-160,-162,-160,-187},{-201,-199,-205,-156,-203,-213},{-171,-227,-213,-144,-144,-154},{-193,-197,-258,-195,-246,-154},{-221,-260,-168,-264,-162,-258},{-144,-256,-260,-209,-168,-260},{-197,-258,-217,-231,-246,-231},{-227,-217,-162,-183,-146,-171},{-150,-177,-203,-215,-177,-187}},{{-199,-195,-185,-207,-256,-193},{-201,-235,-260,-227,-213,-227},{-260,-179,-223,-211,-217,-201},{-244,-156,-223,-233,-238,-164},{-229,-197,-199,-164,-240,-233},{-189,-260,-152,-254,-242,-240},{-207,-201,-158,-171,-158,-209},{-211,-146,-183,-256,-207,-152},{-244,-197,-168,-185,-142,-211},{-160,-195,-258,-227,-181,-162}},{{-189,-215,-195,-187,-201,-191},{-177,-264,-193,-171,-177,-238},{-223,-158,-187,-171,-215,-203},{-166,-217,-179,-244,-181,-248},{-260,-152,-146,-231,-258,-144},{-233,-160,-162,-264,-171,-252},{-235,-235,-221,-195,-264,-258},{-209,-173,-223,-158,-187,-185},{-231,-221,-152,-244,-238,-252},{-197,-179,-156,-197,-229,-160}}},{{{-169,-140,-155,-122,-182,-206},{-209,-138,-188,-145,-118,-204},{-153,-119,-174,-158,-203,-138},{-119,-193,-137,-174,-203,-116},{-137,-113,-113,-175,-156,-208},{-158,-206,-151,-188,-188,-124},{-188,-190,-167,-158,-204,-177},{-166,-142,-119,-174,-167,-124},{-174,-147,-182,-153,-156,-132},{-151,-184,-190,-209,-192,-159}},{{-156,-119,-203,-130,-169,-192},{-145,-132,-161,-119,-114,-155},{-132,-206,-124,-135,-209,-138},{-140,-151,-113,-119,-119,-118},{-143,-151,-169,-155,-135,-118},{-114,-118,-122,-204,-201,-113},{-121,-153,-193,-121,-147,-113},{-180,-192,-200,-179,-147,-137},{-147,-129,-163,-158,-145,-161},{-153,-190,-166,-196,-159,-140}},{{-153,-134,-134,-171,-171,-175},{-180,-134,-113,-209,-156,-127},{-118,-118,-134,-138,-119,-200},{-132,-113,-166,-184,-130,-163},{-137,-142,-167,-148,-164,-129},{-153,-147,-188,-134,-190,-209},{-122,-138,-195,-166,-129,-118},{-147,-126,-206,-129,-166,-166},{-138,-159,-172,-113,-193,-122},{-179,-155,-142,-184,-161,-204}},{{-159,-119,-134,-151,-182,-188},{-193,-174,-155,-124,-198,-192},{-190,-175,-129,-127,-147,-175},{-119,-135,-179,-159,-180,-126},{-185,-196,-198,-137,-169,-209},{-151,-187,-182,-145,-201,-134},{-209,-188,-196,-118,-137,-158},{-129,-208,-137,-129,-200,-182},{-182,-122,-140,-177,-182,-113},{-116,-137,-174,-201,-206,-156}},{{-161,-153,-113,-166,-118,-151},{-122,-196,-209,-179,-130,-196},{-158,-143,-129,-124,-200,-184},{-124,-118,-135,-179,-158,-116},{-193,-155,-135,-195,-174,-126},{-155,-147,-122,-145,-206,-118},{-147,-196,-132,-150,-179,-179},{-200,-122,-114,-121,-206,-163},{-129,-126,-126,-163,-158,-159},{-167,-158,-148,-145,-174,-161}},{{-196,-159,-119,-180,-124,-164},{-195,-127,-201,-150,-180,-148},{-182,-182,-127,-145,-171,-200},{-130,-118,-201,-164,-121,-184},{-193,-169,-166,-204,-179,-122},{-119,-119,-185,-209,-155,-200},{-175,-113,-188,-119,-135,-159},{-195,-127,-184,-171,-209,-169},{-155,-179,-124,-124,-132,-164},{-166,-134,-129,-198,-166,-134}},{{-204,-185,-118,-127,-201,-206},{-116,-209,-192,-145,-153,-124},{-159,-190,-147,-132,-174,-151},{-124,-182,-148,-203,-206,-116},{-175,-184,-151,-174,-155,-193},{-153,-163,-204,-171,-192,-185},{-150,-177,-114,-204,-193,-174},{-121,-177,-187,-140,-171,-143},{-206,-113,-159,-159,-182,-124},{-113,-171,-200,-161,-187,-198}},{{-206,-140,-156,-204,-142,-177},{-204,-145,-121,-119,-171,-203},{-118,-155,-127,-159,-142,-169},{-153,-195,-180,-196,-113,-198},{-153,-203,-143,-145,-201,-126},{-137,-124,-208,-122,-142,-201},{-166,-164,-158,-151,-138,-179},{-203,-113,-116,-208,-158,-203},{-201,-201,-201,-148,-179,-177},{-195,-145,-193,-148,-129,-163}},{{-169,-174,-145,-134,-175,-113},{-127,-142,-184,-200,-158,-177},{-192,-177,-201,-198,-193,-155},{-188,-206,-164,-148,-166,-134},{-174,-134,-172,-200,-159,-180},{-156,-151,-185,-114,-124,-184},{-182,-140,-167,-126,-151,-148},{-184,-161,-132,-161,-159,-126},{-118,-122,-134,-114,-113,-151},{-151,-135,-130,-113,-138,-161}}},{{{-166,-280,-280,-176,-166,-293},{-245,-224,-213,-203,-199,-173},{-275,-192,-293,-286,-273,-182},{-266,-233,-240,-296,-259,-298},{-268,-254,-194,-282,-213,-252},{-162,-263,-268,-224,-169,-249},{-210,-219,-176,-219,-252,-213},{-164,-196,-166,-210,-210,-233},{-210,-169,-226,-291,-243,-182},{-178,-275,-178,-280,-164,-286}},{{-215,-178,-192,-238,-185,-203},{-266,-263,-166,-196,-286,-233},{-215,-164,-247,-277,-284,-238},{-164,-284,-219,-199,-203,-189},{-164,-206,-178,-268,-268,-196},{-194,-201,-217,-176,-284,-182},{-275,-215,-289,-187,-166,-192},{-180,-238,-169,-217,-189,-215},{-289,-247,-178,-217,-164,-162},{-296,-270,-162,-178,-169,-233}},{{-300,-280,-252,-266,-249,-256},{-185,-270,-166,-240,-289,-210},{-196,-259,-180,-291,-268,-180},{-162,-192,-231,-199,-256,-284},{-268,-222,-201,-252,-270,-196},{-247,-240,-268,-268,-206,-162},{-199,-284,-210,-238,-249,-268},{-169,-238,-199,-201,-296,-273},{-233,-180,-277,-275,-284,-266},{-268,-215,-249,-219,-284,-162}},{{-238,-171,-169,-189,-213,-208},{-243,-178,-284,-176,-185,-199},{-199,-162,-300,-201,-169,-286},{-180,-166,-187,-256,-201,-196},{-217,-266,-245,-196,-254,-261},{-164,-282,-169,-217,-275,-206},{-296,-277,-296,-284,-187,-291},{-296,-178,-189,-213,-231,-164},{-219,-169,-289,-217,-182,-240},{-263,-280,-185,-229,-169,-296}},{{-196,-213,-275,-217,-254,-192},{-199,-273,-296,-196,-164,-192},{-178,-213,-199,-240,-249,-300},{-224,-270,-210,-185,-173,-273},{-291,-252,-247,-245,-254,-233},{-229,-284,-245,-194,-275,-236},{-298,-176,-189,-224,-247,-261},{-280,-275,-229,-208,-293,-245},{-273,-298,-270,-224,-240,-194},{-291,-233,-173,-182,-180,-256}},{{-226,-162,-270,-249,-266,-296},{-201,-210,-243,-266,-259,-263},{-189,-256,-282,-166,-256,-245},{-296,-286,-219,-222,-280,-206},{-238,-266,-273,-180,-203,-206},{-261,-176,-252,-208,-296,-219},{-266,-231,-286,-176,-236,-284},{-238,-171,-213,-196,-252,-217},{-291,-171,-247,-238,-282,-268},{-293,-208,-236,-178,-259,-300}},{{-231,-268,-238,-284,-252,-277},{-164,-203,-245,-280,-259,-185},{-164,-275,-256,-203,-203,-185},{-199,-171,-256,-284,-196,-206},{-270,-243,-194,-189,-282,-176},{-215,-286,-254,-243,-176,-296},{-201,-256,-263,-261,-217,-194},{-261,-178,-298,-249,-300,-185},{-219,-245,-226,-249,-238,-187},{-249,-236,-282,-229,-201,-280}},{{-187,-226,-201,-208,-286,-238},{-273,-261,-180,-245,-192,-280},{-173,-162,-254,-162,-196,-224},{-254,-284,-261,-194,-192,-233},{-249,-263,-171,-173,-206,-206},{-263,-249,-254,-208,-259,-194},{-201,-268,-289,-182,-231,-169},{-280,-162,-180,-298,-224,-245},{-247,-261,-298,-173,-273,-238},{-273,-280,-166,-187,-222,-243}},{{-166,-284,-298,-192,-289,-178},{-196,-259,-284,-203,-194,-224},{-266,-263,-213,-201,-231,-224},{-268,-252,-236,-243,-169,-171},{-189,-164,-282,-164,-275,-296},{-199,-226,-180,-169,-280,-226},{-254,-268,-247,-176,-169,-176},{-284,-199,-213,-259,-201,-247},{-240,-273,-178,-199,-219,-164},{-173,-273,-182,-280,-164,-243}}},{{{-247,-267,-250,-260,-167,-178},{-276,-182,-243,-232,-258,-250},{-234,-200,-191,-239,-180,-187},{-219,-224,-152,-243,-271,-215},{-239,-161,-252,-260,-191,-182},{-260,-241,-208,-152,-165,-245},{-187,-243,-258,-154,-189,-208},{-232,-191,-178,-232,-202,-243},{-171,-217,-187,-267,-189,-213},{-258,-250,-171,-195,-158,-271}},{{-174,-158,-193,-237,-178,-217},{-267,-219,-163,-189,-178,-193},{-202,-228,-161,-256,-247,-165},{-245,-176,-156,-163,-193,-239},{-269,-182,-250,-169,-193,-180},{-265,-226,-176,-167,-167,-195},{-215,-243,-271,-219,-228,-182},{-197,-165,-200,-210,-152,-265},{-206,-161,-276,-273,-167,-230},{-197,-260,-180,-187,-195,-202}},{{-171,-280,-282,-184,-243,-258},{-165,-206,-158,-276,-260,-180},{-178,-191,-265,-273,-197,-161},{-260,-204,-234,-232,-234,-156},{-276,-165,-202,-182,-171,-241},{-174,-269,-156,-176,-204,-230},{-202,-219,-219,-169,-171,-178},{-254,-219,-182,-278,-237,-219},{-180,-180,-282,-256,-265,-191},{-243,-243,-273,-165,-252,-187}},{{-191,-230,-241,-269,-243,-193},{-254,-226,-280,-174,-224,-152},{-189,-189,-213,-252,-265,-252},{-156,-256,-226,-154,-263,-163},{-228,-187,-241,-178,-174,-239},{-156,-247,-178,-250,-282,-256},{-224,-256,-165,-215,-163,-165},{-239,-158,-156,-200,-263,-154},{-228,-247,-191,-193,-191,-245},{-254,-202,-197,-184,-263,-189}},{{-263,-174,-258,-189,-204,-234},{-260,-230,-282,-169,-254,-269},{-184,-165,-280,-282,-226,-180},{-184,-250,-252,-263,-152,-152},{-269,-178,-167,-269,-176,-234},{-278,-217,-176,-226,-280,-171},{-234,-241,-171,-191,-193,-169},{-167,-169,-187,-193,-232,-254},{-265,-250,-219,-217,-169,-224},{-234,-245,-269,-165,-163,-206}},{{-254,-184,-230,-215,-230,-202},{-176,-250,-165,-187,-256,-206},{-187,-210,-234,-226,-213,-165},{-282,-189,-280,-204,-269,-187},{-269,-256,-206,-263,-158,-224},{-228,-206,-202,-241,-206,-263},{-161,-167,-189,-215,-243,-176},{-158,-176,-243,-247,-226,-269},{-163,-265,-282,-178,-180,-271},{-208,-243,-265,-171,-208,-158}},{{-267,-224,-152,-167,-195,-219},{-167,-184,-189,-237,-204,-176},{-254,-224,-152,-256,-206,-250},{-228,-280,-239,-210,-200,-224},{-265,-213,-228,-210,-191,-273},{-226,-163,-245,-269,-226,-204},{-202,-204,-152,-247,-265,-245},{-202,-184,-154,-258,-171,-260},{-269,-230,-189,-180,-232,-184},{-210,-152,-154,-158,-204,-239}},{{-169,-176,-156,-226,-189,-204},{-187,-189,-215,-267,-154,-271},{-273,-182,-206,-271,-217,-234},{-256,-241,-241,-163,-180,-219},{-273,-228,-243,-167,-187,-165},{-269,-161,-206,-178,-174,-154},{-254,-167,-221,-182,-217,-208},{-224,-245,-280,-213,-219,-280},{-169,-224,-245,-202,-241,-280},{-171,-230,-226,-226,-263,-152}},{{-178,-219,-250,-161,-202,-191},{-206,-265,-202,-178,-276,-258},{-263,-191,-204,-152,-232,-234},{-258,-152,-269,-217,-156,-208},{-258,-184,-219,-258,-154,-189},{-171,-243,-213,-252,-202,-221},{-191,-258,-276,-182,-271,-271},{-154,-210,-206,-158,-245,-189},{-156,-163,-213,-269,-195,-156},{-156,-187,-280,-215,-224,-191}}},{{{-189,-319,-218,-192,-258,-226},{-285,-319,-192,-253,-306,-298},{-311,-266,-223,-242,-245,-293},{-269,-285,-271,-346,-263,-207},{-314,-242,-295,-279,-263,-192},{-285,-322,-242,-274,-247,-186},{-192,-194,-242,-325,-207,-237},{-327,-239,-269,-293,-293,-237},{-303,-221,-200,-197,-242,-261},{-285,-311,-253,-194,-247,-285}},{{-200,-189,-322,-186,-245,-346},{-311,-298,-194,-205,-293,-335},{-213,-303,-319,-197,-303,-309},{-261,-194,-330,-263,-250,-332},{-258,-186,-223,-231,-186,-215},{-338,-202,-192,-263,-221,-218},{-200,-186,-237,-271,-229,-213},{-335,-255,-242,-335,-314,-298},{-340,-239,-189,-343,-210,-330},{-192,-325,-247,-332,-330,-282}},{{-271,-226,-266,-234,-277,-205},{-210,-213,-239,-340,-197,-317},{-202,-258,-285,-242,-295,-338},{-269,-192,-290,-207,-279,-301},{-332,-239,-258,-229,-231,-223},{-192,-290,-325,-269,-189,-237},{-325,-189,-237,-269,-234,-247},{-231,-311,-250,-194,-338,-213},{-250,-325,-271,-340,-327,-194},{-261,-186,-266,-285,-226,-189}},{{-332,-237,-266,-263,-194,-231},{-215,-301,-319,-213,-287,-207},{-311,-303,-213,-210,-287,-221},{-298,-274,-247,-218,-282,-311},{-261,-309,-295,-306,-250,-200},{-279,-189,-332,-298,-311,-242},{-343,-234,-261,-335,-229,-205},{-266,-200,-340,-325,-223,-215},{-309,-314,-266,-309,-218,-346},{-303,-200,-261,-245,-250,-325}},{{-258,-319,-287,-340,-325,-189},{-266,-215,-327,-335,-229,-226},{-282,-346,-346,-245,-226,-306},{-186,-279,-200,-229,-343,-255},{-338,-253,-332,-263,-202,-218},{-279,-340,-200,-255,-226,-295},{-322,-322,-194,-338,-253,-186},{-202,-189,-311,-263,-207,-277},{-327,-271,-226,-298,-263,-332},{-253,-218,-340,-234,-269,-215}},{{-282,-186,-322,-229,-298,-207},{-215,-325,-293,-295,-269,-189},{-293,-332,-255,-229,-317,-245},{-298,-327,-298,-192,-189,-223},{-287,-295,-223,-287,-186,-309},{-263,-346,-332,-231,-346,-192},{-210,-210,-213,-322,-237,-239},{-197,-271,-327,-338,-239,-317},{-343,-301,-332,-295,-231,-210},{-279,-223,-205,-218,-194,-202}},{{-263,-255,-301,-197,-192,-234},{-327,-213,-255,-239,-215,-221},{-311,-325,-253,-295,-223,-242},{-340,-266,-269,-330,-261,-327},{-325,-186,-340,-189,-186,-221},{-295,-330,-293,-306,-192,-271},{-301,-290,-226,-335,-346,-186},{-277,-271,-290,-293,-250,-285},{-229,-325,-266,-290,-258,-338},{-338,-186,-234,-340,-303,-311}},{{-200,-282,-279,-319,-202,-200},{-295,-207,-215,-332,-309,-293},{-340,-287,-271,-192,-332,-285},{-293,-197,-301,-343,-346,-269},{-317,-234,-295,-269,-271,-234},{-309,-255,-335,-215,-245,-263},{-218,-245,-266,-285,-223,-197},{-285,-202,-290,-332,-319,-266},{-317,-285,-282,-237,-186,-234},{-269,-213,-263,-255,-261,-343}},{{-285,-239,-298,-314,-189,-322},{-245,-258,-245,-239,-274,-277},{-332,-242,-277,-263,-197,-343},{-218,-263,-237,-295,-245,-189},{-192,-226,-194,-346,-189,-186},{-314,-343,-261,-282,-277,-346},{-250,-192,-322,-325,-239,-263},{-226,-335,-255,-303,-250,-253},{-314,-309,-322,-253,-189,-274},{-282,-221,-277,-231,-335,-298}}},{{{-288,-319,-260,-202,-358,-286},{-339,-221,-316,-328,-280,-258},{-294,-294,-300,-361,-305,-356},{-274,-258,-238,-339,-325,-263},{-258,-241,-353,-238,-246,-344},{-302,-286,-263,-274,-347,-336},{-244,-350,-361,-246,-361,-322},{-221,-266,-311,-227,-277,-221},{-202,-218,-202,-244,-218,-336},{-207,-288,-249,-204,-308,-305}},{{-272,-246,-297,-353,-235,-283},{-227,-311,-277,-297,-218,-213},{-319,-336,-342,-311,-361,-314},{-260,-274,-356,-364,-221,-291},{-252,-311,-218,-280,-300,-336},{-311,-238,-364,-260,-347,-342},{-244,-358,-336,-356,-244,-356},{-246,-249,-311,-224,-263,-202},{-308,-252,-297,-213,-227,-286},{-344,-238,-302,-361,-260,-280}},{{-291,-322,-342,-202,-269,-213},{-291,-258,-319,-272,-344,-266},{-297,-249,-325,-255,-283,-218},{-283,-238,-325,-350,-213,-196},{-336,-258,-210,-241,-314,-241},{-336,-350,-319,-235,-328,-207},{-277,-249,-322,-252,-347,-353},{-283,-344,-322,-288,-322,-316},{-224,-202,-330,-305,-232,-342},{-311,-322,-319,-286,-353,-272}},{{-347,-328,-269,-196,-252,-283},{-328,-252,-263,-269,-364,-221},{-255,-325,-202,-246,-207,-266},{-263,-260,-244,-204,-342,-260},{-213,-311,-344,-258,-207,-210},{-227,-238,-235,-322,-213,-319},{-204,-297,-308,-241,-255,-235},{-249,-316,-336,-272,-244,-260},{-283,-283,-235,-330,-218,-311},{-333,-344,-263,-258,-361,-207}},{{-232,-274,-224,-244,-344,-269},{-300,-364,-210,-322,-364,-207},{-353,-361,-235,-207,-316,-283},{-286,-244,-266,-277,-333,-199},{-252,-316,-361,-356,-330,-361},{-216,-336,-339,-316,-294,-221},{-241,-272,-196,-333,-199,-280},{-216,-238,-246,-311,-294,-353},{-280,-336,-221,-277,-213,-288},{-350,-300,-319,-353,-232,-333}},{{-294,-216,-235,-356,-297,-218},{-244,-336,-277,-207,-277,-291},{-246,-308,-311,-342,-308,-302},{-294,-258,-263,-230,-325,-244},{-350,-286,-302,-347,-221,-207},{-322,-316,-286,-210,-283,-286},{-263,-277,-300,-342,-364,-221},{-196,-333,-314,-269,-221,-339},{-339,-221,-356,-319,-361,-230},{-353,-277,-288,-280,-224,-308}},{{-249,-238,-258,-263,-266,-322},{-241,-294,-328,-288,-325,-272},{-342,-342,-319,-305,-218,-319},{-311,-235,-350,-314,-283,-232},{-344,-221,-325,-358,-274,-305},{-232,-356,-330,-280,-325,-283},{-283,-252,-216,-308,-202,-316},{-288,-283,-224,-356,-297,-213},{-207,-300,-260,-288,-266,-328},{-269,-266,-300,-272,-260,-333}},{{-260,-280,-319,-314,-302,-328},{-272,-300,-353,-294,-344,-218},{-227,-274,-330,-325,-328,-339},{-260,-241,-238,-221,-232,-232},{-333,-230,-224,-300,-336,-204},{-213,-344,-308,-249,-241,-204},{-227,-330,-347,-258,-361,-232},{-224,-347,-258,-235,-325,-286},{-280,-227,-300,-319,-263,-252},{-311,-291,-286,-280,-328,-216}},{{-246,-218,-283,-221,-280,-347},{-263,-213,-344,-255,-221,-336},{-210,-297,-356,-286,-311,-294},{-216,-224,-294,-291,-314,-358},{-328,-230,-294,-361,-358,-235},{-274,-255,-255,-342,-255,-269},{-308,-260,-336,-204,-269,-308},{-260,-361,-322,-246,-308,-224},{-356,-294,-302,-207,-227,-199},{-216,-246,-274,-260,-339,-207}}},{{{-246,-302,-263,-230,-199,-280},{-308,-199,-302,-255,-330,-260},{-336,-235,-347,-230,-218,-288},{-244,-286,-302,-204,-232,-319},{-325,-202,-249,-263,-199,-238},{-258,-230,-364,-202,-213,-210},{-294,-319,-221,-252,-308,-221},{-319,-325,-213,-204,-280,-227},{-272,-230,-207,-196,-291,-230},{-356,-199,-232,-311,-207,-319}},{{-280,-204,-356,-258,-280,-350},{-291,-325,-249,-196,-241,-224},{-216,-255,-342,-314,-356,-339},{-350,-316,-325,-196,-213,-347},{-227,-238,-230,-325,-344,-238},{-277,-272,-277,-266,-230,-300},{-319,-246,-294,-277,-260,-314},{-232,-263,-255,-319,-241,-325},{-302,-356,-297,-288,-350,-311},{-347,-308,-210,-297,-353,-302}},{{-224,-297,-291,-241,-291,-339},{-246,-204,-280,-361,-356,-232},{-333,-218,-218,-364,-280,-294},{-263,-216,-297,-272,-260,-263},{-218,-325,-314,-330,-347,-258},{-196,-286,-207,-353,-246,-224},{-300,-269,-202,-288,-274,-358},{-260,-283,-266,-252,-255,-286},{-202,-302,-300,-255,-235,-342},{-232,-305,-207,-246,-196,-218}},{{-227,-274,-210,-325,-325,-347},{-333,-330,-232,-274,-344,-361},{-258,-286,-238,-311,-246,-364},{-316,-260,-260,-249,-213,-277},{-291,-269,-224,-249,-288,-288},{-202,-291,-238,-221,-244,-305},{-361,-288,-330,-255,-202,-297},{-283,-361,-244,-286,-207,-302},{-238,-258,-325,-344,-232,-314},{-344,-266,-305,-297,-347,-350}},{{-258,-227,-269,-266,-263,-342},{-235,-260,-339,-294,-314,-319},{-196,-336,-202,-286,-258,-353},{-221,-255,-213,-311,-232,-196},{-286,-286,-266,-305,-221,-297},{-224,-235,-300,-207,-244,-316},{-255,-333,-204,-291,-302,-230},{-358,-196,-204,-263,-330,-255},{-244,-232,-207,-347,-221,-347},{-364,-244,-297,-336,-241,-325}},{{-255,-266,-207,-305,-344,-316},{-316,-255,-246,-330,-249,-342},{-361,-308,-244,-342,-263,-330},{-258,-218,-297,-350,-339,-328},{-274,-210,-283,-258,-283,-361},{-230,-283,-199,-269,-199,-280},{-232,-207,-333,-297,-280,-241},{-314,-305,-316,-328,-350,-319},{-344,-319,-333,-328,-266,-210},{-305,-356,-252,-364,-302,-241}},{{-333,-288,-297,-218,-283,-207},{-297,-249,-272,-196,-218,-294},{-204,-244,-202,-322,-350,-319},{-221,-196,-339,-364,-350,-314},{-280,-241,-353,-269,-266,-308},{-356,-316,-221,-230,-353,-204},{-291,-294,-300,-300,-325,-199},{-336,-221,-204,-249,-246,-227},{-266,-302,-272,-356,-210,-238},{-263,-244,-358,-277,-325,-316}},{{-218,-333,-333,-204,-294,-272},{-286,-235,-204,-227,-204,-199},{-322,-333,-221,-227,-280,-218},{-269,-347,-238,-258,-274,-272},{-249,-333,-280,-356,-218,-280},{-252,-316,-210,-344,-204,-350},{-358,-218,-260,-342,-260,-325},{-308,-333,-196,-322,-269,-356},{-241,-322,-330,-196,-274,-277},{-244,-288,-235,-314,-316,-350}},{{-342,-339,-328,-274,-319,-316},{-216,-249,-210,-308,-227,-283},{-196,-241,-232,-232,-294,-199},{-221,-333,-266,-330,-344,-246},{-274,-302,-339,-356,-358,-249},{-356,-291,-218,-213,-297,-353},{-288,-350,-280,-246,-300,-235},{-252,-246,-238,-297,-300,-249},{-196,-204,-319,-286,-316,-232},{-272,-350,-347,-311,-364,-297}}},{{{-244,-218,-319,-241,-358,-344},{-358,-241,-227,-305,-252,-204},{-263,-238,-288,-230,-336,-347},{-342,-224,-230,-266,-288,-364},{-204,-322,-230,-342,-347,-294},{-196,-258,-232,-302,-274,-300},{-350,-291,-210,-230,-322,-213},{-199,-300,-244,-294,-244,-308},{-202,-196,-361,-216,-196,-305},{-339,-314,-358,-353,-319,-224}},{{-325,-302,-336,-288,-297,-269},{-316,-347,-269,-291,-361,-288},{-319,-199,-280,-330,-302,-294},{-232,-283,-300,-305,-325,-305},{-344,-252,-300,-344,-356,-330},{-336,-322,-196,-336,-300,-196},{-249,-218,-361,-202,-221,-204},{-210,-353,-305,-216,-286,-235},{-218,-232,-336,-325,-252,-308},{-218,-255,-330,-238,-274,-294}},{{-235,-224,-344,-319,-319,-199},{-196,-266,-316,-255,-252,-283},{-353,-283,-232,-232,-207,-202},{-249,-269,-199,-314,-199,-227},{-361,-266,-336,-224,-347,-288},{-302,-263,-328,-277,-269,-336},{-216,-325,-260,-269,-333,-294},{-361,-232,-294,-221,-241,-283},{-339,-249,-283,-361,-319,-294},{-339,-316,-238,-241,-322,-266}},{{-213,-336,-288,-356,-314,-322},{-249,-227,-330,-325,-294,-364},{-221,-204,-356,-358,-230,-319},{-260,-339,-221,-325,-232,-221},{-330,-216,-224,-235,-232,-204},{-342,-356,-322,-263,-311,-364},{-221,-288,-316,-227,-221,-204},{-241,-344,-258,-272,-213,-204},{-216,-232,-199,-347,-232,-232},{-347,-319,-302,-232,-319,-241}},{{-199,-302,-353,-260,-246,-260},{-288,-224,-244,-300,-353,-249},{-241,-347,-328,-272,-216,-227},{-330,-204,-263,-269,-364,-356},{-224,-350,-252,-272,-302,-266},{-221,-235,-274,-196,-300,-274},{-300,-213,-269,-199,-232,-347},{-302,-258,-263,-269,-330,-364},{-302,-356,-232,-347,-294,-305},{-196,-218,-218,-328,-272,-288}},{{-230,-241,-196,-202,-353,-322},{-339,-330,-204,-361,-356,-266},{-224,-302,-308,-216,-305,-246},{-246,-316,-288,-238,-221,-311},{-213,-216,-266,-280,-216,-280},{-258,-232,-249,-258,-347,-322},{-316,-218,-314,-322,-300,-328},{-339,-269,-227,-258,-202,-224},{-344,-224,-347,-280,-269,-344},{-330,-297,-328,-213,-221,-218}},{{-202,-210,-202,-260,-358,-238},{-288,-283,-218,-361,-241,-249},{-305,-241,-300,-350,-272,-286},{-235,-330,-300,-280,-244,-356},{-230,-216,-328,-204,-361,-336},{-319,-218,-358,-308,-269,-288},{-213,-322,-342,-269,-361,-269},{-227,-344,-297,-199,-356,-336},{-196,-319,-294,-316,-311,-272},{-255,-297,-232,-322,-216,-328}},{{-353,-311,-258,-272,-272,-288},{-316,-286,-238,-218,-316,-333},{-319,-286,-277,-302,-288,-280},{-280,-361,-356,-241,-339,-347},{-277,-235,-305,-291,-344,-308},{-364,-294,-241,-207,-347,-266},{-342,-328,-204,-319,-221,-283},{-210,-339,-339,-260,-235,-244},{-199,-196,-339,-207,-283,-297},{-330,-277,-356,-350,-330,-241}},{{-291,-336,-274,-274,-319,-291},{-260,-252,-328,-286,-350,-328},{-288,-330,-230,-322,-244,-288},{-291,-280,-218,-280,-358,-235},{-207,-342,-218,-230,-216,-344},{-235,-249,-202,-316,-204,-204},{-269,-347,-199,-241,-204,-221},{-266,-252,-246,-263,-297,-274},{-260,-266,-246,-274,-283,-322},{-364,-246,-246,-252,-244,-294}}}}; // supply (positive for supply and negative for demand) under different scenarios 
int iniv[I]={2070,261,23,150,170,304,400,300,160}; // initial inventory 
int ubiv[I]={2740,522,414,300,341,608,800,600,320}; // the upper bounds of inventory 
int len[I1][I2]={{3,6,2,2,3,3,2,1}}; // 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,7.19,13.32,4.32,2.64,5.16,6.85,4.63,1.82}; // 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]={{6.54,12.11,3.93,2.4,4.69,6.23,4.21,1.65}}; // 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]={5.23,5.23,5.23,4.58,4.58,4.58,3.92,3.92,3.92,9.69,9.69,9.69,8.48,8.48,8.48,7.27,7.27,7.27,3.14,3.14,3.14,2.75,2.75,2.75,2.36,2.36,2.36,1.92,1.92,1.92,1.68,1.68,1.68,1.44,1.44,1.44,3.75,3.75,3.75,3.28,3.28,3.28,2.81,2.81,2.81,4.98,4.98,4.98,4.36,4.36,4.36,3.74,3.74,3.74,3.37,3.37,3.37,2.95,2.95,2.95,2.53,2.53,2.53,1.32,1.32,1.32,1.16,1.16,1.16,0.99,0.99,0.99}; // 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,9,26,13,9,25,13,9,24,12,8,24,12,8,24,12,8,26,13,9,25,13,9,26,13,9,25,13,9,25,13,9,26,13,9,25,13,9,25,13,9,25,13,9,25,13,9,26,13,9,25,13,9,25,13,9,25,13,9,25,13,9,26,14,9,26,13,9,26,13,9}; // number of shipment for each bid 
int SHset[BN][MBSN]={{0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24},{25,26,27,28,29,30,31,32,33,34,35,36,37},{38,39,40,41,42,43,44,45,46},{47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72},{73,74,75,76,77,78,79,80,81,82,83,84,85},{86,87,88,89,90,91,92,93,94},{95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119},{120,121,122,123,124,125,126,127,128,129,130,131,132},{133,134,135,136,137,138,139,140,141},{142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165},{166,167,168,169,170,171,172,173,174,175,176,177},{178,179,180,181,182,183,184,185},{186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209},{210,211,212,213,214,215,216,217,218,219,220,221},{222,223,224,225,226,227,228,229},{230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253},{254,255,256,257,258,259,260,261,262,263,264,265},{266,267,268,269,270,271,272,273},{274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299},{300,301,302,303,304,305,306,307,308,309,310,311,312},{313,314,315,316,317,318,319,320,321},{322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346},{347,348,349,350,351,352,353,354,355,356,357,358,359},{360,361,362,363,364,365,366,367,368},{369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,384,385,386,387,388,389,390,391,392,393,394},{395,396,397,398,399,400,401,402,403,404,405,406,407},{408,409,410,411,412,413,414,415,416},{417,418,419,420,421,422,423,424,425,426,427,428,429,430,431,432,433,434,435,436,437,438,439,440,441},{442,443,444,445,446,447,448,449,450,451,452,453,454},{455,456,457,458,459,460,461,462,463},{464,465,466,467,468,469,470,471,472,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488},{489,490,491,492,493,494,495,496,497,498,499,500,501},{502,503,504,505,506,507,508,509,510},{511,512,513,514,515,516,517,518,519,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,535,536},{537,538,539,540,541,542,543,544,545,546,547,548,549},{550,551,552,553,554,555,556,557,558},{559,560,561,562,563,564,565,566,567,568,569,570,571,572,573,574,575,576,577,578,579,580,581,582,583},{584,585,586,587,588,589,590,591,592,593,594,595,596},{597,598,599,600,601,602,603,604,605},{606,607,608,609,610,611,612,613,614,615,616,617,618,619,620,621,622,623,624,625,626,627,628,629,630},{631,632,633,634,635,636,637,638,639,640,641,642,643},{644,645,646,647,648,649,650,651,652},{653,654,655,656,657,658,659,660,661,662,663,664,665,666,667,668,669,670,671,672,673,674,675,676,677},{678,679,680,681,682,683,684,685,686,687,688,689,690},{691,692,693,694,695,696,697,698,699},{700,701,702,703,704,705,706,707,708,709,710,711,712,713,714,715,716,717,718,719,720,721,722,723,724},{725,726,727,728,729,730,731,732,733,734,735,736,737},{738,739,740,741,742,743,744,745,746},{747,748,749,750,751,752,753,754,755,756,757,758,759,760,761,762,763,764,765,766,767,768,769,770,771,772},{773,774,775,776,777,778,779,780,781,782,783,784,785},{786,787,788,789,790,791,792,793,794},{795,796,797,798,799,800,801,802,803,804,805,806,807,808,809,810,811,812,813,814,815,816,817,818,819},{820,821,822,823,824,825,826,827,828,829,830,831,832},{833,834,835,836,837,838,839,840,841},{842,843,844,845,846,847,848,849,850,851,852,853,854,855,856,857,858,859,860,861,862,863,864,865,866},{867,868,869,870,871,872,873,874,875,876,877,878,879},{880,881,882,883,884,885,886,887,888},{889,890,891,892,893,894,895,896,897,898,899,900,901,902,903,904,905,906,907,908,909,910,911,912,913},{914,915,916,917,918,919,920,921,922,923,924,925,926},{927,928,929,930,931,932,933,934,935},{936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960},{961,962,963,964,965,966,967,968,969,970,971,972,973},{974,975,976,977,978,979,980,981,982},{983,984,985,986,987,988,989,990,991,992,993,994,995,996,997,998,999,1000,1001,1002,1003,1004,1005,1006,1007,1008},{1009,1010,1011,1012,1013,1014,1015,1016,1017,1018,1019,1020,1021,1022},{1023,1024,1025,1026,1027,1028,1029,1030,1031},{1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057},{1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070},{1071,1072,1073,1074,1075,1076,1077,1078,1079},{1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105},{1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118},{1119,1120,1121,1122,1123,1124,1125,1126,1127}}; // 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,49,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,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,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,0,4,8,12,16,20,24,28,32,36,40,44,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,0,4,8,12,16,20,24,28,32,36,40,44,2,8,14,20,26,32,38,44,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,1,5,9,13,17,21,25,29,33,37,41,45,2,8,14,20,26,32,38,44,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,2,6,10,14,18,22,26,30,34,38,42,46,50,1,7,13,19,25,31,37,43,49,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,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,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,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,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,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,0,4,8,12,16,20,24,28,32,36,40,44,48,0,6,12,18,24,30,36,42,48,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,2,6,10,14,18,22,26,30,34,38,42,46,50,0,6,12,18,24,30,36,42,48,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,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,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,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,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,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}; // set of start times of each shipment 
int SHets[SPN]={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,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,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,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,6,10,14,18,22,26,30,34,38,42,46,50,7,13,19,25,31,37,43,49,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,8,14,20,26,32,38,44,50,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,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,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,3,7,11,15,19,23,27,31,35,39,43,47,51,4,10,16,22,28,34,40,46,52,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,4,8,12,16,20,24,28,32,36,40,44,48,52,4,10,16,22,28,34,40,46,52,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,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,2,8,14,20,26,32,38,44,50,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,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,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,3,9,15,21,27,33,39,45,51,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,5,9,13,17,21,25,29,33,37,41,45,49,53,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,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,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,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,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,3,9,15,21,27,33,39,45,51,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,1,5,9,13,17,21,25,29,33,37,41,45,49,53,1,7,13,19,25,31,37,43,49,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}; // set of end times of each shipment 
