Text this: Mathematical programming methods in structural plasticity