Comments (2)
I suspect that this is an issue with the internal Gecode interface that occurs when part of the input of an all_different
constraint is already fixed.
The version of Gecode packaged with the MiniZinc bundle does not have the same problem.
from libminizinc.
Interestingly, the order of constraints in the model seems to matter:
include "globals.mzn";
array [0..2] of var 0..2: a;
constraint alldifferent([a[0],a[1],a[2]]);
constraint a[0]=1;
constraint a[1]=1;
solve satisfy;
Here the js version returns unsat.
from libminizinc.
Related Issues (20)
- not all variables are assigned a value after solve HOT 1
- about where condition constraining the context HOT 3
- minizinc 2.8.3 Memory violation detected (segmentation fault) HOT 1
- 2d array slicing in comprehension fails, array of arrays not supported HOT 4
- Crash with huge number of array concats. HOT 3
- empty set as default value for optional set fails HOT 2
- Invalid solution found when solving with Gecode or Ortools. HOT 1
- Subcircuit of length 1? HOT 2
- MiniZinc 2.8.3: error passing .fzn to minizinc/gecode HOT 2
- Inconsistent reification of stricty_increasing
- MiniZinc 2.8.4: FindMUS "multiple errors:" HOT 2
- Difference in handling of JSON annotated sections in 2.8.* using --json-stream HOT 1
- Gecode CANNOT solve official "Real Number Solving" example
- Apparent mishandling of nested `opt` declarations in the JSON interface
- JSON input bug, record type-inst error with enumerated type HOT 4
- Partial assignment of enum var results in type error HOT 1
- Can't use interger literal -9223372036854775808 HOT 4
- Quoted identifiers are missing quotes in output dzn
- Missing option '-f/--free-search' in flags of command line help
- Linearized model leads to UNSAT or unfeasible solutions given the bound HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libminizinc.