Efficient Automatic Design Of Retaining