> I'm trying to translate an Ampl model file in Mathprog, and don't know
> how to write the definition of the set "setC" that is an union of
> indexed sets.
> The ampl formulation is below:
> ##
> set setA;
> set setB{setA};
> set setC := union {a in setA} setB[a];
> ##
> glpk returns "invalid use of reserved keyword union"...

set setA;
set setB{setA};
set setC := setof {a in setA, b in setB[a]} b;




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

Reply via email to