Systems and methods for classifying and sorting materials in order to produce a collection of materials that are composed of a particular chemical composition in the aggregate. The system may utilize a vision system and one or more sensor systems, which may implement a machine learning system in order to identify or classify each of the materials. The sorting is then performed as a function of the classifications.