Search found 33 matches

by Rodrigue
2 weeks ago
Forum: Modeling
Topic: Accumulation of capital with no investment
Replies: 1
Views: 16767

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

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
3 weeks ago
Forum: Modeling
Topic: Please help me! Conditional Equations With Variables
Replies: 1
Views: 660

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

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
11 months ago
Forum: Modeling
Topic: Solve aborted Error
Replies: 12
Views: 3923

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: 1102

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
1 year ago
Forum: Modeling
Topic: **** ERROR: CNS models must be square
Replies: 4
Views: 3161

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...
by Rodrigue
2 years ago
Forum: Tools
Topic: Need of GAMS 25 windows version for my license
Replies: 2
Views: 4967

Re: Need of GAMS 25 windows version for my license

Rodrigue, If you hold a valid license in your name or your department/company GAMS will make the version that can be used with this license available to you. Just email sales|support@gams.com your request (including the license) -Michael Thank you Michael for your reply. Your suggestion was useful....
by Rodrigue
2 years ago
Forum: Tools
Topic: Need of GAMS 25 windows version for my license
Replies: 2
Views: 4967

Need of GAMS 25 windows version for my license

Hi the GAMS community, I have a valid GAMS license for an old version (between 25.2 to 25.8 I think) for 64 bytes windows. I sent my request to GAMS corporation to allow me download that version. But I didn't get any answer 1 year now. The problem is that my computer was stolen. Therefore, I lose al...
by Rodrigue
2 years ago
Forum: Contributed Documentation and Tools
Topic: Résolution CNS
Replies: 1
Views: 4746

Re: Résolution CNS

Dans votre code, le fichier USAM_5.xls est importé à partir de Excel mais vous n'avez pas envoyé cela. Du coup on ne peut pas vous aider sans avoir eu cela. Aussi, il serait mieux de traduire votre message en anglais pour permettre à ceux qui n'ont pas le français comme première langue de vous aider...