Re: [Help-glpk] Gnu Mathprog: Projection operator?

2010-01-10 Thread Noli Sicad
Jörg, Xypron has good example how to implement these fake field, multi dimension set, and setof() Andrew mentioned. http://www.mail-archive.com/help-glpk@gnu.org/msg03506.html >From Xypron example ~ # CROP_ID CROPTYPE Period Ini_Age set S dimen 4; # Period set P := setof{(i,

Re: [Help-glpk] Gnu Mathprog: Projection operator?

2010-01-10 Thread Andrew Makhorin
> In my optimization model, I read data from several .csv-files. This > looks as follows: >   > table loaddata IN "CSV" "Exp.csv":L<-[LType, App,Time] > table costdata IN "CSV" "disc_data.csv":C<-[Provider,Function, Type] > table ressourcedata IN "CSV" "ress_data.csv":R<-[Provider, Server, Size] >

[Help-glpk] Gnu Mathprog: Projection operator?

2010-01-10 Thread Jörg Strebel
Hello! In my optimization model, I read data from several .csv-files. This looks as follows: table loaddata IN "CSV" "Exp.csv":L<-[LType, App,Time] table costdata IN "CSV" "disc_data.csv":C<-[Provider,Function, Type] table ressourcedata IN "CSV" "ress_data.csv":R<-[Provider, Server, Siz