Skip to content

Commit

Permalink
+1
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean-Marc Collin committed Jun 11, 2023
1 parent 8ed8780 commit 0e638e4
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions custom_components/solar_optimizer/simulated_annealing_algo.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,12 +259,18 @@ def permuter_equipement(self, solution):
# if not can_change_power and is_waiting:
# -> on ne fait rien (mais ne devrait pas arriver car il ne serait pas usable dans ce cas)
#
# if not state or not can_change_power:
# -> allumage ou extinction
#
# if state and can_change_power and is_waiting:
# -> change power mais sans l'éteindre (requested_power >= power_min)
#
# if state and can_change_power and not is_waiting:
# -> change power avec extinction possible
#
# if not state and not is_waiting
# -> allumage
#
# if state and not is_waiting
# -> extinction
#
if not state or not can_change_power:
eqt["state"] = not state
# We always start at the min power
Expand Down

0 comments on commit 0e638e4

Please sign in to comment.