This article scratches the surface of how oil is used and traded within the world’s energy complex. We introduce linear optimisation utilising AMPL to understand the optimal outputs from a fictitious refinery.