memory request conflict with conopt option file

Hi,

I found that when I have

.workfactor=2.5;

.OPTFILE= 1;

at the same time, the second one seems ignored. Anybody has clue how to fix that? Thank you


To view this discussion on the web visit https://groups.google.com/d/msg/gamsworld/-/yd_bxQkQ1qAJ.
To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.

Hi Michelle



It works for me. Can you post a SMALL example with a listing file that shows your problem?



Regards



Arne


\

Arne Stolbjerg Drud

ARKI Consulting & Development A/S

Bagsvaerdvej 246A, DK-2880 Bagsvaerd, Denmark

Phone: (+45) 44 49 03 23, Fax: (+45) 44 49 03 33, email: adrud@arki.dk



From: gamsworld@googlegroups.com [mailto:gamsworld@googlegroups.com] On Behalf Of Michelle Zhang
Sent: Tuesday, January 22, 2013 9:08 PM
To: gamsworld@googlegroups.com
Subject: memory request conflict with conopt option file



Hi,



I found that when I have



.workfactor=2.5;



.OPTFILE= 1;



at the same time, the second one seems ignored. Anybody has clue how to fix that? Thank you


To view this discussion on the web visit https://groups.google.com/d/msg/gamsworld/-/yd_bxQkQ1qAJ.
To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.


To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.

Reply-to: gamsworld@googlegroups.com

Hi, Arne

Thanks a lot for your reply.

My problem is actually like this: when I use my laptop, my model can be solved; but when I use my desktop (everything is copied from my laptop), it fails with an error saying insufficient memory. My desktop has definitely larger memory so I don’t know what happens. I tries with the workfactor, it solves the problem, but gives me another error saying the derivative is larger than 105, but in the option file I’ve set it to 1018. So I assume it is ignored. I’m not sure whether I explained clearly, please do let me know what you think.

Thank you!

On Wednesday, January 23, 2013 3:09:38 AM UTC-6, Arne Stolbjerg Drud wrote:

Hi Michelle



It works for me. Can you post a SMALL example with a listing file that shows your problem?



Regards



Arne


\

Arne Stolbjerg Drud

ARKI Consulting & Development A/S

Bagsvaerdvej 246A, DK-2880 Bagsvaerd, Denmark

Phone: (+45) 44 49 03 23, Fax: (+45) 44 49 03 33, email: ad…@arki.dk



From: gams...@googlegroups.com [mailto:gams...@googlegroups.com] On Behalf Of Michelle Zhang
Sent: Tuesday, January 22, 2013 9:08 PM
To: gams...@googlegroups.com
Subject: memory request conflict with conopt option file



Hi,



I found that when I have



.workfactor=2.5;



.OPTFILE= 1;



at the same time, the second one seems ignored. Anybody has clue how to fix that? Thank you


To view this discussion on the web visit https://groups.google.com/d/msg/gamsworld/-/yd_bxQkQ1qAJ.
To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.


To view this discussion on the web visit https://groups.google.com/d/msg/gamsworld/-/Ua0ae4SuHfoJ.
To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.

Michelle



First of all, you should always read the output from GAMS, both the log and the lst file. There are usually good reasons for the output and in case of errors or something strange it is always your first source of information so read it carefully in these cases. It is much faster than asking questions to the world and waiting!



In your cases there will be a message similar to this:



Reading parameter(s) from “c:\gamstest\tests\conopt.opt”

rtmaxj = 10*18

*** Value Error line 1: Double expected for option “rtmaxj” saw “10*18”

Finished reading from “c:\gamstest\tests\conopt.opt”



If there is an error in the option file then the entry is ignored, which is exactly what you experienced. But the message also tells you what is wrong. The value has to be a double using double notation and 10*18 is an expression. You are probably thinking about 1.e18.



Regards



Arne


\

Arne Stolbjerg Drud

ARKI Consulting & Development A/S

Bagsvaerdvej 246A, DK-2880 Bagsvaerd, Denmark

Phone: (+45) 44 49 03 23, Fax: (+45) 44 49 03 33, email: adrud@arki.dk



From: gamsworld@googlegroups.com [mailto:gamsworld@googlegroups.com] On Behalf Of Michelle Zhang
Sent: Wednesday, January 23, 2013 6:04 PM
To: gamsworld@googlegroups.com
Cc: adrud@arki.dk
Subject: Re: memory request conflict with conopt option file



Hi, Arne



Thanks a lot for your reply.



My problem is actually like this: when I use my laptop, my model can be solved; but when I use my desktop (everything is copied from my laptop), it fails with an error saying insufficient memory. My desktop has definitely larger memory so I don’t know what happens. I tries with the workfactor, it solves the problem, but gives me another error saying the derivative is larger than 105, but in the option file I’ve set it to 1018. So I assume it is ignored. I’m not sure whether I explained clearly, please do let me know what you think.



