Utilize electricity price difference, charge battery at low price and discharge at high price to maximize system profit, compensate local transformer limit