[CoinUtils-tickets] [COIN-OR Common Utilities] #14: Ugly output from CoinLpIO for some 0 coefficients

COIN-OR Common Utilities coin-trac at coin-or.org
Sat Feb 3 10:50:12 EST 2007


#14: Ugly output from CoinLpIO for some 0 coefficients
------------------------+---------------------------------------------------
 Reporter:  fmargot     |       Owner:  somebody
     Type:  defect      |      Status:  new     
 Priority:  trivial     |   Milestone:          
Component:  component1  |     Version:          
 Keywords:              |  
------------------------+---------------------------------------------------
 When some coefficient are considered to be 0 in writeLp(),
 an extra line break is sometimes inserted. To correct this,
 modify the block at lines 801-808:

 801      if(fabs(elements[j]) > lp_eps) {

 802              out_coeff(fp, elements[j], 0);

 803              fprintf(fp, " %s", colNames[indices[j]]);

 804              cnt_print++;

 805            }

 806            if(cnt_print % numberAcross == 0) {

 807              fprintf(fp, "\n");

 808            }

 by moving the bracket at line 805 after line 808.
 Similar modification at lines 836-843.

-- 
Ticket URL: <https://projects.coin-or.org/CoinUtils/ticket/14>
COIN-OR Common Utilities <http://projects.coin-or.org/CoinUtils>
Common data structures and linear algebra functions for COIN-OR projects



More information about the CoinUtils-tickets mailing list