int Dev = 10;// 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 = 1131;//Number of shipments
extern const int SN = 10;//Number of scenarios at each stage
extern const int MBSN = 26;//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]={{{{11366,0,0,0,0,0},{11365,0,0,0,0,0},{11586,0,0,0,0,0},{11534,0,0,0,0,0},{11450,0,0,0,0,0},{11578,0,0,0,0,0},{11262,0,0,0,0,0},{11532,0,0,0,0,0},{11412,0,0,0,0,0},{11563,0,0,0,0,0}},{{11644,0,0,0,0,0},{11643,0,0,0,0,0},{11475,0,0,0,0,0},{11365,0,0,0,0,0},{11427,0,0,0,0,0},{11520,0,0,0,0,0},{11496,0,0,0,0,0},{11665,0,0,0,0,0},{11592,0,0,0,0,0},{11572,0,0,0,0,0}},{{11598,0,0,0,0,0},{11565,0,0,0,0,0},{11585,0,0,0,0,0},{11544,0,0,0,0,0},{11445,0,0,0,0,0},{11647,0,0,0,0,0},{11435,0,0,0,0,0},{11496,0,0,0,0,0},{11655,0,0,0,0,0},{11502,0,0,0,0,0}},{{11480,0,0,0,0,0},{11497,0,0,0,0,0},{11576,0,0,0,0,0},{11339,0,0,0,0,0},{11512,0,0,0,0,0},{11520,0,0,0,0,0},{11464,0,0,0,0,0},{11584,0,0,0,0,0},{11454,0,0,0,0,0},{11682,0,0,0,0,0}},{{11450,0,0,0,0,0},{11446,0,0,0,0,0},{11537,0,0,0,0,0},{11551,0,0,0,0,0},{11566,0,0,0,0,0},{11710,0,0,0,0,0},{11620,0,0,0,0,0},{11529,0,0,0,0,0},{11518,0,0,0,0,0},{11547,0,0,0,0,0}},{{11550,0,0,0,0,0},{11503,0,0,0,0,0},{11423,0,0,0,0,0},{11655,0,0,0,0,0},{11653,0,0,0,0,0},{11656,0,0,0,0,0},{11631,0,0,0,0,0},{11472,0,0,0,0,0},{11489,0,0,0,0,0},{11424,0,0,0,0,0}},{{11559,0,0,0,0,0},{11644,0,0,0,0,0},{11443,0,0,0,0,0},{11290,0,0,0,0,0},{11305,0,0,0,0,0},{11459,0,0,0,0,0},{11500,0,0,0,0,0},{11529,0,0,0,0,0},{11604,0,0,0,0,0},{11475,0,0,0,0,0}},{{11658,0,0,0,0,0},{11679,0,0,0,0,0},{11710,0,0,0,0,0},{11577,0,0,0,0,0},{11553,0,0,0,0,0},{11505,0,0,0,0,0},{11344,0,0,0,0,0},{11437,0,0,0,0,0},{11555,0,0,0,0,0},{11473,0,0,0,0,0}},{{11426,0,0,0,0,0},{11649,0,0,0,0,0},{11458,0,0,0,0,0},{11725,0,0,0,0,0},{11550,0,0,0,0,0},{11464,0,0,0,0,0},{11541,0,0,0,0,0},{11428,0,0,0,0,0},{11492,0,0,0,0,0},{11351,0,0,0,0,0}}},{{{-213,-185,-209,-211,-207,-211},{-209,-191,-189,-205,-211,-199},{-213,-183,-201,-209,-219,-207},{-193,-183,-213,-219,-189,-215},{-183,-193,-185,-195,-221,-197},{-221,-195,-191,-185,-215,-193},{-191,-191,-221,-197,-189,-215},{-221,-213,-191,-183,-223,-191},{-193,-193,-213,-211,-219,-213},{-209,-185,-193,-215,-189,-191}},{{-187,-217,-189,-219,-221,-215},{-199,-205,-215,-187,-191,-217},{-221,-219,-209,-187,-193,-217},{-187,-187,-213,-185,-205,-201},{-207,-185,-211,-209,-195,-187},{-211,-193,-197,-197,-189,-221},{-195,-205,-209,-223,-187,-189},{-191,-203,-219,-221,-199,-183},{-197,-193,-221,-213,-223,-199},{-209,-209,-191,-195,-219,-211}},{{-195,-209,-195,-205,-205,-223},{-217,-205,-195,-197,-213,-203},{-207,-221,-201,-209,-219,-189},{-217,-219,-183,-199,-219,-187},{-209,-203,-217,-217,-211,-223},{-217,-199,-205,-199,-185,-213},{-187,-187,-193,-207,-201,-209},{-213,-197,-221,-187,-197,-213},{-219,-211,-207,-223,-221,-221},{-211,-205,-211,-201,-219,-197}},{{-203,-223,-215,-203,-183,-199},{-205,-191,-211,-199,-199,-211},{-183,-205,-183,-223,-201,-195},{-189,-221,-215,-221,-183,-215},{-215,-185,-205,-207,-221,-189},{-195,-205,-195,-217,-191,-195},{-199,-217,-219,-203,-185,-211},{-195,-187,-189,-215,-223,-193},{-189,-219,-191,-205,-213,-211},{-189,-221,-197,-191,-211,-219}},{{-211,-197,-197,-189,-187,-199},{-211,-195,-211,-199,-201,-201},{-193,-189,-201,-187,-209,-199},{-187,-189,-199,-211,-201,-215},{-217,-213,-219,-197,-211,-223},{-185,-213,-221,-207,-211,-201},{-185,-205,-221,-195,-195,-215},{-211,-205,-211,-221,-217,-199},{-223,-213,-189,-205,-199,-209},{-199,-199,-223,-221,-221,-209}},{{-215,-205,-211,-221,-219,-183},{-217,-221,-215,-193,-191,-207},{-209,-203,-207,-189,-205,-195},{-205,-195,-195,-195,-187,-197},{-203,-193,-205,-211,-205,-223},{-211,-203,-189,-215,-185,-221},{-207,-201,-203,-223,-195,-217},{-197,-215,-199,-205,-191,-217},{-213,-201,-219,-205,-209,-193},{-201,-203,-195,-185,-221,-209}},{{-203,-215,-203,-183,-185,-183},{-201,-211,-223,-193,-209,-211},{-189,-201,-207,-189,-219,-187},{-189,-205,-189,-199,-207,-213},{-183,-193,-195,-199,-183,-203},{-203,-223,-223,-223,-217,-199},{-195,-203,-223,-187,-211,-221},{-205,-221,-217,-221,-189,-197},{-201,-201,-185,-189,-217,-211},{-195,-201,-187,-187,-215,-195}},{{-199,-183,-211,-215,-201,-201},{-191,-189,-217,-207,-219,-187},{-207,-207,-201,-191,-209,-199},{-203,-219,-201,-189,-199,-191},{-223,-221,-217,-187,-211,-201},{-215,-211,-189,-205,-197,-191},{-183,-189,-211,-207,-199,-195},{-201,-215,-209,-211,-221,-221},{-199,-207,-221,-219,-195,-197},{-213,-201,-195,-219,-219,-195}},{{-219,-183,-209,-219,-215,-201},{-201,-193,-183,-183,-191,-209},{-213,-187,-189,-215,-193,-187},{-219,-209,-199,-189,-213,-189},{-217,-209,-219,-215,-213,-191},{-209,-189,-207,-215,-197,-183},{-203,-197,-199,-217,-203,-199},{-185,-205,-203,-205,-183,-215},{-189,-195,-207,-195,-219,-187},{-219,-185,-209,-183,-183,-219}}},{{{-145,-177,-147,-155,-167,-166},{-151,-161,-174,-153,-147,-155},{-151,-155,-147,-164,-163,-147},{-166,-175,-151,-172,-166,-161},{-174,-155,-163,-151,-158,-163},{-161,-150,-171,-150,-147,-148},{-153,-159,-153,-153,-161,-151},{-164,-155,-166,-155,-171,-155},{-164,-166,-169,-153,-177,-153},{-175,-147,-171,-169,-158,-148}},{{-158,-150,-174,-164,-169,-155},{-156,-177,-145,-145,-158,-166},{-169,-159,-175,-150,-161,-158},{-150,-161,-166,-174,-164,-159},{-147,-158,-172,-156,-155,-172},{-161,-174,-145,-150,-161,-159},{-172,-163,-155,-148,-155,-172},{-148,-158,-145,-164,-174,-148},{-169,-155,-177,-158,-177,-159},{-161,-153,-147,-174,-163,-161}},{{-151,-167,-151,-174,-161,-163},{-166,-172,-151,-169,-177,-159},{-161,-145,-145,-164,-161,-172},{-159,-166,-164,-164,-155,-150},{-151,-166,-175,-166,-148,-167},{-155,-145,-175,-167,-151,-167},{-156,-155,-163,-147,-148,-166},{-145,-167,-156,-167,-151,-148},{-166,-172,-177,-161,-155,-156},{-177,-172,-148,-175,-164,-145}},{{-158,-177,-153,-163,-155,-153},{-175,-151,-166,-156,-158,-148},{-167,-172,-174,-158,-167,-174},{-156,-166,-155,-153,-147,-145},{-159,-161,-158,-163,-150,-177},{-156,-175,-177,-166,-172,-156},{-150,-145,-172,-167,-145,-151},{-155,-169,-164,-145,-164,-159},{-174,-158,-163,-147,-175,-161},{-151,-167,-164,-158,-147,-163}},{{-148,-164,-166,-145,-171,-161},{-172,-166,-177,-151,-169,-171},{-158,-169,-167,-166,-155,-167},{-174,-177,-163,-174,-147,-159},{-166,-172,-167,-148,-151,-163},{-145,-163,-174,-151,-164,-167},{-172,-161,-150,-163,-171,-147},{-166,-159,-172,-175,-164,-150},{-147,-166,-172,-148,-147,-177},{-147,-167,-150,-147,-158,-174}},{{-161,-167,-175,-167,-158,-169},{-175,-171,-171,-166,-155,-150},{-156,-172,-159,-172,-153,-169},{-164,-161,-169,-166,-166,-167},{-174,-159,-147,-172,-166,-169},{-161,-171,-161,-161,-156,-161},{-163,-172,-150,-172,-151,-166},{-172,-153,-166,-177,-171,-155},{-145,-151,-174,-177,-155,-174},{-167,-169,-159,-177,-171,-172}},{{-161,-153,-156,-169,-161,-155},{-163,-158,-177,-158,-150,-166},{-153,-169,-172,-177,-161,-151},{-161,-155,-148,-167,-156,-158},{-166,-159,-156,-155,-153,-169},{-150,-145,-155,-166,-169,-156},{-167,-171,-171,-151,-174,-153},{-161,-169,-150,-155,-158,-171},{-169,-163,-169,-169,-161,-155},{-147,-148,-163,-147,-175,-161}},{{-156,-174,-169,-153,-171,-153},{-161,-174,-172,-177,-171,-167},{-148,-153,-147,-171,-174,-159},{-164,-161,-151,-153,-156,-159},{-177,-156,-169,-151,-153,-169},{-159,-163,-172,-158,-172,-174},{-171,-148,-150,-171,-177,-171},{-147,-158,-169,-150,-145,-163},{-159,-145,-163,-148,-167,-166},{-158,-155,-156,-175,-156,-148}},{{-155,-156,-163,-156,-172,-164},{-159,-171,-166,-145,-147,-150},{-166,-155,-158,-171,-150,-164},{-171,-167,-171,-175,-155,-150},{-174,-175,-148,-169,-172,-153},{-148,-159,-171,-172,-164,-166},{-164,-163,-151,-164,-159,-166},{-174,-147,-169,-164,-148,-169},{-153,-151,-172,-171,-175,-163},{-166,-158,-155,-174,-153,-169}}},{{{-229,-219,-243,-210,-226,-229},{-208,-217,-213,-226,-231,-226},{-226,-240,-254,-252,-215,-247},{-245,-252,-213,-247,-213,-240},{-226,-240,-252,-231,-215,-245},{-249,-224,-247,-224,-240,-252},{-215,-226,-236,-222,-226,-233},{-247,-240,-208,-231,-219,-252},{-249,-229,-252,-254,-226,-238},{-224,-240,-243,-249,-238,-238}},{{-231,-247,-222,-213,-213,-243},{-243,-249,-231,-231,-254,-254},{-222,-208,-215,-215,-222,-252},{-222,-231,-236,-213,-219,-215},{-210,-210,-243,-219,-238,-245},{-219,-247,-238,-233,-208,-208},{-243,-245,-252,-226,-210,-219},{-249,-236,-233,-217,-233,-233},{-249,-254,-231,-222,-210,-240},{-247,-219,-217,-219,-229,-245}},{{-238,-208,-254,-236,-236,-226},{-210,-208,-240,-210,-231,-215},{-231,-219,-247,-254,-236,-231},{-245,-213,-252,-224,-249,-236},{-243,-215,-247,-252,-231,-215},{-236,-229,-240,-224,-245,-210},{-243,-233,-217,-222,-236,-243},{-231,-252,-245,-222,-249,-247},{-240,-249,-247,-245,-213,-245},{-217,-222,-222,-229,-231,-210}},{{-215,-208,-229,-254,-254,-219},{-254,-224,-229,-222,-226,-213},{-217,-229,-213,-222,-249,-254},{-233,-215,-238,-215,-217,-210},{-236,-226,-243,-247,-210,-224},{-217,-238,-233,-240,-231,-215},{-252,-210,-224,-226,-231,-243},{-233,-208,-213,-238,-208,-231},{-233,-215,-226,-238,-231,-254},{-233,-236,-215,-240,-231,-238}},{{-229,-219,-249,-243,-247,-208},{-226,-231,-231,-222,-243,-231},{-245,-215,-236,-219,-231,-243},{-222,-233,-224,-215,-254,-215},{-229,-240,-243,-254,-254,-236},{-238,-231,-233,-254,-217,-229},{-222,-245,-243,-238,-252,-217},{-233,-210,-252,-226,-236,-254},{-249,-238,-222,-213,-210,-222},{-238,-208,-252,-217,-229,-238}},{{-217,-210,-252,-240,-245,-215},{-226,-233,-243,-222,-208,-208},{-215,-254,-217,-219,-215,-231},{-243,-247,-229,-215,-229,-247},{-254,-240,-229,-236,-236,-245},{-245,-213,-247,-231,-229,-249},{-243,-229,-243,-245,-236,-245},{-213,-240,-224,-238,-236,-245},{-208,-213,-208,-219,-210,-210},{-217,-215,-219,-224,-243,-243}},{{-224,-240,-210,-243,-219,-210},{-240,-217,-252,-222,-217,-252},{-219,-240,-226,-217,-252,-245},{-249,-215,-219,-240,-215,-252},{-210,-222,-215,-210,-208,-231},{-254,-231,-229,-208,-252,-217},{-245,-243,-236,-224,-224,-224},{-229,-226,-249,-247,-217,-254},{-245,-247,-215,-222,-217,-243},{-249,-210,-252,-231,-254,-231}},{{-252,-236,-215,-229,-236,-236},{-231,-240,-254,-224,-224,-238},{-254,-231,-254,-238,-238,-245},{-229,-240,-217,-210,-229,-245},{-217,-240,-231,-240,-252,-226},{-231,-229,-226,-238,-247,-240},{-208,-247,-236,-222,-222,-229},{-249,-217,-231,-229,-231,-231},{-245,-254,-240,-226,-243,-219},{-210,-224,-229,-229,-213,-219}},{{-243,-243,-249,-213,-219,-254},{-219,-233,-238,-254,-219,-219},{-224,-238,-236,-215,-240,-247},{-252,-249,-243,-219,-231,-210},{-238,-254,-215,-254,-215,-240},{-208,-249,-222,-236,-208,-210},{-252,-224,-219,-213,-247,-254},{-245,-219,-252,-222,-247,-240},{-249,-229,-240,-252,-231,-240},{-249,-231,-217,-226,-224,-238}}},{{{-239,-215,-197,-226,-208,-202},{-224,-210,-204,-232,-202,-208},{-204,-210,-217,-230,-237,-219},{-204,-226,-200,-239,-215,-228},{-217,-215,-230,-208,-202,-230},{-239,-215,-197,-208,-208,-237},{-195,-206,-224,-228,-239,-219},{-237,-202,-204,-206,-200,-195},{-200,-195,-195,-215,-237,-230},{-206,-234,-237,-206,-197,-239}},{{-210,-217,-232,-204,-228,-206},{-215,-221,-217,-206,-234,-213},{-237,-202,-215,-200,-234,-239},{-219,-221,-234,-228,-202,-197},{-230,-219,-206,-234,-204,-221},{-200,-219,-234,-234,-221,-208},{-195,-234,-204,-206,-239,-195},{-219,-208,-219,-221,-226,-204},{-208,-200,-224,-195,-239,-219},{-195,-226,-213,-239,-232,-221}},{{-234,-226,-217,-228,-213,-226},{-237,-208,-213,-237,-202,-217},{-237,-202,-206,-239,-204,-239},{-208,-197,-224,-206,-232,-221},{-224,-204,-230,-224,-206,-221},{-204,-215,-221,-200,-239,-217},{-217,-208,-239,-221,-230,-224},{-237,-195,-232,-195,-234,-217},{-213,-210,-197,-239,-230,-210},{-228,-215,-208,-239,-215,-234}},{{-239,-208,-228,-219,-215,-226},{-224,-232,-217,-228,-208,-204},{-210,-208,-215,-197,-208,-197},{-195,-204,-217,-237,-206,-219},{-219,-210,-202,-202,-232,-217},{-204,-224,-228,-204,-237,-221},{-197,-213,-221,-213,-215,-226},{-237,-239,-213,-226,-226,-204},{-195,-210,-202,-217,-224,-204},{-224,-215,-219,-237,-221,-228}},{{-213,-204,-230,-204,-206,-202},{-228,-210,-206,-237,-210,-208},{-228,-232,-232,-226,-228,-234},{-228,-208,-239,-210,-195,-239},{-195,-226,-230,-213,-200,-206},{-217,-232,-208,-230,-204,-237},{-200,-217,-224,-228,-204,-239},{-230,-197,-239,-204,-234,-195},{-234,-204,-204,-197,-221,-219},{-217,-208,-221,-215,-215,-217}},{{-228,-195,-202,-230,-204,-239},{-217,-195,-226,-202,-224,-232},{-210,-232,-224,-219,-215,-210},{-221,-228,-239,-239,-219,-224},{-197,-208,-202,-224,-224,-219},{-228,-237,-221,-219,-237,-237},{-228,-230,-228,-195,-210,-234},{-234,-237,-200,-206,-206,-197},{-210,-226,-195,-237,-213,-226},{-195,-206,-219,-208,-195,-221}},{{-200,-239,-210,-202,-239,-204},{-239,-210,-208,-239,-232,-237},{-224,-195,-221,-232,-232,-217},{-210,-210,-221,-213,-200,-219},{-230,-230,-200,-206,-237,-226},{-200,-219,-197,-195,-195,-217},{-232,-226,-217,-197,-197,-221},{-215,-204,-230,-202,-208,-221},{-232,-206,-202,-200,-234,-210},{-226,-232,-217,-237,-213,-208}},{{-200,-213,-215,-224,-197,-237},{-202,-224,-224,-213,-228,-230},{-206,-234,-230,-215,-239,-202},{-204,-237,-237,-217,-228,-228},{-226,-230,-232,-210,-215,-213},{-219,-226,-224,-221,-239,-219},{-206,-215,-206,-217,-204,-206},{-202,-202,-217,-230,-234,-213},{-230,-215,-204,-210,-237,-239},{-204,-208,-232,-224,-234,-195}},{{-208,-228,-210,-206,-228,-213},{-202,-237,-210,-226,-202,-234},{-228,-237,-213,-228,-210,-195},{-221,-237,-239,-217,-234,-230},{-213,-202,-228,-232,-226,-228},{-206,-210,-226,-210,-239,-228},{-234,-204,-215,-208,-237,-234},{-232,-202,-228,-208,-234,-200},{-200,-210,-213,-219,-221,-208},{-197,-217,-221,-215,-208,-202}}},{{{-285,-245,-269,-258,-239,-242},{-266,-290,-239,-253,-282,-290},{-277,-266,-269,-282,-287,-277},{-285,-282,-263,-279,-245,-279},{-242,-263,-271,-287,-282,-242},{-290,-293,-285,-258,-277,-263},{-266,-253,-274,-242,-282,-274},{-245,-269,-255,-269,-274,-245},{-263,-245,-290,-242,-271,-285},{-293,-277,-274,-258,-285,-253}},{{-293,-258,-269,-242,-261,-253},{-258,-290,-279,-255,-290,-250},{-271,-253,-279,-247,-263,-253},{-261,-293,-263,-277,-245,-261},{-285,-242,-242,-277,-247,-293},{-269,-255,-250,-277,-269,-285},{-253,-263,-258,-250,-290,-290},{-290,-285,-239,-285,-279,-250},{-253,-261,-253,-242,-282,-279},{-258,-261,-263,-247,-245,-277}},{{-255,-239,-266,-258,-285,-290},{-293,-282,-253,-269,-287,-285},{-250,-250,-242,-263,-293,-285},{-293,-261,-274,-279,-239,-274},{-266,-279,-242,-279,-245,-263},{-245,-285,-263,-293,-271,-279},{-266,-245,-282,-263,-266,-263},{-250,-245,-258,-242,-242,-253},{-242,-282,-269,-258,-285,-271},{-263,-258,-250,-258,-245,-287}},{{-250,-282,-271,-290,-253,-266},{-253,-261,-290,-269,-285,-293},{-290,-255,-239,-277,-287,-274},{-261,-274,-239,-269,-293,-279},{-285,-287,-239,-279,-253,-242},{-253,-274,-253,-285,-293,-279},{-274,-271,-266,-290,-261,-282},{-258,-266,-282,-271,-269,-279},{-282,-290,-269,-239,-274,-263},{-282,-271,-293,-269,-279,-261}},{{-261,-293,-250,-263,-293,-263},{-255,-253,-290,-250,-263,-239},{-271,-266,-247,-277,-282,-250},{-261,-279,-263,-253,-255,-282},{-271,-247,-285,-258,-258,-258},{-269,-274,-255,-277,-266,-290},{-245,-293,-290,-274,-255,-290},{-290,-263,-250,-266,-269,-253},{-287,-261,-247,-263,-239,-239},{-247,-261,-285,-271,-242,-269}},{{-271,-255,-255,-245,-263,-290},{-287,-247,-258,-269,-274,-274},{-239,-274,-245,-282,-271,-290},{-255,-261,-293,-253,-271,-287},{-253,-271,-255,-250,-250,-279},{-261,-239,-242,-245,-271,-250},{-253,-277,-261,-269,-282,-287},{-285,-247,-277,-263,-247,-239},{-293,-261,-245,-261,-258,-293},{-279,-263,-245,-290,-277,-250}},{{-266,-287,-287,-261,-247,-263},{-263,-266,-285,-277,-263,-279},{-261,-258,-253,-261,-253,-253},{-282,-247,-242,-239,-253,-242},{-263,-250,-250,-269,-277,-245},{-239,-263,-293,-266,-285,-271},{-245,-269,-253,-263,-263,-242},{-277,-245,-258,-277,-271,-261},{-293,-282,-239,-271,-261,-269},{-255,-258,-279,-263,-255,-239}},{{-271,-277,-282,-285,-263,-255},{-279,-245,-239,-290,-255,-239},{-279,-282,-274,-263,-274,-287},{-269,-269,-274,-285,-274,-255},{-239,-245,-258,-287,-271,-255},{-282,-269,-293,-255,-247,-250},{-274,-271,-255,-277,-253,-239},{-247,-258,-279,-274,-293,-242},{-250,-261,-277,-239,-293,-242},{-290,-253,-271,-245,-258,-277}},{{-253,-274,-253,-266,-253,-266},{-279,-266,-290,-269,-285,-277},{-255,-266,-242,-282,-285,-250},{-266,-287,-287,-293,-290,-279},{-245,-263,-247,-258,-255,-253},{-266,-261,-285,-253,-290,-242},{-290,-242,-255,-271,-282,-293},{-261,-239,-239,-245,-242,-242},{-250,-258,-245,-274,-242,-285},{-287,-242,-255,-239,-261,-269}}},{{{-288,-266,-277,-255,-288,-291},{-260,-274,-302,-255,-283,-272},{-260,-288,-286,-263,-286,-255},{-272,-283,-302,-252,-305,-288},{-260,-252,-291,-288,-269,-274},{-283,-252,-302,-288,-252,-269},{-294,-263,-266,-291,-252,-274},{-305,-286,-283,-269,-286,-302},{-291,-269,-252,-269,-260,-280},{-283,-272,-274,-277,-308,-269}},{{-297,-272,-302,-291,-286,-294},{-260,-266,-269,-291,-288,-288},{-269,-294,-260,-291,-277,-286},{-305,-302,-255,-255,-252,-269},{-269,-266,-255,-263,-277,-288},{-305,-255,-283,-258,-305,-272},{-288,-300,-288,-291,-255,-272},{-258,-291,-302,-308,-302,-286},{-266,-302,-277,-297,-283,-300},{-305,-294,-277,-297,-266,-300}},{{-272,-272,-272,-286,-302,-308},{-308,-308,-252,-286,-258,-272},{-300,-280,-283,-274,-263,-258},{-286,-294,-288,-300,-283,-283},{-286,-291,-269,-255,-260,-291},{-300,-280,-269,-308,-308,-277},{-274,-255,-286,-288,-266,-266},{-297,-294,-258,-291,-277,-280},{-291,-308,-297,-272,-255,-269},{-297,-294,-272,-300,-297,-269}},{{-305,-258,-255,-274,-300,-291},{-269,-255,-255,-260,-305,-308},{-277,-283,-300,-286,-269,-308},{-277,-283,-263,-300,-269,-263},{-277,-272,-288,-297,-269,-274},{-272,-288,-258,-269,-260,-252},{-260,-286,-294,-272,-263,-252},{-280,-266,-263,-297,-269,-252},{-300,-269,-294,-283,-272,-297},{-308,-288,-297,-260,-300,-255}},{{-288,-269,-300,-272,-252,-308},{-283,-269,-274,-255,-260,-269},{-283,-274,-269,-274,-274,-300},{-269,-260,-258,-294,-286,-286},{-255,-269,-302,-252,-291,-252},{-269,-300,-300,-280,-274,-308},{-255,-274,-269,-272,-280,-308},{-286,-266,-300,-252,-260,-269},{-308,-302,-266,-280,-297,-286},{-291,-297,-263,-291,-258,-266}},{{-266,-274,-308,-266,-269,-308},{-288,-280,-308,-286,-255,-302},{-305,-302,-266,-255,-266,-305},{-269,-288,-302,-297,-300,-274},{-291,-305,-291,-283,-305,-288},{-286,-300,-300,-258,-252,-294},{-288,-269,-308,-288,-260,-263},{-277,-274,-297,-288,-255,-280},{-300,-302,-286,-294,-269,-263},{-266,-286,-280,-263,-286,-291}},{{-280,-308,-272,-305,-288,-305},{-266,-260,-277,-274,-255,-308},{-302,-274,-300,-280,-291,-308},{-291,-266,-255,-302,-255,-260},{-302,-260,-263,-277,-258,-258},{-291,-294,-269,-283,-280,-277},{-274,-305,-286,-260,-286,-255},{-252,-308,-291,-294,-288,-260},{-300,-260,-266,-305,-274,-305},{-263,-277,-291,-255,-300,-263}},{{-280,-260,-269,-308,-280,-294},{-274,-280,-294,-260,-252,-291},{-297,-258,-266,-305,-280,-291},{-305,-286,-283,-297,-258,-294},{-263,-277,-291,-300,-297,-286},{-258,-266,-280,-300,-286,-274},{-286,-260,-286,-294,-288,-269},{-260,-283,-280,-258,-280,-277},{-288,-266,-297,-274,-291,-272},{-255,-294,-286,-305,-280,-291}},{{-274,-266,-266,-269,-302,-263},{-272,-280,-300,-305,-302,-274},{-280,-252,-297,-274,-280,-302},{-297,-260,-277,-302,-274,-263},{-266,-258,-300,-291,-277,-280},{-260,-269,-291,-258,-308,-274},{-300,-260,-272,-286,-258,-272},{-308,-300,-255,-263,-272,-269},{-272,-291,-297,-274,-255,-291},{-302,-260,-302,-272,-283,-252}}},{{{-286,-302,-272,-280,-258,-291},{-277,-305,-252,-302,-255,-291},{-274,-255,-269,-288,-305,-252},{-277,-269,-305,-260,-283,-258},{-308,-260,-291,-302,-260,-283},{-255,-266,-274,-288,-288,-308},{-255,-280,-266,-291,-252,-283},{-266,-274,-297,-300,-302,-280},{-258,-260,-269,-258,-274,-266},{-277,-300,-255,-283,-258,-252}},{{-272,-297,-266,-300,-308,-302},{-294,-274,-302,-297,-272,-300},{-269,-266,-277,-277,-302,-300},{-274,-308,-283,-277,-263,-255},{-291,-269,-252,-291,-300,-266},{-297,-269,-291,-280,-305,-252},{-280,-283,-305,-286,-302,-291},{-280,-297,-286,-294,-300,-308},{-305,-255,-266,-277,-263,-297},{-266,-291,-283,-288,-294,-274}},{{-286,-280,-266,-255,-291,-286},{-269,-288,-266,-277,-305,-291},{-288,-255,-272,-305,-291,-258},{-283,-260,-283,-300,-260,-302},{-255,-269,-255,-308,-274,-300},{-252,-288,-305,-266,-305,-252},{-283,-288,-263,-277,-283,-272},{-308,-277,-274,-277,-266,-272},{-283,-305,-302,-252,-260,-280},{-258,-294,-252,-308,-266,-274}},{{-274,-269,-266,-288,-269,-260},{-274,-263,-305,-266,-286,-283},{-280,-258,-305,-294,-266,-300},{-252,-260,-260,-305,-269,-252},{-294,-297,-302,-302,-274,-263},{-297,-286,-300,-283,-255,-291},{-272,-258,-260,-300,-297,-294},{-274,-302,-274,-305,-297,-297},{-277,-291,-272,-263,-288,-252},{-297,-277,-283,-286,-272,-274}},{{-252,-277,-280,-258,-280,-286},{-280,-297,-302,-302,-269,-300},{-280,-260,-260,-258,-300,-283},{-280,-308,-272,-297,-302,-255},{-255,-291,-302,-274,-263,-291},{-269,-272,-294,-288,-283,-260},{-286,-300,-263,-269,-302,-252},{-252,-294,-274,-266,-280,-269},{-308,-288,-260,-305,-308,-255},{-297,-286,-274,-286,-269,-260}},{{-272,-266,-252,-263,-280,-308},{-263,-263,-266,-291,-300,-269},{-255,-294,-294,-283,-283,-263},{-266,-291,-291,-258,-280,-255},{-255,-274,-308,-308,-283,-263},{-294,-302,-308,-308,-260,-294},{-294,-255,-266,-263,-288,-258},{-269,-300,-297,-283,-291,-266},{-255,-286,-300,-258,-255,-294},{-258,-277,-263,-288,-263,-283}},{{-300,-288,-305,-269,-263,-305},{-305,-305,-280,-283,-280,-260},{-269,-286,-252,-252,-252,-260},{-283,-294,-269,-288,-297,-252},{-266,-300,-302,-300,-283,-252},{-258,-288,-300,-305,-266,-272},{-297,-280,-272,-286,-252,-277},{-302,-263,-288,-297,-297,-263},{-263,-294,-288,-291,-291,-300},{-274,-277,-308,-269,-286,-283}},{{-294,-277,-308,-294,-291,-260},{-286,-297,-305,-286,-302,-305},{-302,-280,-286,-300,-291,-288},{-255,-269,-260,-302,-274,-297},{-252,-297,-260,-274,-286,-266},{-263,-280,-263,-255,-266,-302},{-280,-255,-308,-305,-272,-255},{-288,-263,-260,-255,-297,-266},{-274,-263,-294,-291,-269,-263},{-308,-274,-294,-269,-263,-288}},{{-260,-300,-274,-255,-258,-286},{-277,-280,-252,-300,-286,-297},{-291,-272,-252,-266,-297,-302},{-269,-302,-300,-258,-255,-274},{-277,-308,-266,-272,-308,-269},{-288,-274,-305,-308,-266,-263},{-274,-297,-263,-288,-294,-263},{-252,-283,-277,-300,-286,-286},{-300,-294,-272,-283,-280,-263},{-280,-283,-266,-255,-272,-272}}},{{{-263,-263,-294,-283,-272,-263},{-255,-291,-255,-288,-274,-308},{-300,-297,-280,-272,-297,-291},{-286,-258,-252,-274,-266,-286},{-266,-263,-288,-305,-252,-302},{-272,-300,-274,-269,-300,-305},{-291,-266,-252,-252,-280,-260},{-302,-252,-291,-266,-288,-297},{-308,-255,-277,-269,-302,-255},{-297,-277,-263,-300,-308,-269}},{{-305,-266,-280,-272,-305,-269},{-283,-274,-286,-305,-255,-288},{-300,-300,-255,-300,-255,-252},{-297,-272,-252,-277,-272,-308},{-305,-305,-252,-260,-302,-297},{-302,-266,-263,-286,-302,-297},{-266,-252,-283,-280,-260,-269},{-266,-274,-294,-263,-294,-283},{-255,-277,-302,-272,-305,-291},{-294,-283,-277,-280,-305,-252}},{{-291,-305,-269,-255,-302,-266},{-288,-258,-286,-252,-297,-283},{-280,-291,-308,-266,-297,-294},{-297,-277,-266,-255,-252,-266},{-266,-269,-255,-252,-291,-260},{-286,-291,-300,-283,-297,-286},{-308,-255,-288,-274,-272,-300},{-283,-263,-300,-297,-308,-266},{-269,-297,-269,-283,-263,-266},{-288,-260,-277,-266,-280,-294}},{{-277,-280,-283,-263,-280,-277},{-252,-280,-294,-286,-288,-266},{-255,-263,-305,-288,-308,-288},{-283,-274,-305,-302,-258,-277},{-305,-288,-252,-286,-274,-255},{-277,-308,-283,-283,-269,-260},{-283,-305,-288,-280,-258,-263},{-302,-288,-274,-305,-286,-294},{-266,-288,-283,-258,-263,-266},{-288,-274,-305,-260,-305,-283}},{{-283,-294,-291,-294,-263,-291},{-280,-263,-288,-252,-255,-291},{-258,-297,-294,-269,-294,-288},{-288,-294,-308,-263,-302,-258},{-308,-294,-274,-302,-258,-283},{-308,-269,-308,-274,-300,-291},{-300,-291,-302,-269,-300,-272},{-274,-294,-272,-302,-263,-305},{-258,-274,-291,-308,-288,-272},{-308,-305,-286,-294,-277,-274}},{{-302,-263,-297,-258,-308,-283},{-255,-308,-260,-258,-272,-302},{-255,-288,-288,-255,-252,-263},{-300,-252,-294,-300,-269,-302},{-291,-283,-302,-255,-300,-269},{-252,-291,-294,-302,-277,-288},{-274,-302,-283,-305,-258,-294},{-302,-258,-252,-255,-302,-274},{-302,-286,-297,-300,-274,-266},{-280,-291,-302,-274,-272,-263}},{{-280,-294,-288,-274,-280,-277},{-300,-269,-305,-255,-258,-286},{-294,-260,-272,-297,-283,-277},{-272,-302,-269,-263,-283,-274},{-274,-277,-274,-297,-300,-269},{-255,-255,-263,-308,-280,-255},{-286,-302,-258,-302,-272,-302},{-269,-263,-274,-266,-291,-258},{-283,-260,-283,-272,-294,-297},{-283,-252,-291,-260,-308,-305}},{{-297,-308,-288,-300,-286,-255},{-286,-288,-288,-283,-286,-305},{-286,-255,-286,-260,-263,-305},{-305,-260,-291,-297,-263,-288},{-302,-266,-300,-291,-263,-260},{-286,-272,-255,-280,-272,-286},{-258,-263,-286,-266,-280,-274},{-280,-286,-294,-258,-283,-280},{-272,-283,-280,-283,-294,-291},{-266,-283,-286,-283,-260,-283}},{{-263,-288,-260,-260,-294,-297},{-302,-294,-308,-283,-300,-280},{-274,-286,-263,-266,-277,-288},{-308,-308,-305,-266,-258,-258},{-283,-288,-294,-266,-274,-252},{-280,-269,-258,-302,-274,-288},{-272,-252,-258,-294,-291,-288},{-300,-302,-305,-269,-277,-260},{-283,-252,-286,-274,-277,-305},{-258,-283,-305,-283,-266,-286}}}}; // 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,25,13,9,26,13,9,23,12,8,24,12,8,24,12,8,25,13,9,26,13,9,26,13,9,26,13,9,26,13,9,25,13,9,25,13,9,25,13,9,26,13,9,26,13,9,25,13,9,25,13,9,25,13,9,26,13,9,26,13,9,26,13,9,26,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}}; // 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,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,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,0,4,8,12,16,20,24,28,32,36,40,44,2,8,14,20,26,32,38,44,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,2,6,10,14,18,22,26,30,34,38,42,46,0,6,12,18,24,30,36,42,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,1,5,9,13,17,21,25,29,33,37,41,45,0,6,12,18,24,30,36,42,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,0,4,8,12,16,20,24,28,32,36,40,44,48,2,8,14,20,26,32,38,44,50,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,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,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,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,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,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,0,4,8,12,16,20,24,28,32,36,40,44,48,2,8,14,20,26,32,38,44,50,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,2,6,10,14,18,22,26,30,34,38,42,46,50,0,6,12,18,24,30,36,42,48,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,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,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,2,6,10,14,18,22,26,30,34,38,42,46,50,0,6,12,18,24,30,36,42,48,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,2,6,10,14,18,22,26,30,34,38,42,46,50,2,8,14,20,26,32,38,44,50,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,2,6,10,14,18,22,26,30,34,38,42,46,50,1,7,13,19,25,31,37,43,49,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,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,52,2,6,10,14,18,22,26,30,34,38,42,46,50,2,8,14,20,26,32,38,44,50,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,2,6,10,14,18,22,26,30,34,38,42,46,50,1,7,13,19,25,31,37,43,49}; // 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,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,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,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,6,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,6,12,18,24,30,36,42,48,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,7,11,15,19,23,27,31,35,39,43,47,51,6,12,18,24,30,36,42,48,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,2,6,10,14,18,22,26,30,34,38,42,46,50,4,10,16,22,28,34,40,46,52,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,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,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,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,2,6,10,14,18,22,26,30,34,38,42,46,50,4,10,16,22,28,34,40,46,52,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,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,3,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,5,9,13,17,21,25,29,33,37,41,45,49,53,3,9,15,21,27,33,39,45,51,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,3,7,11,15,19,23,27,31,35,39,43,47,51,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,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,5,9,13,17,21,25,29,33,37,41,45,49,53,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,4,8,12,16,20,24,28,32,36,40,44,48,52,2,8,14,20,26,32,38,44,50,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,4,8,12,16,20,24,28,32,36,40,44,48,52,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,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,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,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}; // set of end times of each shipment 
