int Dev = 50;// Deviation
extern const int CNN = 4;// Case Index
extern const int P = 9;// Number of phases
extern const int PT = 6;// Number of periods in a phase
extern const int T = 54;// Number of periods
extern const int I1 =1;// Number of suppliers
extern const int I2 = 8;// Number of customers
extern const int I = 9;// Number of sites
extern const int BN = 72;//Number of bids
extern const int LBN = 9;//Number of bids on each arc
extern const int SPN = 1137;//Number of shipments
extern const int SN = 10;//Number of scenarios at each stage
extern const int MBSN = 27;//Number of shipments in a bid
// tree parameters:
double PRO[P][SN]={{0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1},{0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1},{0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1},{0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1},{0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1},{0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1},{0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1},{0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1},{0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1}}; // the probability of each scenario at each phase 
// timing parameters: 
int PTN[P]={6,6,6,6,6,6,6,6,6}; // number of periods in each phase 
int PTset[P][PT]={{0,1,2,3,4,5},{6,7,8,9,10,11},{12,13,14,15,16,17},{18,19,20,21,22,23},{24,25,26,27,28,29},{30,31,32,33,34,35},{36,37,38,39,40,41},{42,43,44,45,46,47},{48,49,50,51,52,53}}; // set of periods in each phase 
// distribution parameters: 
int sup[I][P][SN][PT]={{{{11211,0,0,0,0,0},{10468,0,0,0,0,0},{10627,0,0,0,0,0},{10914,0,0,0,0,0},{10749,0,0,0,0,0},{11172,0,0,0,0,0},{10649,0,0,0,0,0},{10612,0,0,0,0,0},{10339,0,0,0,0,0},{11684,0,0,0,0,0}},{{11511,0,0,0,0,0},{11092,0,0,0,0,0},{11053,0,0,0,0,0},{11199,0,0,0,0,0},{10312,0,0,0,0,0},{10150,0,0,0,0,0},{11477,0,0,0,0,0},{11188,0,0,0,0,0},{11041,0,0,0,0,0},{11192,0,0,0,0,0}},{{11213,0,0,0,0,0},{11039,0,0,0,0,0},{11399,0,0,0,0,0},{11627,0,0,0,0,0},{10662,0,0,0,0,0},{10411,0,0,0,0,0},{11063,0,0,0,0,0},{10900,0,0,0,0,0},{10853,0,0,0,0,0},{11307,0,0,0,0,0}},{{11521,0,0,0,0,0},{10738,0,0,0,0,0},{10890,0,0,0,0,0},{10858,0,0,0,0,0},{10469,0,0,0,0,0},{10748,0,0,0,0,0},{10115,0,0,0,0,0},{11577,0,0,0,0,0},{11659,0,0,0,0,0},{10923,0,0,0,0,0}},{{11013,0,0,0,0,0},{11453,0,0,0,0,0},{11583,0,0,0,0,0},{10860,0,0,0,0,0},{10189,0,0,0,0,0},{11033,0,0,0,0,0},{10430,0,0,0,0,0},{10753,0,0,0,0,0},{11419,0,0,0,0,0},{11450,0,0,0,0,0}},{{12172,0,0,0,0,0},{10699,0,0,0,0,0},{10457,0,0,0,0,0},{10315,0,0,0,0,0},{12008,0,0,0,0,0},{11169,0,0,0,0,0},{10781,0,0,0,0,0},{10813,0,0,0,0,0},{12235,0,0,0,0,0},{10532,0,0,0,0,0}},{{11899,0,0,0,0,0},{11055,0,0,0,0,0},{10698,0,0,0,0,0},{10985,0,0,0,0,0},{10828,0,0,0,0,0},{11079,0,0,0,0,0},{11160,0,0,0,0,0},{11785,0,0,0,0,0},{10848,0,0,0,0,0},{10057,0,0,0,0,0}},{{10203,0,0,0,0,0},{11024,0,0,0,0,0},{10958,0,0,0,0,0},{10650,0,0,0,0,0},{10466,0,0,0,0,0},{10728,0,0,0,0,0},{11671,0,0,0,0,0},{10901,0,0,0,0,0},{11340,0,0,0,0,0},{10722,0,0,0,0,0}},{{10773,0,0,0,0,0},{11830,0,0,0,0,0},{11263,0,0,0,0,0},{11062,0,0,0,0,0},{11184,0,0,0,0,0},{10865,0,0,0,0,0},{10153,0,0,0,0,0},{11024,0,0,0,0,0},{11323,0,0,0,0,0},{12212,0,0,0,0,0}}},{{{-235,-269,-249,-267,-323,-152},{-311,-132,-114,-255,-302,-148},{-146,-222,-284,-262,-222,-213},{-204,-307,-267,-287,-260,-311},{-320,-159,-282,-262,-155,-166},{-139,-287,-226,-128,-181,-170},{-134,-125,-193,-233,-284,-327},{-305,-258,-271,-332,-161,-302},{-215,-155,-175,-121,-146,-121},{-155,-271,-190,-148,-137,-157}},{{-260,-148,-226,-237,-307,-305},{-325,-233,-119,-289,-179,-231},{-215,-152,-146,-157,-231,-112},{-139,-273,-168,-166,-228,-280},{-325,-228,-314,-188,-291,-152},{-284,-166,-141,-128,-213,-242},{-181,-190,-336,-112,-235,-305},{-249,-300,-186,-298,-161,-289},{-206,-161,-121,-298,-168,-271},{-309,-172,-226,-276,-143,-215}},{{-329,-179,-276,-287,-278,-206},{-193,-123,-287,-204,-123,-314},{-179,-271,-125,-273,-300,-293},{-311,-186,-119,-222,-334,-318},{-302,-157,-224,-146,-287,-121},{-316,-134,-121,-186,-329,-193},{-199,-296,-249,-186,-199,-264},{-164,-116,-195,-293,-177,-240},{-309,-244,-298,-134,-123,-267},{-332,-134,-235,-211,-244,-195}},{{-305,-112,-179,-329,-262,-186},{-316,-220,-121,-204,-224,-222},{-273,-217,-155,-190,-220,-231},{-146,-271,-123,-280,-262,-130},{-311,-222,-141,-175,-276,-307},{-128,-307,-211,-202,-157,-284},{-293,-260,-253,-125,-119,-222},{-269,-273,-164,-300,-278,-164},{-314,-220,-195,-226,-190,-258},{-134,-264,-211,-186,-323,-278}},{{-255,-220,-278,-246,-336,-222},{-181,-132,-226,-293,-314,-269},{-334,-228,-320,-134,-193,-213},{-242,-255,-231,-199,-244,-307},{-123,-121,-112,-282,-197,-206},{-143,-302,-327,-114,-262,-228},{-190,-157,-208,-296,-128,-332},{-190,-289,-125,-235,-249,-204},{-217,-237,-231,-327,-309,-141},{-199,-336,-168,-289,-159,-300}},{{-262,-139,-166,-296,-215,-146},{-195,-251,-300,-300,-258,-291},{-146,-255,-318,-226,-168,-289},{-121,-226,-148,-172,-309,-121},{-318,-188,-179,-271,-327,-258},{-258,-267,-148,-264,-123,-262},{-235,-271,-179,-226,-164,-195},{-204,-249,-276,-300,-318,-112},{-311,-329,-148,-291,-235,-211},{-267,-253,-125,-323,-123,-264}},{{-211,-159,-332,-244,-314,-280},{-309,-246,-211,-280,-273,-271},{-302,-146,-188,-206,-137,-334},{-249,-293,-172,-206,-289,-309},{-170,-202,-134,-159,-264,-164},{-177,-121,-311,-181,-175,-220},{-206,-123,-215,-323,-237,-242},{-298,-314,-293,-244,-293,-269},{-199,-125,-132,-323,-269,-132},{-253,-195,-146,-114,-159,-320}},{{-228,-181,-327,-284,-240,-249},{-125,-220,-323,-323,-267,-161},{-137,-332,-146,-237,-271,-114},{-172,-215,-334,-148,-112,-267},{-323,-175,-175,-177,-143,-300},{-269,-190,-258,-246,-231,-246},{-249,-325,-197,-280,-121,-116},{-298,-224,-202,-267,-121,-193},{-125,-293,-139,-213,-316,-282},{-289,-280,-195,-305,-273,-220}},{{-262,-269,-204,-114,-184,-130},{-327,-271,-202,-168,-273,-150},{-284,-123,-276,-161,-255,-217},{-224,-258,-161,-296,-318,-148},{-291,-222,-311,-193,-211,-159},{-235,-202,-329,-293,-170,-170},{-188,-237,-143,-316,-204,-125},{-300,-235,-164,-222,-199,-172},{-320,-208,-172,-215,-231,-172},{-318,-323,-242,-336,-202,-116}}},{{{-209,-267,-340,-159,-302,-186},{-217,-200,-269,-312,-248,-257},{-131,-278,-202,-124,-145,-238},{-333,-317,-129,-193,-286,-288},{-231,-236,-321,-319,-269,-190},{-155,-336,-343,-350,-178,-298},{-288,-219,-162,-245,-312,-290},{-164,-345,-257,-178,-328,-326},{-188,-257,-228,-345,-350,-159},{-345,-238,-343,-207,-355,-140}},{{-264,-321,-283,-352,-188,-193},{-209,-307,-338,-228,-293,-150},{-269,-157,-357,-286,-143,-238},{-290,-283,-193,-195,-119,-162},{-355,-205,-269,-212,-324,-281},{-121,-178,-240,-155,-129,-183},{-240,-183,-195,-212,-217,-245},{-352,-131,-252,-333,-138,-169},{-257,-219,-288,-302,-231,-340},{-314,-338,-190,-205,-283,-350}},{{-317,-129,-193,-174,-271,-326},{-333,-214,-259,-324,-157,-145},{-169,-138,-288,-326,-324,-200},{-183,-202,-328,-321,-162,-347},{-176,-259,-181,-129,-152,-143},{-231,-331,-259,-302,-131,-131},{-226,-357,-231,-152,-245,-302},{-345,-302,-131,-155,-298,-290},{-328,-331,-133,-267,-312,-219},{-214,-271,-188,-167,-231,-219}},{{-264,-243,-350,-140,-136,-300},{-150,-124,-219,-167,-181,-209},{-159,-336,-162,-164,-131,-202},{-326,-181,-276,-343,-164,-257},{-131,-200,-124,-347,-295,-259},{-305,-133,-181,-178,-133,-319},{-217,-129,-281,-305,-126,-195},{-281,-302,-259,-259,-155,-252},{-181,-167,-336,-221,-336,-274},{-193,-131,-186,-202,-262,-176}},{{-121,-209,-221,-148,-159,-314},{-214,-352,-209,-333,-271,-347},{-331,-300,-278,-324,-352,-319},{-309,-248,-321,-176,-183,-300},{-343,-221,-200,-271,-236,-181},{-278,-314,-343,-331,-331,-150},{-228,-281,-343,-162,-276,-231},{-347,-174,-219,-331,-314,-164},{-252,-338,-267,-307,-286,-124},{-264,-245,-338,-224,-162,-319}},{{-352,-259,-305,-295,-319,-205},{-217,-238,-200,-262,-152,-350},{-155,-174,-171,-162,-274,-207},{-271,-309,-293,-195,-176,-209},{-221,-274,-145,-352,-293,-333},{-328,-169,-140,-345,-340,-305},{-183,-143,-129,-193,-347,-352},{-171,-224,-312,-131,-145,-131},{-333,-207,-350,-276,-250,-174},{-178,-205,-245,-205,-167,-181}},{{-202,-193,-264,-269,-186,-198},{-317,-174,-200,-183,-193,-338},{-264,-236,-145,-171,-178,-200},{-224,-171,-169,-190,-188,-345},{-162,-183,-183,-278,-157,-252},{-350,-226,-245,-319,-133,-121},{-255,-302,-221,-281,-217,-202},{-159,-202,-129,-307,-124,-293},{-183,-267,-240,-159,-240,-248},{-167,-155,-157,-357,-209,-345}},{{-119,-312,-267,-207,-224,-202},{-205,-228,-195,-205,-336,-350},{-331,-252,-181,-293,-236,-345},{-224,-219,-319,-155,-252,-355},{-319,-126,-171,-171,-243,-240},{-286,-290,-295,-136,-138,-276},{-286,-121,-195,-347,-174,-352},{-252,-245,-119,-238,-274,-124},{-302,-159,-267,-267,-121,-190},{-233,-126,-133,-338,-355,-333}},{{-328,-121,-302,-159,-302,-228},{-293,-124,-202,-288,-283,-238},{-162,-152,-338,-319,-267,-221},{-140,-290,-186,-259,-209,-214},{-278,-214,-343,-202,-169,-319},{-129,-138,-143,-231,-188,-288},{-357,-231,-164,-140,-159,-328},{-245,-178,-171,-340,-328,-138},{-343,-162,-350,-136,-262,-214},{-338,-328,-186,-155,-217,-312}}},{{{-180,-289,-330,-227,-186,-276},{-319,-172,-325,-289,-404,-295},{-385,-251,-218,-349,-145,-281},{-147,-235,-333,-325,-194,-235},{-175,-172,-145,-407,-147,-284},{-183,-366,-186,-287,-270,-363},{-292,-172,-385,-344,-180,-186},{-161,-366,-257,-379,-218,-292},{-276,-158,-205,-336,-265,-374},{-377,-401,-150,-333,-300,-341}},{{-369,-145,-366,-344,-191,-284},{-259,-139,-393,-186,-273,-235},{-205,-396,-207,-147,-388,-407},{-243,-278,-314,-306,-308,-259},{-169,-248,-156,-300,-396,-145},{-238,-180,-303,-347,-382,-238},{-197,-314,-333,-317,-330,-139},{-303,-186,-248,-319,-374,-281},{-366,-172,-169,-191,-221,-246},{-374,-221,-142,-194,-194,-281}},{{-322,-349,-186,-300,-227,-281},{-339,-295,-382,-393,-235,-374},{-147,-328,-399,-388,-330,-300},{-136,-358,-205,-317,-276,-202},{-229,-180,-278,-257,-246,-254},{-224,-306,-339,-355,-177,-298},{-243,-328,-347,-180,-281,-254},{-136,-167,-175,-399,-319,-352},{-374,-194,-194,-197,-188,-308},{-243,-366,-308,-349,-213,-270}},{{-396,-404,-298,-221,-229,-213},{-401,-197,-194,-270,-218,-336},{-358,-169,-164,-161,-213,-388},{-270,-183,-352,-172,-172,-328},{-229,-136,-240,-210,-186,-194},{-158,-273,-270,-278,-251,-401},{-259,-379,-158,-169,-142,-363},{-243,-147,-262,-147,-289,-390},{-164,-202,-382,-382,-379,-319},{-284,-339,-303,-175,-319,-197}},{{-156,-276,-322,-224,-238,-183},{-218,-328,-336,-308,-371,-180},{-229,-273,-238,-161,-322,-254},{-191,-251,-142,-300,-218,-333},{-197,-199,-355,-251,-385,-169},{-262,-207,-300,-268,-355,-191},{-191,-167,-197,-188,-347,-229},{-289,-169,-164,-156,-344,-158},{-410,-147,-317,-349,-311,-158},{-401,-317,-328,-295,-385,-183}},{{-227,-388,-333,-281,-298,-399},{-341,-172,-265,-311,-410,-153},{-270,-202,-363,-404,-295,-319},{-202,-202,-276,-207,-202,-390},{-248,-213,-240,-221,-197,-268},{-328,-371,-344,-207,-186,-287},{-366,-240,-379,-276,-199,-145},{-363,-238,-273,-317,-278,-382},{-281,-399,-399,-240,-333,-401},{-188,-224,-303,-248,-167,-276}},{{-308,-404,-158,-284,-317,-369},{-177,-287,-202,-243,-371,-169},{-314,-399,-167,-142,-410,-382},{-213,-270,-396,-227,-139,-207},{-246,-268,-287,-289,-379,-308},{-227,-191,-341,-298,-216,-407},{-213,-311,-177,-349,-360,-385},{-399,-191,-303,-385,-287,-399},{-147,-333,-322,-202,-333,-259},{-246,-216,-232,-388,-388,-156}},{{-197,-218,-161,-314,-352,-369},{-167,-278,-330,-325,-251,-156},{-319,-150,-298,-251,-221,-229},{-374,-246,-281,-262,-199,-172},{-210,-278,-407,-349,-292,-270},{-164,-328,-194,-164,-227,-333},{-399,-257,-186,-243,-333,-317},{-210,-317,-339,-153,-153,-243},{-317,-308,-259,-371,-251,-330},{-336,-191,-339,-240,-311,-292}},{{-177,-197,-287,-390,-232,-158},{-325,-407,-278,-139,-360,-377},{-369,-344,-341,-136,-371,-284},{-349,-246,-142,-218,-235,-317},{-213,-205,-268,-284,-300,-306},{-393,-197,-388,-306,-333,-281},{-371,-292,-202,-153,-142,-175},{-333,-240,-199,-306,-235,-210},{-136,-306,-339,-393,-333,-199},{-273,-410,-180,-344,-330,-229}}},{{{-128,-219,-99,-177,-165,-154},{-86,-189,-112,-134,-163,-100},{-143,-123,-142,-145,-156,-189},{-200,-140,-106,-172,-137,-129},{-89,-117,-109,-185,-231,-157},{-169,-229,-79,-231,-185,-119},{-225,-131,-185,-117,-222,-182},{-149,-169,-199,-132,-97,-122},{-220,-132,-151,-172,-231,-179},{-128,-169,-177,-197,-95,-142}},{{-194,-105,-186,-216,-194,-140},{-100,-183,-146,-152,-186,-186},{-89,-169,-125,-166,-203,-182},{-116,-202,-196,-108,-126,-197},{-189,-79,-148,-171,-134,-229},{-206,-209,-183,-205,-117,-91},{-194,-199,-159,-174,-123,-179},{-134,-182,-152,-116,-216,-179},{-171,-162,-154,-163,-165,-94},{-217,-188,-222,-163,-146,-80}},{{-111,-108,-80,-82,-191,-228},{-151,-123,-186,-203,-214,-159},{-174,-225,-136,-200,-152,-116},{-171,-229,-209,-154,-137,-159},{-157,-203,-77,-126,-213,-94},{-203,-97,-214,-103,-89,-199},{-228,-146,-219,-79,-157,-220},{-126,-152,-205,-179,-139,-199},{-211,-140,-185,-79,-149,-199},{-168,-132,-79,-148,-203,-89}},{{-182,-134,-128,-228,-102,-214},{-231,-145,-171,-126,-192,-196},{-77,-152,-154,-180,-176,-102},{-123,-160,-169,-203,-160,-220},{-82,-203,-89,-208,-102,-154},{-106,-82,-208,-94,-95,-111},{-216,-174,-97,-143,-231,-95},{-129,-120,-211,-213,-229,-228},{-188,-169,-172,-219,-85,-132},{-203,-103,-91,-213,-125,-231}},{{-228,-174,-149,-217,-228,-116},{-143,-131,-203,-211,-163,-229},{-94,-120,-123,-196,-105,-174},{-143,-156,-226,-85,-88,-77},{-149,-102,-89,-231,-120,-79},{-126,-102,-132,-186,-177,-119},{-160,-109,-209,-142,-103,-82},{-223,-159,-209,-169,-139,-129},{-88,-126,-202,-205,-156,-132},{-186,-77,-131,-169,-143,-148}},{{-217,-105,-220,-105,-206,-82},{-125,-111,-222,-116,-137,-117},{-79,-111,-120,-79,-123,-97},{-143,-183,-129,-140,-83,-183},{-194,-197,-223,-202,-136,-108},{-216,-183,-172,-100,-83,-139},{-188,-213,-194,-114,-191,-109},{-199,-154,-219,-188,-106,-106},{-156,-80,-179,-189,-157,-169},{-95,-136,-122,-229,-229,-202}},{{-206,-182,-86,-202,-228,-229},{-160,-168,-137,-203,-182,-100},{-85,-122,-226,-162,-216,-126},{-216,-85,-205,-97,-109,-192},{-120,-203,-136,-131,-106,-196},{-177,-168,-223,-168,-219,-213},{-128,-182,-196,-165,-219,-185},{-85,-205,-112,-183,-163,-200},{-211,-95,-205,-192,-82,-131},{-229,-123,-105,-112,-132,-203}},{{-219,-106,-180,-80,-165,-125},{-154,-142,-208,-129,-89,-160},{-83,-202,-154,-205,-208,-225},{-169,-117,-191,-82,-129,-203},{-200,-83,-119,-217,-92,-191},{-163,-108,-129,-200,-146,-137},{-203,-148,-171,-109,-217,-199},{-179,-228,-134,-146,-94,-228},{-216,-152,-176,-176,-199,-206},{-179,-89,-112,-214,-188,-182}},{{-99,-80,-142,-142,-143,-83},{-117,-79,-91,-79,-205,-208},{-122,-206,-132,-128,-182,-165},{-176,-122,-223,-103,-92,-117},{-85,-156,-225,-199,-83,-108},{-179,-174,-179,-172,-114,-103},{-156,-148,-94,-168,-82,-183},{-106,-129,-185,-222,-129,-225},{-228,-151,-99,-83,-163,-125},{-185,-131,-223,-151,-229,-99}}},{{{-131,-135,-175,-157,-177,-162},{-164,-153,-144,-213,-195,-93},{-206,-246,-269,-209,-144,-207},{-228,-255,-151,-162,-198,-162},{-98,-200,-226,-226,-184,-129},{-129,-177,-107,-228,-166,-166},{-268,-255,-113,-180,-173,-122},{-182,-184,-213,-229,-135,-113},{-133,-268,-126,-213,-104,-186},{-233,-166,-167,-129,-195,-246}},{{-155,-106,-206,-129,-157,-217},{-166,-153,-193,-262,-206,-180},{-129,-122,-124,-231,-242,-204},{-177,-240,-140,-235,-120,-118},{-160,-133,-171,-126,-258,-116},{-195,-144,-100,-95,-122,-106},{-228,-266,-122,-109,-215,-249},{-96,-186,-138,-213,-122,-193},{-218,-169,-211,-120,-195,-271},{-153,-237,-118,-228,-258,-218}},{{-269,-269,-226,-164,-126,-264},{-157,-195,-142,-113,-109,-122},{-187,-184,-191,-217,-257,-182},{-166,-180,-151,-155,-262,-135},{-220,-146,-268,-144,-175,-238},{-169,-218,-257,-151,-187,-124},{-186,-175,-171,-235,-189,-104},{-124,-142,-255,-224,-273,-260},{-133,-218,-197,-133,-111,-207},{-231,-187,-246,-217,-215,-147}},{{-155,-235,-209,-169,-273,-200},{-220,-269,-115,-191,-253,-120},{-233,-217,-198,-186,-93,-233},{-113,-211,-229,-147,-209,-220},{-115,-240,-120,-177,-207,-155},{-96,-273,-142,-249,-107,-127},{-235,-127,-131,-162,-217,-268},{-197,-177,-169,-167,-238,-116},{-107,-200,-228,-235,-173,-93},{-93,-153,-153,-104,-189,-249}},{{-220,-244,-129,-238,-264,-106},{-178,-193,-135,-200,-215,-260},{-218,-162,-238,-266,-226,-182},{-104,-131,-91,-260,-149,-269},{-186,-151,-151,-95,-233,-189},{-251,-177,-266,-258,-271,-209},{-177,-235,-136,-102,-173,-248},{-169,-147,-146,-147,-233,-202},{-242,-149,-249,-202,-217,-126},{-240,-124,-120,-116,-96,-116}},{{-200,-151,-253,-220,-271,-246},{-213,-178,-126,-211,-109,-248},{-155,-160,-106,-102,-158,-122},{-200,-107,-136,-182,-95,-249},{-248,-93,-140,-273,-217,-204},{-118,-129,-182,-209,-206,-238},{-240,-200,-155,-222,-160,-136},{-180,-166,-222,-146,-187,-180},{-237,-226,-268,-238,-197,-262},{-202,-186,-96,-158,-162,-258}},{{-138,-220,-118,-111,-166,-177},{-226,-195,-146,-195,-211,-186},{-206,-197,-144,-215,-155,-264},{-162,-266,-146,-255,-198,-151},{-127,-262,-198,-253,-237,-233},{-235,-91,-266,-142,-193,-264},{-211,-231,-91,-136,-255,-251},{-107,-215,-167,-217,-248,-162},{-238,-218,-146,-197,-206,-113},{-244,-251,-149,-182,-169,-173}},{{-122,-136,-102,-149,-118,-200},{-271,-153,-231,-186,-228,-116},{-193,-217,-207,-237,-124,-100},{-157,-231,-153,-149,-166,-197},{-102,-102,-107,-96,-240,-149},{-175,-186,-191,-217,-262,-237},{-269,-182,-255,-242,-237,-127},{-240,-202,-268,-191,-191,-91},{-155,-180,-220,-202,-146,-133},{-197,-102,-162,-149,-211,-100}},{{-209,-224,-100,-269,-215,-102},{-235,-142,-215,-209,-253,-264},{-257,-158,-124,-175,-135,-228},{-233,-220,-149,-191,-220,-222},{-171,-228,-233,-202,-233,-180},{-206,-255,-135,-126,-224,-189},{-106,-160,-104,-166,-240,-160},{-189,-131,-269,-126,-120,-104},{-133,-231,-246,-211,-240,-189},{-127,-144,-202,-222,-246,-160}}},{{{-191,-365,-287,-316,-345,-287},{-132,-122,-341,-154,-125,-343},{-211,-238,-172,-306,-184,-284},{-196,-147,-250,-194,-159,-174},{-142,-172,-265,-255,-240,-149},{-149,-130,-270,-358,-279,-343},{-191,-137,-301,-235,-282,-260},{-216,-238,-208,-265,-363,-130},{-179,-284,-122,-154,-181,-189},{-358,-358,-343,-181,-213,-247}},{{-169,-301,-140,-225,-277,-223},{-265,-309,-132,-240,-240,-201},{-137,-326,-294,-270,-270,-292},{-323,-267,-321,-270,-149,-294},{-316,-289,-318,-172,-316,-181},{-318,-336,-216,-122,-130,-333},{-304,-368,-282,-345,-181,-186},{-230,-360,-179,-299,-233,-122},{-196,-304,-157,-198,-164,-235},{-196,-250,-265,-365,-220,-368}},{{-323,-228,-255,-260,-206,-304},{-198,-274,-247,-152,-169,-247},{-338,-270,-240,-240,-277,-355},{-355,-125,-292,-360,-343,-169},{-277,-368,-257,-314,-368,-274},{-189,-149,-230,-196,-289,-228},{-358,-284,-127,-240,-159,-228},{-152,-137,-314,-245,-265,-311},{-181,-265,-186,-135,-247,-363},{-296,-167,-343,-184,-211,-323}},{{-252,-208,-250,-127,-157,-274},{-265,-247,-350,-164,-132,-341},{-368,-167,-152,-345,-225,-284},{-321,-348,-211,-186,-333,-125},{-233,-203,-228,-172,-225,-365},{-365,-191,-292,-296,-211,-167},{-162,-162,-140,-284,-132,-321},{-194,-230,-122,-235,-147,-230},{-220,-252,-326,-238,-321,-323},{-343,-267,-196,-304,-272,-230}},{{-274,-294,-174,-142,-127,-127},{-216,-267,-228,-162,-216,-279},{-252,-306,-162,-159,-142,-365},{-326,-358,-196,-279,-154,-336},{-321,-149,-301,-181,-267,-198},{-238,-135,-140,-198,-314,-159},{-174,-338,-250,-174,-274,-149},{-350,-186,-270,-127,-186,-154},{-355,-350,-333,-203,-267,-125},{-350,-355,-220,-243,-304,-358}},{{-309,-355,-157,-353,-348,-218},{-279,-331,-149,-201,-196,-287},{-137,-338,-243,-223,-304,-287},{-208,-216,-125,-152,-328,-311},{-341,-174,-296,-250,-333,-225},{-272,-289,-152,-321,-296,-132},{-169,-172,-164,-176,-184,-306},{-336,-318,-145,-306,-279,-355},{-238,-289,-206,-348,-198,-343},{-301,-292,-142,-270,-331,-277}},{{-301,-225,-328,-363,-368,-299},{-252,-284,-172,-296,-125,-311},{-220,-318,-203,-284,-147,-216},{-333,-174,-181,-250,-358,-257},{-294,-355,-122,-345,-206,-247},{-341,-353,-225,-274,-360,-169},{-282,-326,-345,-162,-191,-304},{-213,-365,-343,-213,-122,-336},{-277,-260,-306,-353,-255,-323},{-125,-353,-152,-365,-220,-125}},{{-142,-130,-176,-194,-223,-137},{-365,-245,-203,-220,-137,-353},{-127,-230,-201,-147,-198,-323},{-189,-289,-198,-149,-265,-255},{-176,-287,-274,-132,-277,-309},{-198,-140,-186,-243,-353,-279},{-277,-181,-331,-252,-360,-287},{-331,-277,-282,-169,-316,-311},{-287,-223,-301,-296,-142,-174},{-145,-311,-172,-159,-167,-316}},{{-169,-240,-184,-196,-267,-328},{-309,-184,-149,-277,-299,-360},{-169,-336,-154,-287,-250,-176},{-130,-321,-135,-365,-255,-174},{-265,-140,-358,-230,-213,-157},{-157,-247,-152,-179,-321,-321},{-194,-274,-203,-167,-304,-365},{-316,-169,-262,-127,-365,-279},{-181,-343,-203,-208,-348,-257},{-345,-201,-323,-282,-274,-235}}},{{{-180,-166,-300,-159,-120,-282},{-134,-141,-238,-189,-314,-182},{-337,-305,-291,-245,-152,-310},{-208,-268,-330,-166,-240,-201},{-118,-226,-201,-342,-201,-291},{-178,-275,-323,-176,-169,-238},{-127,-118,-185,-249,-162,-189},{-134,-120,-118,-178,-180,-236},{-215,-252,-166,-319,-238,-226},{-319,-150,-236,-203,-282,-134}},{{-263,-312,-340,-143,-259,-178},{-134,-213,-344,-169,-201,-199},{-178,-310,-150,-344,-268,-210},{-192,-296,-335,-229,-215,-247},{-199,-127,-125,-182,-136,-118},{-132,-293,-155,-249,-275,-247},{-120,-166,-215,-291,-300,-310},{-286,-173,-340,-173,-229,-346},{-312,-208,-176,-330,-213,-296},{-261,-120,-159,-307,-219,-176}},{{-157,-143,-162,-233,-303,-266},{-125,-210,-127,-321,-171,-303},{-192,-122,-141,-148,-116,-155},{-217,-293,-238,-247,-323,-233},{-217,-116,-176,-303,-182,-263},{-148,-300,-226,-201,-134,-132},{-254,-120,-337,-305,-206,-125},{-268,-171,-146,-213,-118,-270},{-122,-254,-157,-335,-238,-330},{-286,-141,-182,-314,-178,-277}},{{-307,-185,-346,-125,-333,-233},{-249,-243,-312,-321,-247,-159},{-208,-245,-206,-307,-330,-116},{-215,-310,-189,-312,-136,-125},{-247,-171,-263,-326,-189,-201},{-252,-286,-316,-233,-219,-134},{-206,-236,-208,-249,-125,-229},{-286,-155,-296,-342,-326,-293},{-323,-277,-182,-196,-312,-254},{-321,-139,-298,-196,-224,-289}},{{-199,-231,-162,-337,-270,-206},{-169,-229,-213,-206,-166,-166},{-270,-201,-330,-335,-252,-166},{-263,-196,-192,-273,-312,-229},{-238,-224,-125,-217,-122,-346},{-231,-305,-263,-316,-222,-273},{-125,-132,-254,-201,-266,-314},{-169,-217,-189,-312,-215,-203},{-231,-176,-201,-346,-217,-187},{-129,-118,-319,-224,-254,-254}},{{-176,-330,-337,-215,-310,-268},{-346,-127,-240,-277,-141,-152},{-236,-273,-293,-215,-201,-136},{-312,-303,-155,-192,-243,-141},{-201,-344,-259,-310,-346,-326},{-261,-231,-148,-319,-185,-176},{-254,-187,-194,-233,-192,-148},{-116,-139,-120,-275,-247,-236},{-335,-342,-155,-162,-280,-116},{-196,-199,-189,-122,-143,-266}},{{-268,-222,-245,-337,-219,-330},{-143,-286,-210,-296,-247,-266},{-236,-143,-166,-129,-196,-266},{-270,-337,-328,-125,-215,-224},{-150,-139,-215,-236,-310,-342},{-247,-282,-122,-231,-229,-219},{-284,-208,-122,-233,-206,-164},{-293,-226,-254,-157,-330,-310},{-185,-296,-206,-136,-157,-173},{-280,-259,-185,-152,-129,-196}},{{-314,-303,-233,-139,-256,-127},{-143,-178,-219,-231,-213,-148},{-335,-194,-206,-143,-178,-176},{-291,-224,-217,-233,-152,-245},{-187,-312,-263,-206,-266,-270},{-125,-229,-118,-268,-342,-335},{-296,-319,-300,-219,-300,-180},{-176,-171,-310,-226,-180,-316},{-337,-187,-298,-252,-337,-252},{-219,-312,-143,-152,-217,-122}},{{-333,-150,-280,-286,-229,-233},{-192,-263,-263,-333,-261,-224},{-164,-217,-277,-217,-249,-236},{-298,-206,-245,-270,-333,-245},{-335,-203,-201,-139,-277,-249},{-199,-280,-129,-333,-187,-231},{-143,-178,-238,-187,-282,-213},{-300,-118,-307,-270,-346,-180},{-194,-199,-337,-342,-164,-176},{-136,-330,-303,-314,-182,-226}}},{{{-318,-435,-212,-162,-335,-426},{-359,-191,-156,-441,-335,-256},{-203,-226,-276,-218,-235,-159},{-312,-341,-294,-176,-188,-379},{-300,-347,-262,-265,-341,-441},{-276,-344,-362,-241,-262,-368},{-341,-229,-288,-185,-332,-294},{-182,-285,-191,-315,-179,-250},{-326,-273,-197,-285,-241,-303},{-220,-420,-353,-238,-441,-356}},{{-197,-297,-229,-385,-415,-370},{-329,-388,-256,-185,-365,-423},{-303,-262,-270,-238,-382,-350},{-150,-406,-412,-397,-179,-338},{-229,-147,-215,-173,-332,-265},{-232,-347,-309,-318,-168,-329},{-417,-223,-300,-341,-215,-415},{-262,-244,-220,-426,-332,-238},{-412,-262,-297,-353,-426,-182},{-350,-332,-173,-297,-253,-226}},{{-173,-265,-235,-426,-320,-206},{-441,-335,-176,-220,-379,-376},{-397,-197,-388,-212,-344,-268},{-382,-335,-206,-159,-403,-312},{-197,-409,-409,-200,-294,-256},{-185,-368,-259,-415,-194,-194},{-379,-382,-241,-273,-150,-247},{-259,-320,-291,-247,-262,-379},{-165,-159,-320,-435,-191,-388},{-218,-309,-438,-385,-409,-194}},{{-397,-185,-362,-379,-182,-423},{-300,-171,-262,-194,-203,-376},{-341,-382,-285,-400,-379,-256},{-347,-153,-212,-391,-244,-300},{-350,-323,-420,-156,-153,-409},{-329,-326,-223,-244,-388,-417},{-297,-182,-250,-288,-341,-212},{-435,-312,-279,-435,-253,-379},{-344,-256,-156,-318,-197,-417},{-409,-309,-403,-288,-212,-153}},{{-270,-259,-435,-362,-309,-394},{-370,-253,-429,-203,-262,-276},{-223,-220,-294,-426,-420,-153},{-294,-179,-388,-253,-162,-241},{-370,-259,-291,-341,-200,-215},{-259,-259,-162,-150,-253,-176},{-353,-373,-223,-268,-323,-212},{-179,-406,-368,-409,-179,-441},{-397,-156,-194,-312,-247,-300},{-309,-356,-247,-229,-365,-238}},{{-197,-309,-259,-303,-338,-229},{-268,-197,-215,-223,-318,-173},{-362,-223,-238,-262,-238,-438},{-300,-315,-326,-409,-223,-197},{-182,-250,-244,-420,-297,-429},{-338,-182,-426,-159,-403,-232},{-385,-312,-306,-335,-391,-329},{-191,-168,-329,-420,-165,-191},{-417,-285,-156,-212,-318,-309},{-232,-291,-359,-320,-229,-356}},{{-165,-297,-215,-403,-218,-341},{-347,-168,-220,-282,-218,-379},{-438,-203,-265,-238,-435,-156},{-294,-288,-200,-347,-200,-265},{-285,-238,-220,-391,-226,-220},{-179,-218,-147,-159,-303,-403},{-294,-297,-171,-223,-247,-232},{-206,-370,-373,-265,-209,-247},{-438,-365,-212,-365,-150,-244},{-185,-226,-294,-218,-171,-147}},{{-288,-256,-229,-412,-168,-323},{-273,-323,-247,-232,-344,-438},{-341,-265,-218,-373,-432,-373},{-320,-247,-223,-368,-356,-179},{-235,-194,-215,-276,-297,-223},{-244,-235,-162,-223,-388,-238},{-259,-235,-262,-229,-215,-312},{-276,-320,-273,-356,-300,-147},{-306,-194,-191,-268,-209,-415},{-279,-185,-226,-259,-373,-291}},{{-368,-247,-200,-344,-429,-438},{-347,-238,-326,-262,-306,-435},{-206,-406,-423,-323,-212,-329},{-218,-265,-347,-409,-312,-256},{-253,-426,-409,-223,-353,-162},{-368,-338,-282,-188,-168,-315},{-288,-197,-265,-235,-344,-382},{-370,-412,-394,-291,-165,-203},{-244,-203,-238,-379,-282,-435},{-315,-341,-365,-400,-376,-306}}}}; // supply (positive for supply and negative for demand) under different scenarios 
int iniv[I]={1841,192,221,150,198,208,315,198,294}; // initial inventory 
int ubiv[I]={2104,384,442,300,396,416,630,396,588}; // the upper bounds of inventory 
int len[I1][I2]={{5,3,2,2,1,1,2,3}}; // the traveling time between two sites 
// cost parameters: 
double c1[I]={0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0}; // inventory holding cost 
double c2[I]={0.05,13.32,8.46,5.6,4.24,2.89,1.51,4.53,7.74}; // cost of leftover and unmet 
double c3[BN]={0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0}; // transportation cost for capacity contracts 
double c4[I1][I2]={{12.11,7.69,5.09,3.85,2.63,1.37,4.12,7.04}}; // cost of spot market 
// bid parameters: 
int RLBN[I1][I2]={{9,9,9,9,9,9,9,9}}; // number of bids on each arc 
int LBset[I1][I2][LBN]={{{0,1,2,3,4,5,6,7,8},{9,10,11,12,13,14,15,16,17},{18,19,20,21,22,23,24,25,26},{27,28,29,30,31,32,33,34,35},{36,37,38,39,40,41,42,43,44},{45,46,47,48,49,50,51,52,53},{54,55,56,57,58,59,60,61,62},{63,64,65,66,67,68,69,70,71}}}; // set of bids on each arc 
double frt[BN]={9.69,9.69,9.69,8.48,8.48,8.48,7.27,7.27,7.27,6.15,6.15,6.15,5.38,5.38,5.38,4.61,4.61,4.61,4.07,4.07,4.07,3.56,3.56,3.56,3.05,3.05,3.05,3.08,3.08,3.08,2.7,2.7,2.7,2.31,2.31,2.31,2.1,2.1,2.1,1.84,1.84,1.84,1.58,1.58,1.58,1.1,1.1,1.1,0.96,0.96,0.96,0.82,0.82,0.82,3.3,3.3,3.3,2.88,2.88,2.88,2.47,2.47,2.47,5.63,5.63,5.63,4.93,4.93,4.93,4.22,4.22,4.22}; // freight rate of each bid 
int lbcap[BN]={75,75,75,1,151,151,151,226,226,75,75,75,301,151,151,151,226,226,75,75,75,301,151,151,151,226,226,75,75,75,301,151,151,151,226,226,75,75,75,301,151,151,151,226,226,75,75,75,301,151,151,151,226,226,75,75,75,301,151,151,151,226,226,75,75,75,301,151,151,151,226,226}; // capacity lower bound of each bid 
int ubcap[BN]={150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300}; // capacity upper bound of each bid 
// shipment parameters: 
int SHN[BN]={24,12,9,24,12,8,24,12,8,25,13,9,25,13,9,25,13,9,26,13,9,25,13,9,26,13,9,26,13,9,26,13,9,26,13,9,27,13,9,27,13,9,27,13,9,26,14,9,26,13,9,26,13,9,26,13,9,25,13,9,25,13,9,25,13,9,26,13,9,25,13,9}; // number of shipment for each bid 
int SHset[BN][MBSN]={{0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23},{24,25,26,27,28,29,30,31,32,33,34,35},{36,37,38,39,40,41,42,43,44},{45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68},{69,70,71,72,73,74,75,76,77,78,79,80},{81,82,83,84,85,86,87,88},{89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112},{113,114,115,116,117,118,119,120,121,122,123,124},{125,126,127,128,129,130,131,132},{133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157},{158,159,160,161,162,163,164,165,166,167,168,169,170},{171,172,173,174,175,176,177,178,179},{180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204},{205,206,207,208,209,210,211,212,213,214,215,216,217},{218,219,220,221,222,223,224,225,226},{227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251},{252,253,254,255,256,257,258,259,260,261,262,263,264},{265,266,267,268,269,270,271,272,273},{274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299},{300,301,302,303,304,305,306,307,308,309,310,311,312},{313,314,315,316,317,318,319,320,321},{322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346},{347,348,349,350,351,352,353,354,355,356,357,358,359},{360,361,362,363,364,365,366,367,368},{369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,384,385,386,387,388,389,390,391,392,393,394},{395,396,397,398,399,400,401,402,403,404,405,406,407},{408,409,410,411,412,413,414,415,416},{417,418,419,420,421,422,423,424,425,426,427,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442},{443,444,445,446,447,448,449,450,451,452,453,454,455},{456,457,458,459,460,461,462,463,464},{465,466,467,468,469,470,471,472,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,489,490},{491,492,493,494,495,496,497,498,499,500,501,502,503},{504,505,506,507,508,509,510,511,512},{513,514,515,516,517,518,519,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,535,536,537,538},{539,540,541,542,543,544,545,546,547,548,549,550,551},{552,553,554,555,556,557,558,559,560},{561,562,563,564,565,566,567,568,569,570,571,572,573,574,575,576,577,578,579,580,581,582,583,584,585,586,587},{588,589,590,591,592,593,594,595,596,597,598,599,600},{601,602,603,604,605,606,607,608,609},{610,611,612,613,614,615,616,617,618,619,620,621,622,623,624,625,626,627,628,629,630,631,632,633,634,635,636},{637,638,639,640,641,642,643,644,645,646,647,648,649},{650,651,652,653,654,655,656,657,658},{659,660,661,662,663,664,665,666,667,668,669,670,671,672,673,674,675,676,677,678,679,680,681,682,683,684,685},{686,687,688,689,690,691,692,693,694,695,696,697,698},{699,700,701,702,703,704,705,706,707},{708,709,710,711,712,713,714,715,716,717,718,719,720,721,722,723,724,725,726,727,728,729,730,731,732,733},{734,735,736,737,738,739,740,741,742,743,744,745,746,747},{748,749,750,751,752,753,754,755,756},{757,758,759,760,761,762,763,764,765,766,767,768,769,770,771,772,773,774,775,776,777,778,779,780,781,782},{783,784,785,786,787,788,789,790,791,792,793,794,795},{796,797,798,799,800,801,802,803,804},{805,806,807,808,809,810,811,812,813,814,815,816,817,818,819,820,821,822,823,824,825,826,827,828,829,830},{831,832,833,834,835,836,837,838,839,840,841,842,843},{844,845,846,847,848,849,850,851,852},{853,854,855,856,857,858,859,860,861,862,863,864,865,866,867,868,869,870,871,872,873,874,875,876,877,878},{879,880,881,882,883,884,885,886,887,888,889,890,891},{892,893,894,895,896,897,898,899,900},{901,902,903,904,905,906,907,908,909,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925},{926,927,928,929,930,931,932,933,934,935,936,937,938},{939,940,941,942,943,944,945,946,947},{948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972},{973,974,975,976,977,978,979,980,981,982,983,984,985},{986,987,988,989,990,991,992,993,994},{995,996,997,998,999,1000,1001,1002,1003,1004,1005,1006,1007,1008,1009,1010,1011,1012,1013,1014,1015,1016,1017,1018,1019},{1020,1021,1022,1023,1024,1025,1026,1027,1028,1029,1030,1031,1032},{1033,1034,1035,1036,1037,1038,1039,1040,1041},{1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067},{1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080},{1081,1082,1083,1084,1085,1086,1087,1088,1089},{1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114},{1115,1116,1117,1118,1119,1120,1121,1122,1123,1124,1125,1126,1127},{1128,1129,1130,1131,1132,1133,1134,1135,1136}}; // set of shipments in each bid 
int SHsts[SPN]={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,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,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,2,6,10,14,18,22,26,30,34,38,42,46,1,7,13,19,25,31,37,43,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,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,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,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,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,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,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,1,5,9,13,17,21,25,29,33,37,41,45,49,2,8,14,20,26,32,38,44,50,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,1,5,9,13,17,21,25,29,33,37,41,45,49,1,7,13,19,25,31,37,43,49,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,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,1,5,9,13,17,21,25,29,33,37,41,45,49,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,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,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,1,5,9,13,17,21,25,29,33,37,41,45,49,0,6,12,18,24,30,36,42,48,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,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,0,4,8,12,16,20,24,28,32,36,40,44,48,0,6,12,18,24,30,36,42,48,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,2,6,10,14,18,22,26,30,34,38,42,46,50,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,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}; // set of start times of each shipment 
int SHets[SPN]={6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,7,11,15,19,23,27,31,35,39,43,47,51,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,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,7,11,15,19,23,27,31,35,39,43,47,51,6,12,18,24,30,36,42,48,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,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,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,4,8,12,16,20,24,28,32,36,40,44,48,52,5,11,17,23,29,35,41,47,53,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,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,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,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,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,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,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,53,3,7,11,15,19,23,27,31,35,39,43,47,51,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,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,1,7,13,19,25,31,37,43,49,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,2,6,10,14,18,22,26,30,34,38,42,46,50,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,4,10,16,22,28,34,40,46,52,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,3,7,11,15,19,23,27,31,35,39,43,47,51,4,10,16,22,28,34,40,46,52,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,5,9,13,17,21,25,29,33,37,41,45,49,53,4,10,16,22,28,34,40,46,52,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,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,4,10,16,22,28,34,40,46,52}; // set of end times of each shipment 
