Getting errors 66 and 256 but cannot find the reason

Archive of Gamsworld Google Group
Post Reply
Archiver
User
User
Posts: 7876
Joined: 7 years ago

Getting errors 66 and 256 but cannot find the reason

Post by Archiver »


Getting error 66 and 256 which are both pointing to the solve statement at the end of the script.
I have read all available sources online, please help me remove these errors or find the cause.

Any other information that is required about the problem being posed, just reply to this post.

--
Attachments
fragapdpcw2.gms
(4.42 KiB) Downloaded 308 times
Archiver
User
User
Posts: 7876
Joined: 7 years ago

Re: Getting errors 66 and 256 but cannot find the reason

Post by Archiver »


Have a look at the listing file:

**** $66,256
**** The following NLP errors were detected in model PDPCW2:
**** 66 equation eq5 .. symbol "x" has no values assigned
**** 66 equation eq52 .. symbol "N_RE" has no values assigned
**** 66 equation eq53 .. symbol "Vr" has no values assigned


On Friday, February 12, 2016 at 2:39:08 PM UTC+1, Rhemet Chaggar wrote:

Getting error 66 and 256 which are both pointing to the solve statement at the end of the script.
I have read all available sources online, please help me remove these errors or find the cause.

Any other information that is required about the problem being posed, just reply to this post.

--
To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at https://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.
Archiver
User
User
Posts: 7876
Joined: 7 years ago

Re: Getting errors 66 and 256 but cannot find the reason

Post by Archiver »


Thank you!

On Friday, February 12, 2016 at 2:28:35 PM UTC, AukeGr wrote:

Have a look at the listing file:

**** $66,256
**** The following NLP errors were detected in model PDPCW2:
**** 66 equation eq5 .. symbol "x" has no values assigned
**** 66 equation eq52 .. symbol "N_RE" has no values assigned
**** 66 equation eq53 .. symbol "Vr" has no values assigned


On Friday, February 12, 2016 at 2:39:08 PM UTC+1, Rhemet Chaggar wrote:

Getting error 66 and 256 which are both pointing to the solve statement at the end of the script.
I have read all available sources online, please help me remove these errors or find the cause.

Any other information that is required about the problem being posed, just reply to this post.

--
To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at https://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.
Archiver
User
User
Posts: 7876
Joined: 7 years ago

Re: Getting errors 66 and 256 but cannot find the reason

Post by Archiver »


This new file has no red errors, however gives no solution(errors due to division by 0); To get rid of the red errors I had to remove bound from my variables (bounds in which i wished to optimize with in). How can i enter these variable bounds back in and get a non division by zero solution?

On Friday, February 12, 2016 at 2:28:35 PM UTC, AukeGr wrote:

Have a look at the listing file:

**** $66,256
**** The following NLP errors were detected in model PDPCW2:
**** 66 equation eq5 .. symbol "x" has no values assigned
**** 66 equation eq52 .. symbol "N_RE" has no values assigned
**** 66 equation eq53 .. symbol "Vr" has no values assigned


On Friday, February 12, 2016 at 2:39:08 PM UTC+1, Rhemet Chaggar wrote:

Getting error 66 and 256 which are both pointing to the solve statement at the end of the script.
I have read all available sources online, please help me remove these errors or find the cause.

Any other information that is required about the problem being posed, just reply to this post.

--
Attachments
fragapdpcw2.gms
(4.42 KiB) Downloaded 261 times
Archiver
User
User
Posts: 7876
Joined: 7 years ago

Re: Getting errors 66 and 256 but cannot find the reason

Post by Archiver »


I reallised the bounds shouldnt be added as equations, but just typed without declaration as a type of anything. But im still getting division by 0 error, here is the new file. Any help would be much appreciated!
On Friday, February 12, 2016 at 4:32:41 PM UTC, Rhemet Chaggar wrote:

This new file has no red errors, however gives no solution(errors due to division by 0); To get rid of the red errors I had to remove bound from my variables (bounds in which i wished to optimize with in). How can i enter these variable bounds back in and get a non division by zero solution?

On Friday, February 12, 2016 at 2:28:35 PM UTC, AukeGr wrote:

Have a look at the listing file:

**** $66,256
**** The following NLP errors were detected in model PDPCW2:
**** 66 equation eq5 .. symbol "x" has no values assigned
**** 66 equation eq52 .. symbol "N_RE" has no values assigned
**** 66 equation eq53 .. symbol "Vr" has no values assigned


On Friday, February 12, 2016 at 2:39:08 PM UTC+1, Rhemet Chaggar wrote:

Getting error 66 and 256 which are both pointing to the solve statement at the end of the script.
I have read all available sources online, please help me remove these errors or find the cause.

Any other information that is required about the problem being posed, just reply to this post.

--
Attachments
fragapdpcw2.gms
(4.42 KiB) Downloaded 259 times
Archiver
User
User
Posts: 7876
Joined: 7 years ago

RE: Getting errors 66 and 256 but cannot find the reason

Post by Archiver »


Hi Rhemet



Errors like these mostly happen because the variables aren’t initialized which causes Gams to start with zero as starting point for the variable.

You could just give every variable a sensible starting point (X.L =1 for example), or bound the variables away from zero (e.g. X.LO = 0.0001).



CHeer

_________________________________________________________________

Dr. Renger van Nieuwkoop

Department of Management, Technology and Economics

