These are the official rules for the MiniZinc Challenge 2021. Version 1.0.
These rules were last updated on 6 May 2021.
The MiniZinc Challenge 2021 will test solvers on problems written in MiniZinc 2.5.5.
A participant is a person or entity (usually a solver developer) who has notified the challenge organisers of their intent to enter one or more solvers in the challenge. This must be done prior to the final submission date in order for any solver entries to be considered.
An entry is a constraint solver that is installed in a Docker image that uses the MiniZinc
Challenge 2021 image (as provided by the organisers) as its base.
Constraint solvers that have several variants (for example that can alternatively use copying or trailing, or learning and non-learning solvers), may submit one entry per variant, although the organisers reserve the right to reject such variations if they are not sufficiently interesting, (e.g. multiple copies of the same solver with differing parameters).
Before the final submission date, participants must complete an online form (which will be made
available to participants before the initial submission round, or, as soon as possible after
notification of registration, whichever is later) for each prospective entry.
If this is done before the end of the initial submission round, feedback will be given on the entry with respect to rules conformance and performance. This does not affect the final scoring.
Participants may amend, or add additional entries freely until the final submission date.
The form will collect the following information:
Which competition CLASS(ES) the entry will compete in (see below for details).
A short (1-2 pages) description of the system. This
should include a list of all authors of the system and their present institutional affiliations.
It should also describe any algorithms or data structures that are not standardly used in such
System descriptions will be posted on the MiniZinc Challenge 2021 website.
Whether the entry may be used by 3rd parties (entities that are not the submitters nor the MiniZinc Challenge organisers) for research purposes.
The repository and tag name for the entry on Docker Hub.
The organisers will test each entry to ensure conformance with the rules, and if conformant, the entry will be run in the challenge, where it will be given a score according to the assessment procedure. If the entry does not conform with the rules, or is otherwise unable to run successfully, the challenge organisers will make a reasonable attempt to contact the participant and notify them so that the issues can be remedied. Nevertheless, the organisers reserve the right to reject an entry if its process proves overly difficult. If an entry requires modification after the final submission date in order to be run in the challenge, the entry may be run at the organisers’ discretion, and disqualified from being awarded prizes.
The results will be announced at CP2021. Participants are encouraged to attend CP2021, but are not required to in order to enter or win.
There will be at most five competition CLASSES depending on how many solvers are entered in each of them:
A challenge entry Docker image must use the MiniZinc Challenge 2021 image (as provided by the
organisers) as its base. The image must be set up such that the default minizinc solver is the
entry’s solver. The entry will be run by executing the
minizinc command using the default
solver for the image with options depending on the entry CLASS.
minizinc -i --output-mode dzn --output-objective <model.dzn> [data.dzn]
minizinc -i --output-mode dzn --output-objective -f <model.dzn> [data.dzn]
minizinc -i --output-mode dzn --output-objective -p 4 <model.dzn> [data.dzn]
-a(output all solutions/intermediate solutions), or
-i(output intermediate solutions).
One of these options (depending on which appears in the
stdFlags for the solver) will be given
for all optimisation problems (but not for satisfaction problems).
Solvers are free to simply always output intermediate solutions for optimisation problems, and a single solution for satisfaction problems (or whatever is supported by the solver). However, they must still accept one of these flags.
-f (ignore given search strategy).
Entries competing in the
FREE class are free to always ignore the search strategy, however they must still
-p <n>(use the specified number
nof threads and/or cores).
OPENclasses must accept the
MiniZinc solvers must support the following options
(by placing them in the solver configuration
stdFlags or in
extraFlags for long-form options):
add_to_output) in DZN format. This option must be supported by the solver.
_objectivefor optimisation problems. This option must be supported by the solver.
-f(ignore given search strategy)
FREEclass are free to always ignore the search strategy, however they must still accept the
-p <n>(use the specified number
nof threads and/or cores).
OPENclasses must accept the
Execution of solvers must not require running Docker with
More details about Docker images and how to create a Docker image with your solver is available here.
Output from FlatZinc solver entries must conform to the FlatZinc 2.5.5 specification.
MiniZinc solver entries must correctly implement the
--output-mode dzn and
options (that is, output must exactly match the format that MiniZinc itself would output given
For optimization problems, if the time limit is exceeded before the final solution is printed then the last complete approximate solution printed will be considered to be the solution for that entry. Note that is important that entries flush the output stream after printing each approximate solution so that timing information is accurate.
During the MiniZinc Challenge 2021 all instances of Docker images will run on Amazon EC2 M5 Instance from the Amazon Web Services with the following specification:
Except in the Parallel search, Open class, and local search solver using multiple cores, only a single core of one processor will be used for each entry.
Solver entries will be run with models that are compatible with
These models will adhere to the following restrictions:
Models may only use following types of variables:
var 1..10: x),
var opt 1..10: x),
var set of 1..10: x)
var bool: x),
var opt bool: x)
var MY_ENUM: x),
var opt MY_ENUM: x),
var set of MY_ENUM: x)
In particular, float variables are not permitted.
In order to facilitate local search entries, ideally a model should wrap symmetry breaking constraints in a predicate “symmetry_breaking_constraint” e.g.,
var 0..100: x :: add_to_output; var 0..100: y :: add_to_output; constraint x + y < 144; constraint symmetry_breaking_constraint(x <= y);
and redundant constraints in a predicate “redundant_constraint”, e.g.,
array[1..4] of var 0..20: start :: add_to_output; array[1..4] of int: duration = [3, 4, 6, 7]; array[1..4] of int: usage = [6, 3, 5, 3]; constraint cumulative(start, duration, usage, 10); constraint redundant_constraint(start + dur <= start \/ start + dur <= start);
Each solve item must be annotated with a search strategy, such that fixing all the variables appearing in the search strategy would allow a value propagation solver to check a solution. For example,
var 1..5: x :: add_to_output; var 1..5: y :: add_to_output; var 1..5: z :: add_to_output; constraint x <= y /\ y <= z; solve :: int_search([x, y, z], input_order, indomain_min, complete) satisfy;
is correct but not
solve :: int_search([x,z], input_order, indomain_min, complete) satisfy;
even though most FD solvers would know the second was satisfiable.
Note that for variable choices ties are broken by taking the earliest variable in the given array. Also note that the decision is reassessed at each choice.
var 1..5: x :: add_to_output; var 1..10: objective :: add_to_output; constraint x > 1 -> objective > 7; constraint x = 1 -> objective < 3; solve :: int_search([x, objective], first_fail, indomain_min, complete) maximize objective;
will first label
x = 1 and find maximum value
objective = 2 eventually on backtracking to
x = 1, then setting
x >= 2 in most FD solvers will have domains for
x :: 2..5
objective :: 8..10 and this time
objective will be selected as the next variable to
label. A full specification of the available choices is given in the
FlatZinc 2.5.5 specification.
All variables appearing in the search strategy (that is, variables where if all fixed, would
allow a propagation solver to check a solution) must be annotated with
var 1..10: x :: add_to_output; var int: y = x div 2; var 1..3: z :: add_to_output; constraint y * z = 2; solve :: int_search([x, z], input_order, indomain_min, complete) satisfy;
This ensures that we are able to check for the correctness of solutions generated by solvers by
using the options
--output-mode dzn and
--output-objective when running the instance, then
passing the result to a value propagation solver with the original instance.
The benchmarks for MiniZinc Challenge 2021 will be selected by the judges to try to examine some of the breadth of characteristics of FD solvers:
To obtain benchmarks of suitable difficulty we will select only such instances that can be solved by at least one of the participating solvers in a sensible time-frame. For the qualification rounds no such restriction applies.
In order to collect good benchmarks each participant is
strongly encouraged to submit one or two MiniZinc models, making use
of only the global constraints included in the MiniZinc 2.5.5 library, as well as some (preferably
1) instance files for each model. The instances should range from easy (about a minute) to hard
(about 15 minutes) if possible. In addition, the submitter should provide one “toy” instance
for testing purposes.
Note that the model must conform to the problem format restrictions above.
Submitted problem must be placed under the MIT licence, and each model and data file must begin with a comment which includes the licence, unless otherwise agreed to by the submitter and the challenge organisers.
There will be an initial submission round, which will provide the organizers with an opportunity to provide feedback on entries’ compatibility with the competition hardware, compliance with these rules, and any other matters that may arise. Submission in the initial round is not required in order to qualify for the final round, but it is strongly encouraged.
The challenge will require solvers to process 100 MiniZinc instances with a run-time limit of 20
minutes (process time) per instances.
NOTE that the MiniZinc to FlatZinc time will be included in this time.
Each solver s is run on problem p and the following information is collected.
There three different scoring procedure: complete, incomplete, and area. For prizes, the complete solver ranking is used.
The complete scoring procedure is based on the Borda count voting system. Each benchmark instance is treated like a voter who ranks the solvers. Each solver scores points equal to the number of solvers that they beat in the ranking (more or less). A solver s scores points on problem p by comparing its performance with each other solver s’ on problem p.
In the case on indistinguishable answers between s and s’, s scores timeUsed(p,s’) / (timeUsed(p,s’) + timeUsed(p,s)) , 0.5 if both finished in 0s. The exception is that if solved(p,s) is false, that is, s fails to find any solution or prove unsatisfiability for problem p it always scores 0 points (even if s’ also similarly fails).
The incomplete scoring procedure is the same as the complete one using the Borda count, but the proved optimal solution by a solver does not count.
The area scoring procedure computes the integral of a step function over the runtime horizon. Intuitively, a solver that quickly finds good solutions performs better than a solver that finds even better solutions, but much later in the solving stage. The step function f is defined as follows for a problem p and a solver s.
The scoring calculations will be done once for each run class: FD search, Free search, Parallel search, Open class, and Local search. Note that if too few solvers are entered in a class then the challenge won’t be run for that class.
The organizers may well run entries in the FD search class on a series of smaller problems to test that they indeed are following the given search strategy. These problems will not accrue points, but may disqualify an entry from the FD search class.
The solvers will be ranked on total points awarded. There will be prizes for the solvers with the highest scores in each of the run classes: FD search, Free search, Parallel search, Open class, and Local search. The organizers may also award prizes to the best solvers on a particular category of problems. Note that if too few solvers are entered in a class then the challenge won’t be run for that class and no prizes will be awarded for that class.
The organizers reserve the right to enter their own systems - or other systems of interest - to the competition, however these will not be eligible for prizes, but still will modify the scoring results. In addition, the organizers reserve the right not to run the challenge on classes with an insufficient number of solver entries.
Return to the MiniZinc Challenge 2021 home page.