Search found 4 matches

by qli091
9 months ago
Forum: Modeling
Topic: Two queries
Replies: 1
Views: 283

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
11 months ago
Forum: Modeling
Topic: Shock in Loop cause domain errors
Replies: 3
Views: 554

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 does this mea...
by qli091
11 months ago
Forum: Modeling
Topic: How to set good bounds?
Replies: 0
Views: 340

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
1 year ago
Forum: Modeling
Topic: Shock in Loop cause domain errors
Replies: 3
Views: 554

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)=0.4*TM('AN...