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

Resources cost #55

Open
mahmoudaljan opened this issue Jun 6, 2018 · 5 comments
Open

Resources cost #55

mahmoudaljan opened this issue Jun 6, 2018 · 5 comments

Comments

@mahmoudaljan
Copy link

Is there a way to set a cost per unit for resources such as the solver will minimize the execution cost of a schedule?

@timnon
Copy link
Owner

timnon commented Jun 7, 2018

No, but it would be relatively easy to add. There is some schedule_cost for each task which gives some cost/reward in case a task is scheduled. I was thinking about doing sth similar for resources such that there is some cost a resource is used. But you want a cost per time slot used on a resource?

@mahmoudaljan
Copy link
Author

@timnon Yes, the goal is to set a cost per time unit per resource ( employee A costs 15$ per hour, employee B costs 30$ per hour) and optimize for the best overall cost of execution as opposed to makespan

@mahmoudaljan
Copy link
Author

@timnon it seems the schedule_cost feature for each task approach doesnt help. Any lead on how to implement such a requirement ?

@timnon
Copy link
Owner

timnon commented Jul 7, 2018

Hi, just added an option cost_per_period to any resource, e.g. R = S.Resource('R',cost_per_period=15)

Please download the newest version 0.2.24 and test

@perswedenborg
Copy link

It would be great resources also could have different costs for different time periods, e.g. employee “A” costs more if a task is assigned to him during a weekend/evening vs normal work hours.

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

3 participants