Ph.D. 2016, Electric Vehicle Charge Optimization Including the Costs of Battery Wear, and Active Power Control of Photovoltaic Systems without Storage