OPTIMAL SITTING SIZING AND CONTROL OF BATTERY