Some questions on the energy transmission

Hi there,

I have some questions as follows:

  1. Is it possible if the battery can be charged and discharged at the same time? Can it be charged from grid and pv at the same time?

  2. Can the energy from battery be sold to the grid?

  3. The energy from pv must be used in the building first? And then direct to grid and battery if there is surplus?

Thank you,

Hi @ORLab,

These questions are best answered by inspecting the code for the simulation, which will explicitly show the built in assumptions:

That said, quick answers to your questions are:

  1. No, you can only say what you want the charge to be at the next time step. If it is greater than the current charge, the battery charges. If it is less than the current charge the battery discharges.

  2. Energy can only be sold to the grid if there is a net surplus when balancing consumption and production (directly from PV or from the battery).

  3. Yes, that is correct.

As you will see in the code, you can only control what you want the future state of the battery to be. For this task, you do not have any other explicit controls over the system.

Thank you very much for quick answer.

You said that “Energy can only be sold to the grid if there is a net surplus when balancing consumption and production (directly from PV or from the battery)”

So if (production > consumption), we can sell energy from PV or battery to the grid? what if (production + battery > consumption)?

Again, this is explicitly calculated in the code so look there when you need answers. As mentioned, you can only change the battery state. You cannot decide when to buy or sell so the answers to the questions are built into the problem, and these are not decisions that can be made by a given solution. I recommend you review that code and then come back if there are questions.

As stated above:

Energy can only be sold to the grid if there is a net surplus when balancing consumption and production (directly from PV or from the battery).

Production is from PV and discharging the battery, and there must be a net surplus.

Hi bull,

I appreciate your useful answers.

Best,