Search found 8 matches
- 1 year ago
- Forum: Syntax
- Topic: Writing Equations with varying index
- Replies: 1
- Views: 1294
Writing Equations with varying index
Hello GAMS Community, I am a beginner in GAMS and learning to model things using its syntax. Here is my problem, Given, set i /1,2/ x(i) y(i); How can I write constraints equations say, x1 + y2 <= 1 similarly, x2 + y1 <= 1 ? I know, defining an equation like this eq(i).. x(i) + y(i) <= 1 will cover ...
- 1 year ago
- Forum: Syntax
- Topic: Linearization of Non-Linear equations
- Replies: 8
- Views: 8278
Re: Linearization of Non-Linear equations
Thanks for your help. It had solved my problem and improve my understanding of the syntax.
- 1 year ago
- Forum: Syntax
- Topic: Linearization of Non-Linear equations
- Replies: 8
- Views: 8278
Linearization of Non-Linear equations
Hello GAMS Community, Warm Greetings! Here is my problem, suppose I have a following objective function: objF.. obj =e= 10*x1 + 12*x2 - 20*z1 - 25*z2 - 10*z1*z2 Symbols (x1,x2) are variables. Symbols (z1,z2) are binary variables. I wishes to linearize this objective function as product term z1*z2 te...
- 1 year ago
- Forum: Syntax
- Topic: Infeasibility Row Error
- Replies: 1
- Views: 2951
Infeasibility Row Error
Warm Greeting GAMS Community, I am new very new to GAMS and just started using it. Here is my problem. Observe the following equation: Equation3(d,t,i).. Vup(d,t,i) =e= Vup(d,t-1,i) + Dp(d,t,i) - Dg(d,t,i); Symbol: d,t,i are sets. Symbol: Vup, Dp, Dg are variable. d,t,i are properly defined earlier ...
- 1 year ago
- Forum: Syntax
- Topic: Syntax for Sorting the Sets
- Replies: 1
- Views: 2157
Syntax for Sorting the Sets
Hello GAMS World, Suppose we have a have set, as defined below: set p /p1, p4, p3, p2, p5/; I wanted to create an another set, say po, which stores the elements of the set p in a ordered way. that is, elements of set po should be p1,p2,p3,p4,p5 Kindy, provide me the ways to perform this task.
- 1 year ago
- Forum: Syntax
- Topic: Problem Reading Inputs via CSV file
- Replies: 5
- Views: 3307
Re: Problem Reading Inputs via CSV file
GAMS Version: 37.1.0 Operating System: Linux (Ubuntu 20.04LTS) I also like to mention that I am creating the csv file by opening the excel sheet using LibreOffice Calc and then Saving as CSV file. I was successfully able to run model libraries examples (those using csv2gdx), they are running perfect...
- 1 year ago
- Forum: Syntax
- Topic: Problem Reading Inputs via CSV file
- Replies: 5
- Views: 3307
Re: Problem Reading Inputs via CSV file
I have attached the document (.csv file) in the previous post. And the codes that I am using to create a gdx file.
- 1 year ago
- Forum: Syntax
- Topic: Problem Reading Inputs via CSV file
- Replies: 5
- Views: 3307
Problem Reading Inputs via CSV file
Hello Everyone, I am new to GAMS, and this is my first post. I am facing a quite annoying problem in GAMS, basically I wanted to input data in the form of Tables. I have attached the csv file, which is a dummy one exactly resembling my original file. DC.csv The GAMS code, I am using to create a gdx ...