Search found 4 matches

by angert
6 years ago
Forum: Syntax
Topic: Exit Code -1073740791
Replies: 2
Views: 2952

Re: Exit Code -1073740791

Hard to work with this little information. A negative exit code often means that the OS had issues starting the process. As far as I know gdxrrw does not actually run GAMS jobs, it just helps reading and writing GDX files. How do you start GAMS jobs and what kind of output do you get? It might help...
by angert
6 years ago
Forum: Syntax
Topic: Exit Code -1073740791
Replies: 2
Views: 2952

Exit Code -1073740791

Hello, I am running GAMS in a loop through an R script using the gdrrxw package. The first couple of iterations: the processes terminate on exit code 0 (works fine) The following iterations: fail with exit code -1073740791. From what I have been able to gather, this is due to stack buffer overflow....
by angert
6 years ago
Forum: Syntax
Topic: Assigned set used as domain
Replies: 2
Views: 4666

Re: Assigned set used as domain

I have also tried the following code: sets i index of the forecasting period /1,2,3,4/ ; Alias (j,i) ; scalar ii week to predict /4/ parameters Y(i) historical value / 1 2 2 4 3 6 4 8 / ; variables F(i) forecasted value b(j) coefficent e(i) error etotal total error ; equations eq1(i), eq2(i), eq3; e...
by angert
6 years ago
Forum: Syntax
Topic: Assigned set used as domain
Replies: 2
Views: 4666

Assigned set used as domain

What is wrong with my code below? I get these errors: Error 187: Assigned set used as domain b(j) coefficent Error 148: Dimension different eq1(i).. F(i) =e= sum(j,b(j)*Y(i-j)) ; Error 147: Real value for lag operator expected eq1(i).. F(i) =e= sum(j,b(j)*Y(i-j)) ; Here is the full code: sets t tota...