https://123dok.net/document/z1d51m3z-alternatives-to-the-gradient-in-optimal-transfer-line-buffer-allocation.html