PID is a regulator. If you want anything more complex than a constant reference signal for it to regulate to, you're talking a supervisory controller with a programmed feedforward signal. Once you have that, trivial extension to further optimize based on weather reports etc.
This Tweet was deleted by the Tweet author. Learn more