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