Zaslat SMS: Engineering plasticity by mathematical programming