Comments (2)
That's been possible since MiniZinc 1.6 actually ;-) You can write something like
array[int] of int: x = [ i | i in 1..10];
or even
array[int] of var int: x = [ y[i] | i in 1..10];
Cheers,
Guido
from libminizinc.
Ahh ... awesome! Thanks.
from libminizinc.
Related Issues (20)
- Bound evaluation error with -O2 optimisation but not -O1
- not all variables are assigned a value after solve HOT 1
- about where condition constraining the context HOT 3
- timeout not working for specific models HOT 1
- 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
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.