Text this: Mathematical programming methods in structural plasticing