No, GAMS does not allow duplicate records. If you post the spreadsheet and what you want to read into GAMS then we might be able to help better.
-Michael
Search found 1038 matches
- 2 years ago
- Forum: Syntax
- Topic: Error 492 Symbol not in GDX
- Replies: 8
- Views: 8622
- 2 years ago
- Forum: Syntax
- Topic: Error 492 Symbol not in GDX
- Replies: 8
- Views: 8622
Re: Error 492 Symbol not in GDX
Hi, Study the documentation of gdxxrw and how to use a gdxxrw option/parameteri file. You seem to have destroyed your xlsx workbook with your command sequence. What you probably want to do is: $onecho> Data-x-y-z.txt input = Data-x-y-z.xlsx set=t rng=Tabelle5!E2:E201 cdim=0 rdim=1 par=x rng=Tabelle5...
- 2 years ago
- Forum: Syntax
- Topic: How to check infeasible results in gdx file?
- Replies: 2
- Views: 2283
Re: How to check infeasible results in gdx file?
Sure, the model attribute "modStat" (https://www.gams.com/latest/docs/UG_GamsCall.html#GAMSAOmodelstat) gives you programmatic access to the model status. You can save the model status in a parameter: "mstat(day) = mymodel.modstat;" and save this to GDX. Be aware that there are m...
- 2 years ago
- Forum: Modeling
- Topic: MIP model does not return any solution and any error message-CPLEX
- Replies: 1
- Views: 1082
Re: MIP model does not return any solution and any error message-CPLEX
I suggest that you run recent versions of the software. Cplex still solves the root LP and stops after a little more than an hour. If your "super computer" uses some kind of batch submission system I guess the system has imposed some resource limits (time and/or memory) and kills the job a...
- 2 years ago
- Forum: Modeling
- Topic: Sequantial solve statements
- Replies: 2
- Views: 1429
Re: Sequantial solve statements
The typical solution for this in GAMS is to write you the model equations with a dynamic subset of the domain sets: set i /AF,A,B,C/, ii(i) set j /A,B,C,EF/m jj(j); Variable F(i,j) OF .. FT =e= sum((ii,jj),F(ii,jj)); model m /OF/; loop((i,j), option clear=ii, clear=jj; ii(i) = yes; jj(j) = yes; solv...
- 2 years ago
- Forum: Modeling
- Topic: Error $141 - Can't figure out what is wrong
- Replies: 1
- Views: 1263
Re: Error $141 - Can't figure out what is wrong
Hi, please follow thew forum rules. Don't just paste program in your text. At least use a code section or better attach the file. All the table formatting is broken if you just paste in the text! The error is pretty clear 254 Pw.up(bus,t)=DataWDL(t,'w')*Wcap(bus)/Sbase; **** $141 **** 141 Symbol dec...
- 2 years ago
- Forum: Modeling
- Topic: Testing a multi-objective optimization algorithm with uf1 problem
- Replies: 1
- Views: 1113
Re: Testing a multi-objective optimization algorithm with uf1 problem
If this is your UF1 image.png then obviously with x1 in [0,1] and xj in [-1,1] there is no chance in getting a negative value for f1 or f2. If you have negative values you probably made a mistake. Did you check the model status (for feasible solution)? It would help if you post some source. -Michael
- 2 years ago
- Forum: Solvers
- Topic: IPOPT EXIT: Solved To Acceptable Level.
- Replies: 3
- Views: 6885
Re: IPOPT EXIT: Solved To Acceptable Level.
The GAMS/IPOPT link has to map any of the IPOPT internal status (e.g. Solved To Acceptable Level ) to a combination given in the list of GAMS' model and solve status, GAMS support many solvers so all solvers need to map into the GAMS status world. Now see how the GAMS/IPOPT link maps Solved To Accep...
- 2 years ago
- Forum: Solvers
- Topic: IPOPT scaling
- Replies: 1
- Views: 2633
Re: IPOPT scaling
You should find out why IPOPT can't evaluate the input point. Some solvers don't like gradients that are too large. Usually GAMS already complains if you have a truly bad input point that can't be evaluated (at least for the function evaluation and to some extent for the gradient). IPOPT works also ...
- 2 years ago
- Forum: Solvers
- Topic: IPOPT EXIT: Solved To Acceptable Level.
- Replies: 3
- Views: 6885
Re: IPOPT EXIT: Solved To Acceptable Level.
The GAMS/IPOPT link maps this status to some combination of model and solve status, see https://www.gams.com/38/docs/UG_GamsCall.html#GAMSAOmodelstat and https://www.gams.com/38/docs/UG_GamsCall.html#GAMSAOsolvestat. You should check if this combination is any different than with the other solves an...