Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend diagnosis: allow named ranges and two-dimensional arrays #15

Open
falknera opened this issue Dec 21, 2017 · 1 comment
Open

Extend diagnosis: allow named ranges and two-dimensional arrays #15

falknera opened this issue Dec 21, 2017 · 1 comment

Comments

@falknera
Copy link
Contributor

In the definition of variables, allow named int ranges and sets for value domains and in array ranges. Also allow to define and use two-dimensional arrays (in addition to one-dimensional).
Most probably, only the diagnosis component needs to be extended for this.
At the end it shall be possible, to diagnose MZN programs such as the following (extended sample.mzn):

% This is an explanatory example for minimal diagnoses.

% You may define constants and use them for domains of variables.
int: max = 4;
set of int: MaxRange = 1..max; %NEW

% Define only one variable in each row!
% Use only types int, min..max, enum and bool!
var 1..max: x1;
array[MaxRange, MaxRange] of var MaxRange: n; %NEW 

...
@falknera falknera changed the title Extend diagnosis: Allow named ranges and two-dimensional arrays Extend diagnosis: allow named ranges and two-dimensional arrays Dec 21, 2017
@rtaupe
Copy link
Collaborator

rtaupe commented Dec 21, 2017

It is true that the core component already supports integer ranges (RangeExpression) and multi-dimensional arrays (Array, IntegerArray, ...).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants