Did you place it after the "solve" statement?  

 

________________________________

From: [email protected]
[mailto:[email protected]] On
Behalf Of D'Agostino, Larry - TX
Sent: Tuesday, May 12, 2009 9:51 AM
To: [email protected]
Subject: [Help-glpk] Help with SPP.mod

 

Why doesn't this statement work in the Shortest Path Problem example
(spp.mod).

 

printf{(i,j) in E}"%11s\n", x[i,j];

 

I placed it after the minimize statement.  Here is the error message..

 

Reading model section from spp.mod...

spp.mod:39: only numeric, symbolic, or logical expression allowed

Context:  [ i , j ] ; printf { ( i , j ) in E } '...' , x [ i , j ] ;

MathProg model processing error

 

 

I'm just trying to get the stdout results of the model.

 

 

Larry

---------------------------------------------------------------------------- 
This e-mail and any attachments may be confidential or legally privileged.  If 
you received this message in error or are not the intended recipient, you 
should destroy the e-mail message and any attachments or copies, and you are 
prohibited from retaining, distributing, disclosing or using any information 
contained herein.  Please inform us of the erroneous delivery by return e-mail. 

Thank you for your cooperation.
---------------------------------------------------------------------------- 

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

Reply via email to