Take a look at https://en.wikibooks.org/wiki/GLPK/GMPL_Workarounds which 
describes a work-around for not having if-then-else.

-Marc

-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of 
Reginald Beardsley
Sent: Friday, October 19, 2012 5:44 PM
To: glpk
Subject: [Help-glpk] Printing non-zero parts of a solution matrix

The problem I'm solving has a small number of non-zero results in the solution 
matrix.

Is there a way to print just the non-zero elements w/ GMPL?

The obvious approach of iterating over the matrix w/ for doesn't allow a 
conditional inside the actions.

thanks,
Reg

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

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]
https://lists.gnu.org/mailman/listinfo/help-glpk

Reply via email to