A Mathematical Model Toward Energy Optimization with Building-Integrated Photovoltaics. Issue 1 (1st May 2017)