-
Notifications
You must be signed in to change notification settings - Fork 400
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Energy Scheduler - next generation of Time-of-Use optimization (#2789)
- Introduce generically usable EnergyScheduleHandler (ESH) for executing energy simulations and applying schedules - Provide nice debugLog output and channel "SimulationsPerQuarter" to detect performance issues - Use Cache for cost of Genotypes - **Add config property "Version" to be able to switch between old (only ESS, but fast and well tested) and new (generic ESH but slower) implementation.** - Attention: be sure to set EnergyScheduler (`Core.Energy`) and `Controller.Ess.Time-Of-Use-Tariff` to the same Version! - Introduce new implementation of `EnergyFlow` that uses linear constraint validation and optimization - Implement ESHs for - `Controller.Ess.Time-Of-Use-Tariff`, - `Controller.Ess.EmergencyCapacityReserve`, - `Controller.Ess.LimitTotalDischarge` and - `Controller.Ess.GridOptimizedCharge` (MANUAL only) - Old implementations are moved to `v1` packages and marked @deprecated and will be removed in one of the next versions of OpenEMS. Unfortunately right now this leads to some mixed code.
- Loading branch information
1 parent
58cf33d
commit 34b5e3a
Showing
100 changed files
with
7,502 additions
and
1,595 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
io.openems.edge.common/test/io/openems/edge/common/sum/DummySumTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package io.openems.edge.common.sum; | ||
|
||
import static io.openems.edge.common.test.TestUtils.testWithValue; | ||
|
||
import org.junit.Test; | ||
|
||
import io.openems.common.exceptions.OpenemsException; | ||
|
||
public class DummySumTest { | ||
|
||
@Test | ||
public void test() throws OpenemsException { | ||
final var sut = new DummySum(); | ||
|
||
testWithValue(sut, DummySum::withProductionAcActivePower, Sum::getProductionAcActivePower); | ||
testWithValue(sut, DummySum::withGridActivePower, Sum::getGridActivePower); | ||
testWithValue(sut, DummySum::withEssCapacity, Sum::getEssCapacity); | ||
testWithValue(sut, DummySum::withEssSoc, Sum::getEssSoc); | ||
testWithValue(sut, DummySum::withEssMinDischargePower, Sum::getEssMinDischargePower); | ||
testWithValue(sut, DummySum::withEssMaxDischargePower, Sum::getEssMaxDischargePower); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.