Hi,
I need to print a table composed by zero values and non-zero values.
The problem is that GAMS doesn’t print zero values.
Any idea?
Thanks
Roberto
\
To view this discussion on the web visit https://groups.google.com/d/msg/gamsworld/-/BOKknIQVcocJ.
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.
Search the gams Mailinglist …
Add eps to the values you want to report.
Renger
Von meinem iPhone gesendet
Am 31.08.2012 um 12:21 schrieb “Robi07” :
Hi,
I need to print a table composed by zero values and non-zero values.
The problem is that GAMS doesn’t print zero values.
Any idea?
Thanks
Roberto
–
To view this discussion on the web visit https://groups.google.com/d/msg/gamsworld/-/BOKknIQVcocJ.
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.
Try
variable.l$(Not variable.l) = EPS;
after the solve statement
Em sexta-feira, 31 de agosto de 2012 07h11min26s UTC-3, Robi07 escreveu:
Hi,
I need to print a table composed by zero values and non-zero values.
The problem is that GAMS doesn’t print zero values.
Any idea?
Thanks
Roberto
\
To view this discussion on the web visit https://groups.google.com/d/msg/gamsworld/-/SWsJHLzANWoJ.
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
Better to write
variable.l = variable.l + EPS;
Cheers
Renger
Von: gamsworld@googlegroups.com [mailto:gamsworld@googlegroups.com] Im Auftrag von Frank Ward
Gesendet: Montag, 3. September 2012 09:43
An: gamsworld@googlegroups.com
Betreff: Print zero values
Roberto,
I like to add a small epsilon, say .00001, to all variables, then round all to something like the nearest 0.01. Zero values of variables will then display as 0.00.
Not an elegant method, but it works.
FA Ward
From: gamsworld@googlegroups.com [mailto:gamsworld@googlegroups.com] On Behalf Of Rafael Cidade
Sent: Friday, August 31, 2012 10:53 AM
To: gamsworld@googlegroups.com
Subject: Re: Print zero values
Try
variable.l$(Not variable.l) = EPS;
after the solve statement
Em sexta-feira, 31 de agosto de 2012 07h11min26s UTC-3, Robi07 escreveu:
Hi,
I need to print a table composed by zero values and non-zero values.
The problem is that GAMS doesn’t print zero values.
Any idea?
Thanks
Roberto
\
To view this discussion on the web visit https://groups.google.com/d/msg/gamsworld/-/SWsJHLzANWoJ.
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.
–
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.