Thank you!

On Wednesday, January 23, 2013 3:09:38 AM UTC-6, Arne Stolbjerg Drud wrote:

Hi Michelle



It works for me. Can you post a SMALL example with a listing file that shows your problem?



Regards



Arne


\

Arne Stolbjerg Drud

ARKI Consulting & Development A/S

Bagsvaerdvej 246A, DK-2880 Bagsvaerd, Denmark

Phone: (+45) 44 49 03 23, Fax: (+45) 44 49 03 33, email: ad…@arki.dk



From: gams...@googlegroups.com [mailto:gams...@googlegroups.com] On Behalf Of Michelle Zhang
Sent: Tuesday, January 22, 2013 9:08 PM
To: gams...@googlegroups.com
Subject: memory request conflict with conopt option file



Hi,



I found that when I have



.workfactor=2.5;



.OPTFILE= 1;



at the same time, the second one seems ignored. Anybody has clue how to fix that? Thank you


To view this discussion on the web visit https://groups.google.com/d/msg/gamsworld/-/yd_bxQkQ1qAJ.
To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.


To view this discussion on the web visit https://groups.google.com/d/msg/gamsworld/-/Ua0ae4SuHfoJ.
To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.


To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.

Reply-to: gamsworld@googlegroups.com


Thanks a lot for your advice, Arne.

On Wednesday, January 23, 2013 2:23:05 PM UTC-6, Arne Stolbjerg Drud wrote:

Michelle



First of all, you should always read the output from GAMS, both the log and the lst file. There are usually good reasons for the output and in case of errors or something strange it is always your first source of information so read it carefully in these cases. It is much faster than asking questions to the world and waiting!



In your cases there will be a message similar to this:



Reading parameter(s) from “c:\gamstest\tests\conopt.opt”

rtmaxj = 10*18

*** Value Error line 1: Double expected for option “rtmaxj” saw “10*18”

Finished reading from “c:\gamstest\tests\conopt.opt”



If there is an error in the option file then the entry is ignored, which is exactly what you experienced. But the message also tells you what is wrong. The value has to be a double using double notation and 10*18 is an expression. You are probably thinking about 1.e18.



Regards



Arne


\

Arne Stolbjerg Drud

ARKI Consulting & Development A/S

Bagsvaerdvej 246A, DK-2880 Bagsvaerd, Denmark

Phone: (+45) 44 49 03 23, Fax: (+45) 44 49 03 33, email: ad…@arki.dk



From: gams...@googlegroups.com [mailto:gams...@googlegroups.com] On Behalf Of Michelle Zhang
Sent: Wednesday, January 23, 2013 6:04 PM
To: gams...@googlegroups.com
Cc: ad…@arki.dk
Subject: Re: memory request conflict with conopt option file



Hi, Arne



Thanks a lot for your reply.



My problem is actually like this: when I use my laptop, my model can be solved; but when I use my desktop (everything is copied from my laptop), it fails with an error saying insufficient memory. My desktop has definitely larger memory so I don’t know what happens. I tries with the workfactor, it solves the problem, but gives me another error saying the derivative is larger than 105, but in the option file I’ve set it to 1018. So I assume it is ignored. I’m not sure whether I explained clearly, please do let me know what you think.



Thank you!

On Wednesday, January 23, 2013 3:09:38 AM UTC-6, Arne Stolbjerg Drud wrote:

Hi Michelle



It works for me. Can you post a SMALL example with a listing file that shows your problem?



Regards



Arne


\

Arne Stolbjerg Drud

ARKI Consulting & Development A/S

Bagsvaerdvej 246A, DK-2880 Bagsvaerd, Denmark

Phone: (+45) 44 49 03 23, Fax: (+45) 44 49 03 33, email: ad…@arki.dk



From: gams...@googlegroups.com [mailto:gams...@googlegroups.com] On Behalf Of Michelle Zhang
Sent: Tuesday, January 22, 2013 9:08 PM
To: gams...@googlegroups.com
Subject: memory request conflict with conopt option file



Hi,



I found that when I have



.workfactor=2.5;



.OPTFILE= 1;



at the same time, the second one seems ignored. Anybody has clue how to fix that? Thank you


To view this discussion on the web visit https://groups.google.com/d/msg/gamsworld/-/yd_bxQkQ1qAJ.
To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.


To view this discussion on the web visit https://groups.google.com/d/msg/gamsworld/-/Ua0ae4SuHfoJ.
To post to this group, send email to gams...@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.


To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

\