Search found 8 matches

by qli091
3 years ago
Forum: Tools
Topic: Load zero values to GAMS from GDX File
Replies: 6
Views: 6444

Re: Load zero values to GAMS from GDX File

Thanks Fred, I know where the problem is. It is the set. VINTCD0(c,i,j,s) requires the data to be arranged in Excel such that c,i,j discipline row dimension and s column dimension. I originally put i, j in row dimension and s,c in column dimension. And this cause a problem. I don't know how to post ...
by qli091
3 years ago
Forum: Tools
Topic: Load zero values to GAMS from GDX File
Replies: 6
Views: 6444

Re: Load zero values to GAMS from GDX File

Thanks Renger,

But displaying zero values is wrong. The parameters are non-zero. As you can see from the Excel file, VINTCD0 contains non-zero values for most cases. I don't know why GAMS load all zero values to VINTCD0.

Cheers
Qiaomin
by qli091
3 years ago
Forum: Tools
Topic: Load zero values to GAMS from GDX File
Replies: 6
Views: 6444

Re: Load zero values to GAMS from GDX File

Hi Qiaomin
Please submit your code and other necessary files as your question contains not enough information to answer it.

Cheers
Renger
[/quote]
by qli091
3 years ago
Forum: Tools
Topic: Load zero values to GAMS from GDX File
Replies: 6
Views: 6444

Load zero values to GAMS from GDX File

Hi, I use GDX to load data to parameters. Some parameters display zero values, such as VINTCD0 (intermediate inputs). The FRICTION.gdx file shows all correct values for VINTCD0. Is there any problme with data loading? Why no value is loaded to these parameters? $call gdxxrw FRICTION.xlsx @FRICTION.t...
by qli091
5 years ago
Forum: Modeling
Topic: Two queries
Replies: 1
Views: 1930

Two queries

Hi GAMS friends, I am running a programme with a loop on 25 years. I want the programme to stop whenever an infeasible solution is found. That will save time from running over all the 25 years. I think $exit or $stop will help. But I don't know how to add the condition. Please help. Another problem ...
by qli091
5 years ago
Forum: Modeling
Topic: Shock in Loop cause domain errors
Replies: 3
Views: 3175

Re: Shock in Loop cause domain errors

Hi Renger, I am in a process of runing a dynamic GAMS program. Problems come and go whenever I change something like bounds, scaling, or moving forward for the next year. Howevery, the problem "Domain errors in nonlinear functions" appears very frequently. I don't quite understand what doe...
by qli091
5 years ago
Forum: Modeling
Topic: How to set good bounds?
Replies: 0
Views: 1681

How to set good bounds?

Dear GAMS friends, I use CONOPT to solve nonlinear economic models. I found bounds are very important for the model to be solved. If a variable can get a good bound, the model can be solved, and if cant, the model becomes infeasible. The CONOPT Solver manual also suggests to set bounds, but also poi...
by qli091
5 years ago
Forum: Modeling
Topic: Shock in Loop cause domain errors
Replies: 3
Views: 3175

Shock in Loop cause domain errors

Dear GAMS friends, My model runs smoothly before I give a shock from the 4th year. The error information is "** Domain error(s) in nonlinear functions. Check bounds on variables." My shock is given as follows: SET YR YEAR /2012*2045/; LOOP(YR$(ORD(YR) LE 4), IF(ORD(YR)=4, TM('ANZ','KR',S)=...