Package io.openems.edge.ess.core.power
Class Solver
java.lang.Object
io.openems.edge.ess.core.power.Solver
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Tests whether the Problem is solvable under the current Constraints.void
Tests whether the Problem is solvable under the current Constraints.void
Adds a callback for onSolved event.protected void
setDebugMode
(boolean debugMode) void
solve
(SolverStrategy strategy) Solve and optimize the equation system.
-
Constructor Details
-
Solver
-
-
Method Details
-
onSolved
Adds a callback for onSolved event.- Parameters:
onSolvedCallback
- the Callback
-
isSolvableOrError
Tests whether the Problem is solvable under the current Constraints.- Throws:
OpenemsException
- on error
-
isSolvable
public boolean isSolvable()Tests whether the Problem is solvable under the current Constraints.- Returns:
- true if the problem is solvable
-
solve
Solve and optimize the equation system.When finished, this method calls the applyPower() methods of
ManagedSymmetricEss
orManagedAsymmetricEss
.- Parameters:
strategy
- theSolverStrategy
to follow
-
setDebugMode
protected void setDebugMode(boolean debugMode)
-