Optimization of a Management Algorithm for an Innovative System of Automatic Switching between Two Photovoltaic and Wind Turbine Modes for an Ecological Production of Green Energy Download