int Dev = 10;// Deviation
extern const int CNN = 3;// 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 = 1143;//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]={{{{12315,0,0,0,0,0},{12419,0,0,0,0,0},{12325,0,0,0,0,0},{12422,0,0,0,0,0},{12445,0,0,0,0,0},{12420,0,0,0,0,0},{12426,0,0,0,0,0},{12272,0,0,0,0,0},{12269,0,0,0,0,0},{12171,0,0,0,0,0}},{{12276,0,0,0,0,0},{12370,0,0,0,0,0},{12470,0,0,0,0,0},{12471,0,0,0,0,0},{12348,0,0,0,0,0},{12400,0,0,0,0,0},{12592,0,0,0,0,0},{12500,0,0,0,0,0},{12495,0,0,0,0,0},{12352,0,0,0,0,0}},{{11545,0,0,0,0,0},{11671,0,0,0,0,0},{11478,0,0,0,0,0},{11563,0,0,0,0,0},{11621,0,0,0,0,0},{11678,0,0,0,0,0},{11412,0,0,0,0,0},{11581,0,0,0,0,0},{11580,0,0,0,0,0},{11593,0,0,0,0,0}},{{10206,0,0,0,0,0},{10391,0,0,0,0,0},{10442,0,0,0,0,0},{10349,0,0,0,0,0},{10371,0,0,0,0,0},{10365,0,0,0,0,0},{10445,0,0,0,0,0},{10411,0,0,0,0,0},{10423,0,0,0,0,0},{10221,0,0,0,0,0}},{{9482,0,0,0,0,0},{9367,0,0,0,0,0},{9496,0,0,0,0,0},{9507,0,0,0,0,0},{9423,0,0,0,0,0},{9457,0,0,0,0,0},{9401,0,0,0,0,0},{9509,0,0,0,0,0},{9523,0,0,0,0,0},{9575,0,0,0,0,0}},{{9254,0,0,0,0,0},{9306,0,0,0,0,0},{9353,0,0,0,0,0},{9163,0,0,0,0,0},{9066,0,0,0,0,0},{9224,0,0,0,0,0},{9108,0,0,0,0,0},{9237,0,0,0,0,0},{9247,0,0,0,0,0},{9089,0,0,0,0,0}},{{10032,0,0,0,0,0},{9827,0,0,0,0,0},{9785,0,0,0,0,0},{9858,0,0,0,0,0},{9966,0,0,0,0,0},{9830,0,0,0,0,0},{9930,0,0,0,0,0},{9918,0,0,0,0,0},{9847,0,0,0,0,0},{9792,0,0,0,0,0}},{{11079,0,0,0,0,0},{11033,0,0,0,0,0},{10928,0,0,0,0,0},{10864,0,0,0,0,0},{11080,0,0,0,0,0},{10893,0,0,0,0,0},{10868,0,0,0,0,0},{11123,0,0,0,0,0},{10882,0,0,0,0,0},{10975,0,0,0,0,0}},{{12152,0,0,0,0,0},{11914,0,0,0,0,0},{12109,0,0,0,0,0},{12076,0,0,0,0,0},{12046,0,0,0,0,0},{12093,0,0,0,0,0},{11891,0,0,0,0,0},{11945,0,0,0,0,0},{12185,0,0,0,0,0},{12204,0,0,0,0,0}}},{{{-294,-282,-282,-276,-276,-268},{-300,-303,-288,-315,-303,-273},{-303,-300,-276,-315,-268,-291},{-270,-300,-288,-318,-279,-265},{-297,-270,-294,-297,-320,-270},{-297,-294,-282,-306,-323,-294},{-297,-297,-288,-265,-288,-318},{-265,-276,-297,-300,-315,-309},{-294,-285,-312,-282,-294,-265},{-318,-273,-297,-276,-268,-300}},{{-276,-272,-277,-269,-270,-267},{-278,-315,-305,-282,-259,-262},{-307,-257,-291,-249,-240,-280},{-304,-306,-277,-252,-286,-264},{-284,-309,-294,-247,-264,-241},{-267,-306,-302,-274,-246,-243},{-302,-283,-286,-252,-267,-251},{-304,-263,-274,-282,-264,-277},{-273,-295,-305,-252,-272,-277},{-296,-292,-288,-274,-240,-277}},{{-275,-237,-214,-202,-208,-214},{-225,-252,-254,-217,-218,-222},{-230,-252,-228,-220,-225,-222},{-255,-254,-249,-226,-231,-216},{-270,-230,-240,-217,-218,-216},{-240,-252,-254,-222,-203,-210},{-248,-220,-233,-228,-227,-210},{-272,-220,-256,-217,-193,-222},{-265,-232,-256,-202,-205,-212},{-235,-247,-219,-246,-220,-210}},{{-177,-191,-172,-187,-158,-176},{-185,-189,-172,-186,-168,-144},{-179,-202,-186,-187,-175,-158},{-201,-202,-168,-177,-167,-165},{-217,-168,-197,-158,-177,-174},{-187,-193,-168,-182,-175,-166},{-199,-194,-170,-155,-158,-155},{-207,-183,-195,-169,-163,-163},{-195,-170,-170,-163,-172,-174},{-193,-200,-168,-186,-162,-171}},{{-154,-134,-159,-147,-137,-159},{-165,-140,-160,-160,-150,-144},{-145,-139,-156,-162,-157,-148},{-143,-161,-153,-157,-151,-147},{-139,-161,-146,-153,-141,-138},{-149,-148,-143,-153,-132,-138},{-169,-150,-141,-144,-144,-153},{-163,-155,-150,-132,-156,-162},{-160,-159,-156,-140,-138,-157},{-154,-137,-160,-146,-153,-143}},{{-143,-140,-156,-168,-164,-150},{-147,-162,-160,-163,-155,-165},{-147,-147,-157,-142,-151,-177},{-157,-141,-151,-154,-175,-160},{-146,-160,-140,-146,-155,-179},{-146,-154,-163,-152,-145,-154},{-132,-146,-151,-163,-163,-157},{-132,-150,-153,-140,-150,-169},{-150,-160,-159,-157,-169,-182},{-138,-135,-139,-139,-166,-152}},{{-190,-165,-196,-211,-199,-234},{-188,-168,-173,-213,-215,-230},{-172,-197,-205,-215,-209,-204},{-190,-176,-194,-217,-188,-197},{-157,-165,-173,-183,-224,-228},{-181,-192,-192,-183,-217,-226},{-179,-172,-196,-195,-219,-213},{-190,-177,-182,-217,-213,-224},{-183,-167,-198,-217,-213,-217},{-191,-172,-179,-181,-186,-208}},{{-216,-223,-266,-268,-248,-261},{-211,-249,-266,-268,-271,-285},{-207,-214,-244,-266,-277,-277},{-211,-237,-268,-243,-243,-293},{-250,-235,-266,-278,-277,-277},{-245,-221,-234,-245,-261,-247},{-227,-226,-237,-273,-245,-293},{-250,-251,-266,-248,-279,-291},{-216,-216,-256,-230,-258,-256},{-238,-230,-244,-273,-258,-242}},{{-304,-281,-316,-298,-279,-270},{-268,-301,-310,-286,-312,-312},{-293,-298,-267,-307,-294,-273},{-293,-273,-307,-266,-320,-268},{-287,-284,-310,-289,-294,-288},{-257,-284,-284,-283,-315,-265},{-293,-289,-267,-274,-265,-315},{-270,-301,-270,-286,-279,-270},{-282,-267,-310,-310,-320,-279},{-301,-309,-276,-295,-291,-320}}},{{{-153,-181,-182,-161,-188,-202},{-165,-183,-161,-163,-201,-187},{-158,-181,-163,-190,-190,-191},{-173,-177,-172,-179,-178,-176},{-168,-161,-178,-168,-197,-176},{-185,-179,-184,-179,-171,-201},{-171,-184,-191,-181,-197,-180},{-180,-172,-158,-172,-188,-174},{-180,-171,-168,-181,-188,-199},{-170,-159,-168,-188,-186,-183}},{{-216,-184,-192,-230,-224,-217},{-196,-209,-194,-210,-215,-250},{-186,-205,-219,-221,-234,-257},{-214,-193,-209,-234,-222,-257},{-210,-221,-198,-206,-227,-226},{-198,-213,-194,-206,-208,-259},{-204,-217,-234,-236,-252,-245},{-202,-215,-234,-210,-213,-257},{-198,-203,-202,-239,-229,-257},{-210,-217,-198,-212,-245,-245}},{{-225,-255,-278,-254,-285,-303},{-227,-280,-254,-259,-255,-300},{-252,-280,-278,-262,-271,-260},{-227,-252,-244,-254,-274,-269},{-262,-247,-286,-259,-249,-286},{-254,-280,-259,-265,-299,-297},{-249,-278,-252,-248,-277,-263},{-252,-270,-252,-292,-252,-303},{-272,-250,-272,-246,-255,-269},{-247,-268,-252,-270,-280,-283}},{{-283,-323,-283,-316,-280,-292},{-312,-265,-283,-295,-313,-286},{-295,-291,-274,-319,-283,-322},{-315,-320,-289,-301,-331,-292},{-292,-288,-277,-286,-280,-322},{-266,-318,-268,-328,-319,-304},{-303,-288,-319,-292,-328,-307},{-286,-315,-301,-319,-319,-304},{-272,-306,-298,-322,-319,-289},{-280,-279,-277,-277,-316,-301}},{{-313,-328,-286,-276,-265,-296},{-298,-298,-283,-285,-276,-281},{-301,-322,-283,-279,-294,-264},{-331,-301,-292,-312,-288,-270},{-331,-277,-307,-285,-315,-276},{-313,-289,-277,-327,-294,-261},{-286,-316,-292,-288,-279,-313},{-277,-292,-271,-330,-320,-296},{-331,-307,-277,-294,-288,-276},{-271,-328,-304,-327,-303,-319}},{{-279,-307,-274,-277,-253,-243},{-291,-290,-247,-275,-269,-270},{-308,-299,-298,-248,-241,-250},{-296,-273,-290,-269,-261,-268},{-274,-285,-244,-238,-230,-265},{-285,-301,-249,-269,-282,-223},{-279,-285,-271,-285,-264,-260},{-311,-290,-279,-243,-271,-231},{-308,-271,-268,-277,-236,-246},{-311,-262,-252,-259,-230,-238}},{{-259,-227,-210,-217,-228,-211},{-228,-230,-216,-209,-188,-183},{-254,-241,-207,-224,-228,-183},{-216,-230,-221,-206,-226,-217},{-257,-227,-243,-230,-228,-195},{-250,-213,-212,-204,-221,-203},{-264,-239,-216,-217,-190,-209},{-254,-255,-236,-206,-217,-211},{-228,-234,-210,-198,-193,-197},{-238,-218,-230,-232,-190,-209}},{{-209,-182,-186,-189,-181,-160},{-198,-175,-172,-189,-159,-158},{-207,-184,-186,-178,-162,-160},{-182,-188,-186,-166,-164,-156},{-205,-197,-176,-170,-178,-181},{-182,-171,-176,-193,-154,-163},{-175,-184,-163,-158,-176,-183},{-182,-203,-192,-180,-154,-171},{-177,-180,-181,-189,-186,-176},{-194,-173,-174,-163,-159,-161}},{{-175,-185,-181,-183,-170,-165},{-175,-155,-155,-158,-168,-160},{-168,-166,-176,-151,-161,-151},{-153,-166,-166,-161,-181,-171},{-153,-155,-181,-181,-158,-181},{-178,-175,-180,-173,-163,-158},{-165,-158,-151,-175,-170,-185},{-185,-178,-160,-181,-161,-155},{-183,-181,-160,-181,-176,-166},{-156,-166,-170,-170,-165,-181}}},{{{-362,-332,-362,-313,-336,-313},{-362,-322,-296,-345,-332,-296},{-332,-299,-303,-319,-359,-299},{-296,-352,-319,-316,-336,-309},{-355,-299,-342,-326,-332,-349},{-345,-342,-326,-299,-336,-332},{-303,-306,-332,-299,-326,-309},{-309,-296,-316,-362,-313,-362},{-309,-306,-332,-329,-339,-296},{-316,-303,-319,-322,-313,-322}},{{-295,-322,-322,-320,-302,-319},{-348,-303,-300,-330,-305,-331},{-295,-312,-287,-342,-317,-322},{-335,-325,-345,-333,-305,-283},{-318,-309,-338,-295,-333,-271},{-312,-299,-313,-320,-326,-286},{-302,-290,-341,-311,-333,-325},{-335,-338,-351,-317,-336,-274},{-354,-296,-322,-311,-286,-271},{-325,-319,-348,-320,-317,-283}},{{-283,-317,-288,-286,-257,-236},{-324,-262,-297,-272,-270,-272},{-292,-297,-272,-248,-273,-236},{-286,-279,-286,-283,-262,-236},{-301,-300,-302,-299,-276,-280},{-316,-311,-308,-275,-284,-278},{-319,-268,-252,-291,-284,-239},{-298,-314,-252,-264,-257,-272},{-324,-308,-272,-256,-270,-265},{-301,-317,-274,-291,-270,-272}},{{-238,-255,-213,-249,-226,-199},{-252,-250,-258,-229,-206,-230},{-262,-224,-251,-238,-235,-226},{-250,-231,-220,-243,-220,-228},{-258,-248,-213,-226,-208,-215},{-235,-224,-258,-236,-237,-237},{-265,-258,-230,-208,-228,-230},{-235,-265,-220,-217,-220,-226},{-260,-253,-261,-219,-211,-223},{-250,-255,-230,-217,-222,-201}},{{-215,-200,-204,-193,-229,-214},{-232,-202,-195,-206,-210,-202},{-228,-208,-200,-191,-210,-206},{-213,-206,-223,-208,-208,-220},{-237,-214,-206,-189,-220,-193},{-226,-212,-208,-195,-225,-216},{-206,-191,-193,-223,-202,-225},{-237,-229,-195,-223,-220,-208},{-234,-225,-212,-214,-218,-216},{-232,-225,-218,-193,-210,-214}},{{-195,-189,-207,-210,-220,-207},{-225,-193,-198,-210,-220,-236},{-214,-229,-224,-215,-224,-220},{-197,-208,-196,-208,-213,-223},{-195,-231,-203,-213,-207,-227},{-218,-191,-224,-224,-213,-232},{-223,-218,-190,-224,-227,-209},{-189,-202,-219,-237,-229,-220},{-202,-197,-232,-195,-209,-238},{-214,-216,-200,-202,-224,-230}},{{-226,-242,-224,-261,-268,-271},{-229,-249,-254,-259,-266,-277},{-238,-218,-227,-248,-255,-261},{-229,-216,-251,-231,-261,-274},{-254,-235,-229,-226,-232,-263},{-222,-254,-237,-269,-255,-279},{-229,-230,-259,-251,-245,-282},{-249,-242,-224,-254,-235,-282},{-210,-225,-239,-271,-232,-282},{-222,-220,-256,-241,-273,-274}},{{-277,-278,-298,-308,-287,-290},{-285,-267,-283,-296,-299,-277},{-277,-264,-266,-269,-287,-320},{-258,-261,-292,-308,-314,-320},{-247,-253,-301,-266,-332,-311},{-249,-281,-275,-305,-296,-336},{-263,-301,-301,-293,-314,-286},{-288,-270,-309,-272,-311,-277},{-282,-298,-263,-269,-308,-293},{-285,-278,-272,-299,-299,-293}},{{-331,-307,-290,-339,-345,-329},{-296,-336,-316,-339,-299,-316},{-337,-301,-338,-345,-322,-339},{-302,-288,-328,-345,-303,-352},{-315,-291,-309,-359,-309,-329},{-309,-298,-296,-316,-352,-336},{-328,-314,-325,-339,-345,-316},{-318,-301,-319,-322,-303,-355},{-290,-320,-303,-362,-345,-332},{-334,-294,-348,-342,-322,-322}}},{{{-101,-102,-122,-108,-121,-129},{-104,-113,-115,-123,-128,-133},{-102,-96,-121,-105,-123,-129},{-107,-100,-108,-116,-132,-133},{-113,-108,-112,-121,-120,-125},{-108,-116,-108,-124,-120,-128},{-101,-102,-110,-121,-133,-120},{-104,-107,-112,-126,-113,-120},{-114,-101,-102,-123,-116,-138},{-102,-105,-101,-118,-127,-116}},{{-128,-134,-139,-166,-161,-163},{-143,-149,-141,-146,-155,-151},{-148,-128,-155,-143,-158,-170},{-138,-135,-160,-163,-166,-160},{-131,-154,-158,-149,-167,-171},{-126,-155,-160,-144,-164,-168},{-136,-144,-136,-163,-175,-173},{-142,-145,-149,-152,-161,-165},{-139,-154,-160,-163,-159,-158},{-148,-142,-133,-141,-156,-173}},{{-170,-171,-201,-203,-194,-214},{-189,-167,-188,-194,-194,-192},{-187,-176,-184,-196,-176,-182},{-163,-164,-179,-192,-176,-216},{-168,-198,-190,-173,-198,-184},{-186,-198,-184,-209,-212,-206},{-158,-194,-186,-186,-186,-186},{-186,-196,-201,-184,-178,-196},{-189,-171,-182,-173,-188,-206},{-175,-176,-184,-192,-176,-180}},{{-193,-223,-201,-211,-223,-193},{-209,-193,-189,-189,-219,-217},{-197,-209,-221,-223,-203,-213},{-199,-189,-191,-215,-183,-207},{-221,-205,-197,-187,-189,-211},{-213,-203,-203,-187,-187,-191},{-209,-219,-221,-217,-189,-217},{-217,-213,-221,-219,-219,-199},{-197,-221,-217,-203,-187,-209},{-189,-213,-219,-223,-201,-189}},{{-191,-205,-199,-193,-193,-166},{-185,-209,-197,-176,-200,-182},{-221,-211,-199,-203,-174,-175},{-193,-193,-209,-211,-195,-167},{-209,-197,-201,-183,-170,-202},{-197,-217,-207,-185,-183,-180},{-219,-183,-193,-179,-183,-182},{-203,-203,-189,-187,-200,-190},{-207,-183,-201,-209,-191,-202},{-185,-193,-213,-199,-187,-191}},{{-190,-176,-169,-170,-155,-148},{-165,-187,-179,-170,-161,-160},{-161,-170,-174,-165,-155,-157},{-166,-175,-152,-149,-161,-151},{-188,-171,-175,-166,-147,-144},{-190,-168,-174,-158,-162,-132},{-166,-168,-155,-150,-151,-153},{-195,-164,-164,-166,-156,-148},{-161,-156,-170,-157,-165,-141},{-184,-183,-172,-147,-159,-160}},{{-139,-144,-133,-119,-122,-116},{-146,-134,-122,-113,-116,-111},{-141,-140,-127,-129,-121,-101},{-154,-144,-123,-133,-128,-119},{-136,-146,-114,-129,-125,-112},{-127,-134,-122,-116,-114,-119},{-133,-132,-136,-121,-126,-109},{-139,-140,-128,-131,-108,-103},{-133,-140,-131,-132,-123,-101},{-130,-125,-133,-131,-115,-104}},{{-102,-95,-103,-90,-100,-105},{-97,-107,-96,-96,-89,-107},{-105,-110,-105,-104,-102,-108},{-111,-112,-107,-100,-90,-105},{-111,-111,-96,-108,-106,-95},{-99,-93,-98,-102,-92,-94},{-110,-102,-94,-89,-89,-92},{-116,-110,-92,-102,-99,-93},{-108,-104,-102,-96,-89,-91},{-102,-103,-99,-88,-89,-103}},{{-88,-105,-92,-106,-92,-102},{-94,-96,-88,-96,-89,-89},{-104,-103,-92,-89,-92,-99},{-105,-105,-108,-94,-94,-88},{-94,-96,-102,-88,-107,-97},{-105,-96,-101,-93,-102,-106},{-88,-88,-105,-94,-88,-99},{-104,-88,-96,-98,-107,-91},{-88,-95,-101,-89,-96,-97},{-103,-93,-104,-91,-102,-106}}},{{{-210,-262,-245,-221,-226,-257},{-217,-221,-226,-248,-245,-226},{-226,-231,-219,-224,-226,-231},{-224,-252,-238,-255,-262,-250},{-249,-250,-255,-226,-252,-250},{-249,-224,-255,-231,-240,-214},{-217,-219,-240,-240,-238,-250},{-252,-240,-224,-226,-252,-233},{-226,-245,-259,-248,-226,-233},{-240,-240,-250,-221,-250,-224}},{{-248,-252,-242,-229,-242,-206},{-224,-221,-212,-208,-246,-239},{-214,-252,-249,-247,-242,-203},{-257,-257,-214,-210,-226,-206},{-250,-243,-235,-208,-246,-203},{-221,-245,-258,-238,-219,-232},{-255,-250,-233,-245,-246,-243},{-214,-226,-221,-236,-224,-206},{-240,-245,-249,-252,-212,-208},{-221,-214,-221,-240,-221,-201}},{{-194,-209,-184,-211,-170,-182},{-237,-226,-220,-181,-181,-185},{-217,-190,-212,-215,-194,-180},{-211,-209,-210,-211,-181,-184},{-211,-230,-188,-193,-180,-162},{-194,-228,-198,-207,-172,-171},{-237,-217,-184,-179,-180,-171},{-202,-192,-190,-199,-191,-180},{-198,-196,-192,-199,-183,-198},{-200,-222,-186,-181,-202,-175}},{{-181,-182,-143,-162,-137,-139},{-170,-160,-160,-135,-147,-148},{-167,-182,-154,-136,-158,-131},{-170,-160,-148,-154,-148,-134},{-186,-178,-149,-135,-143,-138},{-174,-158,-143,-165,-132,-132},{-181,-165,-159,-165,-132,-127},{-155,-167,-151,-152,-138,-131},{-160,-178,-163,-153,-141,-124},{-170,-155,-149,-136,-148,-138}},{{-129,-127,-120,-113,-124,-125},{-125,-115,-120,-117,-113,-126},{-137,-135,-123,-117,-114,-125},{-141,-113,-124,-123,-127,-111},{-120,-132,-135,-113,-121,-125},{-141,-135,-117,-120,-131,-114},{-144,-117,-128,-112,-126,-123},{-126,-120,-124,-127,-112,-108},{-136,-134,-128,-118,-126,-115},{-145,-121,-118,-125,-111,-108}},{{-114,-120,-127,-112,-116,-136},{-127,-109,-112,-113,-110,-123},{-119,-131,-127,-112,-126,-121},{-127,-117,-120,-126,-111,-123},{-107,-123,-117,-115,-112,-115},{-111,-109,-108,-131,-110,-125},{-113,-123,-113,-107,-111,-118},{-113,-129,-130,-109,-113,-113},{-114,-114,-107,-129,-124,-126},{-115,-112,-115,-113,-132,-132}},{{-144,-140,-127,-158,-152,-172},{-119,-144,-147,-160,-155,-157},{-131,-128,-152,-133,-149,-149},{-130,-125,-137,-133,-169,-168},{-132,-143,-155,-160,-164,-147},{-141,-141,-131,-145,-149,-177},{-140,-128,-142,-142,-164,-170},{-135,-139,-133,-155,-170,-154},{-130,-131,-140,-154,-164,-170},{-122,-135,-140,-138,-143,-147}},{{-167,-195,-198,-211,-203,-222},{-180,-170,-170,-177,-191,-187},{-172,-168,-202,-180,-217,-190},{-160,-182,-196,-200,-191,-216},{-185,-166,-202,-177,-211,-204},{-185,-189,-200,-192,-189,-227},{-178,-175,-200,-184,-195,-196},{-187,-177,-170,-194,-217,-216},{-168,-179,-174,-207,-213,-216},{-158,-165,-191,-179,-219,-198}},{{-215,-199,-215,-215,-238,-233},{-198,-197,-204,-245,-224,-252},{-207,-234,-231,-238,-208,-224},{-224,-223,-237,-224,-217,-240},{-204,-230,-240,-240,-219,-229},{-224,-232,-237,-233,-254,-229},{-219,-201,-213,-226,-224,-219},{-226,-197,-233,-229,-238,-219},{-215,-215,-206,-254,-245,-243},{-230,-201,-217,-254,-236,-231}}},{{{-271,-250,-242,-261,-247,-263},{-261,-250,-279,-269,-293,-255},{-261,-293,-279,-269,-293,-269},{-239,-277,-290,-293,-271,-277},{-250,-269,-279,-242,-266,-282},{-282,-277,-290,-263,-250,-239},{-258,-282,-261,-277,-293,-253},{-269,-282,-242,-253,-271,-239},{-247,-269,-242,-266,-253,-258},{-242,-250,-258,-269,-279,-271}},{{-266,-255,-253,-274,-244,-233},{-269,-271,-261,-277,-238,-267},{-285,-266,-263,-271,-252,-267},{-279,-263,-285,-269,-257,-259},{-287,-269,-274,-250,-238,-254},{-290,-279,-245,-242,-254,-236},{-239,-282,-285,-263,-275,-238},{-263,-274,-274,-258,-262,-246},{-274,-247,-250,-239,-280,-285},{-266,-282,-269,-250,-241,-243}},{{-254,-271,-249,-263,-262,-260},{-233,-228,-270,-241,-270,-243},{-285,-243,-252,-248,-220,-260},{-267,-278,-272,-265,-252,-234},{-277,-235,-257,-268,-247,-222},{-233,-235,-234,-236,-223,-219},{-249,-261,-252,-253,-267,-231},{-282,-233,-244,-263,-247,-239},{-272,-261,-262,-236,-240,-265},{-254,-243,-252,-231,-260,-236}},{{-238,-230,-219,-212,-228,-213},{-238,-223,-240,-225,-202,-244},{-231,-247,-224,-209,-246,-204},{-219,-214,-210,-244,-228,-242},{-255,-214,-233,-244,-217,-222},{-259,-223,-226,-216,-235,-240},{-219,-258,-222,-235,-244,-220},{-231,-230,-238,-223,-206,-244},{-243,-230,-249,-228,-222,-246},{-217,-235,-240,-232,-237,-233}},{{-209,-210,-237,-234,-200,-226},{-200,-217,-226,-217,-237,-202},{-198,-210,-237,-234,-217,-237},{-229,-219,-221,-237,-234,-208},{-233,-208,-234,-202,-215,-224},{-200,-232,-221,-202,-213,-215},{-242,-232,-195,-213,-224,-215},{-207,-217,-221,-195,-200,-200},{-205,-230,-234,-230,-230,-213},{-218,-197,-215,-219,-206,-230}},{{-237,-213,-206,-204,-213,-228},{-208,-210,-228,-197,-224,-232},{-217,-215,-219,-232,-204,-204},{-215,-208,-200,-197,-200,-221},{-197,-200,-221,-224,-215,-217},{-210,-215,-206,-197,-237,-200},{-197,-213,-200,-208,-200,-230},{-197,-215,-224,-206,-208,-221},{-224,-210,-210,-197,-226,-224},{-202,-206,-200,-200,-226,-200}},{{-243,-224,-226,-207,-233,-254},{-230,-220,-206,-209,-243,-242},{-214,-208,-217,-212,-213,-228},{-201,-217,-226,-212,-213,-214},{-239,-215,-220,-235,-238,-233},{-203,-246,-237,-239,-213,-214},{-210,-235,-217,-237,-224,-254},{-230,-246,-240,-232,-252,-221},{-230,-244,-246,-235,-231,-249},{-243,-240,-224,-228,-231,-223}},{{-226,-230,-252,-248,-237,-245},{-259,-259,-260,-268,-277,-243},{-262,-235,-220,-253,-249,-240},{-236,-223,-230,-226,-272,-248},{-248,-230,-250,-270,-265,-238},{-238,-252,-235,-258,-229,-261},{-228,-232,-267,-238,-229,-235},{-233,-247,-255,-265,-249,-276},{-226,-220,-233,-250,-252,-233},{-245,-252,-235,-270,-272,-276}},{{-277,-259,-259,-277,-253,-255},{-238,-233,-238,-290,-271,-255},{-272,-269,-244,-285,-274,-250},{-269,-280,-244,-253,-277,-271},{-256,-282,-278,-247,-250,-258},{-249,-259,-259,-282,-279,-258},{-269,-241,-262,-271,-255,-263},{-269,-275,-267,-271,-290,-287},{-254,-267,-267,-287,-285,-277},{-267,-259,-244,-255,-258,-261}}},{{{-328,-286,-310,-292,-271,-305},{-277,-277,-283,-295,-301,-308},{-313,-295,-316,-331,-301,-284},{-280,-310,-322,-307,-310,-302},{-274,-316,-310,-298,-283,-302},{-313,-292,-271,-289,-325,-296},{-331,-328,-307,-295,-292,-290},{-316,-271,-328,-319,-316,-287},{-292,-313,-292,-301,-322,-287},{-271,-289,-298,-328,-277,-275}},{{-270,-298,-291,-281,-265,-234},{-308,-284,-277,-298,-249,-239},{-308,-304,-272,-289,-286,-262},{-281,-316,-302,-257,-270,-242},{-305,-298,-258,-270,-281,-283},{-314,-307,-255,-262,-268,-270},{-311,-273,-300,-298,-244,-234},{-308,-313,-283,-295,-276,-249},{-290,-293,-294,-287,-281,-254},{-272,-301,-263,-298,-292,-234}},{{-233,-245,-236,-199,-206,-190},{-255,-242,-218,-228,-208,-202},{-226,-228,-252,-225,-233,-208},{-226,-259,-218,-210,-204,-212},{-248,-230,-215,-236,-195,-196},{-233,-221,-208,-236,-225,-192},{-260,-221,-215,-210,-193,-190},{-248,-257,-247,-210,-220,-212},{-228,-233,-215,-228,-223,-196},{-238,-228,-215,-221,-191,-214}},{{-175,-171,-164,-165,-158,-174},{-206,-201,-183,-160,-159,-175},{-210,-190,-174,-189,-158,-175},{-182,-192,-187,-155,-183,-150},{-182,-199,-187,-157,-183,-161},{-198,-167,-166,-181,-166,-175},{-175,-203,-180,-169,-153,-153},{-196,-201,-185,-158,-179,-163},{-211,-167,-187,-182,-156,-172},{-202,-193,-166,-155,-158,-175}},{{-170,-149,-139,-145,-159,-142},{-156,-162,-163,-139,-142,-160},{-151,-165,-157,-142,-162,-166},{-151,-145,-142,-149,-148,-166},{-142,-152,-163,-143,-139,-139},{-172,-166,-154,-140,-149,-160},{-153,-146,-146,-149,-154,-156},{-148,-156,-143,-169,-165,-143},{-165,-142,-139,-146,-166,-140},{-159,-165,-166,-142,-142,-168}},{{-146,-154,-147,-183,-175,-192},{-168,-173,-154,-166,-177,-177},{-156,-169,-173,-156,-175,-172},{-146,-153,-154,-175,-184,-186},{-156,-157,-170,-176,-184,-172},{-148,-173,-157,-153,-182,-167},{-140,-143,-168,-161,-166,-190},{-146,-146,-154,-180,-170,-195},{-163,-159,-162,-168,-186,-165},{-159,-172,-157,-163,-173,-186}},{{-180,-204,-214,-234,-234,-215},{-175,-198,-202,-211,-241,-241},{-188,-216,-202,-206,-214,-257},{-205,-212,-218,-202,-234,-239},{-184,-202,-222,-206,-216,-257},{-203,-202,-185,-217,-220,-255},{-192,-186,-208,-200,-241,-229},{-173,-194,-227,-215,-209,-220},{-173,-218,-187,-209,-225,-239},{-190,-188,-214,-228,-232,-253}},{{-224,-249,-274,-261,-276,-300},{-233,-257,-282,-277,-279,-263},{-260,-239,-287,-291,-259,-280},{-241,-252,-235,-247,-248,-283},{-228,-252,-253,-250,-298,-300},{-241,-255,-240,-272,-298,-260},{-219,-247,-282,-291,-287,-286},{-231,-242,-243,-264,-293,-286},{-253,-260,-279,-256,-248,-294},{-248,-232,-253,-282,-284,-297}},{{-269,-309,-317,-298,-313,-310},{-289,-268,-326,-292,-328,-298},{-295,-273,-329,-283,-325,-292},{-263,-300,-296,-328,-322,-286},{-280,-291,-284,-307,-307,-304},{-312,-273,-323,-292,-277,-307},{-272,-303,-326,-292,-271,-286},{-289,-285,-311,-277,-277,-283},{-303,-273,-278,-277,-313,-298},{-318,-318,-299,-292,-304,-286}}},{{{-360,-340,-378,-326,-336,-382},{-385,-374,-350,-364,-382,-322},{-357,-318,-329,-329,-364,-354},{-322,-371,-374,-318,-350,-329},{-340,-315,-354,-374,-385,-326},{-326,-364,-329,-368,-336,-318},{-360,-326,-368,-382,-371,-329},{-343,-336,-326,-364,-322,-315},{-326,-326,-374,-322,-382,-336},{-315,-326,-346,-385,-343,-374}},{{-383,-309,-342,-367,-305,-322},{-351,-377,-332,-334,-305,-306},{-345,-326,-366,-361,-308,-309},{-355,-319,-315,-307,-318,-341},{-324,-316,-373,-311,-361,-290},{-383,-353,-346,-344,-325,-325},{-345,-346,-342,-304,-351,-332},{-317,-370,-315,-361,-321,-328},{-317,-377,-373,-324,-321,-328},{-341,-336,-363,-357,-318,-309}},{{-296,-299,-330,-302,-274,-256},{-302,-326,-330,-314,-288,-259},{-290,-277,-282,-290,-291,-261},{-340,-286,-282,-290,-294,-295},{-296,-283,-300,-314,-294,-295},{-337,-320,-330,-287,-262,-275},{-302,-326,-297,-281,-268,-286},{-315,-311,-279,-275,-285,-261},{-321,-305,-315,-302,-294,-278},{-346,-336,-324,-278,-311,-264}},{{-251,-258,-254,-233,-225,-232},{-267,-287,-275,-269,-220,-258},{-248,-260,-239,-243,-243,-251},{-265,-271,-252,-251,-233,-253},{-256,-274,-260,-271,-257,-256},{-284,-281,-231,-241,-255,-232},{-259,-276,-260,-226,-252,-253},{-273,-250,-257,-231,-223,-234},{-251,-260,-267,-231,-257,-234},{-248,-268,-242,-233,-235,-237}},{{-251,-249,-233,-252,-243,-240},{-239,-213,-240,-247,-231,-224},{-232,-224,-249,-226,-226,-236},{-216,-233,-229,-215,-236,-238},{-225,-215,-224,-249,-233,-247},{-249,-245,-254,-210,-213,-229},{-223,-222,-245,-215,-243,-224},{-261,-236,-238,-233,-243,-229},{-218,-215,-224,-233,-219,-222},{-239,-254,-213,-238,-233,-238}},{{-243,-245,-254,-248,-225,-226},{-226,-236,-228,-224,-230,-256},{-249,-240,-219,-243,-240,-261},{-224,-233,-245,-214,-249,-241},{-210,-215,-242,-214,-242,-236},{-252,-213,-256,-255,-261,-239},{-247,-238,-240,-214,-244,-234},{-217,-254,-256,-240,-232,-261},{-229,-231,-235,-255,-227,-256},{-231,-222,-233,-240,-257,-231}},{{-275,-267,-245,-295,-301,-276},{-232,-243,-277,-295,-278,-285},{-237,-251,-245,-295,-295,-300},{-237,-269,-250,-300,-306,-300},{-275,-285,-263,-292,-287,-285},{-229,-256,-266,-262,-289,-268},{-229,-275,-258,-273,-306,-308},{-227,-256,-266,-246,-264,-297},{-260,-241,-247,-289,-273,-288},{-232,-256,-293,-268,-281,-285}},{{-314,-315,-313,-298,-343,-356},{-305,-333,-288,-314,-318,-343},{-290,-285,-322,-288,-314,-346},{-299,-300,-326,-304,-334,-300},{-299,-297,-282,-327,-298,-323},{-278,-291,-313,-304,-337,-337},{-311,-288,-310,-311,-308,-297},{-269,-321,-279,-339,-318,-346},{-305,-273,-316,-336,-340,-327},{-284,-318,-329,-314,-292,-363}},{{-356,-351,-323,-378,-350,-350},{-319,-331,-351,-346,-378,-329},{-309,-341,-368,-378,-371,-343},{-349,-307,-347,-382,-350,-350},{-312,-341,-334,-385,-368,-343},{-343,-334,-354,-354,-326,-378},{-326,-344,-347,-315,-346,-364},{-346,-351,-351,-318,-340,-318},{-353,-317,-368,-329,-343,-385},{-326,-375,-344,-350,-336,-382}}}}; // 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,8,24,13,8,25,12,8,25,13,9,26,13,9,25,13,9,25,13,9,26,13,9,26,13,9,26,13,9,26,13,9,26,13,9,27,13,9,27,13,9,27,13,9,26,13,9,27,13,9,26,14,9,25,13,9,26,13,9,26,13,9,26,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,1142}}; // 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,1,5,9,13,17,21,25,29,33,37,41,45,1,7,13,19,25,31,37,43,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,0,4,8,12,16,20,24,28,32,36,40,44,48,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,1,5,9,13,17,21,25,29,33,37,41,45,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,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,2,6,10,14,18,22,26,30,34,38,42,46,50,1,7,13,19,25,31,37,43,49,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,2,6,10,14,18,22,26,30,34,38,42,46,50,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,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,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,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,1,5,9,13,17,21,25,29,33,37,41,45,49,1,7,13,19,25,31,37,43,49,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,0,4,8,12,16,20,24,28,32,36,40,44,48,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,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,52,1,5,9,13,17,21,25,29,33,37,41,45,49,2,8,14,20,26,32,38,44,50,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,1,5,9,13,17,21,25,29,33,37,41,45,49,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,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,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,0,4,8,12,16,20,24,28,32,36,40,44,48,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,2,6,10,14,18,22,26,30,34,38,42,46,50,0,6,12,18,24,30,36,42,48,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,1,5,9,13,17,21,25,29,33,37,41,45,49,1,7,13,19,25,31,37,43,49,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,2,6,10,14,18,22,26,30,34,38,42,46,50,0,6,12,18,24,30,36,42,48,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,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,6,10,14,18,22,26,30,34,38,42,46,50,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,5,9,13,17,21,25,29,33,37,41,45,49,53,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,6,10,14,18,22,26,30,34,38,42,46,50,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,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,5,9,13,17,21,25,29,33,37,41,45,49,53,4,10,16,22,28,34,40,46,52,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,5,9,13,17,21,25,29,33,37,41,45,49,53,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,4,8,12,16,20,24,28,32,36,40,44,48,52,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,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,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,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,3,7,11,15,19,23,27,31,35,39,43,47,51,3,9,15,21,27,33,39,45,51,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,2,6,10,14,18,22,26,30,34,38,42,46,50,2,8,14,20,26,32,38,44,50,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,2,6,10,14,18,22,26,30,34,38,42,46,50,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,2,6,10,14,18,22,26,30,34,38,42,46,50,3,9,15,21,27,33,39,45,51,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,2,6,10,14,18,22,26,30,34,38,42,46,50,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,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,1,5,9,13,17,21,25,29,33,37,41,45,49,53,1,7,13,19,25,31,37,43,49,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,2,6,10,14,18,22,26,30,34,38,42,46,50,3,9,15,21,27,33,39,45,51,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,4,8,12,16,20,24,28,32,36,40,44,48,52,2,8,14,20,26,32,38,44,50,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,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,5,9,13,17,21,25,29,33,37,41,45,49,53,3,9,15,21,27,33,39,45,51,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,5,9,13,17,21,25,29,33,37,41,45,49,53,5,11,17,23,29,35,41,47,53,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,5,11,17,23,29,35,41,47,53}; // set of end times of each shipment 
