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

Task's precedence #82

Open
Mmorgese opened this issue Apr 3, 2019 · 0 comments
Open

Task's precedence #82

Mmorgese opened this issue Apr 3, 2019 · 0 comments

Comments

@Mmorgese
Copy link

Mmorgese commented Apr 3, 2019

Before starting thanks for your work on pyschedule!

The problem is more complex then this, but it can be reduced to this simple scenario.
Running the code:
S = Scenario('S',horizon=1)
`
Ar=S.Resource('Ar')

At=S.Task('At', length=2, schedule_cost=-100, delay_cost=1)

Bt=S.Task('Bt', length=2, schedule_cost=-50, delay_cost=1)

At+=Ar

Bt+=Ar

S+= At<=Bt`

the solver choose to schedule Bt instead of At.
How can I make it schedule At instead of Bt?
The intention is use the schedule_cost as a priority in the choice of what tasks schedule if there is no enough time to make them all, but the case aforementioned brings to inconsistent schedule (in my scenario).

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