Class Solver

java.lang.Object
io.openems.edge.ess.core.power.Solver

public class Solver extends Object
  • Constructor Details

    • Solver

      public Solver(Data data)
  • Method Details

    • onSolved

      public void onSolved(OnSolved onSolvedCallback)
      Adds a callback for onSolved event.
      Parameters:
      onSolvedCallback - the Callback
    • isSolvableOrError

      public void isSolvableOrError() throws OpenemsException
      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

      public void solve(SolverStrategy strategy)
      Solve and optimize the equation system.

      When finished, this method calls the applyPower() methods of ManagedSymmetricEss or ManagedAsymmetricEss.

      Parameters:
      strategy - the SolverStrategy to follow
    • setDebugMode

      protected void setDebugMode(boolean debugMode)