fixed fallback conditions for lagrange prediction, implemented fallback for cases with single generator (no pv bus, no lagrange)