int Dev = 50;// Deviation
extern const int CNN = 2;// Case Index
extern const int P = 9;// Number of phases
extern const int PT = 6;// Number of periods in a phase
extern const int T = 54;// Number of periods
extern const int I1 =1;// Number of suppliers
extern const int I2 = 8;// Number of customers
extern const int I = 9;// Number of sites
extern const int BN = 72;//Number of bids
extern const int LBN = 9;//Number of bids on each arc
extern const int SPN = 1142;//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]={{{{11191,0,0,0,0,0},{11219,0,0,0,0,0},{11336,0,0,0,0,0},{10498,0,0,0,0,0},{11694,0,0,0,0,0},{10518,0,0,0,0,0},{10837,0,0,0,0,0},{11201,0,0,0,0,0},{10893,0,0,0,0,0},{11249,0,0,0,0,0}},{{10464,0,0,0,0,0},{12053,0,0,0,0,0},{11445,0,0,0,0,0},{11910,0,0,0,0,0},{10735,0,0,0,0,0},{10946,0,0,0,0,0},{11602,0,0,0,0,0},{11476,0,0,0,0,0},{10994,0,0,0,0,0},{11397,0,0,0,0,0}},{{10955,0,0,0,0,0},{10640,0,0,0,0,0},{10629,0,0,0,0,0},{9974,0,0,0,0,0},{10714,0,0,0,0,0},{11358,0,0,0,0,0},{10701,0,0,0,0,0},{11356,0,0,0,0,0},{11669,0,0,0,0,0},{11736,0,0,0,0,0}},{{11687,0,0,0,0,0},{11167,0,0,0,0,0},{10519,0,0,0,0,0},{11765,0,0,0,0,0},{11882,0,0,0,0,0},{11600,0,0,0,0,0},{10911,0,0,0,0,0},{10380,0,0,0,0,0},{11148,0,0,0,0,0},{10962,0,0,0,0,0}},{{10779,0,0,0,0,0},{10882,0,0,0,0,0},{11187,0,0,0,0,0},{11150,0,0,0,0,0},{10694,0,0,0,0,0},{11065,0,0,0,0,0},{10403,0,0,0,0,0},{10701,0,0,0,0,0},{10471,0,0,0,0,0},{9842,0,0,0,0,0}},{{11141,0,0,0,0,0},{11585,0,0,0,0,0},{10468,0,0,0,0,0},{11059,0,0,0,0,0},{10873,0,0,0,0,0},{11254,0,0,0,0,0},{11134,0,0,0,0,0},{10898,0,0,0,0,0},{10288,0,0,0,0,0},{11694,0,0,0,0,0}},{{10333,0,0,0,0,0},{11208,0,0,0,0,0},{10046,0,0,0,0,0},{11566,0,0,0,0,0},{10346,0,0,0,0,0},{11595,0,0,0,0,0},{9947,0,0,0,0,0},{10710,0,0,0,0,0},{11485,0,0,0,0,0},{11264,0,0,0,0,0}},{{11192,0,0,0,0,0},{10721,0,0,0,0,0},{10933,0,0,0,0,0},{11862,0,0,0,0,0},{11654,0,0,0,0,0},{10886,0,0,0,0,0},{10618,0,0,0,0,0},{11215,0,0,0,0,0},{11472,0,0,0,0,0},{10194,0,0,0,0,0}},{{11146,0,0,0,0,0},{11534,0,0,0,0,0},{10473,0,0,0,0,0},{10450,0,0,0,0,0},{10969,0,0,0,0,0},{11377,0,0,0,0,0},{11614,0,0,0,0,0},{11401,0,0,0,0,0},{10769,0,0,0,0,0},{11625,0,0,0,0,0}}},{{{-202,-195,-296,-175,-298,-287},{-181,-128,-325,-233,-244,-114},{-132,-269,-289,-262,-172,-199},{-150,-235,-228,-276,-166,-150},{-258,-327,-150,-184,-291,-325},{-255,-289,-139,-128,-298,-258},{-188,-179,-132,-139,-329,-193},{-195,-235,-139,-291,-228,-155},{-206,-204,-179,-159,-208,-134},{-280,-260,-125,-177,-224,-325}},{{-309,-148,-228,-267,-287,-211},{-181,-186,-175,-237,-332,-177},{-175,-336,-226,-291,-170,-233},{-208,-170,-323,-237,-240,-240},{-246,-314,-271,-244,-278,-224},{-237,-119,-114,-276,-193,-316},{-132,-204,-233,-300,-152,-289},{-139,-195,-291,-332,-161,-204},{-237,-318,-202,-289,-181,-296},{-143,-278,-325,-116,-217,-184}},{{-332,-116,-137,-284,-262,-298},{-287,-246,-242,-164,-262,-260},{-190,-128,-262,-125,-197,-289},{-327,-197,-125,-177,-112,-148},{-128,-128,-211,-262,-220,-220},{-206,-264,-202,-204,-276,-121},{-327,-293,-172,-157,-132,-278},{-211,-262,-161,-130,-123,-199},{-302,-179,-309,-237,-240,-177},{-199,-262,-186,-332,-195,-244}},{{-172,-233,-302,-159,-255,-246},{-278,-121,-190,-276,-334,-152},{-199,-143,-199,-325,-130,-150},{-291,-269,-293,-233,-148,-213},{-280,-237,-314,-204,-195,-251},{-199,-199,-172,-282,-320,-213},{-278,-264,-224,-235,-190,-208},{-184,-314,-309,-159,-217,-215},{-291,-269,-264,-139,-202,-170},{-226,-148,-284,-318,-213,-114}},{{-222,-161,-284,-305,-137,-152},{-152,-246,-309,-228,-150,-282},{-233,-280,-188,-123,-211,-305},{-273,-264,-121,-202,-305,-166},{-188,-132,-249,-150,-226,-296},{-240,-316,-159,-177,-284,-132},{-336,-128,-276,-195,-175,-320},{-302,-188,-146,-318,-336,-302},{-141,-139,-289,-206,-215,-121},{-242,-287,-112,-314,-141,-177}},{{-267,-179,-193,-244,-166,-242},{-233,-146,-211,-213,-217,-298},{-114,-166,-184,-314,-112,-155},{-249,-217,-332,-175,-314,-132},{-215,-215,-271,-244,-249,-208},{-206,-215,-197,-141,-278,-150},{-291,-233,-320,-258,-202,-188},{-271,-114,-255,-244,-276,-114},{-202,-284,-213,-197,-204,-148},{-130,-213,-336,-336,-222,-334}},{{-217,-217,-148,-157,-164,-181},{-170,-278,-202,-195,-253,-262},{-237,-130,-226,-206,-235,-302},{-249,-332,-181,-325,-226,-155},{-228,-300,-260,-215,-128,-193},{-220,-311,-197,-240,-157,-197},{-231,-269,-139,-206,-255,-190},{-116,-318,-197,-300,-235,-161},{-132,-179,-235,-314,-249,-179},{-155,-137,-231,-309,-334,-262}},{{-197,-276,-231,-264,-204,-237},{-161,-211,-204,-262,-314,-175},{-161,-226,-139,-190,-215,-334},{-202,-325,-168,-166,-244,-300},{-307,-204,-146,-172,-287,-224},{-164,-316,-179,-184,-253,-311},{-305,-251,-244,-251,-314,-130},{-164,-302,-128,-123,-298,-141},{-220,-296,-148,-121,-197,-130},{-193,-287,-143,-217,-146,-148}},{{-240,-305,-320,-267,-123,-273},{-305,-302,-282,-307,-258,-244},{-329,-177,-152,-305,-311,-195},{-172,-130,-134,-307,-121,-193},{-296,-130,-206,-195,-170,-146},{-314,-278,-137,-119,-177,-152},{-264,-220,-271,-305,-276,-179},{-302,-291,-253,-262,-186,-164},{-121,-264,-332,-170,-164,-293},{-278,-215,-199,-123,-202,-237}}},{{{-209,-240,-317,-176,-295,-133},{-331,-193,-143,-302,-340,-264},{-228,-181,-331,-245,-129,-331},{-198,-162,-271,-155,-305,-288},{-183,-300,-257,-267,-152,-255},{-248,-221,-298,-176,-307,-188},{-202,-326,-236,-171,-162,-205},{-224,-343,-298,-309,-167,-328},{-298,-236,-300,-126,-338,-350},{-190,-312,-309,-190,-121,-178}},{{-226,-276,-250,-257,-198,-219},{-324,-298,-324,-152,-205,-236},{-119,-255,-207,-228,-350,-245},{-276,-245,-355,-286,-321,-164},{-302,-178,-126,-357,-338,-205},{-155,-352,-252,-350,-200,-286},{-219,-257,-238,-326,-319,-324},{-159,-333,-347,-150,-305,-243},{-250,-226,-283,-124,-174,-267},{-357,-331,-188,-171,-245,-195}},{{-150,-281,-314,-328,-228,-245},{-248,-145,-157,-271,-219,-226},{-124,-357,-305,-162,-164,-174},{-238,-240,-164,-281,-152,-207},{-121,-264,-262,-190,-276,-238},{-171,-338,-131,-205,-145,-129},{-352,-169,-133,-226,-321,-264},{-157,-343,-331,-193,-264,-188},{-133,-143,-217,-267,-288,-248},{-138,-343,-352,-317,-269,-233}},{{-159,-193,-181,-336,-155,-271},{-221,-126,-217,-214,-343,-238},{-171,-243,-328,-262,-233,-257},{-271,-259,-326,-178,-352,-214},{-357,-145,-293,-186,-338,-317},{-333,-312,-340,-129,-157,-331},{-236,-171,-119,-264,-331,-267},{-233,-267,-174,-274,-126,-136},{-209,-262,-295,-355,-347,-290},{-219,-231,-231,-338,-205,-224}},{{-312,-190,-202,-121,-250,-200},{-186,-183,-150,-226,-276,-245},{-188,-250,-262,-157,-326,-131},{-324,-276,-169,-198,-138,-312},{-131,-124,-331,-319,-174,-169},{-221,-288,-314,-198,-245,-169},{-119,-336,-302,-288,-240,-121},{-286,-155,-267,-150,-162,-126},{-186,-224,-143,-169,-143,-157},{-343,-202,-248,-212,-259,-183}},{{-352,-214,-176,-226,-136,-178},{-302,-345,-283,-136,-314,-181},{-333,-181,-271,-324,-231,-188},{-350,-143,-145,-224,-338,-283},{-352,-181,-307,-188,-321,-159},{-231,-136,-274,-167,-143,-212},{-121,-212,-207,-302,-150,-288},{-143,-283,-145,-202,-343,-138},{-148,-264,-119,-121,-271,-267},{-250,-267,-293,-255,-264,-324}},{{-281,-331,-274,-252,-150,-157},{-136,-140,-219,-345,-164,-240},{-295,-217,-264,-276,-181,-314},{-155,-190,-326,-188,-293,-119},{-159,-226,-309,-124,-131,-190},{-340,-226,-326,-214,-269,-328},{-138,-264,-143,-124,-119,-307},{-174,-217,-126,-298,-319,-274},{-281,-231,-190,-255,-336,-217},{-250,-343,-350,-276,-209,-136}},{{-193,-148,-345,-302,-119,-333},{-129,-159,-214,-250,-298,-224},{-148,-228,-129,-219,-176,-131},{-133,-288,-152,-309,-345,-267},{-188,-336,-181,-271,-276,-214},{-293,-193,-228,-326,-219,-236},{-159,-219,-271,-207,-281,-195},{-207,-243,-336,-252,-226,-200},{-352,-193,-240,-321,-357,-283},{-250,-174,-307,-331,-186,-336}},{{-343,-136,-248,-281,-186,-274},{-207,-271,-248,-331,-133,-238},{-236,-200,-226,-136,-271,-133},{-324,-178,-302,-350,-121,-217},{-317,-224,-150,-236,-157,-176},{-178,-321,-219,-276,-164,-138},{-259,-202,-236,-293,-209,-143},{-193,-278,-205,-131,-150,-319},{-209,-126,-221,-307,-295,-295},{-236,-248,-198,-355,-309,-347}}},{{{-300,-156,-238,-281,-308,-325},{-404,-156,-259,-207,-254,-366},{-205,-325,-404,-363,-371,-259},{-145,-366,-161,-139,-308,-156},{-325,-319,-355,-311,-363,-281},{-262,-369,-336,-235,-278,-388},{-210,-145,-393,-161,-306,-363},{-164,-221,-349,-248,-194,-393},{-197,-175,-339,-306,-311,-352},{-314,-270,-257,-371,-363,-194}},{{-177,-257,-355,-396,-248,-218},{-246,-281,-399,-388,-262,-213},{-360,-186,-330,-268,-325,-139},{-164,-347,-246,-246,-243,-325},{-339,-202,-240,-287,-333,-177},{-235,-278,-246,-410,-246,-273},{-295,-259,-216,-205,-254,-336},{-284,-156,-369,-169,-322,-254},{-295,-186,-194,-156,-355,-153},{-150,-382,-410,-410,-379,-396}},{{-287,-167,-298,-341,-399,-328},{-205,-254,-202,-221,-221,-298},{-194,-393,-404,-333,-341,-265},{-188,-278,-281,-180,-213,-207},{-336,-172,-410,-197,-347,-180},{-366,-317,-374,-238,-393,-347},{-188,-210,-298,-207,-227,-248},{-295,-341,-319,-270,-306,-399},{-207,-410,-183,-393,-199,-407},{-352,-177,-191,-235,-298,-227}},{{-257,-246,-385,-360,-382,-207},{-156,-188,-147,-360,-164,-199},{-139,-347,-199,-347,-382,-156},{-399,-270,-399,-284,-207,-254},{-407,-352,-180,-347,-322,-319},{-325,-248,-164,-382,-257,-336},{-344,-276,-369,-254,-396,-268},{-235,-382,-240,-257,-401,-229},{-276,-287,-339,-147,-382,-385},{-177,-289,-341,-175,-194,-339}},{{-347,-344,-164,-295,-150,-246},{-262,-339,-216,-177,-358,-325},{-207,-199,-336,-216,-292,-347},{-308,-210,-139,-227,-273,-388},{-175,-205,-147,-300,-287,-311},{-229,-382,-142,-216,-270,-377},{-311,-284,-172,-251,-158,-314},{-142,-278,-262,-156,-172,-339},{-295,-385,-270,-257,-393,-218},{-238,-172,-281,-197,-136,-243}},{{-172,-401,-281,-210,-216,-254},{-265,-366,-156,-330,-399,-410},{-213,-221,-322,-295,-371,-341},{-341,-262,-341,-404,-366,-147},{-404,-216,-325,-328,-194,-194},{-393,-284,-385,-371,-401,-177},{-276,-161,-136,-325,-358,-336},{-300,-180,-224,-399,-199,-352},{-167,-382,-177,-251,-248,-251},{-227,-197,-284,-396,-229,-197}},{{-153,-349,-199,-197,-284,-366},{-265,-371,-347,-295,-401,-251},{-186,-139,-177,-194,-371,-339},{-360,-371,-349,-333,-393,-210},{-150,-188,-251,-330,-183,-248},{-341,-246,-251,-227,-303,-251},{-161,-199,-218,-292,-259,-224},{-180,-224,-158,-262,-371,-360},{-396,-396,-136,-401,-158,-363},{-374,-382,-199,-396,-325,-268}},{{-390,-246,-180,-344,-238,-328},{-161,-207,-328,-175,-240,-322},{-243,-276,-308,-390,-300,-210},{-344,-218,-396,-339,-147,-369},{-246,-218,-314,-344,-243,-399},{-322,-221,-300,-352,-227,-328},{-229,-268,-339,-410,-172,-259},{-205,-268,-385,-377,-289,-156},{-303,-183,-344,-147,-308,-232},{-341,-188,-145,-385,-158,-317}},{{-186,-158,-358,-164,-169,-347},{-216,-382,-363,-281,-298,-330},{-276,-306,-366,-273,-167,-229},{-153,-300,-341,-188,-169,-287},{-158,-401,-238,-388,-259,-273},{-281,-202,-328,-259,-202,-393},{-360,-191,-257,-240,-161,-224},{-210,-339,-276,-311,-295,-259},{-169,-355,-268,-188,-224,-401},{-175,-388,-298,-268,-317,-164}}},{{{-186,-214,-91,-125,-159,-123},{-162,-225,-140,-166,-222,-211},{-116,-217,-176,-132,-82,-116},{-83,-131,-220,-197,-206,-192},{-100,-165,-162,-225,-125,-103},{-179,-83,-208,-225,-116,-219},{-196,-80,-89,-197,-83,-132},{-172,-88,-86,-209,-126,-128},{-151,-197,-185,-203,-166,-94},{-142,-132,-176,-156,-117,-79}},{{-200,-183,-166,-89,-85,-229},{-152,-231,-148,-228,-183,-171},{-223,-185,-139,-136,-225,-129},{-126,-128,-216,-112,-205,-88},{-108,-205,-79,-159,-114,-179},{-97,-202,-213,-117,-200,-100},{-189,-109,-220,-194,-163,-163},{-122,-203,-220,-146,-162,-168},{-205,-189,-231,-80,-151,-180},{-136,-116,-112,-134,-191,-200}},{{-226,-174,-154,-189,-148,-149},{-86,-182,-83,-116,-145,-165},{-106,-102,-134,-188,-95,-91},{-183,-145,-114,-112,-145,-163},{-134,-79,-213,-86,-160,-156},{-157,-199,-169,-208,-211,-163},{-163,-112,-100,-89,-149,-186},{-165,-143,-174,-231,-216,-136},{-123,-213,-131,-222,-194,-131},{-177,-146,-86,-152,-92,-128}},{{-142,-209,-228,-229,-189,-217},{-174,-182,-188,-188,-89,-202},{-159,-182,-168,-111,-213,-122},{-91,-154,-123,-219,-123,-116},{-205,-231,-203,-85,-213,-129},{-192,-136,-88,-163,-132,-85},{-168,-185,-148,-180,-211,-116},{-196,-209,-128,-108,-151,-123},{-126,-116,-119,-177,-177,-132},{-162,-102,-211,-142,-206,-214}},{{-168,-151,-149,-92,-165,-199},{-146,-100,-142,-205,-139,-91},{-154,-162,-179,-206,-103,-188},{-157,-109,-223,-199,-159,-172},{-102,-166,-182,-129,-217,-103},{-191,-142,-206,-99,-151,-166},{-105,-176,-206,-112,-85,-194},{-112,-231,-214,-203,-128,-82},{-91,-172,-205,-83,-146,-188},{-89,-189,-223,-162,-109,-116}},{{-79,-105,-166,-103,-219,-140},{-82,-137,-157,-174,-140,-149},{-192,-143,-139,-202,-222,-106},{-92,-183,-182,-219,-208,-171},{-86,-156,-205,-225,-176,-142},{-182,-149,-129,-132,-128,-102},{-219,-100,-172,-220,-143,-200},{-200,-189,-208,-197,-185,-165},{-112,-213,-99,-83,-231,-203},{-80,-177,-183,-117,-189,-92}},{{-143,-171,-92,-148,-206,-79},{-231,-91,-79,-82,-136,-182},{-143,-125,-162,-183,-92,-197},{-126,-105,-214,-128,-199,-166},{-226,-172,-105,-209,-112,-217},{-176,-112,-169,-228,-197,-174},{-192,-80,-95,-222,-106,-103},{-99,-205,-174,-183,-99,-180},{-123,-91,-192,-108,-214,-188},{-92,-99,-199,-86,-112,-148}},{{-80,-179,-117,-192,-160,-165},{-191,-102,-186,-228,-114,-231},{-103,-174,-92,-177,-182,-97},{-219,-205,-179,-82,-123,-192},{-203,-142,-120,-157,-177,-174},{-97,-142,-102,-146,-100,-119},{-91,-183,-103,-80,-157,-194},{-108,-95,-126,-149,-92,-109},{-171,-225,-131,-117,-191,-213},{-88,-102,-171,-143,-120,-117}},{{-123,-154,-200,-220,-94,-137},{-226,-136,-111,-95,-102,-132},{-194,-134,-154,-134,-86,-92},{-77,-194,-208,-223,-111,-168},{-163,-77,-103,-165,-79,-156},{-176,-119,-100,-189,-152,-214},{-174,-202,-122,-203,-162,-123},{-194,-94,-176,-106,-95,-100},{-160,-95,-186,-80,-163,-189},{-217,-157,-172,-196,-229,-149}}},{{{-175,-136,-249,-273,-248,-218},{-180,-116,-273,-171,-115,-93},{-235,-197,-169,-129,-206,-157},{-146,-202,-178,-91,-240,-218},{-122,-211,-91,-195,-95,-246},{-122,-268,-173,-106,-175,-255},{-140,-177,-224,-197,-255,-122},{-184,-95,-138,-135,-171,-138},{-187,-211,-111,-206,-268,-106},{-144,-129,-217,-175,-224,-131}},{{-231,-93,-138,-169,-122,-186},{-249,-244,-238,-98,-175,-207},{-138,-180,-166,-131,-162,-269},{-258,-220,-164,-213,-264,-155},{-142,-222,-226,-262,-217,-249},{-95,-149,-264,-253,-257,-240},{-215,-204,-187,-246,-220,-220},{-191,-226,-144,-229,-151,-144},{-171,-240,-211,-93,-100,-122},{-95,-228,-151,-140,-100,-169}},{{-162,-200,-173,-195,-104,-197},{-187,-268,-204,-135,-211,-115},{-269,-100,-115,-222,-213,-175},{-244,-149,-197,-111,-124,-98},{-106,-111,-271,-115,-162,-268},{-237,-269,-146,-204,-273,-107},{-240,-195,-213,-204,-224,-268},{-255,-115,-118,-104,-248,-198},{-246,-248,-95,-189,-244,-220},{-269,-122,-222,-198,-217,-222}},{{-100,-126,-195,-235,-257,-175},{-127,-244,-269,-251,-107,-249},{-140,-209,-157,-226,-96,-218},{-124,-262,-184,-126,-160,-209},{-98,-144,-248,-96,-257,-167},{-262,-151,-158,-226,-200,-91},{-211,-135,-257,-255,-246,-91},{-269,-169,-237,-111,-238,-182},{-127,-106,-237,-187,-147,-266},{-195,-213,-173,-213,-248,-96}},{{-191,-249,-246,-251,-104,-126},{-162,-118,-235,-118,-124,-222},{-122,-184,-173,-266,-182,-249},{-255,-111,-182,-153,-244,-269},{-189,-273,-189,-151,-202,-113},{-191,-217,-177,-248,-102,-193},{-118,-151,-251,-127,-116,-118},{-198,-166,-249,-98,-238,-269},{-122,-171,-233,-157,-102,-167},{-91,-116,-169,-224,-116,-124}},{{-213,-207,-151,-124,-140,-269},{-269,-218,-184,-271,-273,-113},{-107,-93,-95,-240,-167,-107},{-264,-197,-95,-189,-189,-146},{-160,-189,-96,-175,-217,-217},{-226,-237,-266,-98,-177,-178},{-273,-131,-178,-122,-271,-153},{-164,-240,-124,-173,-133,-122},{-115,-111,-206,-207,-167,-111},{-231,-186,-96,-155,-268,-253}},{{-197,-204,-217,-244,-155,-268},{-151,-111,-104,-98,-202,-167},{-228,-116,-197,-95,-93,-146},{-204,-111,-109,-209,-166,-91},{-153,-164,-166,-106,-209,-142},{-178,-233,-189,-129,-237,-147},{-126,-104,-229,-228,-146,-166},{-107,-136,-202,-109,-198,-136},{-147,-136,-166,-231,-257,-238},{-162,-240,-215,-116,-207,-120}},{{-160,-240,-198,-151,-273,-122},{-268,-226,-246,-213,-115,-151},{-131,-231,-237,-144,-218,-233},{-240,-197,-96,-246,-206,-273},{-222,-169,-255,-116,-262,-124},{-126,-258,-237,-133,-248,-153},{-127,-187,-116,-184,-153,-146},{-238,-195,-173,-229,-253,-189},{-207,-215,-262,-251,-107,-207},{-95,-131,-136,-140,-246,-218}},{{-95,-91,-193,-217,-100,-191},{-140,-164,-240,-251,-237,-107},{-126,-220,-95,-173,-264,-246},{-107,-173,-237,-147,-173,-211},{-138,-273,-102,-178,-157,-228},{-260,-178,-251,-231,-273,-138},{-246,-246,-160,-195,-136,-106},{-191,-246,-127,-213,-173,-187},{-146,-171,-167,-268,-149,-264},{-129,-244,-233,-135,-122,-102}}},{{{-252,-336,-328,-262,-274,-206},{-159,-341,-274,-186,-348,-203},{-213,-360,-189,-211,-198,-274},{-201,-137,-321,-328,-289,-257},{-189,-220,-233,-289,-316,-198},{-225,-152,-299,-181,-223,-250},{-255,-201,-247,-164,-247,-284},{-284,-296,-355,-282,-345,-316},{-326,-137,-122,-255,-203,-208},{-331,-257,-333,-238,-309,-314}},{{-140,-233,-159,-228,-243,-331},{-301,-306,-257,-331,-289,-218},{-294,-345,-230,-172,-179,-343},{-149,-294,-299,-363,-243,-306},{-247,-125,-331,-122,-147,-220},{-230,-314,-184,-189,-336,-122},{-274,-225,-174,-162,-348,-201},{-228,-301,-137,-321,-247,-162},{-142,-301,-172,-316,-208,-326},{-326,-318,-292,-341,-358,-267}},{{-127,-147,-147,-279,-157,-149},{-218,-336,-122,-323,-363,-296},{-137,-127,-316,-252,-157,-243},{-135,-164,-333,-179,-159,-176},{-296,-252,-265,-350,-223,-284},{-127,-194,-321,-164,-279,-213},{-282,-154,-316,-137,-331,-181},{-350,-355,-162,-230,-267,-265},{-341,-311,-152,-296,-343,-289},{-169,-331,-243,-245,-154,-179}},{{-252,-184,-137,-355,-306,-284},{-287,-306,-360,-140,-203,-265},{-167,-181,-223,-198,-125,-282},{-262,-122,-172,-279,-333,-336},{-331,-179,-137,-247,-365,-176},{-309,-172,-140,-314,-301,-274},{-198,-368,-189,-147,-220,-294},{-122,-196,-294,-216,-125,-238},{-125,-318,-147,-338,-314,-368},{-316,-368,-321,-142,-304,-311}},{{-240,-149,-265,-213,-235,-228},{-368,-194,-345,-211,-331,-235},{-206,-358,-306,-284,-137,-137},{-333,-277,-220,-240,-235,-314},{-179,-201,-184,-348,-206,-270},{-233,-255,-355,-147,-147,-240},{-181,-145,-211,-323,-228,-353},{-267,-162,-132,-149,-142,-270},{-149,-208,-203,-365,-152,-184},{-294,-184,-238,-147,-208,-338}},{{-262,-247,-127,-365,-299,-176},{-181,-252,-152,-257,-164,-309},{-282,-223,-152,-292,-125,-345},{-169,-157,-225,-206,-137,-272},{-267,-233,-179,-260,-140,-132},{-179,-294,-176,-213,-304,-233},{-142,-301,-152,-125,-176,-309},{-365,-240,-267,-186,-336,-270},{-225,-198,-333,-174,-189,-343},{-164,-235,-296,-240,-277,-179}},{{-203,-247,-194,-206,-282,-125},{-145,-311,-220,-247,-311,-314},{-176,-338,-216,-220,-243,-299},{-304,-179,-343,-179,-292,-228},{-365,-284,-265,-257,-331,-243},{-368,-235,-314,-233,-154,-235},{-127,-338,-184,-270,-203,-331},{-147,-289,-355,-125,-336,-196},{-265,-255,-137,-240,-240,-176},{-147,-328,-240,-152,-159,-198}},{{-145,-336,-201,-277,-220,-296},{-162,-196,-284,-184,-208,-245},{-196,-208,-341,-358,-311,-343},{-306,-238,-350,-176,-218,-240},{-350,-203,-127,-306,-172,-338},{-135,-270,-245,-208,-255,-181},{-130,-213,-243,-331,-267,-265},{-211,-316,-162,-230,-250,-311},{-368,-279,-289,-203,-201,-336},{-172,-235,-125,-235,-235,-198}},{{-353,-255,-250,-162,-203,-260},{-250,-321,-132,-220,-247,-176},{-127,-145,-235,-154,-270,-363},{-169,-189,-289,-167,-169,-147},{-164,-172,-311,-341,-247,-338},{-235,-122,-250,-338,-355,-306},{-287,-328,-341,-196,-365,-318},{-309,-296,-167,-225,-326,-299},{-191,-348,-353,-181,-247,-341},{-316,-316,-326,-289,-350,-353}}},{{{-206,-256,-231,-208,-249,-328},{-178,-312,-342,-273,-261,-122},{-180,-270,-171,-330,-342,-116},{-139,-219,-300,-150,-275,-196},{-199,-266,-236,-162,-231,-231},{-129,-280,-141,-316,-192,-122},{-314,-333,-233,-291,-256,-277},{-296,-185,-270,-148,-277,-240},{-270,-233,-148,-277,-155,-139},{-312,-337,-215,-240,-162,-215}},{{-263,-213,-249,-164,-203,-215},{-346,-261,-120,-148,-342,-333},{-143,-342,-217,-330,-296,-249},{-226,-213,-157,-282,-342,-296},{-280,-125,-229,-236,-176,-169},{-344,-210,-150,-169,-222,-185},{-129,-300,-141,-222,-233,-330},{-254,-333,-118,-286,-330,-206},{-333,-275,-303,-236,-173,-233},{-275,-196,-229,-316,-319,-129}},{{-247,-206,-206,-316,-132,-229},{-273,-185,-213,-173,-162,-314},{-169,-240,-141,-210,-236,-143},{-326,-125,-259,-143,-337,-344},{-152,-152,-300,-340,-120,-118},{-236,-270,-326,-139,-157,-148},{-238,-210,-296,-173,-268,-259},{-150,-157,-330,-152,-323,-236},{-224,-333,-166,-289,-189,-164},{-134,-344,-310,-169,-342,-280}},{{-141,-180,-155,-240,-282,-286},{-284,-146,-238,-203,-346,-323},{-340,-136,-240,-192,-286,-268},{-289,-337,-201,-213,-321,-342},{-323,-219,-273,-125,-344,-129},{-166,-300,-192,-307,-208,-229},{-314,-273,-148,-245,-245,-162},{-176,-155,-240,-219,-222,-120},{-178,-122,-231,-219,-319,-247},{-342,-254,-134,-268,-146,-171}},{{-293,-201,-201,-277,-252,-199},{-280,-182,-164,-245,-139,-280},{-231,-300,-182,-249,-206,-157},{-289,-321,-132,-141,-148,-182},{-157,-141,-224,-275,-273,-346},{-310,-219,-148,-326,-275,-340},{-238,-321,-217,-141,-268,-236},{-226,-150,-340,-314,-273,-206},{-291,-261,-342,-319,-236,-206},{-231,-122,-229,-273,-169,-201}},{{-266,-157,-134,-321,-307,-314},{-229,-150,-328,-226,-296,-335},{-284,-196,-125,-226,-326,-185},{-305,-171,-187,-201,-132,-173},{-150,-148,-171,-326,-259,-282},{-256,-270,-122,-210,-291,-298},{-224,-189,-335,-150,-139,-268},{-194,-129,-310,-284,-141,-231},{-259,-206,-201,-346,-180,-231},{-337,-328,-166,-194,-122,-159}},{{-189,-300,-122,-316,-127,-238},{-238,-247,-291,-270,-231,-226},{-268,-141,-120,-169,-266,-245},{-300,-213,-210,-217,-289,-270},{-201,-319,-213,-224,-180,-150},{-116,-330,-206,-316,-180,-303},{-122,-189,-321,-275,-289,-298},{-277,-222,-314,-316,-206,-280},{-266,-298,-249,-252,-125,-266},{-127,-206,-340,-342,-132,-206}},{{-240,-328,-240,-222,-150,-173},{-340,-277,-280,-118,-254,-231},{-226,-280,-203,-314,-152,-316},{-268,-189,-296,-252,-259,-346},{-282,-249,-122,-286,-293,-328},{-203,-236,-305,-296,-252,-164},{-201,-125,-344,-249,-171,-134},{-148,-293,-316,-316,-256,-155},{-182,-247,-316,-263,-127,-346},{-229,-139,-266,-116,-296,-127}},{{-277,-148,-236,-277,-303,-187},{-203,-215,-259,-282,-201,-268},{-127,-319,-187,-289,-312,-152},{-136,-208,-229,-298,-321,-162},{-340,-333,-222,-266,-148,-129},{-219,-139,-129,-185,-305,-162},{-328,-159,-293,-233,-162,-178},{-328,-286,-125,-300,-261,-249},{-219,-125,-312,-233,-139,-120},{-199,-120,-182,-277,-192,-247}}},{{{-171,-344,-159,-335,-215,-203},{-156,-435,-206,-223,-276,-406},{-235,-312,-423,-200,-288,-397},{-432,-159,-150,-329,-318,-335},{-376,-338,-200,-432,-423,-412},{-220,-185,-268,-168,-215,-150},{-256,-365,-320,-209,-391,-262},{-350,-279,-203,-309,-218,-397},{-373,-347,-250,-332,-362,-253},{-223,-235,-379,-288,-241,-338}},{{-262,-332,-176,-209,-191,-235},{-279,-303,-344,-318,-282,-335},{-206,-344,-318,-429,-220,-262},{-423,-391,-200,-150,-376,-415},{-379,-300,-191,-147,-335,-153},{-150,-406,-417,-223,-191,-179},{-373,-162,-320,-403,-276,-441},{-312,-417,-426,-203,-420,-256},{-218,-388,-165,-385,-270,-391},{-259,-200,-185,-338,-212,-188}},{{-150,-412,-341,-153,-432,-259},{-229,-350,-159,-400,-326,-173},{-206,-332,-315,-438,-394,-356},{-171,-241,-435,-435,-200,-312},{-306,-406,-165,-362,-406,-194},{-385,-303,-373,-209,-400,-344},{-291,-235,-241,-318,-200,-226},{-435,-417,-276,-279,-215,-162},{-173,-394,-223,-329,-435,-223},{-247,-376,-356,-438,-435,-403}},{{-423,-432,-185,-426,-303,-315},{-282,-220,-388,-344,-365,-273},{-265,-223,-185,-362,-429,-206},{-244,-162,-417,-191,-376,-417},{-432,-268,-323,-382,-350,-159},{-376,-270,-394,-412,-400,-253},{-223,-179,-147,-300,-162,-200},{-188,-285,-147,-417,-309,-238},{-279,-212,-223,-206,-288,-188},{-212,-276,-312,-194,-215,-235}},{{-297,-162,-368,-429,-335,-262},{-315,-438,-256,-270,-326,-191},{-218,-353,-291,-391,-397,-365},{-326,-226,-403,-176,-435,-226},{-341,-426,-326,-370,-171,-326},{-285,-162,-373,-323,-197,-288},{-294,-262,-315,-147,-256,-182},{-247,-176,-253,-320,-382,-417},{-394,-291,-209,-365,-285,-223},{-229,-232,-259,-226,-347,-200}},{{-368,-379,-420,-438,-218,-320},{-379,-223,-279,-209,-441,-203},{-232,-388,-306,-229,-203,-200},{-265,-188,-197,-344,-394,-438},{-359,-315,-188,-244,-182,-423},{-318,-373,-426,-426,-250,-250},{-394,-391,-182,-373,-335,-403},{-417,-282,-412,-147,-226,-179},{-288,-162,-376,-270,-203,-332},{-426,-344,-220,-420,-438,-368}},{{-168,-168,-356,-294,-159,-438},{-429,-185,-291,-323,-370,-391},{-238,-147,-182,-153,-344,-215},{-318,-200,-397,-394,-285,-365},{-200,-370,-173,-315,-156,-306},{-197,-379,-388,-182,-226,-420},{-365,-218,-191,-165,-282,-244},{-259,-188,-373,-268,-215,-226},{-250,-215,-406,-406,-397,-303},{-391,-241,-347,-415,-235,-326}},{{-426,-218,-312,-188,-235,-373},{-388,-338,-179,-400,-153,-179},{-194,-244,-429,-235,-388,-153},{-229,-379,-165,-332,-423,-226},{-441,-320,-282,-282,-403,-179},{-212,-394,-265,-194,-323,-235},{-329,-309,-206,-244,-382,-250},{-270,-406,-320,-341,-420,-238},{-188,-265,-376,-226,-247,-341},{-388,-162,-435,-212,-350,-315}},{{-320,-420,-356,-182,-370,-394},{-320,-223,-215,-241,-412,-412},{-232,-376,-353,-159,-270,-197},{-438,-265,-406,-235,-291,-315},{-432,-223,-350,-220,-368,-426},{-350,-429,-388,-423,-235,-388},{-359,-420,-173,-400,-441,-268},{-173,-268,-376,-394,-373,-320},{-394,-247,-250,-235,-244,-150},{-394,-220,-247,-326,-432,-197}}}}; // supply (positive for supply and negative for demand) under different scenarios 
int iniv[I]={1841,192,221,150,198,208,315,198,294}; // initial inventory 
int ubiv[I]={2104,384,442,300,396,416,630,396,588}; // the upper bounds of inventory 
int len[I1][I2]={{5,3,2,2,1,1,2,3}}; // the traveling time between two sites 
// cost parameters: 
double c1[I]={0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0}; // inventory holding cost 
double c2[I]={0.05,13.32,8.46,5.6,4.24,2.89,1.51,4.53,7.74}; // cost of leftover and unmet 
double c3[BN]={0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0}; // transportation cost for capacity contracts 
double c4[I1][I2]={{12.11,7.69,5.09,3.85,2.63,1.37,4.12,7.04}}; // cost of spot market 
// bid parameters: 
int RLBN[I1][I2]={{9,9,9,9,9,9,9,9}}; // number of bids on each arc 
int LBset[I1][I2][LBN]={{{0,1,2,3,4,5,6,7,8},{9,10,11,12,13,14,15,16,17},{18,19,20,21,22,23,24,25,26},{27,28,29,30,31,32,33,34,35},{36,37,38,39,40,41,42,43,44},{45,46,47,48,49,50,51,52,53},{54,55,56,57,58,59,60,61,62},{63,64,65,66,67,68,69,70,71}}}; // set of bids on each arc 
double frt[BN]={9.69,9.69,9.69,8.48,8.48,8.48,7.27,7.27,7.27,6.15,6.15,6.15,5.38,5.38,5.38,4.61,4.61,4.61,4.07,4.07,4.07,3.56,3.56,3.56,3.05,3.05,3.05,3.08,3.08,3.08,2.7,2.7,2.7,2.31,2.31,2.31,2.1,2.1,2.1,1.84,1.84,1.84,1.58,1.58,1.58,1.1,1.1,1.1,0.96,0.96,0.96,0.82,0.82,0.82,3.3,3.3,3.3,2.88,2.88,2.88,2.47,2.47,2.47,5.63,5.63,5.63,4.93,4.93,4.93,4.22,4.22,4.22}; // freight rate of each bid 
int lbcap[BN]={75,75,75,1,151,151,151,226,226,75,75,75,301,151,151,151,226,226,75,75,75,301,151,151,151,226,226,75,75,75,301,151,151,151,226,226,75,75,75,301,151,151,151,226,226,75,75,75,301,151,151,151,226,226,75,75,75,301,151,151,151,226,226,75,75,75,301,151,151,151,226,226}; // capacity lower bound of each bid 
int ubcap[BN]={150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300}; // capacity upper bound of each bid 
// shipment parameters: 
int SHN[BN]={25,13,8,24,12,8,25,12,8,25,13,9,25,13,9,25,13,9,26,13,9,26,13,9,25,13,9,26,13,9,25,13,9,26,13,9,26,13,9,27,13,9,27,14,9,27,14,9,27,14,9,26,13,9,26,13,9,26,13,9,25,13,9,25,13,9,25,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},{1133,1134,1135,1136,1137,1138,1139,1140,1141}}; // set of shipments in each bid 
int SHsts[SPN]={0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,0,4,8,12,16,20,24,28,32,36,40,44,48,1,7,13,19,25,31,37,43,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,2,6,10,14,18,22,26,30,34,38,42,46,1,7,13,19,25,31,37,43,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,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,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,0,4,8,12,16,20,24,28,32,36,40,44,48,2,8,14,20,26,32,38,44,50,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,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,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,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,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,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,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,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,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,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,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,0,4,8,12,16,20,24,28,32,36,40,44,48,52,0,6,12,18,24,30,36,42,48,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,1,5,9,13,17,21,25,29,33,37,41,45,49,2,8,14,20,26,32,38,44,50,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,1,5,9,13,17,21,25,29,33,37,41,45,49,1,7,13,19,25,31,37,43,49,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,2,6,10,14,18,22,26,30,34,38,42,46,50,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,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}; // set of start times of each shipment 
int SHets[SPN]={5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,5,9,13,17,21,25,29,33,37,41,45,49,53,6,12,18,24,30,36,42,48,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,7,11,15,19,23,27,31,35,39,43,47,51,6,12,18,24,30,36,42,48,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,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,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,3,7,11,15,19,23,27,31,35,39,43,47,51,5,11,17,23,29,35,41,47,53,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,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,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,2,8,14,20,26,32,38,44,50,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,4,8,12,16,20,24,28,32,36,40,44,48,52,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,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,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,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,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,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,1,5,9,13,17,21,25,29,33,37,41,45,49,53,1,7,13,19,25,31,37,43,49,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,3,7,11,15,19,23,27,31,35,39,43,47,51,3,9,15,21,27,33,39,45,51,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,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,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,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}; // set of end times of each shipment 
