Thilo Bohr schrieb:
Thilo Bohr schrieb:

Forget my former postings, my example was quite confusing because there where some badly mixed up indexes in there.

So I begin again.

Given are the following Parameter:

param x {b in B, a in A, c in C};
param y {b in B, a in A, c in C};
param z {b in B, a in A, c in C} :
  (x[b, a, c] + y[b, a, c]);
param result {a in A, b in B, c in C} : z[a, b, c];


As you can see, the result has the Indexes a and b switched.

Is there a construct that allows me define the result Parameter without the need of the z Parameter?

I.e. is it possible to switch the indexes a und b "inline" (i.e. within the expression)?

The following does not work:

param result {a in A, b in B, c in C} :
  (x[b, a, c] + y[b, a, c])[a, b, c];


Kind regards,
Thilo



_______________________________________________
Help-glpk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-glpk

Reply via email to