Problem successfully solved. In case someone else have the same problem, the solution is in this document (see link) pp: 37-40
[url][/http://pdf.usaid.gov/pdf_docs/pnacj887.pdf]
Cheers
Zinsou
Search found 9 matches
- 6 years ago
- Forum: Syntax
- Topic: condition that involves variable (use $ or not)
- Replies: 1
- Views: 2704
- 6 years ago
- Forum: Syntax
- Topic: condition that involves variable (use $ or not)
- Replies: 1
- Views: 2704
condition that involves variable (use $ or not)
Hi dear all, I write the following in which Price is a variable. The model solves but doe not take the condition in to account.Is there any way I can use the $ if the condition is related to a variable? If not, is there any other way I can proceed? Thanks q_ginstock2(Yr,i) $ (PRICE.l(Yr,i) < pmin(i)...
- 6 years ago
- Forum: Syntax
- Topic: implement conditions related to variables in a model
- Replies: 1
- Views: 2409
Re: implement conditions related to variables in a model
Just to tell you that I´ve already included all the parameters and variables already. All I need now is to include these 2 conditions:
if P(i,t) > Ps(i) ➔ Gn(i,t) ≤ 0
if P(i,t) < Pr(i) ➔ Gn(i,t) ≥ 0
Help, please!
if P(i,t) > Ps(i) ➔ Gn(i,t) ≤ 0
if P(i,t) < Pr(i) ➔ Gn(i,t) ≥ 0
Help, please!
- 6 years ago
- Forum: Syntax
- Topic: implement conditions related to variables in a model
- Replies: 1
- Views: 2409
implement conditions related to variables in a model
Hello dear all, I am back a new challenge I´m facing now. I want to add a buffer stock scheme to a partial equilibrium model I have built. My problem is that I have no clue about how to implement the conditions that must be fulfilled, especially where and how to write these conditions to run the mod...
- 6 years ago
- Forum: Syntax
- Topic: unable to read and write Excel spreadsheet data in GAMS
- Replies: 3
- Views: 3959
- 6 years ago
- Forum: Syntax
- Topic: Execute, load excel file and read parameters´value
- Replies: 1
- Views: 2927
Execute, load excel file and read parameters´value
Hi dear all, I want to read an excel sheet in GAMS. the file contains series of 500 values per year for each variable a,b and c. it is a parameter that I define as Stk(yr,i,se). The values are saved in an excel sheet with 3 dimensions Rdim=2 Cdim=1 like the following example 1 2 3 ...500 a y1 a y2 ....
- 6 years ago
- Forum: Syntax
- Topic: unable to read and write Excel spreadsheet data in GAMS
- Replies: 3
- Views: 3959
unable to read and write Excel spreadsheet data in GAMS
Hi dear all, I am trying to read an excel sheet in GAMS and create a GDX file from it. But I recieve these error messages : **** GDX ERROR AT LINE 87 - Open read failed C:\Users\hohn\Documents\gamsdir\projdir\Randomdata.gdx **** GDX ERROR AT LINE 87 - Msg: No such file or directory Here is the lines...
- 6 years ago
- Forum: Modeling
- Topic: How to build a recursive dynamic model
- Replies: 2
- Views: 5094
Re: How to build a recursive dynamic model
Many thanks. I successfully solved the problem
- 6 years ago
- Forum: Modeling
- Topic: How to build a recursive dynamic model
- Replies: 2
- Views: 5094
How to build a recursive dynamic model
Hi dear all, I am writing a dynamic model but it is quite challenging for me since I´m a biginner in modelling. My objective is to build a dynamic Partial Equilibrium model to assess the implementation of some policies on agricultural commodity market. I have started with a simple model with a time ...