Optimization of fertilizer supply chain