Optimisation of Bioenergy Supply Chains