Single-Item Capacitated Economic Lot-Sizing

Online Solver - SAMPLE TEST DATA SETS
(derived from Online Solver without Storage Deterioration)
Extension of algorithm described at
www.lutanho.net/plt/lgrthm/lotsize.html

with Start-up Costs, Piecewise Linear Production Costs, Piecewise Linear Holding Costs and Storage Deterioration

mini=1I(ui(1-ui-1)ai+uij=1Jivij(xi)(sij+pijxi)+k=1Kiwik(yi)(tik+hikyi))
withvij(xi)={1ifxij-1<xixij0otherwise and wik(yi)={1ifyik-1<yiyik0otherwise
yi={ xi - di +yi-1(1-bi-1)ifyi-1>0xi - di +yi-1otherwise
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 *  input format: (all values must be integer)                                 * 
 *                                                                             * 
 *  I; u_0; y_0_det; y_I_det; (y_det= inventory level after deterioration)     * 
 *  startup; x_min, p_fix, p_var, (x_up, ...,) x_max; ...                      * 
 *   demand; y_min, h_fix, h_var, (y_up, ...,) y_max; b[‰]; (first period)     * 
 *  ...                                                                        * 
 *  startup; x_min, p_fix, p_var, (x_up, ...,) x_max; ...                      * 
 *   demand; y_min, h_fix, h_var, (y_up, ...,) y_max; b[‰]; (last period)      * 
 *                                                                             * 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 *  output format:                                                             * 
 *                                                                             * 
 *  u, x, y, y_det; (first period)                                             * 
 *  ...                                                                        * 
 *  u, x, y, y_det; (last period)                                              * 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
Input:
solve in memory saving mode (slower) . . . hint: calculation with smaller y_max values may be faster
Output + Model: