Updates the screenshot of the readme
This commit is contained in:
parent
2bd4158e1d
commit
25f263ba05
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
This package adds syntax highlighting and optional linting for the MiniZinc modeling language (.mzn and .dzn files). The package is based on the [similar package for Sublime](https://github.com/astenmark/sublime-mzn).
|
This package adds syntax highlighting and optional linting for the MiniZinc modeling language (.mzn and .dzn files). The package is based on the [similar package for Sublime](https://github.com/astenmark/sublime-mzn).
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## About MiniZinc
|
## About MiniZinc
|
||||||
|
|
||||||
|
21
sample.mzn
Normal file
21
sample.mzn
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
% Model of the queens problem
|
||||||
|
include "globals.mzn";
|
||||||
|
|
||||||
|
% parameters
|
||||||
|
int: n=;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
% variables
|
||||||
|
array[1..n] of var 1..n: R;
|
||||||
|
|
||||||
|
% constraints
|
||||||
|
constraint all_different(R);
|
||||||
|
constraint all_different([R[i] + i | i in 1..n]);
|
||||||
|
constraint all_different([R[i] + i | i in 1..n]);
|
||||||
|
|
||||||
|
% objective
|
||||||
|
solve satisfy;
|
||||||
|
|
||||||
|
% output
|
||||||
|
output [show(R)];
|
BIN
sample.png
Normal file
BIN
sample.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 68 KiB |
BIN
screen.png
BIN
screen.png
Binary file not shown.
Before Width: | Height: | Size: 60 KiB |
Reference in New Issue
Block a user