Dear Zheng, your mail had to be forwarded manually be cause you are not registered for the GLPK help list. See https://lists.gnu.org/mailman/listinfo/help-glpk
With statement table tab_movementproportion IN "CSV" "movement_proportion_back.csv": Q<-[origin_zone,destination_zone,from_node,intermeadi_node,to_node],pls~movement_proportion; the following records are read: 4023,20,4136,4022,9715,0 4023,20,4136,4022,9715,1 Both contain identical field values (4023,20,4136,4022,9715) for set Q and hence would create duplicates in Q. Best regards Heinrich Schuchardt http://www.xypron.de Heinrich Schuchardt http://www.xypron.de > -------- Forwarded Message -------- > Subject: need help about gusek > Date: Thu, 3 Apr 2014 17:38:17 +0800 > > > > Hello,Andrew: > > My name is Zheng Zhipeng,I am a student from China,these days I am > using the GUSEk program. > > There are some problems I don't know to handle.First,when I use the > CSV file to store the data,I defined the sets and parameters,but when I > run GUSEK,it told me that :duplicate tuple (4023,20,4136,4022,9715) > detected.in fact ,there is only one (4023,20,4136,4022,9715) in the CSV > file ,so I have to delete it ,it can run successfully,but sometimes I > need this data . > > Second ,if I want to solve the least-absolute-deviation problem using > gusek,how should I convert the objective function.My objective function > is following: > > sum{a in A,c in C}|(sum{i in I,j in J} > pl[i,j,a,c]*d[i,j]-col[a,c])| > > +sum{a in A,b in B,c in C}|(sum{i in I,j in J} > pls[i,j,a,b,c]*d[i,j]-cot[a,b,c])| > > +sum{i in I,j in J}|(d[i,j]-dt[i,j])|. > > > > There is an attachment which is my GUSEK code ,if you can help me check > the error I mentioned previous,it will be a great help for me.Thank you > very much! > > > > Your Sincerely > > > _______________________________________________ > Help-glpk mailing list > [email protected] > https://lists.gnu.org/mailman/listinfo/help-glpk > _______________________________________________ Help-glpk mailing list [email protected] https://lists.gnu.org/mailman/listinfo/help-glpk
