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