//go to: https://www.lutanho.net/goodies/codetester.html //click on: (*)javascript //copy & paste: this text //adapt: m, f1, f2, f3, c1, c2, c3, b1, b2, b3, 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 = 40; f1 = [3033, 2991, 2851, 3040, 2980, 2978, 2996, 3075, 2869, 3123, 3112, 3078, 3031, 2875, 2991, 3001, 3004, 3023, 3094, 3076, 2930, 3120, 2975, 2857, 2892, 2893, 3057, 2872, 2915, 3037, 2979, 2936, 2928, 3146, 2892, 2882, 2885, 2924, 3102, 3091]; f2 = [5958, 6079, 5944, 6073, 5980, 6114, 6057, 5869, 6121, 5946, 5879, 5880, 6080, 6130, 6119, 5857, 6017, 6018, 6071, 5873, 5949, 6001, 6137, 6103, 6078, 6090, 5917, 5981, 6146, 5930, 6023, 6084, 6134, 6100, 6036, 5869, 5902, 6091, 5873, 5969]; f3 = [8927, 9115, 8945, 9096, 8907, 9082, 9095, 8934, 8938, 9144, 8968, 9061, 8861, 8928, 8873, 8954, 9095, 8898, 9096, 9046, 8963, 9105, 8925, 8939, 9085, 9082, 8998, 8904, 8948, 9107, 9118, 9000, 8870, 9125, 8881, 8863, 8871, 9144, 8904, 8952]; c1 = [0.853730002402, 0.693730002402, 0.713730002402, 0.713730002402, 0.613730002402, 0.843730002402, 0.973730002402, 0.863730002402, 0.753730002402, 0.963730002402, 0.963730002402, 0.983730002402, 0.663730002402, 0.533730002402, 0.873730002402, 0.643730002402, 0.803730002402, 0.663730002402, 0.723730002402, 0.573730002402, 0.823730002402, 0.643730002402, 0.763730002402, 0.903730002402, 0.523730002402, 0.903730002402, 0.853730002402, 0.603730002402, 0.553730002402, 0.983730002402, 0.623730002402, 0.943730002402, 0.683730002402, 0.703730002402, 0.933730002402, 0.493730002402, 0.533730002402, 0.513730002402, 0.713730002402, 0.703730002402]; c2 = [0.973730002402, 0.823730002402, 0.533730002402, 0.773730002402, 0.643730002402, 0.563730002402, 0.873730002402, 0.913730002402, 0.703730002402, 0.943730002402, 0.723730002402, 0.633730002402, 0.983730002402, 0.563730002402, 0.513730002402, 0.513730002402, 0.523730002402, 0.553730002402, 0.743730002402, 0.783730002402, 0.653730002402, 0.953730002402, 0.623730002402, 0.653730002402, 0.803730002402, 0.663730002402, 0.563730002402, 0.733730002402, 0.653730002402, 0.803730002402, 0.573730002402, 0.613730002402, 0.763730002402, 0.613730002402, 0.873730002402, 0.603730002402, 0.593730002402, 0.633730002402, 0.743730002402, 0.883730002402]; c3 = [0.763730002402, 0.943730002402, 0.723730002402, 0.813730002402, 0.703730002402, 0.703730002402, 0.933730002402, 0.873730002402, 0.793730002402, 0.773730002402, 0.543730002402, 0.683730002402, 0.773730002402, 0.663730002402, 0.533730002402, 0.863730002402, 0.793730002402, 0.583730002402, 0.533730002402, 0.633730002402, 0.533730002402, 0.603730002402, 0.593730002402, 0.663730002402, 0.613730002402, 0.923730002402, 0.653730002402, 0.513730002402, 0.923730002402, 0.543730002402, 0.743730002402, 0.923730002402, 0.643730002402, 0.583730002402, 0.723730002402, 0.933730002402, 0.903730002402, 0.893730002402, 0.633730002402, 0.893730002402]; b1 = 970; b2 = 1950; b3 = 2810; Demand = [599, 480, 577, 573, 588, 487, 577, 440, 566, 497, 532, 586, 463, 475, 415, 464, 476, 598, 555, 570, 423, 469, 551, 406, 592, 520, 600, 590, 541, 599, 525, 469, 526, 499, 514, 512, 515, 520, 431, 495]; 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 up fix var x_max demand y_min fix var y_max
'); for (ii=0; ii'); write('
'); close(); }