[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
## Re: [Help-glpk] Printing non-zero parts of a solution matrix

**From**: |
Meketon, Marc |

**Subject**: |
Re: [Help-glpk] Printing non-zero parts of a solution matrix |

**Date**: |
Fri, 19 Oct 2012 18:02:45 -0500 |

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: address@hidden [mailto:address@hidden 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
address@hidden
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.