//go to: https://www.lutanho.net/goodies/codetester.html //click on: (*)javascript //copy & paste: this text //adapt: m, f1, f2, c1, c2, b1, b2, Demand values //click on: [run] //Instance generator for data form //"Multi-Module Capacitated Lot-Sizing Problem and its Generalizations with Two-Echelons and Piecewise Concave Production Costs" (2019) //by Kartik Kulkarni and Manish Bansal (2019) https://optimization-online.org/2019/07/7294/ //data available at https://github.com/Bansal-ORGroup/MCLS-LSPC-Data (see Reupload.zip) m = 75; f1 = [3071, 2863, 2923, 3140, 3095, 3092, 3038, 2882, 3068, 2905, 2880, 2852, 3111, 3047, 3059, 2959, 2992, 2894, 3099, 2893, 2909, 2898, 3147, 2999, 3013, 3054, 2890, 2858, 3004, 3101, 3057, 2959, 2995, 2973, 3110, 2947, 3003, 3047, 3067, 3136, 3127, 3030, 2904, 3082, 2866, 2950, 3014, 3037, 3039, 2952, 2987, 3003, 3028, 3103, 3018, 3056, 3023, 2943, 3105, 2945, 2874, 2852, 2935, 3111, 2879, 3134, 2927, 2861, 2862, 3037, 2967, 3104, 3028, 2892, 3050]; f2 = [6012, 6022, 6130, 5933, 5972, 5867, 5951, 6143, 6081, 6055, 5995, 6021, 6148, 6042, 5886, 5979, 6046, 6043, 5852, 6112, 6042, 6059, 6017, 6089, 5866, 6090, 6088, 6147, 6047, 5930, 6044, 5884, 6099, 6120, 6061, 6081, 6077, 5974, 5982, 5901, 6041, 6061, 5855, 5921, 6052, 5982, 6124, 5939, 6047, 5874, 6079, 6112, 6054, 5910, 5926, 5905, 6001, 5851, 5860, 5976, 5909, 5853, 6017, 5960, 5938, 5917, 5951, 6109, 6039, 5930, 5979, 5965, 6048, 6137, 5942]; c1 = [0.552826150948, 0.562826150948, 0.842826150948, 0.572826150948, 0.622826150948, 0.792826150948, 0.682826150948, 0.552826150948, 0.782826150948, 0.952826150948, 0.762826150948, 0.912826150948, 0.842826150948, 0.952826150948, 0.772826150948, 0.742826150948, 0.792826150948, 0.602826150948, 0.882826150948, 0.772826150948, 0.562826150948, 0.732826150948, 0.732826150948, 0.912826150948, 0.642826150948, 0.582826150948, 0.962826150948, 0.772826150948, 0.922826150948, 0.962826150948, 0.502826150948, 0.842826150948, 0.922826150948, 0.872826150948, 0.942826150948, 0.622826150948, 0.922826150948, 0.562826150948, 0.962826150948, 0.582826150948, 0.722826150948, 0.852826150948, 0.772826150948, 0.662826150948, 0.512826150948, 0.612826150948, 0.892826150948, 0.562826150948, 0.862826150948, 0.622826150948, 0.832826150948, 0.852826150948, 0.982826150948, 0.552826150948, 0.822826150948, 0.852826150948, 0.952826150948, 0.752826150948, 0.982826150948, 0.562826150948, 0.622826150948, 0.792826150948, 0.812826150948, 0.692826150948, 0.982826150948, 0.972826150948, 0.522826150948, 0.852826150948, 0.732826150948, 0.872826150948, 0.762826150948, 0.902826150948, 0.712826150948, 0.522826150948, 0.762826150948]; c2 = [0.882826150948, 0.592826150948, 0.672826150948, 0.802826150948, 0.842826150948, 0.632826150948, 0.772826150948, 0.652826150948, 0.592826150948, 0.832826150948, 0.842826150948, 0.992826150948, 0.582826150948, 0.972826150948, 0.642826150948, 0.542826150948, 0.562826150948, 0.882826150948, 0.692826150948, 0.642826150948, 0.602826150948, 0.582826150948, 1.002826150948, 0.562826150948, 0.852826150948, 0.962826150948, 0.782826150948, 0.622826150948, 0.662826150948, 0.882826150948, 0.952826150948, 0.942826150948, 0.592826150948, 0.912826150948, 0.632826150948, 0.922826150948, 0.642826150948, 0.692826150948, 0.962826150948, 0.782826150948, 0.742826150948, 0.882826150948, 0.702826150948, 0.532826150948, 0.732826150948, 0.872826150948, 0.902826150948, 0.502826150948, 0.842826150948, 0.982826150948, 0.962826150948, 0.802826150948, 0.922826150948, 0.972826150948, 0.622826150948, 0.842826150948, 0.952826150948, 0.712826150948, 0.632826150948, 0.882826150948, 0.842826150948, 0.562826150948, 0.652826150948, 0.712826150948, 0.932826150948, 0.572826150948, 0.822826150948, 0.622826150948, 0.542826150948, 0.812826150948, 0.812826150948, 0.802826150948, 0.972826150948, 0.522826150948, 0.732826150948]; b1 = 1310; b2 = 2570; Demand = [468, 463, 428, 491, 498, 483, 478, 444, 461, 456, 480, 481, 470, 483, 427, 481, 400, 490, 433, 442, 466, 409, 439, 481, 411, 500, 495, 429, 492, 467, 400, 464, 467, 417, 474, 441, 439, 406, 473, 481, 484, 474, 445, 452, 419, 444, 465, 466, 427, 421, 466, 473, 401, 406, 450, 404, 479, 407, 457, 472, 419, 486, 479, 462, 500, 415, 422, 434, 495, 443, 414, 432, 442, 445, 464]; var h=0.05; //holding cost var SCALING=100000000000; var win=window.open('',''); with(win.document) { open(); write('
');
  write('//Input data for Online Solver at https://www.lutanho.net/plt/lotsize.html
') write('//All costs multiplied by '+SCALING+' to get integer values
') write('//I u_0 y_0 y_I
') write(' '+m+'; 0; 0; 0;
') write('startup x_min fix var up fix var x_max demand y_min fix var y_max
'); for (ii=0; ii'); write('
'); close(); }