Optimization of PV powered SPD switchable glazing to minimise probability of loss of power supply. (February 2019)