bug-glpk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is this the expected behavior with "default" ?


From: Andrew Makhorin
Subject: Re: Is this the expected behavior with "default" ?
Date: Thu, 06 Aug 2020 16:48:01 +0300

On Thu, 2020-08-06 at 15:28 +0200, Domingo Alvarez Duarte wrote:
> Hello Andrew !
> 
> It seems to an inconsistent behavior see example bellow, if display
> do 
> not reference/instantiate model entities I would not expect any
> output 
> for "display {(a,b) in S} (a,b);".

The display statement is intended mainly for model debugging, in
particular, to see which object members were actually referenced.

In your case you specify an expression, not an object, so that
expression is evaluated as usual.

For example, in Fortran this difference would look like follows:

   print *, a

   print *, (a(i), i = 3, 7)



> 
> ====
> [...]



reply via email to

[Prev in Thread] Current Thread [Next in Thread]