There are a variety of issues with your code snippet, including the
fact that A[i] is invalid syntax and in the for statement you are
using elements of A to index Value_of_A, which is not defined with A
as its index set. Try the following:
set A := {3, 2, 54, 7, 20, 1} ordered;
param Value_of_A {1 .. card(A)};
for {i in 1 .. card(A)} { let Value_of_A[i] := member(i, A) };
display Value_of_A;
Note that you can (and will need to) declare A to be ordered in order
to access members by position. In the declaration, "ordered" means
"in the order written", not "in the canonical order of the integers".
HTH,
Paul