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
Search found 33 matches
- 2 weeks ago
- Forum: Modeling
- Topic: Accumulation of capital with no investment
- Replies: 1
- Views: 16761
- 3 weeks ago
- Forum: Modeling
- Topic: How can I remember index and call it as the between function?
- Replies: 1
- Views: 1430
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
- 3 weeks ago
- Forum: Modeling
- Topic: Please help me! Conditional Equations With Variables
- Replies: 1
- Views: 657
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
- 7 months ago
- Forum: Modeling
- Topic: Worry with time horizon in dynamic CGE (Simulation)
- Replies: 0
- Views: 17879
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...
- 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
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: 1101
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...
- 1 year ago
- Forum: Modeling
- Topic: **** ERROR: CNS models must be square
- Replies: 4
- Views: 3154
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...
- 2 years ago
- Forum: Tools
- Topic: Need of GAMS 25 windows version for my license
- Replies: 2
- Views: 4965
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....
- 2 years ago
- Forum: Tools
- Topic: Need of GAMS 25 windows version for my license
- Replies: 2
- Views: 4965
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...
- 2 years ago
- Forum: Contributed Documentation and Tools
- Topic: Résolution CNS
- Replies: 1
- Views: 4737
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...