Search found 12 matches

by mjcecili
4 years ago
Forum: Modeling
Topic: Variable Start-up cost in the Unit Commitment Problem
Replies: 4
Views: 3415

Re: Variable Start-up cost in the Unit Commitment Problem

I am sorry for this question, I am not so experimented with GAMS. So, is there a way to use negative indexes? I tried something like:

set i / -2, -1, 0, 1, 2 /

But I get error.

Thanks. :)
by mjcecili
4 years ago
Forum: Modeling
Topic: Variable Start-up cost in the Unit Commitment Problem
Replies: 4
Views: 3415

Re: Variable Start-up cost in the Unit Commitment Problem

Dear Michael,

Of course, your comments are so helpful for me. I will analyze your given options.

Kind regards,
Jose :D
by mjcecili
4 years ago
Forum: Modeling
Topic: Variable Start-up cost in the Unit Commitment Problem
Replies: 4
Views: 3415

Variable Start-up cost in the Unit Commitment Problem

Hi, I am working on the Unit Commitment Problem. I have a GAMS code with different constraints added, but now I want to represent the start-up cost as a function of the number of periods (intervals) the unit has been shut down. What I thought was to follow the idea presented in the literature that r...
by mjcecili
4 years ago
Forum: Syntax
Topic: Beginner Question: Using csv as an input
Replies: 17
Views: 13198

Re: Beginner Question: Using csv as an input

Thanks a lot Renger!!! :D
by mjcecili
4 years ago
Forum: Syntax
Topic: Beginner Question: Using csv as an input
Replies: 17
Views: 13198

Re: Beginner Question: Using csv as an input

Hi,

Thank you. Is there any other way to read the file? I mean, without the labels?

Kind regards. :)
by mjcecili
4 years ago
Forum: Syntax
Topic: Beginner Question: Using csv as an input
Replies: 17
Views: 13198

Re: Beginner Question: Using csv as an input

Hi Renger, You are rigth, I found the problem. I had the input files in a different directory. I am sorry to bother again. Now, I want o read a CSV file that does not have any header. I mean, it is bidimensional (i,j) and it has just the values for each i,j The file (Cost.csv) is like: 1,1,1,1,1 0,1...
by mjcecili
4 years ago
Forum: Syntax
Topic: Beginner Question: Using csv as an input
Replies: 17
Views: 13198

Re: Beginner Question: Using csv as an input

I am trying to read the following CSV file (hourlyDataInput3.csv): p,Demand,WindGen 1,17.64,4.52 2,21.13,3.33 3,22.48,5.74 4,22.01,4.81 The code is: * definitions sets p /1*4/ ; parameters pDemand (p) pWindGen (p) ; table Hourly(*,*) "Demand and Wind Generation per year" $ondelim $include ...
by mjcecili
4 years ago
Forum: Syntax
Topic: Beginner Question: Using csv as an input
Replies: 17
Views: 13198

Re: Beginner Question: Using csv as an input

Hi Renger,

Thanks a lot, I got it. You have been so helpful.

I am sorry if I bother you, but you have a small example of writting results to a CSV file?

Kind regards. :)
by mjcecili
4 years ago
Forum: Syntax
Topic: Beginner Question: Using csv as an input
Replies: 17
Views: 13198

Re: Beginner Question: Using csv as an input

Hi You made some mistakes in the syntax and the definition of the tables themselves (the second table was defined as a parameter at the beginning of your code and you don't have to use the forward slashes). Here is the correct code: table Hourly(y,sc,nd,*,*) $ondelim $include hourlyInputData.csv $o...
by mjcecili
4 years ago
Forum: Syntax
Topic: Sum with index as a function
Replies: 5
Views: 3833

Re: Sum with index as a function

Hello,

Thanks a lot, it works now! :D