minizinc Questions
1
Solved
I have been playing around with a simple n-queens model in MiniZinc:
include "globals.mzn";
int: n_queens = 8;
array[1..n_queens] of var 1..n_queens: queens;
constraint alldifferent(quee...
Hainaut asked 27/6, 2020 at 17:13
1
Solved
I'm currently working on MiniZinc, and i have been running my models with the two solvers integrated in MiniZinc: Gecode and Chuffed. I've been running it in the IDE, but i am aware that it can be ...
Psalmist asked 30/4, 2020 at 23:58
1
Solved
I'm trying to understand MiniZincs geost constraint, which is described in the packing constraint section of the docs. I'm trying to implement 2D packing of rectangles with rotation: So I'd like to...
Autunite asked 10/3, 2020 at 13:35
2
Solved
I'm new to constraint programming. I imagine this is an easy problem but I can't wrap my head around it. Here's the problem:
We have multiple machines (N), each with a limited resource (let's say...
Senile asked 27/12, 2015 at 4:0
1
Solved
The MiniZinc constraint solver allows to express cardinality constraints very easily using the built-in sum() function:
% This predicate is true, iff 2 of the array
% elements are true
predicate e...
Remnant asked 16/11, 2017 at 13:18
1
Let's say I want to count the number of 80 element subsets of {1,2,..100} such that their sum is 3690.
I have the following model:
array[1..100] of var 0..1: b;
constraint (sum (i in 1..100) (i*...
Revoice asked 24/12, 2016 at 4:24
1
Solved
I have a problem that could be boiled down to finding a way of mapping a triangular matrix to a vector skipping the diagonal.
Basically I need to translate this C++ code using the Gecode libraries
...
1
Solved
To solve a set of Boolean equations, I am experimenting with the Constraint-Programming Solver MiniZinc using the following input:
% Solve system of Brent's equations modulo 2
% Matrix dimensions...
Moreta asked 13/3, 2014 at 22:20
2
Solved
Please can you help optimize this working MiniZinc code:
Task: There is a conference which has 6x time slots. There are 3 speakers attending the conference who are each available at certain slots....
Disconnect asked 23/12, 2013 at 16:6
2
Solved
I'm trying to adapt an already solved constraint programming problem by Hakan Kjellerstrand (@hakankless) and could do with some help please.
Original solved problem: There are 6 public speakers a...
Bainbrudge asked 17/12, 2013 at 10:28
1
© 2022 - 2025 — McMap. All rights reserved.