Nowadays, manufacturers make every effort to achieve a higher quality of their products at an attractive cost. With all the introduced legislation and incentives in the developed world to address global warming, machining shops in the West also strive to cut greenhouse emissions. This article offers an optimal approach to the micro Computer-Aided Process Planning (CAPP) problem to optimize the internal quality cost and buffering effect while keeping the environmental impact low. To optimize the machining parameters, the mathematical model is developed for different milling operations, face, side, and peripheral. cutting speed, feed rate, axial depth of cut, radial depth of cut, nose radius, and batch sizing while maximizing profit and meeting customer demand. A Mixed-Integer Nonlinear Programming (MINLP) model is formulated and solved using Classical Constrained Nonlinear Optimization (CCNO) and Genetic Algorithms (GAs). Surface roughness, used as a metric to evaluate the desired quality level of a finished machined part type, is modeled as a Gaussian random variable to model the surface roughness of the machined part utilizing a cumulative normal distribution. The ratio of rework and scrap is calculated in terms of the surface roughness of the machined part shifting away from the target and exceeding upper and lower specification limits. The internal failure cost model, addressing both scrap and rework, is developed based on Taguchi’s quadratic loss function. CCNO is employed to validate the results obtained by GAs, relaxing the lot-sizing integrality constraint and, thus, the convexity of the produced relaxed model. An iterative method employing a developed multi-regression model is used to solve for the expended power consumption (an inherent highly nonlinear environmental criterion of the developed model) within both GAs and CCNO. This study reveals that the machining parameters substantially impact the cost components of the objective function as well as the scrap and rework quantities. A stringent quality cost target can force the model to optimize the feed rate and nose radius to minimize the internal failure quality cost while improving the environmental impact, including direct and indirect power consumption and CO2 emissions considerations.