int Dev = 20;// Deviation
extern const int CNN = 1;// 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 = 1130;//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]={{{{11653,0,0,0,0,0},{11326,0,0,0,0,0},{11249,0,0,0,0,0},{11887,0,0,0,0,0},{11700,0,0,0,0,0},{11549,0,0,0,0,0},{11713,0,0,0,0,0},{11606,0,0,0,0,0},{11695,0,0,0,0,0},{11497,0,0,0,0,0}},{{11333,0,0,0,0,0},{11678,0,0,0,0,0},{11600,0,0,0,0,0},{11318,0,0,0,0,0},{11608,0,0,0,0,0},{11627,0,0,0,0,0},{11539,0,0,0,0,0},{11449,0,0,0,0,0},{11576,0,0,0,0,0},{11387,0,0,0,0,0}},{{11430,0,0,0,0,0},{11453,0,0,0,0,0},{11786,0,0,0,0,0},{11536,0,0,0,0,0},{11532,0,0,0,0,0},{11838,0,0,0,0,0},{11629,0,0,0,0,0},{11394,0,0,0,0,0},{11443,0,0,0,0,0},{11420,0,0,0,0,0}},{{11603,0,0,0,0,0},{11570,0,0,0,0,0},{11901,0,0,0,0,0},{11479,0,0,0,0,0},{11576,0,0,0,0,0},{11696,0,0,0,0,0},{11452,0,0,0,0,0},{11784,0,0,0,0,0},{11689,0,0,0,0,0},{11618,0,0,0,0,0}},{{11408,0,0,0,0,0},{11664,0,0,0,0,0},{11699,0,0,0,0,0},{11362,0,0,0,0,0},{11535,0,0,0,0,0},{11550,0,0,0,0,0},{11617,0,0,0,0,0},{11082,0,0,0,0,0},{11453,0,0,0,0,0},{11529,0,0,0,0,0}},{{11485,0,0,0,0,0},{11296,0,0,0,0,0},{11154,0,0,0,0,0},{11264,0,0,0,0,0},{11747,0,0,0,0,0},{11427,0,0,0,0,0},{11406,0,0,0,0,0},{11355,0,0,0,0,0},{11574,0,0,0,0,0},{11892,0,0,0,0,0}},{{11526,0,0,0,0,0},{11471,0,0,0,0,0},{11544,0,0,0,0,0},{11517,0,0,0,0,0},{11472,0,0,0,0,0},{11725,0,0,0,0,0},{11558,0,0,0,0,0},{11265,0,0,0,0,0},{11324,0,0,0,0,0},{11427,0,0,0,0,0}},{{11430,0,0,0,0,0},{11480,0,0,0,0,0},{11435,0,0,0,0,0},{11690,0,0,0,0,0},{11420,0,0,0,0,0},{11541,0,0,0,0,0},{11647,0,0,0,0,0},{11660,0,0,0,0,0},{11450,0,0,0,0,0},{11492,0,0,0,0,0}},{{11955,0,0,0,0,0},{11368,0,0,0,0,0},{11191,0,0,0,0,0},{11108,0,0,0,0,0},{11723,0,0,0,0,0},{11431,0,0,0,0,0},{11707,0,0,0,0,0},{11497,0,0,0,0,0},{11259,0,0,0,0,0},{11643,0,0,0,0,0}}},{{{-238,-238,-185,-213,-207,-231},{-211,-201,-201,-227,-183,-183},{-240,-183,-207,-217,-207,-187},{-171,-242,-219,-203,-213,-219},{-205,-223,-195,-179,-183,-213},{-195,-173,-229,-219,-199,-177},{-217,-244,-235,-213,-235,-219},{-227,-189,-209,-231,-213,-207},{-181,-199,-238,-173,-217,-183},{-179,-244,-181,-193,-197,-213}},{{-209,-189,-238,-166,-189,-185},{-173,-171,-171,-173,-183,-177},{-209,-231,-225,-181,-225,-219},{-187,-189,-233,-244,-211,-223},{-231,-242,-173,-181,-177,-207},{-240,-162,-195,-181,-187,-197},{-215,-219,-193,-225,-201,-197},{-223,-193,-183,-229,-225,-168},{-193,-185,-233,-235,-219,-221},{-231,-175,-217,-231,-173,-219}},{{-213,-181,-201,-221,-175,-205},{-225,-209,-162,-203,-197,-164},{-201,-213,-242,-240,-175,-201},{-229,-229,-177,-242,-171,-227},{-211,-168,-211,-195,-244,-235},{-233,-201,-235,-235,-203,-217},{-238,-168,-185,-219,-223,-177},{-195,-193,-244,-181,-195,-191},{-171,-185,-164,-179,-215,-240},{-173,-189,-233,-197,-177,-185}},{{-231,-183,-191,-213,-183,-238},{-242,-215,-231,-183,-191,-219},{-223,-242,-225,-213,-197,-215},{-203,-166,-235,-168,-207,-227},{-179,-235,-191,-211,-197,-168},{-240,-181,-211,-209,-238,-177},{-240,-217,-168,-229,-177,-242},{-219,-231,-235,-238,-207,-191},{-193,-235,-238,-197,-225,-162},{-179,-162,-203,-225,-221,-227}},{{-201,-213,-205,-193,-193,-193},{-195,-244,-238,-227,-189,-183},{-205,-199,-183,-229,-177,-229},{-244,-235,-197,-225,-221,-229},{-203,-197,-181,-238,-191,-217},{-233,-219,-229,-203,-195,-211},{-191,-205,-197,-229,-225,-193},{-189,-213,-207,-211,-211,-238},{-209,-164,-211,-183,-240,-205},{-235,-244,-213,-201,-201,-197}},{{-211,-201,-238,-223,-177,-201},{-171,-164,-238,-197,-195,-221},{-162,-164,-175,-221,-181,-171},{-171,-225,-175,-189,-225,-219},{-203,-233,-173,-223,-229,-213},{-168,-179,-189,-175,-175,-181},{-235,-219,-244,-207,-221,-189},{-203,-238,-179,-171,-171,-219},{-201,-242,-162,-171,-229,-225},{-231,-201,-235,-195,-240,-201}},{{-231,-166,-227,-205,-242,-185},{-195,-191,-233,-227,-229,-171},{-171,-221,-217,-183,-242,-181},{-187,-242,-207,-179,-171,-189},{-195,-219,-168,-229,-205,-207},{-240,-227,-242,-205,-179,-181},{-183,-193,-217,-233,-177,-227},{-171,-193,-217,-207,-203,-181},{-207,-219,-173,-175,-179,-207},{-197,-205,-195,-209,-207,-195}},{{-235,-231,-181,-207,-229,-177},{-193,-244,-238,-181,-242,-229},{-171,-179,-219,-173,-205,-207},{-179,-235,-164,-183,-219,-215},{-185,-168,-193,-181,-229,-238},{-223,-171,-223,-185,-183,-166},{-213,-179,-195,-189,-162,-233},{-238,-215,-168,-238,-244,-162},{-187,-229,-223,-217,-217,-233},{-201,-219,-233,-189,-244,-229}},{{-183,-221,-242,-221,-164,-166},{-223,-240,-240,-171,-229,-215},{-231,-199,-189,-242,-191,-183},{-225,-211,-207,-203,-162,-197},{-189,-181,-235,-203,-187,-175},{-191,-221,-223,-215,-211,-197},{-207,-235,-227,-171,-242,-211},{-213,-227,-242,-215,-238,-187},{-199,-189,-240,-164,-209,-197},{-242,-209,-164,-187,-197,-219}}},{{{-130,-182,-164,-159,-156,-187},{-158,-172,-143,-150,-175,-167},{-167,-129,-185,-137,-129,-138},{-143,-182,-147,-140,-174,-175},{-177,-187,-163,-159,-192,-156},{-175,-155,-171,-137,-140,-135},{-155,-182,-185,-187,-163,-155},{-167,-153,-167,-177,-147,-182},{-171,-184,-143,-142,-169,-137},{-134,-177,-164,-132,-163,-175}},{{-140,-134,-143,-171,-190,-188},{-188,-135,-167,-188,-182,-156},{-135,-190,-171,-166,-129,-180},{-130,-163,-135,-169,-177,-193},{-174,-193,-190,-151,-174,-175},{-161,-193,-143,-134,-182,-158},{-184,-135,-187,-164,-187,-138},{-158,-151,-182,-147,-156,-171},{-129,-142,-187,-158,-158,-155},{-166,-166,-151,-135,-137,-193}},{{-145,-155,-174,-161,-185,-140},{-130,-187,-153,-143,-138,-129},{-151,-193,-188,-155,-179,-180},{-172,-164,-177,-177,-150,-166},{-159,-155,-134,-175,-138,-187},{-148,-132,-177,-159,-177,-147},{-155,-188,-155,-175,-175,-153},{-143,-130,-180,-190,-159,-167},{-150,-140,-187,-175,-137,-182},{-140,-171,-145,-164,-143,-188}},{{-132,-159,-132,-190,-159,-182},{-161,-129,-182,-164,-159,-164},{-159,-145,-138,-129,-169,-147},{-161,-145,-163,-163,-153,-150},{-145,-169,-179,-172,-179,-137},{-150,-143,-138,-184,-150,-185},{-164,-155,-143,-156,-156,-175},{-188,-192,-148,-180,-148,-161},{-161,-163,-192,-184,-135,-188},{-180,-153,-190,-159,-145,-138}},{{-142,-130,-179,-135,-169,-132},{-167,-161,-190,-129,-161,-137},{-142,-135,-159,-148,-179,-187},{-182,-143,-137,-163,-147,-138},{-130,-148,-174,-140,-164,-185},{-174,-179,-180,-163,-187,-134},{-142,-177,-161,-151,-177,-187},{-182,-182,-153,-184,-134,-180},{-163,-142,-172,-135,-161,-159},{-140,-177,-130,-193,-172,-188}},{{-138,-158,-187,-130,-150,-184},{-130,-166,-174,-180,-159,-151},{-158,-161,-129,-166,-169,-145},{-132,-179,-156,-164,-180,-135},{-169,-134,-188,-138,-192,-167},{-153,-130,-151,-147,-174,-190},{-182,-182,-155,-175,-134,-156},{-174,-171,-132,-148,-150,-172},{-135,-187,-184,-192,-132,-145},{-135,-163,-161,-161,-169,-142}},{{-174,-163,-177,-147,-145,-137},{-182,-171,-179,-155,-145,-185},{-153,-169,-148,-140,-182,-185},{-145,-134,-142,-142,-140,-164},{-169,-164,-135,-172,-180,-185},{-193,-150,-166,-193,-187,-166},{-132,-132,-166,-137,-138,-158},{-145,-184,-180,-187,-142,-171},{-169,-190,-169,-135,-185,-140},{-187,-135,-129,-137,-190,-190}},{{-137,-166,-172,-188,-138,-137},{-161,-190,-158,-184,-164,-147},{-161,-140,-175,-130,-185,-188},{-155,-179,-182,-185,-161,-159},{-132,-192,-129,-187,-180,-135},{-190,-193,-153,-156,-172,-185},{-132,-192,-135,-179,-158,-163},{-158,-180,-142,-135,-185,-169},{-156,-155,-130,-192,-145,-193},{-150,-188,-132,-174,-177,-175}},{{-138,-166,-190,-129,-164,-159},{-171,-159,-166,-135,-147,-193},{-145,-166,-166,-151,-138,-171},{-137,-143,-129,-150,-150,-140},{-148,-155,-159,-151,-140,-177},{-130,-148,-132,-180,-135,-134},{-145,-155,-161,-159,-177,-177},{-188,-182,-161,-147,-134,-167},{-164,-163,-188,-143,-175,-147},{-166,-182,-180,-145,-192,-150}}},{{{-208,-229,-268,-233,-273,-277},{-256,-268,-196,-263,-240,-254},{-189,-270,-196,-215,-243,-224},{-252,-233,-254,-243,-217,-259},{-261,-199,-263,-261,-275,-247},{-199,-217,-245,-270,-206,-243},{-187,-240,-222,-187,-217,-217},{-240,-185,-226,-192,-222,-243},{-208,-219,-206,-213,-213,-268},{-206,-247,-187,-256,-222,-277}},{{-208,-203,-196,-243,-233,-236},{-261,-266,-268,-277,-268,-261},{-194,-243,-268,-222,-233,-208},{-261,-215,-222,-238,-247,-196},{-210,-203,-219,-252,-217,-254},{-254,-208,-210,-224,-270,-231},{-231,-226,-226,-277,-268,-196},{-263,-229,-185,-224,-213,-222},{-243,-217,-256,-213,-268,-210},{-245,-238,-185,-238,-208,-252}},{{-215,-194,-217,-217,-275,-254},{-249,-273,-256,-266,-217,-266},{-263,-240,-243,-185,-254,-203},{-189,-224,-229,-266,-217,-215},{-240,-210,-263,-219,-277,-240},{-249,-273,-201,-189,-233,-196},{-263,-192,-277,-213,-233,-268},{-252,-194,-210,-252,-238,-254},{-243,-229,-213,-208,-270,-201},{-210,-245,-210,-261,-231,-199}},{{-231,-247,-238,-213,-208,-229},{-268,-199,-192,-187,-222,-249},{-187,-259,-231,-236,-249,-243},{-238,-266,-222,-231,-208,-245},{-185,-189,-229,-215,-187,-222},{-270,-238,-259,-226,-231,-196},{-224,-187,-206,-240,-231,-187},{-261,-236,-245,-224,-243,-263},{-261,-219,-231,-243,-199,-236},{-254,-259,-187,-243,-256,-233}},{{-266,-217,-217,-268,-189,-245},{-222,-201,-273,-275,-215,-259},{-249,-254,-268,-229,-252,-217},{-240,-273,-254,-210,-215,-203},{-206,-240,-215,-277,-194,-208},{-240,-240,-199,-256,-270,-261},{-226,-256,-215,-275,-275,-245},{-259,-263,-187,-215,-236,-201},{-238,-222,-187,-217,-249,-229},{-185,-210,-196,-185,-247,-261}},{{-252,-215,-185,-194,-222,-277},{-252,-222,-219,-247,-194,-256},{-210,-247,-206,-231,-203,-199},{-187,-233,-268,-231,-224,-222},{-266,-219,-270,-249,-245,-245},{-273,-192,-196,-266,-261,-219},{-222,-219,-189,-240,-268,-259},{-217,-270,-243,-236,-222,-254},{-254,-213,-256,-201,-219,-203},{-266,-263,-236,-249,-222,-259}},{{-224,-249,-203,-263,-261,-277},{-245,-210,-187,-210,-196,-268},{-229,-199,-185,-233,-231,-213},{-222,-194,-219,-215,-222,-231},{-243,-243,-238,-247,-226,-194},{-208,-256,-201,-277,-273,-203},{-226,-208,-187,-270,-273,-261},{-243,-240,-247,-187,-263,-219},{-199,-247,-231,-252,-256,-201},{-215,-268,-254,-185,-196,-263}},{{-259,-206,-249,-208,-252,-194},{-268,-187,-254,-203,-263,-238},{-238,-229,-226,-240,-231,-224},{-275,-273,-252,-245,-273,-229},{-229,-215,-245,-243,-277,-192},{-231,-275,-240,-240,-240,-243},{-194,-238,-277,-247,-268,-217},{-187,-243,-203,-252,-266,-261},{-226,-185,-275,-210,-275,-217},{-199,-268,-213,-217,-240,-270}},{{-236,-254,-238,-222,-259,-210},{-199,-215,-192,-208,-213,-206},{-196,-192,-233,-254,-213,-275},{-263,-203,-213,-256,-187,-231},{-231,-217,-224,-266,-277,-252},{-240,-194,-213,-256,-219,-270},{-194,-231,-254,-273,-259,-189},{-249,-194,-270,-226,-233,-275},{-252,-224,-206,-243,-199,-273},{-231,-249,-273,-224,-252,-275}}},{{{-256,-202,-247,-252,-197,-245},{-243,-252,-184,-210,-178,-191},{-237,-258,-187,-189,-176,-224},{-228,-191,-176,-247,-217,-184},{-254,-182,-191,-221,-232,-221},{-256,-234,-210,-213,-237,-217},{-215,-213,-215,-226,-243,-195},{-202,-197,-245,-210,-189,-191},{-213,-191,-180,-258,-245,-256},{-180,-182,-256,-208,-221,-234}},{{-191,-215,-180,-252,-250,-210},{-178,-245,-189,-256,-176,-252},{-191,-191,-258,-204,-197,-232},{-241,-219,-232,-176,-260,-260},{-184,-215,-245,-178,-237,-213},{-178,-258,-193,-191,-193,-191},{-204,-187,-182,-250,-228,-239},{-191,-219,-182,-180,-180,-176},{-224,-226,-193,-193,-234,-228},{-210,-224,-176,-241,-208,-224}},{{-213,-178,-197,-226,-210,-230},{-237,-182,-252,-234,-221,-254},{-237,-221,-219,-241,-178,-180},{-215,-252,-219,-200,-215,-239},{-228,-180,-178,-197,-243,-193},{-241,-224,-252,-226,-200,-243},{-247,-234,-219,-221,-219,-221},{-202,-200,-210,-187,-254,-215},{-250,-210,-197,-239,-258,-252},{-174,-245,-234,-176,-247,-245}},{{-258,-182,-247,-237,-178,-219},{-189,-232,-234,-245,-230,-258},{-247,-245,-228,-204,-204,-224},{-237,-208,-228,-226,-254,-206},{-254,-234,-256,-228,-195,-180},{-210,-204,-195,-239,-221,-217},{-176,-254,-237,-204,-200,-213},{-252,-228,-204,-193,-200,-180},{-215,-191,-191,-202,-219,-226},{-210,-247,-215,-228,-180,-239}},{{-232,-197,-237,-260,-204,-213},{-250,-243,-260,-226,-187,-202},{-187,-197,-202,-202,-239,-239},{-217,-234,-256,-228,-247,-191},{-217,-232,-250,-189,-258,-247},{-232,-174,-243,-243,-197,-241},{-217,-176,-182,-224,-256,-221},{-239,-180,-197,-210,-182,-178},{-254,-230,-224,-191,-254,-254},{-189,-243,-191,-224,-239,-247}},{{-208,-210,-224,-182,-228,-228},{-180,-239,-234,-221,-228,-226},{-204,-193,-213,-243,-217,-247},{-189,-224,-210,-178,-202,-184},{-247,-189,-180,-206,-230,-180},{-237,-245,-193,-213,-182,-184},{-206,-189,-230,-247,-204,-210},{-234,-241,-260,-178,-213,-247},{-239,-258,-234,-230,-228,-193},{-187,-202,-191,-234,-254,-250}},{{-221,-239,-210,-187,-180,-191},{-206,-213,-178,-245,-239,-260},{-221,-254,-213,-247,-176,-206},{-189,-243,-243,-224,-228,-245},{-182,-252,-180,-176,-215,-245},{-215,-228,-206,-176,-195,-187},{-208,-241,-232,-174,-239,-252},{-200,-217,-252,-215,-180,-184},{-204,-176,-180,-245,-180,-176},{-193,-260,-174,-206,-226,-176}},{{-193,-210,-180,-226,-182,-178},{-237,-215,-202,-221,-258,-184},{-230,-217,-258,-224,-228,-232},{-254,-247,-230,-213,-237,-252},{-189,-256,-256,-217,-239,-237},{-241,-200,-247,-260,-260,-180},{-237,-182,-217,-228,-232,-178},{-230,-247,-187,-256,-215,-241},{-178,-245,-187,-224,-195,-245},{-247,-178,-204,-252,-200,-237}},{{-241,-195,-256,-210,-243,-245},{-241,-204,-204,-234,-208,-234},{-189,-200,-195,-234,-226,-213},{-176,-178,-189,-241,-200,-176},{-180,-237,-237,-226,-200,-243},{-200,-174,-258,-226,-226,-250},{-193,-260,-241,-256,-178,-206},{-252,-217,-176,-226,-197,-208},{-184,-174,-178,-174,-245,-228},{-219,-174,-213,-239,-178,-217}}},{{{-290,-295,-239,-221,-282,-293},{-269,-255,-274,-269,-229,-263},{-215,-215,-293,-319,-229,-223},{-269,-218,-293,-306,-242,-282},{-255,-293,-237,-279,-239,-226},{-303,-239,-223,-215,-271,-287},{-274,-290,-309,-301,-301,-242},{-234,-250,-269,-293,-293,-237},{-290,-314,-311,-221,-261,-317},{-282,-298,-293,-250,-231,-293}},{{-261,-293,-231,-226,-314,-271},{-250,-247,-303,-266,-287,-277},{-250,-306,-242,-309,-274,-229},{-266,-223,-261,-274,-261,-215},{-231,-298,-247,-282,-319,-242},{-258,-301,-301,-213,-314,-266},{-213,-295,-311,-306,-237,-266},{-218,-242,-314,-250,-271,-221},{-271,-239,-269,-274,-253,-234},{-279,-237,-245,-279,-293,-271}},{{-234,-298,-317,-309,-242,-274},{-274,-314,-215,-319,-231,-298},{-237,-250,-261,-301,-250,-319},{-231,-306,-309,-229,-317,-247},{-285,-287,-242,-277,-226,-309},{-298,-263,-250,-282,-290,-309},{-274,-290,-303,-317,-215,-237},{-231,-253,-277,-295,-247,-298},{-269,-274,-309,-271,-295,-221},{-250,-269,-274,-266,-215,-229}},{{-255,-285,-274,-287,-287,-242},{-221,-295,-255,-277,-223,-306},{-269,-285,-290,-255,-298,-287},{-221,-258,-263,-285,-266,-279},{-229,-245,-293,-253,-306,-290},{-311,-245,-234,-314,-247,-215},{-271,-317,-261,-263,-261,-250},{-311,-229,-263,-245,-237,-311},{-218,-253,-295,-258,-317,-282},{-250,-250,-287,-213,-274,-314}},{{-223,-279,-309,-319,-253,-282},{-221,-285,-274,-274,-277,-253},{-271,-277,-245,-229,-295,-293},{-229,-242,-317,-242,-221,-263},{-239,-279,-314,-242,-301,-298},{-229,-226,-221,-287,-239,-242},{-306,-282,-271,-298,-215,-229},{-226,-213,-269,-218,-226,-287},{-309,-290,-223,-282,-269,-250},{-271,-253,-237,-269,-274,-263}},{{-317,-255,-271,-253,-239,-226},{-285,-213,-279,-295,-213,-226},{-247,-293,-245,-303,-237,-295},{-263,-303,-226,-287,-223,-242},{-271,-237,-301,-271,-319,-271},{-274,-298,-287,-298,-253,-245},{-221,-250,-285,-285,-311,-218},{-239,-218,-255,-287,-237,-255},{-229,-314,-306,-218,-277,-229},{-215,-269,-229,-293,-253,-245}},{{-266,-253,-258,-269,-311,-261},{-301,-215,-247,-245,-226,-271},{-247,-239,-255,-298,-317,-223},{-271,-237,-287,-258,-261,-301},{-261,-221,-247,-287,-274,-314},{-213,-314,-317,-282,-277,-245},{-258,-287,-263,-309,-274,-229},{-298,-245,-306,-314,-237,-221},{-255,-234,-287,-277,-231,-285},{-301,-258,-309,-287,-245,-290}},{{-223,-277,-277,-317,-301,-239},{-245,-309,-237,-263,-213,-298},{-250,-218,-229,-229,-258,-242},{-263,-285,-274,-239,-258,-239},{-319,-223,-301,-221,-229,-261},{-282,-250,-237,-215,-263,-290},{-258,-303,-290,-293,-247,-261},{-266,-229,-253,-290,-253,-237},{-274,-223,-258,-290,-266,-317},{-285,-215,-309,-237,-213,-258}},{{-271,-319,-293,-293,-293,-298},{-285,-314,-242,-221,-285,-282},{-255,-229,-271,-250,-237,-223},{-255,-242,-266,-287,-298,-223},{-253,-290,-239,-263,-250,-317},{-231,-266,-314,-218,-306,-269},{-234,-234,-218,-247,-319,-279},{-242,-258,-215,-287,-282,-301},{-253,-231,-245,-319,-237,-271},{-213,-237,-266,-285,-314,-309}}},{{{-316,-291,-286,-302,-330,-286},{-316,-283,-333,-230,-258,-241},{-266,-238,-277,-260,-314,-260},{-314,-336,-328,-249,-336,-302},{-260,-330,-269,-314,-286,-291},{-269,-258,-294,-294,-297,-302},{-227,-325,-288,-246,-266,-325},{-336,-266,-258,-328,-336,-319},{-297,-252,-230,-316,-244,-300},{-224,-322,-241,-314,-328,-227}},{{-300,-274,-227,-325,-297,-302},{-260,-330,-277,-283,-300,-238},{-224,-288,-274,-300,-308,-238},{-336,-252,-230,-333,-263,-232},{-314,-328,-294,-336,-258,-230},{-238,-288,-314,-330,-249,-283},{-283,-286,-286,-294,-227,-328},{-274,-311,-249,-319,-316,-269},{-302,-283,-319,-322,-311,-269},{-244,-336,-241,-235,-322,-330}},{{-305,-280,-300,-252,-227,-336},{-283,-297,-232,-252,-314,-238},{-286,-232,-316,-328,-330,-252},{-255,-286,-297,-314,-308,-224},{-308,-272,-305,-246,-291,-308},{-305,-319,-274,-286,-328,-291},{-255,-316,-286,-266,-224,-322},{-325,-230,-258,-330,-300,-269},{-241,-246,-336,-269,-283,-263},{-283,-305,-314,-238,-330,-325}},{{-246,-280,-286,-328,-277,-258},{-311,-280,-241,-288,-241,-252},{-297,-305,-258,-297,-322,-325},{-258,-336,-311,-305,-244,-286},{-316,-269,-291,-322,-325,-314},{-333,-305,-302,-328,-286,-294},{-230,-330,-330,-302,-252,-232},{-224,-336,-252,-232,-319,-316},{-283,-286,-302,-308,-246,-272},{-288,-316,-291,-316,-300,-274}},{{-291,-241,-302,-330,-316,-249},{-333,-277,-294,-232,-269,-302},{-297,-288,-277,-272,-283,-333},{-244,-302,-252,-305,-280,-277},{-241,-235,-308,-227,-272,-280},{-269,-252,-319,-333,-227,-280},{-258,-260,-224,-272,-311,-227},{-244,-333,-232,-224,-277,-330},{-322,-235,-255,-232,-230,-258},{-300,-266,-252,-294,-246,-241}},{{-325,-249,-291,-316,-291,-314},{-238,-325,-308,-283,-255,-274},{-232,-232,-305,-308,-249,-297},{-291,-291,-314,-316,-244,-280},{-274,-227,-328,-230,-300,-300},{-297,-333,-314,-288,-286,-230},{-255,-302,-300,-300,-235,-266},{-288,-224,-266,-249,-291,-336},{-314,-241,-274,-330,-294,-333},{-263,-328,-322,-269,-328,-325}},{{-274,-277,-230,-224,-336,-280},{-291,-314,-297,-260,-336,-311},{-224,-286,-305,-252,-300,-286},{-333,-244,-232,-305,-286,-235},{-266,-305,-230,-263,-260,-244},{-291,-246,-249,-269,-316,-316},{-286,-260,-308,-286,-325,-283},{-224,-252,-277,-302,-305,-235},{-325,-325,-241,-300,-244,-249},{-288,-272,-255,-286,-305,-230}},{{-314,-336,-319,-325,-325,-244},{-322,-266,-294,-230,-230,-280},{-283,-260,-263,-305,-291,-286},{-305,-300,-330,-232,-274,-258},{-305,-311,-235,-269,-286,-263},{-328,-224,-230,-260,-277,-291},{-325,-269,-263,-288,-328,-224},{-314,-291,-330,-244,-330,-235},{-241,-308,-244,-255,-269,-330},{-280,-305,-288,-263,-294,-252}},{{-336,-232,-249,-302,-333,-314},{-283,-305,-235,-336,-316,-274},{-232,-322,-277,-272,-263,-288},{-319,-302,-269,-244,-305,-302},{-274,-288,-294,-336,-302,-255},{-227,-227,-232,-258,-319,-269},{-294,-260,-283,-238,-272,-330},{-238,-272,-266,-238,-328,-302},{-294,-300,-235,-258,-308,-288},{-238,-319,-241,-302,-274,-263}}},{{{-244,-288,-227,-252,-230,-258},{-263,-241,-227,-263,-308,-277},{-280,-302,-294,-288,-330,-246},{-235,-294,-238,-305,-286,-314},{-291,-244,-283,-274,-230,-288},{-269,-244,-244,-319,-314,-294},{-255,-260,-328,-328,-260,-308},{-305,-238,-230,-297,-227,-308},{-235,-288,-283,-294,-311,-328},{-314,-249,-294,-238,-316,-269}},{{-325,-230,-263,-294,-232,-241},{-333,-325,-269,-263,-325,-232},{-316,-300,-272,-280,-291,-314},{-280,-325,-252,-230,-241,-224},{-249,-224,-291,-260,-319,-316},{-302,-330,-252,-246,-336,-252},{-255,-302,-224,-286,-308,-288},{-316,-255,-300,-255,-291,-294},{-246,-277,-316,-330,-294,-244},{-258,-252,-227,-294,-319,-269}},{{-230,-272,-263,-246,-283,-249},{-272,-235,-288,-274,-277,-302},{-297,-272,-305,-260,-288,-336},{-272,-308,-277,-232,-246,-227},{-316,-269,-263,-286,-280,-224},{-252,-336,-308,-300,-230,-277},{-333,-230,-263,-286,-232,-305},{-246,-330,-274,-336,-235,-283},{-319,-277,-286,-333,-246,-300},{-263,-311,-244,-280,-227,-286}},{{-288,-224,-322,-333,-269,-286},{-291,-263,-232,-325,-244,-316},{-322,-291,-249,-305,-269,-291},{-316,-244,-224,-305,-302,-232},{-297,-294,-316,-252,-311,-246},{-260,-336,-244,-297,-255,-274},{-238,-288,-305,-286,-283,-249},{-238,-336,-322,-227,-288,-314},{-277,-305,-322,-330,-283,-249},{-305,-322,-235,-280,-283,-314}},{{-238,-258,-300,-286,-241,-283},{-297,-224,-302,-249,-263,-227},{-280,-244,-249,-266,-277,-330},{-300,-238,-277,-274,-235,-230},{-266,-255,-272,-258,-330,-325},{-246,-227,-330,-255,-330,-232},{-330,-316,-252,-252,-297,-333},{-249,-328,-241,-249,-252,-333},{-319,-266,-336,-286,-302,-230},{-277,-319,-286,-230,-308,-258}},{{-277,-288,-227,-316,-266,-235},{-325,-311,-246,-230,-252,-305},{-244,-255,-294,-294,-263,-280},{-333,-280,-235,-305,-255,-244},{-272,-266,-311,-249,-328,-280},{-266,-235,-244,-328,-311,-322},{-230,-291,-246,-260,-333,-294},{-333,-305,-227,-286,-330,-252},{-230,-269,-274,-274,-269,-283},{-260,-272,-322,-333,-252,-300}},{{-283,-249,-230,-322,-302,-230},{-263,-319,-258,-291,-272,-266},{-316,-260,-272,-311,-322,-263},{-325,-266,-224,-325,-297,-319},{-316,-297,-246,-300,-316,-286},{-308,-302,-311,-232,-322,-274},{-252,-294,-297,-255,-330,-302},{-314,-260,-314,-277,-224,-272},{-269,-336,-280,-288,-330,-241},{-283,-336,-269,-230,-235,-319}},{{-224,-286,-269,-311,-288,-263},{-238,-272,-272,-277,-297,-246},{-333,-286,-319,-314,-255,-238},{-230,-325,-252,-283,-272,-314},{-260,-280,-286,-252,-263,-322},{-232,-302,-258,-269,-244,-277},{-294,-272,-311,-314,-224,-266},{-260,-322,-249,-283,-330,-269},{-277,-235,-274,-235,-322,-255},{-333,-302,-244,-238,-238,-314}},{{-325,-322,-333,-263,-258,-308},{-230,-300,-244,-274,-255,-308},{-260,-274,-238,-305,-291,-249},{-230,-302,-246,-258,-244,-244},{-328,-277,-283,-283,-302,-274},{-263,-244,-252,-328,-333,-260},{-308,-325,-291,-277,-260,-302},{-258,-266,-230,-308,-280,-269},{-305,-241,-302,-258,-274,-227},{-246,-330,-297,-269,-280,-325}}},{{{-272,-227,-283,-277,-249,-238},{-308,-241,-316,-238,-294,-224},{-232,-283,-297,-244,-316,-294},{-308,-328,-288,-302,-330,-255},{-322,-316,-300,-263,-319,-252},{-291,-325,-319,-224,-280,-322},{-230,-266,-232,-305,-322,-258},{-308,-241,-322,-300,-314,-286},{-300,-308,-286,-294,-294,-314},{-244,-319,-272,-266,-336,-249}},{{-277,-246,-302,-280,-333,-230},{-308,-255,-283,-294,-266,-246},{-224,-336,-291,-277,-300,-255},{-255,-294,-224,-311,-232,-283},{-325,-328,-302,-224,-266,-230},{-300,-319,-280,-316,-291,-314},{-235,-286,-235,-252,-283,-294},{-314,-258,-330,-316,-316,-300},{-286,-258,-308,-252,-258,-241},{-252,-291,-269,-241,-333,-227}},{{-227,-336,-297,-311,-227,-333},{-297,-272,-252,-246,-230,-294},{-308,-244,-244,-328,-314,-246},{-260,-249,-336,-277,-322,-246},{-224,-322,-272,-230,-330,-280},{-266,-302,-230,-263,-319,-269},{-280,-319,-224,-288,-288,-258},{-272,-227,-244,-235,-311,-252},{-241,-235,-241,-230,-266,-297},{-280,-314,-328,-286,-252,-269}},{{-322,-319,-288,-249,-241,-277},{-328,-305,-336,-274,-263,-258},{-249,-311,-308,-333,-249,-277},{-241,-283,-255,-314,-255,-286},{-322,-255,-288,-249,-311,-246},{-263,-288,-238,-316,-330,-269},{-336,-302,-314,-283,-244,-244},{-252,-291,-255,-300,-308,-311},{-291,-235,-266,-311,-311,-283},{-274,-255,-227,-333,-235,-249}},{{-238,-277,-232,-305,-249,-277},{-333,-302,-277,-325,-249,-291},{-330,-322,-300,-302,-277,-255},{-230,-227,-274,-328,-260,-286},{-286,-286,-302,-274,-314,-230},{-314,-288,-311,-230,-294,-266},{-308,-258,-252,-252,-283,-328},{-235,-235,-227,-255,-260,-308},{-235,-314,-246,-319,-244,-308},{-333,-330,-300,-288,-224,-302}},{{-232,-328,-286,-328,-300,-232},{-272,-269,-227,-294,-255,-252},{-263,-258,-288,-300,-263,-294},{-319,-305,-286,-252,-227,-241},{-238,-330,-302,-288,-308,-258},{-252,-241,-272,-258,-325,-297},{-232,-230,-277,-302,-274,-227},{-232,-266,-244,-224,-263,-305},{-311,-224,-336,-280,-272,-260},{-333,-328,-294,-272,-260,-280}},{{-252,-333,-328,-277,-258,-319},{-241,-308,-325,-224,-246,-224},{-308,-288,-330,-283,-319,-241},{-277,-316,-263,-288,-336,-314},{-300,-325,-269,-280,-266,-230},{-286,-272,-286,-297,-280,-266},{-266,-249,-232,-269,-297,-283},{-263,-227,-272,-241,-232,-325},{-316,-244,-224,-277,-260,-311},{-263,-249,-277,-260,-333,-255}},{{-224,-269,-255,-302,-230,-277},{-311,-294,-291,-283,-227,-224},{-280,-272,-224,-302,-288,-300},{-263,-263,-302,-232,-224,-277},{-241,-322,-255,-235,-249,-288},{-277,-286,-330,-336,-224,-302},{-297,-333,-302,-297,-260,-283},{-325,-258,-230,-277,-297,-266},{-260,-246,-286,-308,-230,-308},{-286,-274,-255,-280,-241,-252}},{{-241,-325,-252,-246,-283,-314},{-224,-246,-244,-230,-291,-297},{-255,-291,-302,-302,-283,-230},{-316,-224,-319,-311,-255,-280},{-263,-272,-328,-235,-311,-316},{-319,-322,-311,-252,-280,-288},{-260,-319,-235,-302,-308,-311},{-280,-249,-305,-230,-283,-286},{-308,-224,-263,-266,-283,-311},{-246,-272,-316,-266,-314,-244}}}}; // supply (positive for supply and negative for demand) under different scenarios 
int iniv[I]={2070,261,23,150,170,304,400,300,160}; // initial inventory 
int ubiv[I]={2740,522,414,300,341,608,800,600,320}; // the upper bounds of inventory 
int len[I1][I2]={{3,6,2,2,3,3,2,1}}; // 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,7.19,13.32,4.32,2.64,5.16,6.85,4.63,1.82}; // 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]={{6.54,12.11,3.93,2.4,4.69,6.23,4.21,1.65}}; // 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]={5.23,5.23,5.23,4.58,4.58,4.58,3.92,3.92,3.92,9.69,9.69,9.69,8.48,8.48,8.48,7.27,7.27,7.27,3.14,3.14,3.14,2.75,2.75,2.75,2.36,2.36,2.36,1.92,1.92,1.92,1.68,1.68,1.68,1.44,1.44,1.44,3.75,3.75,3.75,3.28,3.28,3.28,2.81,2.81,2.81,4.98,4.98,4.98,4.36,4.36,4.36,3.74,3.74,3.74,3.37,3.37,3.37,2.95,2.95,2.95,2.53,2.53,2.53,1.32,1.32,1.32,1.16,1.16,1.16,0.99,0.99,0.99}; // 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]={26,13,9,26,13,9,25,13,9,24,12,8,24,12,8,23,12,8,26,13,9,25,13,9,26,13,9,25,13,9,26,13,9,25,13,9,25,13,9,25,13,9,25,13,9,25,13,9,26,13,9,25,13,9,25,13,9,26,13,9,26,13,9,26,13,9,27,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}}; // 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,50,1,5,9,13,17,21,25,29,33,37,41,45,49,1,7,13,19,25,31,37,43,49,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,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,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,0,4,8,12,16,20,24,28,32,36,40,44,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,0,4,8,12,16,20,24,28,32,36,40,44,2,8,14,20,26,32,38,44,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,2,6,10,14,18,22,26,30,34,38,42,46,1,7,13,19,25,31,37,43,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,0,4,8,12,16,20,24,28,32,36,40,44,48,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,0,6,12,18,24,30,36,42,48,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,1,5,9,13,17,21,25,29,33,37,41,45,49,0,6,12,18,24,30,36,42,48,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,2,6,10,14,18,22,26,30,34,38,42,46,50,2,8,14,20,26,32,38,44,50,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,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,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,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,1,7,13,19,25,31,37,43,49,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,0,4,8,12,16,20,24,28,32,36,40,44,48,2,8,14,20,26,32,38,44,50,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,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,0,4,8,12,16,20,24,28,32,36,40,44,48,1,7,13,19,25,31,37,43,49,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,2,6,10,14,18,22,26,30,34,38,42,46,50,1,7,13,19,25,31,37,43,49,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,0,4,8,12,16,20,24,28,32,36,40,44,48,0,6,12,18,24,30,36,42,48,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,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,1,5,9,13,17,21,25,29,33,37,41,45,49,1,7,13,19,25,31,37,43,49,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}; // set of start times of each shipment 
int SHets[SPN]={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,4,8,12,16,20,24,28,32,36,40,44,48,52,3,9,15,21,27,33,39,45,51,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,5,9,13,17,21,25,29,33,37,41,45,49,53,4,10,16,22,28,34,40,46,52,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,7,13,19,25,31,37,43,49,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,6,10,14,18,22,26,30,34,38,42,46,50,8,14,20,26,32,38,44,50,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,8,12,16,20,24,28,32,36,40,44,48,52,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,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,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,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,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,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,2,6,10,14,18,22,26,30,34,38,42,46,50,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,4,8,12,16,20,24,28,32,36,40,44,48,52,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,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,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,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,2,6,10,14,18,22,26,30,34,38,42,46,50,3,9,15,21,27,33,39,45,51,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,4,8,12,16,20,24,28,32,36,40,44,48,52,3,9,15,21,27,33,39,45,51,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,2,6,10,14,18,22,26,30,34,38,42,46,50,2,8,14,20,26,32,38,44,50,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,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,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,3,9,15,21,27,33,39,45,51}; // set of end times of each shipment 
