//go to: https://www.lutanho.net/goodies/codetester.html //click on: (*)javascript //copy & paste: this text //adapt: T, Demand, p_t, q1_t, q2_t, q3_t, q4_t, C1, C2, C3, C4 values //click on: [run] //Instance generator for data form //"Discrete multi-module capacitated lot-sizing problems with multiple items" //by Kartik Kulkarni and Manish Bansal (2022) //available at https://github.com/Bansal-ORGroup/MultiItem-Discrete-MCLS T = 50; Demand = [466, 496, 456, 566, 517, 449, 503, 527, 540, 591, 522, 434, 489, 407, 429, 404, 562, 559, 422, 522, 452, 511, 570, 424, 448, 490, 413, 485, 575, 584, 537, 537, 532, 496, 493, 404, 449, 493, 519, 436, 424, 402, 450, 567, 478, 422, 491, 443, 461, 566]; p_t = [0.54, 0.78, 0.59, 0.76, 0.74, 0.68, 0.74, 0.88, 0.67, 0.52, 0.8, 0.7, 0.61, 0.88, 0.87, 0.81, 0.56, 0.79, 0.9, 0.64, 0.61, 0.52, 0.79, 0.5, 0.79, 1, 0.69, 0.55, 0.82, 0.56, 0.88, 0.68, 0.77, 0.61, 0.91, 0.97, 0.88, 0.59, 0.66, 0.55, 0.64, 0.94, 0.99, 0.66, 0.6, 0.95, 0.68, 0.72, 0.71, 0.92]; q1_t = [2954, 3009, 3096, 2963, 3014, 3035, 2850, 2890, 3147, 2987, 2920, 2984, 2861, 3026, 2983, 2852, 3076, 2891, 2970, 2917, 3046, 3120, 2972, 3037, 3088, 3033, 2895, 3090, 3058, 3003, 2906, 2965, 2984, 2894, 3073, 2952, 2994, 3118, 2927, 2876, 3110, 2894, 2904, 3149, 3047, 3112, 2987, 3048, 3061, 2895]; q2_t = [5990, 5894, 6068, 5927, 6026, 6100, 6048, 6018, 5953, 5926, 5855, 5939, 6186, 6110, 6128, 6079, 6065, 5927, 6093, 6178, 5927, 6148, 5953, 6190, 5867, 5875, 5965, 6045, 6018, 5890, 5956, 6195, 6175, 5995, 6058, 6116, 6061, 6153, 6025, 5933, 6180, 6160, 6047, 6057, 6001, 6159, 5997, 6105, 6172, 6027]; q3_t = [8814, 9172, 8942, 9055, 9180, 8840, 9149, 8829, 8824, 8868, 8838, 9152, 8858, 8806, 9089, 8986, 8949, 8941, 8964, 8809, 9044, 9012, 9138, 9148, 8899, 9020, 9191, 8814, 8813, 8803, 9020, 8824, 8828, 8995, 9030, 9075, 9165, 9027, 8806, 9044, 9123, 8921, 9150, 8832, 8855, 8933, 8980, 8861, 8942, 9004]; q4_t = [12029, 11916, 12107, 12120, 12026, 12121, 11962, 11923, 11890, 12145, 11865, 12057, 11987, 12140, 11937, 11926, 12112, 12045, 11977, 11954, 11853, 12000, 12132, 12007, 11903, 11898, 12065, 11899, 11937, 12052, 11921, 12061, 11863, 11913, 11931, 11995, 12018, 12146, 11936, 11857, 11864, 11984, 12022, 11965, 12112, 11945, 11971, 11962, 12067, 11910]; C1 = 870; C2 = 1450; C3 = 1920; C4 = 2290; var h=0.05, b=0.15; //holdinng costs, backlogging costs var win=window.open('',''); with(win.document) { open(); write('
');
  write('//Input data for Online Solver at https://www.lutanho.net/plt/lotsize_mcm.html
') write('//All costs multiplied by 100 to get integer values
') write('//I u_0 y_0 y_I
') write(' '+T+'; 0; 0; 0;
') write('startup x_min fix var x_max fix var x_max fix var x_max fix var x_max demand y_min fix var up fix var y_max
'); for (ii=0; ii'); write('
'); close(); }