I have a model representing 2 buildings (with a pv generation, storage and electrical load each). All the elements of one building are connected to one bus, and the elements of the second building are connected to another bus.
Also, both buses are interconnected to another intermediate bus through 4 blocks
Transformer representing the input and output of each bus of the buildings.
On this intermediate bus are connected one
Source and one
Sink representig the electrical grid, which can operate apporting energy when the demand is not satisfied with the pv+storage or sending energy to the grid when there is an excess.
The idea of this system is to compensate the loads of both buildings with all the sources available and if it’s possible send to the grid the excedents and, when the sources are not capable of supply the load, take the energy necessary from the grid.
The doubts I have are how oemof discusses between taking energy from a battery or from the grid. All the simulations I’ve already done showed that the system always take the energy from the grid ignoring both batteries, unless I put the
variable_costs on the blocks representing the grid.
Any help will be appreciated to solve this system that I’m studying.
If more info is needed I will provide with any problem.
Thak you so much!