Search found 29 matches

by Abhi140
2 years ago
Forum: Syntax
Topic: GAMS calling GAMS, compilation & Execution phases
Replies: 7
Views: 4630

Re: GAMS calling GAMS, compilation & Execution phases

Hi, Yes, I have tried execute_loaddc. Inside the loop, I am calling first NGsystem gams code & then opening gdx file & then again calling DHS_directional gams code. But now, the problem is that it's not generating the RelaxedNG_output gdx file (should be generated from NGsystem gams code). I...
by Abhi140
2 years ago
Forum: Syntax
Topic: GAMS calling GAMS, compilation & Execution phases
Replies: 7
Views: 4630

Re: GAMS calling GAMS, compilation & Execution phases

Hi,

Actually, we can't use $call conditions inside the loop statement. It wouldn't open gdx file generated by another gams program which is called inside the loop. I don't if there any other way to do this.
by Abhi140
2 years ago
Forum: Syntax
Topic: GAMS calling GAMS, compilation & Execution phases
Replies: 7
Views: 4630

Re: GAMS calling GAMS, compilation & Execution phases

Hi,

Thank you for your response. Your input helped me a lot.
by Abhi140
2 years ago
Forum: Syntax
Topic: GAMS calling GAMS, compilation & Execution phases
Replies: 7
Views: 4630

GAMS calling GAMS, compilation & Execution phases

Hi, I have a main GAMS program that iteratively calls different GAMS programs. It needs to process the data from these programs. These programs take processed data as input from the main program. The following code portion will help to understand the problem more clearly. Since Dollar control statem...
by Abhi140
2 years ago
Forum: Solvers
Topic: lower & upper bounds in BARON
Replies: 0
Views: 10947

lower & upper bounds in BARON

Hi, My optimization problem is NLP (Linear+Conic constraints & quadratic functions in objective function). The linear model (relaxed) of the original problem gives an objective function value = 951.3748095 (best solution found during preprocessing) using the BARON solver. However, when I solve t...
by Abhi140
2 years ago
Forum: Syntax
Topic: Error 494: Load types are different
Replies: 3
Views: 4813

Re: Error 494: Load types are different

Dear Bussieck,

Thank you very much for your reply. It solves the problem.
by Abhi140
2 years ago
Forum: Syntax
Topic: Error 494: Load types are different
Replies: 3
Views: 4813

Re: Error 494: Load types are different

I was just thinking more about it. The values stored in 2nd gdx files are results/output from a GAMS program. The results stored in gdx files are the level values e.g. u1.l where u1 is a variable defined over set i in that gams program. However, in another gams program where I am calling both gdx fi...
by Abhi140
2 years ago
Forum: Syntax
Topic: Error 494: Load types are different
Replies: 3
Views: 4813

Error 494: Load types are different

Hi Everyone, I am getting an error 'error 494: Load types are different'. Can anyone please help with this? Background: I am calling 2 gdx files. One file has a set e.g. set i & a few parameters defined over that set i. 2nd gdx file has few other parameters defined over set i. Please note that s...
by Abhi140
2 years ago
Forum: Modeling
Topic: Decimal point in parameters called from Excel
Replies: 2
Views: 2845

Re: Decimal point in parameters called from Excel

Dear Bussieck,

Thanks for your reply.
by Abhi140
2 years ago
Forum: Modeling
Topic: Decimal point in parameters called from Excel
Replies: 2
Views: 2845

Decimal point in parameters called from Excel

Hi Everyone, I have called certain parameters from Excel to GAMS. My question is up to how many digits after decimal point GAMS consider? For me, parameters in Excel has values up to 6 digits after the decimal point, however, GAMS has taken only up to 3 digits (at least it is showing that in .lst fi...