[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-glpk] MathProg and Ampl
From: |
Andrew Makhorin |
Subject: |
Re: [Help-glpk] MathProg and Ampl |
Date: |
Wed, 30 Nov 2005 15:30:07 +0300 |
> 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;