Large-scale optimization for green logistics and stochastic resource allocation for food security