Deakstadieđáhus: Engineering plasticity by mathematical programming