Modelling and simulation of renewable technologies for economic and environmental analysis and optimization of dairy farms