Artificial Intelligence Approach to Synthesis of a Process for Waste Minimization