//go to: https://www.lutanho.net/goodies/codetester.html //click on: (*)javascript //copy & paste: this text //adapt: T, sigma, a, b, K, C values //click on: [run] //Instance generator for //"Exact Algorithms for Lot-Sizing Problems with Multiple //Capacities, Piecewise Concave Production Costs, and Subcontracting" //by Kartik Kulkarni and Manish Bansal (2019) // T C1 C2 // 40 670 1280 // 40 850 1590 // 60 960 1970 // 60 870 1590 // 80 960 1970 // 80 1310 2570 var T=80; var C1=960; var C2=1970; var d, q1, q2, p, h; //demand: U[400,600] //setup cost q1: U[2850, 3150] //setup cost q2: U[5850, 6150] //production cost p: U[0.5, 1.0] //holding cost: 0.05 //->prodution function for p1=p2=p, q1
');
  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 up fix var up fix var x_max demand y_min fix var y_max
'); for (ii=0; ii'); } write('
'); close(); }