Search found 9 matches

by perea@eio.upv.es
4 years ago
Forum: Tools
Topic: Plot a rectangle
Replies: 2
Views: 2857

Re: Plot a rectangle

Thanks Renger! i will call R as you suggest :)
by perea@eio.upv.es
4 years ago
Forum: Tools
Topic: Read data from .txt file
Replies: 1
Views: 2484

Read data from .txt file

Hello! Is there a way to read data from a .txt file, without having to transform such file into GAMS sintaxis? For example, I want to read this instance of a scheduling problem *********************** 120 300 11 20 18 4 15 200 1000 2000 83 2 5 16 11 8 7 34 5 11 200 1000 2000 37 2 5 10 7 5 4 17 6 11 ...
by perea@eio.upv.es
4 years ago
Forum: Tools
Topic: Plot a rectangle
Replies: 2
Views: 2857

Plot a rectangle

Dear all: I want to graphically represent a solution to a model, which can be done by means of rectangles. I have tried to find information about this, but what I found did not really help me. Even I found a related topic in this forum, but apparently it was too old and I could not access it. Any hi...
by perea@eio.upv.es
4 years ago
Forum: Syntax
Topic: set starting in 0
Replies: 2
Views: 2415

Re: set starting in 0

Thanks! I guess then that the second code I put

set j jobs /0*4/;
set i machine /1*2/;

is correct because the unique element list is 0,1,2,3,4.

I really appreciate the explanation :)
by perea@eio.upv.es
4 years ago
Forum: Syntax
Topic: set starting in 0
Replies: 2
Views: 2415

set starting in 0

Hello! I found this week an error which I had never found before ... When running these lines *************** set i machine /1*2/; set j jobs /0*4/; parameter oo(j); oo(j) = ord(j); display oo; *************** I get an error. However, if I swap the first two, there is no error: ***************** set...
by perea@eio.upv.es
6 years ago
Forum: Modeling
Topic: Requesting Examples Branch-and-Check algorithm
Replies: 2
Views: 2708

Re: Requesting Examples Branch-and-Check algorithm

Thanks Michael, I'll have a careful look at Erwin's B&B code, which surely will help me build my Branch-and-Check :)
by perea@eio.upv.es
6 years ago
Forum: Modeling
Topic: Requesting Examples Branch-and-Check algorithm
Replies: 2
Views: 2708

Requesting Examples Branch-and-Check algorithm

Hello everyone!

I would like to code a Branch-and-Check algorithm in GAMS. Do you have an example you could share with me? This would be of great help :)

Thanks!

Fede
by perea@eio.upv.es
6 years ago
Forum: API
Topic: print in excel parameter without domain index
Replies: 2
Views: 4262

Re: print in excel parameter without domain index

Thanks Renger. I'll try that or, the easier brute force: define one scalar for each index value :)
by perea@eio.upv.es
6 years ago
Forum: API
Topic: print in excel parameter without domain index
Replies: 2
Views: 4262

print in excel parameter without domain index

Hello, I am trying to print in an excel sheet the values of a certain parameter, but I don't want for the domain set to be printed as well. For example, if I run: execute_unload 'results.gdx' x_model $onecho > gdxxrw_args_100.txt par=x_model rng=RCG_results!a1 $offecho execute 'gdxxrw.exe results.gd...