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

Invalid objectiveBound statistic #1

Open
Dekker1 opened this issue Mar 3, 2025 · 0 comments
Open

Invalid objectiveBound statistic #1

Dekker1 opened this issue Mar 3, 2025 · 0 comments

Comments

@Dekker1
Copy link

Dekker1 commented Mar 3, 2025

I found that the FlatZinc interface will often output objectiveBound=inf as a statistic. However, this is parsed incorrectly by the MiniZinc driver/compiler, which will interpret this as an identifier inf that doesn't exist.

Currently, this will make MiniZinc output invalid output, but in the future this will likely produce a warning and the statistic will be ignored.

This should also be addressed in the solver interface. The easiest solution would be for the output to be valid DZN: objectiveBound=infinity (infinity and -infinity are the designated constants in the MiniZinc/DZN language). Otherwise, the interface could also just choose to not output this statistic when the bound is infinity, since there is no bound on the objective.

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