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

add additional meta information about dependent activities in core.problem.misc.JobInsertionContext #127

Closed
jsprit opened this issue Aug 25, 2014 · 2 comments

Comments

@jsprit
Copy link
Contributor

jsprit commented Aug 25, 2014

for more information see https://groups.google.com/forum/#!topic/jsprit-mailing-list/pSBdEgRLfIU in the mailing list

jsprit pushed a commit that referenced this issue Sep 4, 2014
jsprit pushed a commit that referenced this issue Sep 4, 2014
jsprit pushed a commit that referenced this issue Sep 4, 2014
@jsprit
Copy link
Contributor Author

jsprit commented Sep 4, 2014

Additional information can be retrieved from jobInsertionContext like this:

ActivityContext pickupContext = jobInsertionContext.getRelatedActivityContext(); //returns null if there is no related activity
int pickupInsertionIndex = pickupContext.getInsertionIndex();
double pickupArrivalTime = pickupContext.getArrivalTime();
double pickupEndTime = pickupContext.getEndTime();

@jsprit jsprit closed this as completed Sep 4, 2014
@jsprit
Copy link
Contributor Author

jsprit commented Sep 4, 2014

This by the way gives more flexibility when defining constraints. It allows for example LIFO and FIFO constraints etc..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

0 participants