photosynthesis optimization