Search found 36 matches
- 1 month ago
- Forum: Syntax
- Topic: Error 2, Error 149, Error 243
- Replies: 4
- Views: 4684
Re: Error 2, Error 149, Error 243
Cher Aziz, Je n'ai pas solutionné ton problème. J'ai juste fait en sorte que ton code fonctionne. Les valeurs maximales que j'ai affectées à ces variables (en utilisant l'extension.Up) permettent juste que certaines valeurs croissent infiniment et empêchent GAMS de trouver une solution à ton problèm...
- 1 month ago
- Forum: Syntax
- Topic: Error 2, Error 149, Error 243
- Replies: 4
- Views: 4684
Re: Error 2, Error 149, Error 243
Hello Aziz,
You might be a French speaker.
J'ai crois que tes équations ont un sérieux problèmes. Je ne sais pas comment tu les as obtenues. J'ai néanmoins fourni quelques pistes qui aident à corriger ton problème.
Cordialement,
Rodrigue
You might be a French speaker.
J'ai crois que tes équations ont un sérieux problèmes. Je ne sais pas comment tu les as obtenues. J'ai néanmoins fourni quelques pistes qui aident à corriger ton problème.
Cordialement,
Rodrigue
- 1 month ago
- Forum: Solvers
- Topic: CNS Solver: Pivot Too Small
- Replies: 1
- Views: 3490
Re: CNS Solver: Pivot Too Small
You had better send the code as attached file.
Note that many equations do not solve either because they are not correctly written or the initialisation of variables is wrong.
Rodrigue,
Cheers
Note that many equations do not solve either because they are not correctly written or the initialisation of variables is wrong.
Rodrigue,
Cheers
- 2 months ago
- Forum: Modeling
- Topic: Accumulation of capital with no investment
- Replies: 1
- Views: 42386
Re: Accumulation of capital with no investment
I think in most cases, all sectors do not have initial investment in the SAM. I will suggest to create a variable that accounts for total investment as capital accumulation is aggregated. You have already taken it.
K(t+1)=Inv(t)+(1-delta)K(t);
Where Inv(t) = sum(I, invs(I, T)) ;
Best
K(t+1)=Inv(t)+(1-delta)K(t);
Where Inv(t) = sum(I, invs(I, T)) ;
Best
- 2 months ago
- Forum: Modeling
- Topic: How can I remember index and call it as the between function?
- Replies: 1
- Views: 3068
Re: How can I remember index and call it as the between function?
I will simply do this:
Rodrigue
Best regards,
Set t /1*10/
T1(t) / 1*7/
T2(t) /8*10/
Variable
S(I, J, t), e(I, J, t), y(I, J)
;
Equation
EQ1(I, J), EQ2(I, J)
;
EQ1(I, J).. Sum(t1, S(I, J, t1) =g= y(I, J);
EQ2(I, J).. Sum(t2, e(I, J, t2) =g= y(I, J);
Rodrigue
- 2 months ago
- Forum: Modeling
- Topic: Please help me! Conditional Equations With Variables
- Replies: 1
- Views: 2172
Re: Please help me! Conditional Equations With Variables
You should create parameters let's say d0(I) and e0(I) first.
Parameter d0(I), e0(I) ;
You provide initial values to these parameters.
In the equation section:
Equation
Eqx(I) ;
Eqx(I).. X(I) $(d0(I) eq e0(I)) =g= 0;
Best,
Rodrigue
Parameter d0(I), e0(I) ;
You provide initial values to these parameters.
In the equation section:
Equation
Eqx(I) ;
Eqx(I).. X(I) $(d0(I) eq e0(I)) =g= 0;
Best,
Rodrigue
- 9 months ago
- Forum: Modeling
- Topic: Worry with time horizon in dynamic CGE (Simulation)
- Replies: 0
- Views: 41537
Worry with time horizon in dynamic CGE (Simulation)
Hello GAMS users, I need your support in my GAMS code attached below. I have adapted my SAM to the dynamic CGE model of PEP network. It normally replicates the baseline. However, in simulations where I set the time horizon at 10, it doesn't work properly. In very few cases, I obtain the results on 3...
- 1 year ago
- Forum: Modeling
- Topic: Solve aborted Error
- Replies: 12
- Views: 5737
Re: Solve aborted Error
Hello,
I ran successfully 1model.gm without any change. Maybe your computer has a problem.
With regards,
Rodrigue
I ran successfully 1model.gm without any change. Maybe your computer has a problem.
With regards,
Rodrigue
- 1 year ago
- Forum: Modeling
- Topic: Can a binary variable be used for CGE simulations?
- Replies: 1
- Views: 1505
Can a binary variable be used for CGE simulations?
Hello to everyone I'm stuck in something. I have a CGE model in which I would like to focus on a binary variable let's say X. I want to test the model when X=1. This means that initially X is supposed to take the value 0. I thought I would just need to fix that variable at the bottom of the model an...
- 2 years ago
- Forum: Modeling
- Topic: **** ERROR: CNS models must be square
- Replies: 4
- Views: 4278
Re: **** ERROR: CNS models must be square
Hello everyone, I am running a CGE model and I have encountered this error: " **** ERROR: CNS models must be square. This model contains 22334 equality rows and 22086 unfixed columns" I am not sure what it means. Could anyone help me understand what it means and potentially give me some h...