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

Option to pass fzn via stdin instead of temp file #317

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

kletzi
Copy link

@kletzi kletzi commented Sep 20, 2019

Adds a flag (--use-stdin) to the MZN-FZN plugin to pass the fzn to a solver directly via stdin instead of writing to a temp file and passing the name of the file

@guidotack
Copy link
Member

Thanks for the contribution, this is something I'd like to incorporate. At the moment, it looks like the solver can either accept stdin or a file, right? I would prefer it if we could introduce a standard solver command line flag --use-stdin so that solvers know what to expect. That way, a solver can signal in their configuration file that they support the option, and the MiniZinc driver can automatically choose to send the FlatZinc via stdin. And please change the MiniZinc command line option to --pipe-flatzinc, because --use-stdin could be confused as meaning the compiler input rather than output. The driver could then automatically activate --pipe-flatzinc whenever the solver signals support for the --use-stdin option.

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 this pull request may close these issues.

2 participants