Pull_Fwd inkl. Rectify funktionstüchtig TODO: Accept + Simanneal + Output
This commit is contained in:
parent
a7f1a86748
commit
6be2e20cc7
2 changed files with 48 additions and 21 deletions
|
@ -1,10 +1,10 @@
|
|||
from Parser import JobShopProblem as Problem
|
||||
|
||||
def enumerate(problem):
|
||||
schedule = ( (job, task) for job in range(0, problem.jobs) for task in range(0, problem.get_tasks_by_job(job)) )
|
||||
schedule = ( (job, task) for job in range(0, problem.jobs) for task in range(0, len(problem.get_tasks_by_job(job))) )
|
||||
begin = 0
|
||||
solution = []
|
||||
for task in schedule:
|
||||
solution.append((begin, task))
|
||||
begin += problem[task[0]][task[1]][0]
|
||||
begin += problem[task][0]
|
||||
return solution
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue