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

Missing comprehension elements' indetifier #450

Open
ndangtt opened this issue Sep 12, 2019 · 0 comments
Open

Missing comprehension elements' indetifier #450

ndangtt opened this issue Sep 12, 2019 · 0 comments

Comments

@ndangtt
Copy link

ndangtt commented Sep 12, 2019

example.zip

When I run conjure solve for the attached model and Essence param file, I get the following error messages:

Error:
    Savile Row stdout: ERROR: Identifier not defined: instance

    Savile Row stderr: ERROR: Failed type checking after substituting in lettings.

    Savile Row exit-code: 1

The reason seems to be that in the generated .eprime model, some of the list comprehension identifiers instance are missing. The corresponding lines in the Essence model are lines 46-47:

   total_solving_time = sum([sum([schedule(i)[time] | i:int(1..n_streamliners), i<instanceFirstSolve]) + solving_time((schedule(instanceFirstSolve)[streamliner],instance)) | instance : instances,
    letting instanceFirstSolve be min([index | (index,st) <- schedule, solving_time((st[streamliner],instance))<=st[time]])])
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