mzn-gecode --all-solutions model.mzn data.dzn
n = 4;
{ "n": 4 }
{"n": 4}
^
Error: syntax error, unexpected ':', expecting '}'
int: n;var 1..n: x;solve satisfy;
$ mzn-gecode --version
G12 MiniZinc evaluation driver, version 2.1.x
Copyright (C) 2011-2015 The University of Melbourne and NICTA
$ uname -a
Darwin neptune.local 17.2.0 Darwin Kernel Version 17.2.0: Fri Sep 29 18:27:05 PDT 2017; root:xnu-4570.20.62~3/RELEASE_X86_64 x86_64
--
You received this message because you are subscribed to the Google Groups "MiniZinc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to minizinc+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/minizinc/ee861246-5b6a-4ff0-9acd-90cba3c3a081%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
$ mzn-gecode --all-solutions json-input-test.mzn json-input-test.jsonminizinc: more than one model file specified.minizinc: use --help for more information.$ cat json-input-test.mzn
int: n;var 1..n: x;solve satisfy;
$ cat json-input-test.json{ "n": 4 }
mzn2fzn -Ggecode json-input-test.mzn json-input-test.jsonfzn-gecode -a json-input-test.fzn | solns2out json-input-test.oznAny improvement about JSON inputs since this thread (2017) or this workaround
Is the scheme to use JSON inputs?
Thanks
CC
--
You received this message because you are subscribed to the Google Groups "MiniZinc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to minizinc+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/minizinc/1cbd726e-672a-43ff-b2d7-984ddd466213%40googlegroups.com.
JSON file still has enums issue (as you noted) when using an array of strings in minizinc 3.2.1.But the same .mzn and .json work fine in the IDE. I infer that the IDE is simply spawning minizinc on the command line. However, I can't manually get it to work. I can get it to work with a dzn, but the equivalent json is a no go.
--
You received this message because you are subscribed to the Google Groups "MiniZinc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to minizinc+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/minizinc/dcdf3a1e-b804-4bfa-8cf6-5c24aa048273%40googlegroups.com.