Skip to content

Commit

Permalink
Use an appropriate filename for the file with the explored solutions
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniogi authored Nov 17, 2024
1 parent 33f6e02 commit f635177
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/SolverDAB.py
Original file line number Diff line number Diff line change
Expand Up @@ -503,20 +503,22 @@ def __init__(self, problem_type, infile, configfile):
"pending.queue", u.solution_type.FUSION, infile, False)
self.__topSolutions = solQueue.SolutionsQueue(
"top.queue", u.solution_type.FUSION, infile, False, True)
if problem_type == u.problem_type.CRISTINA:
elif problem_type == u.problem_type.CRISTINA:
self.__finishedSolutions = solQueue.SolutionsQueue(
"finishedNonSep.queue", u.solution_type.CRISTINA, infile, True, True)
"finishedCristinaSep.queue", u.solution_type.CRISTINA, infile, True, True)
self.__pendingSolutions = solQueue.SolutionsQueue(
"pendingNonSep.queue", u.solution_type.CRISTINA, infile, False)
"pendingCristina.queue", u.solution_type.CRISTINA, infile, False)
self.__topSolutions = solQueue.SolutionsQueue(
"top.queue", u.solution_type.CRISTINA, infile, False, True)
if problem_type == u.problem_type.NONSEPARABLE:
elif problem_type == u.problem_type.NONSEPARABLE:
self.__finishedSolutions = solQueue.SolutionsQueue(
"finishedNonSep.queue", u.solution_type.NONSEPARABLE, infile, True, True)
self.__pendingSolutions = solQueue.SolutionsQueue(
"pendingNonSep.queue", u.solution_type.NONSEPARABLE, infile, False)
self.__topSolutions = solQueue.SolutionsQueue(
"top.queue", u.solution_type.NONSEPARABLE, infile, False, True)
else:
raise Exception("Unknown problem type")
#if top solutions is not empty, that means we have a best solution from the previous execution
try:
if self.__topSolutions.qSize() != 0:
Expand Down

0 comments on commit f635177

Please sign in to comment.