Skip to content

Commit

Permalink
added logs
Browse files Browse the repository at this point in the history
  • Loading branch information
MalteUniOldenburg committed Mar 28, 2024
1 parent 17b8c91 commit 611a8af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def find_initial_requirement(power_balance, initiator):
criteria from the power balance list.
"""
print(f"power balance is: {power_balance}")
print(f"power balance is: {power_balance.ledger}")
print(f"initiator is: {initiator}")
r = None
if initiator == InitiatingParty.Local:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ def solve(self, power_balance, initiator):
except Exception as e:
print(e)
self.initial_requirement = PowerBalanceSolverStrategy.find_initial_requirement(power_balance, initiator)
print("initial requirement done")
print(f"initial requirement done: {self.initial_requirement.message.value}")
# if all the available offers cannot satisfy the need for this timeslot,
# no special solving strategy is needed since all will be accepted anyway
# in this case, there are more offers than needed to satisfy the initial requirement
Expand Down

0 comments on commit 611a8af

Please sign in to comment.