Single-Item Lot-Sizing With Multiple Capacitated Modules

Online Solver - SAMPLE TEST DATA SETS
(derived from Online Solver with Piecewise Linear Production Costs)
Extension of algorithm described at
www.lutanho.net/plt/lgrthm/lotsize.html

with Start-up Costs, Multiple Modules with Linear Production Costs and Piecewise Linear Holding Costs

mini=1I(ui(1-ui-1)ai+uim=1Mivim(xim)(sim+pimxim)+k=1Kiwik(yi)(tik+hikyi))
0ximCim, withvim(xim)={1ifxim>00otherwiseandwik(yi)={1ifyik-1<yiyik0otherwise
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 *  input format: (all values must be integer)                                 * 
 *                                                                             * 
 *  I; u_0; y_0; y_I;                                                          * 
 *  startup; x_min, p_fix, p_var, x_max, (first module)                        * 
 *            ...   p_fix, p_var, x_max; (last module)                         * 
 *   demand; y_min, h_fix, h_var, (y_up, ...,) y_max; (first period)           * 
 *  ...                                                                        * 
 *  startup; x_min, p_fix, p_var, x_max, (first module)                        * 
 *            ...   p_fix, p_var, x_max; (last module)                         * 
 *   demand; y_min, h_fix, h_var, (y_up, ...,) y_max; (last period)            * 
 *                                                                             * 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 *  output format:                                                             * 
 *                                                                             * 
 *  u, x, y, n; (first period)                                                 * 
 *  ...                                                                        * 
 *  u, x, y, n; (last period)                                                  * 
 *                                                                             * 
 * (n is the number of pieces in the piecewise linear production cost function)* 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
Input:
solve in memory saving mode (slower) . . . hint: calculation with smaller y_max values may be faster
Output: