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