Text this: Sustainability metrics targeted optimization and electric discharge process modelling by neural networks