Hi Nice members,

Hope you are doing good. I have a question. I have many points and I am constructing a network in AIMMS such that all points are connected to one main source point but not only in direct manner. These points can be directly connected or connected to each other as well to be connect to source point (Such that end point is connected to the points lying in middle of source and end points). My decision variable is binary which tells either any two points are connected or not. Objective is to minimize the cost which actually depends on creating the total shortest connected path which obeys the constraints. I want to know the “xyz” property of any point which actually depends on its connection to the previous node(distance from previous node it is connected to) plus the “xyz” property of previous node. How can I write it in an equation in AIMMS. I do not know the order in which the connections of nodes are going to be happen because it is the optimization problem.

It was a long essay, sorry for that, and if you find my explanation not understandable, please tell me how can I add any variable or parameter value using its index value as a variable and not numerical. For example, to achieve above task, I am trying something like: variableXYZ(i,j) with definition as abxyz(i) + xyz(i,j) (where abxyz is another variable just to store the xyz values to be used) but then I want to store every xyz(i,j) into abxyz(i) for next addition of i,j value, that is, the present value of xyz(i,j) becomes previous value of abxyz(i) in next addition. I am trying to do it by: abxyz(ord(i) = ord(j)) = xyz(i,j). That is, I want to store the xyz(i,j) value in abxyz such that it is stored at jth position in abxyz. But it says I cant index using nor numerical expression and using ord.

Any help?

Many Thanks in Advance!

**Best answer by mohansx**