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