Text this: Optimization of a lattice spring model with elastoplastic conducting springs