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

Caused by: java.lang.IllegalStateException: #339

Closed
xhmywf opened this issue May 18, 2022 · 6 comments · Fixed by apache/incubator-kie-optaplanner#2019
Closed

Caused by: java.lang.IllegalStateException: #339

xhmywf opened this issue May 18, 2022 · 6 comments · Fixed by apache/incubator-kie-optaplanner#2019

Comments

@xhmywf
Copy link

xhmywf commented May 18, 2022

When I construct a flight crew scheduling problem ,it caused such problem:

Caused by: java.lang.IllegalStateException: The entity (AB071@2018-01-01-0) has a variable (employee) with value (Chad Q. Green) which has a sourceVariableName variable (flightAssignmentSet) with a value ([AB003@2018-01-01-0, AB019@2018-01-01-0, AB047@2018-01-01-0, AB070@2018-01-01-0]) which already contained the entity (AB071@2018-01-01-0).
Verify the consistency of your input problem for that bi-directional relationship.

How to handle this problem?Hope for your answer.

@yurloc
Copy link
Contributor

yurloc commented May 18, 2022

Please add steps to reproduce. Did you run the Flight Crew Scheduling example without any source code modifications? Which data set did you use?

@xhmywf
Copy link
Author

xhmywf commented May 19, 2022

Thank you for your reply so soon.I ran the Flight Crew Scheduling example without any source code modifications.But I use a data set constructed by myself,it is a day scheduling,I think it should work.This is my dataset below.It said there is something wrong with A007 LSS TO FU, something like bi-directional relationship,but it can't be LSS TO FU in real situation.How can I change my dataset or the source code?
Hope for your reply.
970flights-1days.xlsx

@xhmywf
Copy link
Author

xhmywf commented May 30, 2022

Caused by: java.lang.IllegalStateException: The entity (AB007@2018-01-01-0) has a variable (employee) with value (Chad Q. Green) which has a sourceVariableName variable (flightAssignmentSet) with a value ([AB001@2018-01-01-0, AB005@2018-01-01-0, AB008@2018-01-01-0, AB009@2018-01-01-0]) which already contained the entity (AB007@2018-01-01-0).
Verify the consistency of your input problem for that bi-directional relationship.

What does this mean?

@yurloc
Copy link
Contributor

yurloc commented Jun 1, 2022

Thanks for the report. I've finally found the time to analyze this. It's caused by a bug in the Flight Scheduling example code. I'll file a Jira ticket describing the bug and we'll fix it soon.

@yurloc
Copy link
Contributor

yurloc commented Jun 1, 2022

https://issues.redhat.com/browse/PLANNER-2738

@xhmywf
Copy link
Author

xhmywf commented Jun 6, 2022

Thank you very much.It helps me a lot.

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

Successfully merging a pull request may close this issue.

2 participants