Page 1 of 1

Solver & File

Posted: Fri Nov 10, 2023 11:07 pm
by fagomez12
Hello guys!!

I am new with GAMS and maybe this is a dumb question, but I need to ask and solve my doubt. I have tried to run a specific model with "mip" as the solver. The issue appears when I want to save the results in a .csv document, the doc is not created no matter the extension ( I tried with .xls and .dat). I wrote sth like the following:


.
.
.
Model
.
.
.

solve Model minimizing cost_fun using mip;

File new_doc /new_doc.csv/;
put new_doc;
put 'Hello World';
putclose new_doc;



It seems like the model is compiled until the line "solve Model minimizing...". From this point all the other lines are not compiled or at least I think that.

I kindly ask for your help.

Thank you.

Re: Solver & File

Posted: Sat Nov 11, 2023 12:42 pm
by Fred
Can you please share you code, the log and the lst file?

Best,
Fred

Re: Solver & File

Posted: Sat Nov 11, 2023 5:04 pm
by fagomez12
Thank you, Fred.


I did not realize that I was working with the Demo version. That was the problem.

Now, it works with the license. My fault, sorry. :D :D :D :D

Thank you.

Re: Solver & File

Posted: Sat Nov 11, 2023 5:10 pm
by fagomez12
To add...

I did not upload the code since it is very extensive (More than 3000 lines). I am attempting to model a big power system.

As said, I did not realize I was using the demo version. :D :D :D

Anyways, thank you.

Fagomez12.