MATHEMATICAL MODEL AND SIMULATION FOR DESIGNING A COST OPTIMIZED OFF