Energy Yield Optimization in Agrivoltaics