Scheduling coupled photovoltaic, battery and conventional energy sources to maximize profit using linear programming