Does Mosel support data structures that link non-elementary types to other types, such as a whole array to a single real value? At the moment I have an approach that uses a sorted list with entries consisting of arrays and corresponding identifying numbers. Those identifying numbers are used as part of the indexes of arrays that hold the data in which I am interested. This works fine, but I have to look within the sorted list to retrieve the identifying numbers of an array (or determine that an entry for that array does not exist). With a binary search, this isn't too much of a problem with the sizes of my current datasets (and binary searches of course scale well), but a model structure using a sparse array of arrays would be easier for other reasons besides searching time. I attach below some code that fails when attempting to populate A, an array whose index is a set of arrays.
Any help or suggestions would be greatly appreciated.
model "Test structure"
B=array(A) of integer
D:set of B
E:array(D) of boolean
! Without the following line, this runs and the entry E(C) takes the value of false, the default.
E(C):=true ! Generates the following error (151): Incompatible type for subscript 1 of 'E'.