Centre for Energy Policy and Economics

Swiss Federal Institute of Technology Zurich

Zürichbergstrasse 18, CH-8032 Zurich

Mobile: +41 79 818 53 73

E-Mail: rengerv@vannieuwkoop.ch



Director Modelworks

Goldiwilstrasse 16 F CH-3600 Thun

E-Mail: info@modelworks.ch

Blog: http://blog.modelworks.ch



s

Rneger



From: gamsworld@googlegroups.com [mailto:gamsworld@googlegroups.com]
Sent: Freitag, 12. Februar 2016 17:24
To: gamsworld
Subject: Re: Getting errors 66 and 256 but cannot find the reason



This new file has no red errors, however gives no solution(errors due to division by 0); To get rid of the red errors I had to remove bound from my variables (bounds in which i wished to optimize with in). How can i enter these variable bounds back in and get a non division by zero solution?

On Friday, February 12, 2016 at 2:28:35 PM UTC, AukeGr wrote:

Have a look at the listing file:

**** $66,256
**** The following NLP errors were detected in model PDPCW2:
**** 66 equation eq5 .. symbol "x" has no values assigned
**** 66 equation eq52 .. symbol "N_RE" has no values assigned
**** 66 equation eq53 .. symbol "Vr" has no values assigned


On Friday, February 12, 2016 at 2:39:08 PM UTC+1, Rhemet Chaggar wrote:

Getting error 66 and 256 which are both pointing to the solve statement at the end of the script.

I have read all available sources online, please help me remove these errors or find the cause.



Any other information that is required about the problem being posed, just reply to this post.

--
To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at https://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.

--
To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at https://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.
Archiver
User
User
Posts: 7876
Joined: 7 years ago

Re: Getting errors 66 and 256 but cannot find the reason

Post by Archiver »


Thank you Dr Nieuwkoop, I have removed the div by 0 errors. What would you suggest to remove a large number of INFEAS and EPS errors. woukld giving GAMS sensible initialization values help with this also?

On Friday, February 12, 2016 at 5:15:54 PM UTC, Renger van Nieuwkoop wrote:

Hi Rhemet



Errors like these mostly happen because the variables aren’t initialized which causes Gams to start with zero as starting point for the variable.

You could just give every variable a sensible starting point (X.L =1 for example), or bound the variables away from zero (e.g. X.LO = 0.0001).



CHeer

_________________________________________________________________

Dr. Renger van Nieuwkoop

Department of Management, Technology and Economics

Centre for Energy Policy and Economics

Swiss Federal Institute of Technology Zurich

Zürichbergstrasse 18, CH-8032 Zurich

Mobile: +41 79 818 53 73

E-Mail: rengerv@vannieuwkoop.ch



Director Modelworks

Goldiwilstrasse 16 F CH-3600 Thun

E-Mail: in...@modelworks.ch

Blog: http://blog.modelworks.ch



s

Rneger



From: gams...@googlegroups.com [mailto:gams...@googlegroups.com]
Sent: Freitag, 12. Februar 2016 17:24
To: gamsworld
Subject: Re: Getting errors 66 and 256 but cannot find the reason



This new file has no red errors, however gives no solution(errors due to division by 0); To get rid of the red errors I had to remove bound from my variables (bounds in which i wished to optimize with in). How can i enter these variable bounds back in and get a non division by zero solution?

On Friday, February 12, 2016 at 2:28:35 PM UTC, AukeGr wrote:

Have a look at the listing file:

**** $66,256
**** The following NLP errors were detected in model PDPCW2:
**** 66 equation eq5 .. symbol "x" has no values assigned
**** 66 equation eq52 .. symbol "N_RE" has no values assigned
**** 66 equation eq53 .. symbol "Vr" has no values assigned


On Friday, February 12, 2016 at 2:39:08 PM UTC+1, Rhemet Chaggar wrote:

Getting error 66 and 256 which are both pointing to the solve statement at the end of the script.

I have read all available sources online, please help me remove these errors or find the cause.



Any other information that is required about the problem being posed, just reply to this post.

--
To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+...@googlegroups.com.
To post to this group, send email to gams...@googlegroups.com.
Visit this group at https://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.

--
To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at https://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.
Archiver
User
User
Posts: 7876
Joined: 7 years ago

Re: Getting errors 66 and 256 but cannot find the reason

Post by Archiver »


I am now getting 3 infeasible solutions and cannot find any combination of variable.l declarations which remove these INFES. There isn't a complete set of results for the variables. How do i go about removing this problem?

File is attatched

Please help!

--
Attachments
fragapdpcw2.gms
(4.42 KiB) Downloaded 258 times
Archiver
User
User
Posts: 7876
Joined: 7 years ago

Re: Getting errors 66 and 256 but cannot find the reason

Post by Archiver »


perhaps there really is no feasible solution...
renger

sent from my iPad

On 12 Feb 2016, at 21:38, 'Rhemet Chaggar' via gamsworld wrote:

> I am now getting 3 infeasible solutions and cannot find any combination of variable.l declarations which remove these INFES. There isn't a complete set of results for the variables. How do i go about removing this problem?
>
> File is attatched
>
> Please help!
>
> --
> To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
> To post to this group, send email to gamsworld@googlegroups.com.
> Visit this group at https://groups.google.com/group/gamsworld.
> For more options, visit https://groups.google.com/d/optout.
>

--
To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at https://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.
Post Reply