Search found 5 matches
- 4 years ago
- Forum: Modeling
- Topic: MPSGE on a Mac: model not reading in a loop structure
- Replies: 2
- Views: 2155
Re: MPSGE on a Mac: model not reading in a loop structure
I got this sorted out. After reading through the <model>.GEN file, I realized that it tracks how many times the model has been used in an $INCLUDE statement in <model>.INTEGER1. While I do not entirely understand the purpose, it seems to make sure the number of SOLVE and $INCLUDE statements align, l...
- 4 years ago
- Forum: Modeling
- Topic: MPSGE on a Mac: model not reading in a loop structure
- Replies: 2
- Views: 2155
MPSGE on a Mac: model not reading in a loop structure
Hi there, I have an MPSGE model of an economy that I can run iteratively on a Windows machine with no issue. My code basically puts together the model, solves for the benchmark equilibrium as usual, and then generates and solves for the equilibria over a set of counterfactuals via a looping structur...
- 4 years ago
- Forum: Syntax
- Topic: Beginner Question: Using csv as an input
- Replies: 17
- Views: 12952
Re: Beginner Question: Using csv as an input
By the way, thanks for clearing up the (partial) availability of GDX tools.
Also, I hunted down the issue: it turns out to be UTF-8 w/ BOM vs. UTF-8, w/ no problems under UTF-8.
Also, I hunted down the issue: it turns out to be UTF-8 w/ BOM vs. UTF-8, w/ no problems under UTF-8.
- 4 years ago
- Forum: Syntax
- Topic: Beginner Question: Using csv as an input
- Replies: 17
- Views: 12952
Re: Beginner Question: Using csv as an input
<t>Yes, that's what I eventually determined: something strange seems to happen when excel exports to .csv . After making absolutely sure everything else lined up, I simply copied the text and pasted it into a new file using my text editor. Lo and behold, GAMS could read the new file with no problem....
- 4 years ago
- Forum: Syntax
- Topic: Beginner Question: Using csv as an input
- Replies: 17
- Views: 12952
Re: Beginner Question: Using csv as an input
Hi all, I am also a GAMS n00b and have the same type of question/same persistent issue. I have tried a variety of fixes to no avail: I must be missing something very basic. All of this would probably be easier if I had access to GDX, but I'm on a Mac, so... Basically, I am trying to import a .csv fi...