Search found 36 matches

by Rodrigue
2 weeks ago
Forum: Syntax
Topic: Error 2, Error 149, Error 243
Replies: 4
Views: 827

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...
by Rodrigue
2 weeks ago
Forum: Syntax
Topic: Error 2, Error 149, Error 243
Replies: 4
Views: 827

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
by Rodrigue
2 weeks ago
Forum: Solvers
Topic: CNS Solver: Pivot Too Small
Replies: 1
Views: 887

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
by Rodrigue
1 month ago
Forum: Modeling
Topic: Accumulation of capital with no investment
Replies: 1
Views: 17082

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
by Rodrigue
1 month ago
Forum: Modeling
Topic: How can I remember index and call it as the between function?
Replies: 1
Views: 1750

Re: How can I remember index and call it as the between function?

I will simply do this:

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);

Best regards,

Rodrigue
by Rodrigue
1 month ago
Forum: Modeling
Topic: Please help me! Conditional Equations With Variables
Replies: 1
Views: 943

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
by Rodrigue
8 months ago
Forum: Modeling
Topic: Worry with time horizon in dynamic CGE (Simulation)
Replies: 0
Views: 17953

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...
by Rodrigue
1 year ago
Forum: Modeling
Topic: Solve aborted Error
Replies: 12
Views: 4180

Re: Solve aborted Error

Hello,
I ran successfully 1model.gm without any change. Maybe your computer has a problem.

With regards,
Rodrigue
by Rodrigue
1 year ago
Forum: Modeling
Topic: Can a binary variable be used for CGE simulations?
Replies: 1
Views: 1172

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...
by Rodrigue
2 years ago
Forum: Modeling
Topic: **** ERROR: CNS models must be square
Replies: 4
Views: 3343

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...