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

Bug when using .diff together with blocking a ressource #96

Open
flow-ryan opened this issue Jun 18, 2020 · 0 comments
Open

Bug when using .diff together with blocking a ressource #96

flow-ryan opened this issue Jun 18, 2020 · 0 comments

Comments

@flow-ryan
Copy link

Following Scenario:

horizon = 10
S = Scenario('test',horizon=horizon)
R = S.Resource('R')

T = S.Tasks(name="T", length=1, num=2, custom_state=1, delay_cost=1)

S+= R['custom_state'].diff <= 1
S+= R[0:4] <= 0

T += R

The resource is blocked for the first timesteps and should schedule the following two tasks for periods 4, 5.

However, the tasks are being scheduled for the end of the horizon, as seen in the screenshot (determined by changing the horizon).

image

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