Hello Andrew,

in GLPK 4.44 the display statement does not work for
constraints and variables without suffix when used above
the solve statement.

invalid reference to status, primal value, or dual value of
constraint demand above solve statement
Context: ...) in K } x [ i , j ] >= b [ j ] ; display demand [ '...' ] ;

invalid reference to variable x above solve statement
Context:  sum { ( i , j ) in K } x [ i , j ] >= b [ j ] ; display x ;

According to doc/gmpl.pdf, version 4.42 accompanying GLPK 4.44
display statements above the solve statement are allowable:

"Note that if the display statement is used above the solve statement
and the item is a variable, its displayed "value" means "elemental
variable", not a numeric value, which the variable could have in some
solution obtained by the solver. To display a numeric value of a variable
the display statement should be used below the solve statement.
Analogously, if the item is a constraint or objective, its "value"
means "elemental constraint" or "elemental objective", not a numeric
value."

Best regards

Xypron
-- 
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01

_______________________________________________
Bug-glpk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-glpk

Reply via email to