Nonconvex quadratic inventory control problems by conic optimization