Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

maintenance tasks in industry - BREAK #95

Open
Eduardoofc opened this issue May 19, 2020 · 0 comments
Open

maintenance tasks in industry - BREAK #95

Eduardoofc opened this issue May 19, 2020 · 0 comments

Comments

@Eduardoofc
Copy link

Eduardoofc commented May 19, 2020

Hello Tim, Good job with this amazing peace of code. I was wondering If you could give me a hand with some doubts that i have.

I have to set up a maintenance task between two tasks, but how can I do that without knowing their order(tasks order)

transfer = dict()
for k, v in malha.items():
list = []
--if(k in hectos):
----for i in range(v['volume']):
----list.append(S.Task('t' + k + str(i+1), length=1))
----transfer[k] = o
--else:
----for i in range(v['volume']):
----list.append(S.Task('t' + k + str(i+1), length=1))
----transfer[k] = o

This is the result of code above : a dict where the values are a list of tasks.
{'STE': [tSTE1, tSTE2, tSTE3],
'BRZ': [tBRZ1, tBRZ2, tBRZ3],
'ANT': [tANT1, tANT2, tANT3]
'BOH': [tBOH1, tBOH2, tBOH3, tBOH4]
}

  • Tasks of the same value list must be scheduling in sequence until a maximum of 6.
  • When ending this pack of 6 and the next tasks is not in the same value list, it must put a break of one perid between this tasks.
  • There is only two resources to deal with this tasks
  • Resource 2 can schedule ( STE, BRZ, ANT, BOH)
  • resource 1 can schedule (ANT, BOH)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant