Solver & File

Solver related questions
Post Reply
fagomez12
User
User
Posts: 2
Joined: 5 months ago

Solver & File

Post 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.
Fred
Posts: 373
Joined: 7 years ago

Re: Solver & File

Post by Fred »

Can you please share you code, the log and the lst file?

Best,
Fred
fagomez12
User
User
Posts: 2
Joined: 5 months ago

Re: Solver & File

Post 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.
Last edited by fagomez12 5 months ago, edited 1 time in total.
fagomez12
User
User
Posts: 2
Joined: 5 months ago

Re: Solver & File

Post 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.
Post Reply