Skip to content

Commit

Permalink
Add some logging
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniogi committed Nov 4, 2024
1 parent d950627 commit d1ee3f2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,14 @@ def run(self, infile, cfile):
if config.has_option("Algorithm", "objective"):
val = config.get("Algorithm", "objective")
if val is not None:
if val == "max":
if str(val).lower == "max":
u.objective = u.objectiveType.MAXIMIZE
u.logger.debug("WORKER (" + str(self.__rank) +
") Objective set to MAXIMIZE")
else:
u.objective = u.objectiveType.MINIMIZE
u.logger.debug("WORKER (" + str(self.__rank) +
") Objective set to MINIMIZE")
elapsed_time = time() - start_time
solutions_evaluated = 0
#Send the finish message 10 minutes before the end time to allow
Expand Down

0 comments on commit d1ee3f2

Please sign in to comment.