OZN-Output: unfortunately MiniZinc "loses" identifiers defined in enumerations

13 views
Skip to first unread message

Armin Wolf

unread,
Sep 10, 2025, 9:22:24 AM (9 days ago) Sep 10
to MiniZinc
Dear all,

I have implemented a lock scheduling application in MiniZinc where I am generating
JSON output as well as TikZ/LaTeX output of the generated lock schedules.
When I am using an "integrated" MiniZinc solver everything is fine and I receive
a graphical output (after processing with LaTeX) containing all identifiers, i.e ship 
names and locations which are defined in enumerations in the input:

Screenshot 2025-09-10 150656.png  


However, if I am generating a FlatZinc program and an OZN file and using a FlatZinc
solution and the OZN file, the generation of the JSON output works well (not containing
the identifers/names in the enumeration of the input) but in the graphical output the
names are missing - they are replaced by numbers:
Screenshot 2025-09-10 150758.png


Does anybody has an idea why the identifiers are lost? -- Here is the interesting part of
the input data (in JSON):

"locations" : [{"e" : "vor"}, {"e" : "nach"}],
"segments" : [{"e" : "vor_Flaesheim"}, {"e" : "nach_Flaesheim"}],
...
"locks" :[{"e" : "Flaesheim"}],
...
"ships" : [ {"e" : "Symphony"}, {"e" : "Meandro"} ],

Many thanks in advance

Armin

Reply all
Reply to author
Forward
0 new messages