## Search found 5 matches

1 year ago
Forum: Syntax
Topic: Bad dimension error when using gdxxrw
Replies: 3
Views: 914

### Re: Bad dimension error when using gdxxrw

Hi Renger, Thank you for this prompt reply. I did define AC previously, as well as ACP as an alias for AC. Furthermore, I can import all my data correctly if I enter it manually in the following way: TABLE ZIMSAM2(AC,ACP) 8-SECTOR MICROSAM FOR ZIMBABWE (\$Zim mill 1991) AAGEX AAGFO AAGOT AMINE ANAFO ...
1 year ago
Forum: Syntax
Topic: Bad dimension error when using gdxxrw
Replies: 3
Views: 914

### Bad dimension error when using gdxxrw

Hi everyone, I am having a "Symbol: ZIMSAM2 Bad dimension: 1" error when importing a parameter into GAMS from Excel. See the code below: PARAMETER ZIMSAM2(AC, ACP) \$call gdxxrw input="C:\Users\zimb_pan.xlsx" output="C:\Users\zimb_pan_sam.gdx" par=ZIMSAM2 rng=Sheet1!A1:AI35 rdim=1 cdim=1; AC refers t...
1 year ago
Forum: Syntax
Topic: 1/0 notation
Replies: 2
Views: 659

### Re: 1/0 notation

Thank you Michael!
1 year ago
Forum: Syntax
Topic: 1/0 notation
Replies: 2
Views: 659

### 1/0 notation

Hi all, I was wondering if someone had come across the 1/0 notation and what it meant. Here is an example: PARAMETER SAMGAPCUTOFF max acceptable abs gap bt model SAM row and col totals ERRSAMBAL(AC) if UNDF -- the absolute imbalance for AC exceeds cutoff ; SAMGAPCUTOFF = 1.0e-5; ERRSAMBAL(AC)\$(ABS(S...
1 year ago
Forum: Modeling
Topic: Print intermediate values when solving a model
Replies: 1
Views: 506

### Print intermediate values when solving a model

Hi all, I was wondering if there is a form of "print statement" used in GAMS to print intermediate values of a variable when the solve statement is trying to reach equilibrium. I have wrong final values for many variables in my models and I wanted to check what GAMS was doing when solving the model....