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

Support for data (dzn) files #12

Open
rtaupe opened this issue Dec 1, 2017 · 1 comment
Open

Support for data (dzn) files #12

rtaupe opened this issue Dec 1, 2017 · 1 comment

Comments

@rtaupe
Copy link
Collaborator

rtaupe commented Dec 1, 2017

It shall be possible to specify values for non-instantiated constants in separate dzn files and pass them to the solver via an Executor.

@rtaupe
Copy link
Collaborator Author

rtaupe commented Aug 4, 2023

On a related note, the diagnosis component currently also does not support models including parameters without values.

For example, if the model includes the statement par bool: somepar;, JMiniZinc will fail with the following exception:

java.lang.NullPointerException: Cannot invoke "String.equals(Object)" because "str" is null
	at at.siemens.ct.jmz.mznparser.MiniZincElementFactory.isBoolean(MiniZincElementFactory.java:156)
	at at.siemens.ct.jmz.mznparser.MiniZincElementFactory.getElementFromLine(MiniZincElementFactory.java:89)
	at at.siemens.ct.jmz.mznparser.MiniZincCP.parseMZN(MiniZincCP.java:51)
	at at.siemens.ct.jmz.mznparser.MiniZincCP.<init>(MiniZincCP.java:34)
	at at.siemens.ct.jmz.ui.VariableDialog.<init>(VariableDialog.java:62)
	at at.siemens.ct.jmz.ui.VariableDialog.main(VariableDialog.java:99)

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

1 participant