Single-Item Capacitated Economic Lot-Sizing with Lost Sales

Online Solver - SAMPLE TEST DATA SETS
(derived from Online Solver without Lost Sales)
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 Lost Sales

mini=1I(ui(1-ui-1)ai +uij=1Jivij(xi)(sij+pijxi) +k=1Kiwik(yi)(tik+hikyi) +qili )
yi-1+xi-(di-li)=yi , withvij(xi)={1ifxij-1<xixij0otherwiseandwik(yi)={1ifyik-1<yiyik0otherwise , 0lilimax , lidi
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 *  input format: (all values must be integer)                                 * 
 *                                                                             * 
 *  I; u_0; y_0; y_I;                                                          * 
 *  startup; x_min, p_fix, p_var, (x_up, ...,) x_max; ls_uc, ls_max;           * 
 *   demand; y_min, h_fix, h_var, (y_up, ...,) y_max; (first period)           * 
 *  ...                                                                        * 
 *  startup; x_min, p_fix, p_var, (x_up, ...,) x_max; ls_uc, ls_max;           *  
 *   demand; y_min, h_fix, h_var, (y_up, ...,) y_max; (last period)            * 
 *                                                                             * 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 *  output format:                                                             * 
 *                                                                             * 
 *  u, x, l, y; (first period)                                                 * 
 *  ...                                                                        * 
 *  u, x, l, y; (last period)                                                  * 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
Input:
solve in memory saving mode (slower) . . . hint: calculation with smaller y_max values may be faster
Output + Model: