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